CalDetCERRange Class Reference

#include <CalDetCERRange.h>

Inheritance diagram for CalDetCERRange:
DbiTableRow

List of all members.

Public Member Functions

 CalDetCERRange ()
 CalDetCERRange (UInt_t ptype, Float_t c0low, Float_t c0high, Float_t c1low, Float_t c1high, Float_t c2low, Float_t c2high)
virtual ~CalDetCERRange ()
UInt_t GetIndex (UInt_t) const
UInt_t GetParticleType () const
Float_t GetCER0Low () const
Float_t GetCER0High () const
Float_t GetCER1Low () const
Float_t GetCER1High () const
Float_t GetCER2Low () const
Float_t GetCER2High () const
virtual DbiTableRowCreateTableRow () const
virtual void Print (Option_t *op="") const
std::ostream & Print (std::ostream &, Option_t *op="") const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Static Public Member Functions

static std::string GetTableDesc ()

Private Member Functions

 CalDetCERRange (const CalDetCERRange &from)

Private Attributes

UInt_t fParticleType
Float_t fCER0Low
Float_t fCER0High
Float_t fCER1Low
Float_t fCER1High
Float_t fCER2Low
Float_t fCER2High

Detailed Description

Definition at line 13 of file CalDetCERRange.h.


Constructor & Destructor Documentation

CalDetCERRange::CalDetCERRange (  )  [inline]

Definition at line 18 of file CalDetCERRange.h.

References LEA_CTOR.

00018 { LEA_CTOR; }

CalDetCERRange::CalDetCERRange ( UInt_t  ptype,
Float_t  c0low,
Float_t  c0high,
Float_t  c1low,
Float_t  c1high,
Float_t  c2low,
Float_t  c2high 
) [inline]

Definition at line 19 of file CalDetCERRange.h.

References LEA_CTOR.

00023           :
00024           fParticleType(ptype),
00025           fCER0Low(c0low), fCER0High(c0high),
00026           fCER1Low(c1low), fCER1High(c1high),
00027           fCER2Low(c2low), fCER2High(c2high)
00028           { LEA_CTOR; }

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

Definition at line 30 of file CalDetCERRange.h.

References LEA_DTOR.

00030 { LEA_DTOR; }

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

Definition at line 61 of file CalDetCERRange.h.

References LEA_CTOR.

00062           : DbiTableRow() { LEA_CTOR; *this = from; }


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 43 of file CalDetCERRange.h.

00043                                                  { 
00044           return new CalDetCERRange; }

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

Implements DbiTableRow.

Definition at line 20 of file CalDetCERRange.cxx.

References DbiRowStream::CurColName(), fCER0High, fCER0Low, fCER1High, fCER1Low, fCER2High, fCER2Low, fParticleType, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00021                                                          {
00022 
00023      if ( rs.TableName() == "CALDETCERRANGE" ) {
00024      // dumb filling
00025           rs>> fParticleType
00026             >> fCER0Low
00027             >> fCER0High
00028             >> fCER1Low
00029             >> fCER1High
00030             >> fCER2Low
00031             >> fCER2High;
00032      }
00033      else{
00034      // Smart method
00035       Int_t numCol = rs.NumCols();
00036       //  The first column (SeqNo) has already been processed.
00037       for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00038          string colName = rs.CurColName();
00039          if (      colName == "PARTICLETYPE" ) rs >> fParticleType;
00040          else if ( colName == "CER0LOW" )       rs >> fCER0Low;
00041          else if ( colName == "CER0HIGH" )       rs >> fCER0High;
00042          else if ( colName == "CER1LOW" )       rs >> fCER1Low;
00043          else if ( colName == "CER1HIGH" )       rs >> fCER1High;
00044          else if ( colName == "CER2LOW" )       rs >> fCER2Low;
00045          else if ( colName == "CER2HIGH" )       rs >> fCER2High;
00046          else {
00047             MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00048                                    << "(" << colName << ")"
00049                                    << "; not part of CalDetCERRange" 
00050                                    << endl;
00051          rs.IncrementCurCol();
00052          }
00053       }
00054 
00055      }
00056 }

Float_t CalDetCERRange::GetCER0High (  )  const [inline]

Definition at line 36 of file CalDetCERRange.h.

References fCER0High.

Referenced by main().

00036 {return fCER0High;}

Float_t CalDetCERRange::GetCER0Low (  )  const [inline]

Definition at line 35 of file CalDetCERRange.h.

References fCER0Low.

Referenced by main(), and AlgCalDetPID::RunAlg().

00035 {return fCER0Low;}

Float_t CalDetCERRange::GetCER1High (  )  const [inline]

Definition at line 38 of file CalDetCERRange.h.

