CandDigitBadChannels Class Reference

#include <CandDigitBadChannels.h>

Inheritance diagram for CandDigitBadChannels:
DbiTableRow

List of all members.

Public Types

enum  BadnessReasons {
  vhot = 1, hot = 2, warm = 4, cold = 8,
  dead = 16
}

Public Member Functions

 CandDigitBadChannels ()
 CandDigitBadChannels (Int_t crate, Int_t chadd, Int_t badnessReason, Int_t parA, Float_t parB, Float_t parC)
virtual ~CandDigitBadChannels ()
Bool_t CanL2Cache () const
Int_t GetCrate () const
Int_t GetChAdd () const
Int_t GetBadnessReason () const
Int_t GetParA () const
Float_t GetParB () const
Float_t GetParC () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Member Functions

 CandDigitBadChannels (const CandDigitBadChannels &from)

Private Attributes

Int_t fCrate
Int_t fChAdd
Int_t fBadnessReason
Int_t fParA
Float_t fParB
Float_t fParC

Detailed Description

Definition at line 13 of file CandDigitBadChannels.h.


Member Enumeration Documentation

Enumerator:
vhot 
hot 
warm 
cold 
dead 

Definition at line 17 of file CandDigitBadChannels.h.

00017                             {
00018     vhot = 1,
00019     hot = 2,
00020     warm = 4,
00021     cold = 8,
00022     dead = 16
00023   };


Constructor & Destructor Documentation

CandDigitBadChannels::CandDigitBadChannels (  )  [inline]

Definition at line 26 of file CandDigitBadChannels.h.

00026                         :
00027     fCrate(-1),fChAdd(-1),fBadnessReason(-1),
00028     fParA(-1),fParB(-1),fParC(-1) {;}
  CandDigitBadChannels(Int_t crate,Int_t chadd,Int_t badnessReason,

CandDigitBadChannels::CandDigitBadChannels ( Int_t  crate,
Int_t  chadd,
Int_t  badnessReason,
Int_t  parA,
Float_t  parB,
Float_t  parC 
) [inline]

Definition at line 29 of file CandDigitBadChannels.h.

00030                                                         :
00031     fCrate(crate),fChAdd(chadd),fBadnessReason(badnessReason),
00032     fParA(parA),fParB(parB),fParC(parC) {;}
  virtual ~CandDigitBadChannels() {;}

virtual CandDigitBadChannels::~CandDigitBadChannels (  )  [inline, virtual]

Definition at line 33 of file CandDigitBadChannels.h.

00033 {;}

CandDigitBadChannels::CandDigitBadChannels ( const CandDigitBadChannels from  )  [inline, private]

Definition at line 57 of file CandDigitBadChannels.h.

00058     : DbiTableRow(from) {*this=from;}


Member Function Documentation

Bool_t CandDigitBadChannels::CanL2Cache (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 36 of file CandDigitBadChannels.h.

00036 {return kTRUE;}

virtual DbiTableRow* CandDigitBadChannels::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 46 of file CandDigitBadChannels.h.

00046                                               { 
00047     return new CandDigitBadChannels; }

void CandDigitBadChannels::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 32 of file CandDigitBadChannels.cxx.

References DbiRowStream::CurColName(), fBadnessReason, fChAdd, fCrate, fParA, fParB, fParC, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kInfo, MAXMSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00034 {
00035   //Purpose: Fill object from Result Set
00036   
00037   if (rs.TableName()=="CANDDIGITBADCHANNELS") {
00038     //Dumb method
00039     //cout<<"Using dumb method"<<endl;
00040     rs>>fCrate>>fChAdd>>fBadnessReason>>fParA>>fParB>>fParC;
00041   }
00042   else {
00043     //Smart method
00044     //cout<<"Using smart method"<<endl;
00045     Int_t numCol=rs.NumCols();
00046 
00047     //The first column (SeqNo) has already been processed.
00048     for (Int_t curCol=rs.HasRowCounter() ? 3:2;curCol<=numCol;++curCol){
00049       string colName=rs.CurColName();
00050       if (colName=="CRATE") rs>>fCrate;
00051       else if (colName=="CHADD") rs>>fChAdd;
00052       else if (colName=="BADNESSREASON") rs>>fBadnessReason;
00053       else if (colName=="PARA") rs>>fParA;
00054       else if (colName=="PARB") rs>>fParB;
00055       else if (colName=="PARC") rs>>fParC;
00056       else {
00057         MAXMSG("Dbi",Msg::kInfo,200) 
00058           <<"Ignoring column "<<curCol<<" ("<<colName<<")"
00059           <<": not part of CandDigitBadChannels"<<endl;
00060         rs.IncrementCurCol();
00061       }
00062     }
00063   }
00064 }

Int_t CandDigitBadChannels::GetBadnessReason (  )  const

Definition at line 92 of file CandDigitBadChannels.cxx.

References fBadnessReason.

Referenced by AlgFilterDigitList::MakeBadChannelMapDB().

00093 {
00094   return fBadnessReason;
00095 }

Int_t CandDigitBadChannels::GetChAdd (  )  const

Definition at line 85 of file CandDigitBadChannels.cxx.

References fChAdd.

Referenced by AlgFilterDigitList::MakeBadChannelMapDB().

00086 {
00087   return fChAdd;
00088 }

Int_t CandDigitBadChannels::GetCrate (  )  const

Definition at line 78 of file CandDigitBadChannels.cxx.

References fCrate.

Referenced by AlgFilterDigitList::MakeBadChannelMapDB().

00079 {
00080   return fCrate;
00081 }

Int_t CandDigitBadChannels::GetParA (  )  const

Definition at line 99 of file CandDigitBadChannels.cxx.

References fParA.

00100 {
00101   return fParA;
00102 }

Float_t CandDigitBadChannels::GetParB (  )  const

Definition at line 106 of file CandDigitBadChannels.cxx.

References fParB.

00107 {
00108   return fParB;
00109 }

Float_t CandDigitBadChannels::GetParC (  )  const

Definition at line 113 of file CandDigitBadChannels.cxx.

References fParC.

00114 {
00115   return fParC;
00116 }

void CandDigitBadChannels::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Purpose: Stream object to output row stream

Reimplemented from DbiTableRow.

Definition at line 68 of file CandDigitBadChannels.cxx.

References fBadnessReason, fChAdd, fCrate, fParA, fParB, and fParC.

00070 {
00072   
00073   ors<<fCrate<<fChAdd<<fBadnessReason<<fParA<<fParB<<fParC;
00074 }


Member Data Documentation

Definition at line 63 of file CandDigitBadChannels.h.

Referenced by Fill(), GetBadnessReason(), and Store().

Definition at line 62 of file CandDigitBadChannels.h.

Referenced by Fill(), GetChAdd(), and Store().

Definition at line 61 of file CandDigitBadChannels.h.

Referenced by Fill(), GetCrate(), and Store().

Int_t CandDigitBadChannels::fParA [private]

Definition at line 64 of file CandDigitBadChannels.h.

Referenced by Fill(), GetParA(), and Store().

Float_t CandDigitBadChannels::fParB [private]

Definition at line 65 of file CandDigitBadChannels.h.

Referenced by Fill(), GetParB(), and Store().

Float_t CandDigitBadChannels::fParC [private]

Definition at line 66 of file CandDigitBadChannels.h.

Referenced by Fill(), GetParC(), and Store().


The documentation for this class was generated from the following files:

Generated on 15 Aug 2017 for loon by  doxygen 1.6.1