#include <ChannelsToFilter.h>
Inheritance diagram for ChannelsToFilter:

Public Member Functions | |
| ChannelsToFilter () | |
| ChannelsToFilter (UInt_t encoded) | |
| ChannelsToFilter (const RawChannelId &rcid) | |
| virtual | ~ChannelsToFilter () |
| virtual DbiTableRow * | CreateTableRow () const |
| UInt_t | GetIndex (UInt_t) const |
| UInt_t | GetEncoded () const |
| RawChannelId | GetRawChannelId () const |
| bool | IsSameChannel (const RawChannelId &rcid) const |
| bool | IsSameChannel (const CandDigitHandle *dig) const |
| virtual void | Print (Option_t *option="") const |
| std::ostream & | Print (std::ostream &, Option_t *option="") const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
Static Public Member Functions | |
| std::string | GetTableDesc () |
Private Member Functions | |
| ChannelsToFilter (const ChannelsToFilter &from) | |
Private Attributes | |
| UInt_t | fEncoded |
| RawChannelId | fRcid |
|
|
Definition at line 19 of file ChannelsToFilter.h. References fEncoded, and fRcid.
|
|
|
Definition at line 20 of file ChannelsToFilter.h. References fEncoded, and fRcid.
|
|
|
Definition at line 23 of file ChannelsToFilter.h. References fEncoded, fRcid, and GetEncoded(). 00024 : fEncoded(rcid.GetEncoded()) , fRcid(rcid) 00025 { LEA_CTOR; }
|
|
|
Definition at line 26 of file ChannelsToFilter.h. 00026 { LEA_DTOR; }
|
|
|
Definition at line 52 of file ChannelsToFilter.h. 00053 : DbiTableRow() { LEA_CTOR; *this = from; }
|
|
|
Implements DbiTableRow. Definition at line 30 of file ChannelsToFilter.h. 00030 {
00031 return new ChannelsToFilter; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 22 of file ChannelsToFilter.cxx. References MSG. 00023 {
00024
00025 if ( rs.TableName() == "CHANNELSTOFILTER" ) {
00026 // dumb filling
00027 rs>> fEncoded;
00028 fRcid=RawChannelId(fEncoded);
00029 }
00030 else{
00031 // Smart method
00032 Int_t numCol = rs.NumCols();
00033 // The first column (SeqNo) has already been processed.
00034 for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00035 string colName = rs.CurColName();
00036 if ( colName == "ENCODED" ) {
00037 rs >> fEncoded;
00038 fRcid = RawChannelId(fEncoded);
00039 }
00040 else {
00041 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00042 << "(" << colName << ")"
00043 << "; not part of ChannelsToFilter"
00044 << endl;
00045 rs.IncrementCurCol();
00046 }
00047 }
00048
00049 }
00050 }
|
|
|
Definition at line 34 of file ChannelsToFilter.h. Referenced by ChannelsToFilter(). 00034 {return fEncoded;}
|
|
|
Reimplemented from DbiTableRow. Definition at line 33 of file ChannelsToFilter.h. 00033 { return fEncoded; }
|
|
|
Definition at line 35 of file ChannelsToFilter.h. Referenced by DumpFilterChannels(). 00035 {return fRcid;}
|
|
|
Definition at line 75 of file ChannelsToFilter.cxx. 00076 {
00077 return std::string("(SeqNo int, Encoded BIGINT UNSIGNED)");
00078 }
|
|
|
Definition at line 84 of file ChannelsToFilter.cxx. References CandDigitHandle::GetChannelId(), and IsSameChannel(). 00084 {
00085 return IsSameChannel(dig->GetChannelId());
00086 }
|
|
|
Definition at line 80 of file ChannelsToFilter.cxx. References fRcid, and RawChannelId::IsSameChannel(). Referenced by IsSameChannel(), and AlgFilterChannels::RunAlg(). 00080 {
00081 if(rcid.IsSameChannel(fRcid)) return true;
00082 else return false;
00083 }
|
|
||||||||||||
|
Definition at line 58 of file ChannelsToFilter.cxx. References fEncoded, and fRcid. 00059 {
00060 // RawChannelId rcid(fEncoded);
00061 os<< "Channel: "<<fEncoded<<" = "<<fRcid<<"\n";
00062 return os;
00063 }
|
|
|
Definition at line 70 of file ChannelsToFilter.cxx. Referenced by operator<<(). 00071 {
00072 Print(std::cout,op);
00073 }
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 52 of file ChannelsToFilter.cxx. 00053 {
00054 // MSG("Dbi", Msg::kWarning)<<"Calling Store!"<<std::endl;
00055 ors<< fEncoded;
00056 }
|
|
|
Definition at line 58 of file ChannelsToFilter.h. Referenced by ChannelsToFilter(), and Print(). |
|
|
Definition at line 59 of file ChannelsToFilter.h. Referenced by ChannelsToFilter(), IsSameChannel(), and Print(). |
1.3.9.1