References fCER1High.

Referenced by main().

00038 {return fCER1High;}

Float_t CalDetCERRange::GetCER1Low (  )  const [inline]

Definition at line 37 of file CalDetCERRange.h.

References fCER1Low.

Referenced by main(), and AlgCalDetPID::RunAlg().

00037 {return fCER1Low;}

Float_t CalDetCERRange::GetCER2High (  )  const [inline]

Definition at line 40 of file CalDetCERRange.h.

References fCER2High.

Referenced by main().

00040 {return fCER2High;}

Float_t CalDetCERRange::GetCER2Low (  )  const [inline]

Definition at line 39 of file CalDetCERRange.h.

References fCER2Low.

Referenced by main(), and AlgCalDetPID::RunAlg().

00039 {return fCER2Low;}

UInt_t CalDetCERRange::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 33 of file CalDetCERRange.h.

References fParticleType.

00033 { return fParticleType; }

UInt_t CalDetCERRange::GetParticleType (  )  const [inline]

Definition at line 34 of file CalDetCERRange.h.

References fParticleType.

Referenced by main(), and AlgCalDetPID::RunAlg().

00034 { return fParticleType; }

std::string CalDetCERRange::GetTableDesc (  )  [static]

Definition at line 94 of file CalDetCERRange.cxx.

Referenced by AutoPIDMaker::Reco().

00094                                       {
00095      
00096      return std::string(
00097       "(SeqNo int,   PARTICLETYPE  int,"
00098        " CER0LOW float, CER0HIGH float, "
00099        " CER1LOW float, CER1HIGH float, "
00100        " CER2LOW float, CER2HIGH float)"
00101           );
00102 }

std::ostream & CalDetCERRange::Print ( std::ostream &  os,
Option_t *  op = "" 
) const

Definition at line 70 of file CalDetCERRange.cxx.

References fCER0High, fCER0Low, fCER1High, fCER1Low, fCER2High, fCER2Low, and fParticleType.

00071 {
00072      os<< "-----------------------------------------------\n"
00073        << "PARTICLETYPE: "<<fParticleType<<"\n"
00074        << "CER0LOW: "<<fCER0Low<<"\n"
00075        << "CER0HIGH: "<<fCER0High<<"\n"
00076        << "CER1LOW: "<<fCER1Low<<"\n"
00077        << "CER1HIGH: "<<fCER1High<<"\n"
00078        << "CER2LOW: "<<fCER2Low<<"\n"
00079        << "CER2HIGH: "<<fCER2High<<"\n"
00080        << "-----------------------------------------------";
00081      return os;
00082 }

void CalDetCERRange::Print ( Option_t *  op = ""  )  const [virtual]

Definition at line 89 of file CalDetCERRange.cxx.

Referenced by main(), and operator<<().

00090 {
00091      Print(std::cout,op);
00092 }

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

Reimplemented from DbiTableRow.

Definition at line 58 of file CalDetCERRange.cxx.

References fCER0High, fCER0Low, fCER1High, fCER1Low, fCER2High, fCER2Low, and fParticleType.

00059                                                                    {
00060 //     MSG("Dbi", Msg::kVerbose)<<"Calling Store!"<<std::endl;
00061      ors<< fParticleType
00062         << fCER0Low
00063         << fCER0High
00064         << fCER1Low
00065         << fCER1High
00066         << fCER2Low
00067         << fCER2High;
00068 }


Member Data Documentation

Float_t CalDetCERRange::fCER0High [private]

Definition at line 71 of file CalDetCERRange.h.

Referenced by Fill(), GetCER0High(), Print(), and Store().

Float_t CalDetCERRange::fCER0Low [private]

Definition at line 70 of file CalDetCERRange.h.

Referenced by Fill(), GetCER0Low(), Print(), and Store().

Float_t CalDetCERRange::fCER1High [private]

Definition at line 73 of file CalDetCERRange.h.

Referenced by Fill(), GetCER1High(), Print(), and Store().

Float_t CalDetCERRange::fCER1Low [private]

Definition at line 72 of file CalDetCERRange.h.

Referenced by Fill(), GetCER1Low(), Print(), and Store().

Float_t CalDetCERRange::fCER2High [private]

Definition at line 75 of file CalDetCERRange.h.

Referenced by Fill(), GetCER2High(), Print(), and Store().

Float_t CalDetCERRange::fCER2Low [private]

Definition at line 74 of file CalDetCERRange.h.

Referenced by Fill(), GetCER2Low(), Print(), and Store().

Definition at line 67 of file CalDetCERRange.h.

Referenced by Fill(), GetIndex(), GetParticleType(), Print(), and Store().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1