CalDetCERTimeWin Class Reference

#include <CalDetCERTimeWin.h>

Inheritance diagram for CalDetCERTimeWin:
DbiTableRow

List of all members.

Public Member Functions

 CalDetCERTimeWin ()
 CalDetCERTimeWin (UInt_t ptype, Float_t win0low, Float_t win0high, Float_t win1low, Float_t win1high, Float_t win2low, Float_t win2high)
virtual ~CalDetCERTimeWin ()
UInt_t GetIndex (UInt_t) const
UInt_t GetParticleType () const
Float_t GetWin0Low () const
Float_t GetWin0High () const
Float_t GetWin1Low () const
Float_t GetWin1High () const
Float_t GetWin2Low () const
Float_t GetWin2High () 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

 CalDetCERTimeWin (const CalDetCERTimeWin &from)

Private Attributes

UInt_t fParticleType
Float_t fWin0Low
Float_t fWin0High
Float_t fWin1Low
Float_t fWin1High
Float_t fWin2Low
Float_t fWin2High

Detailed Description

Definition at line 12 of file CalDetCERTimeWin.h.


Constructor & Destructor Documentation

CalDetCERTimeWin::CalDetCERTimeWin (  )  [inline]

Definition at line 17 of file CalDetCERTimeWin.h.

References LEA_CTOR.

00017 { LEA_CTOR; }

CalDetCERTimeWin::CalDetCERTimeWin ( UInt_t  ptype,
Float_t  win0low,
Float_t  win0high,
Float_t  win1low,
Float_t  win1high,
Float_t  win2low,
Float_t  win2high 
) [inline]

Definition at line 18 of file CalDetCERTimeWin.h.

References LEA_CTOR.

00022           :
00023           fParticleType(ptype),
00024           fWin0Low(win0low), fWin0High(win0high),
00025           fWin1Low(win1low), fWin1High(win1high),
00026           fWin2Low(win2low), fWin2High(win2high)
00027           { LEA_CTOR; }

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

Definition at line 29 of file CalDetCERTimeWin.h.

References LEA_DTOR.

00029 { LEA_DTOR; }

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

Definition at line 59 of file CalDetCERTimeWin.h.

References LEA_CTOR.

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


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 41 of file CalDetCERTimeWin.h.

00041                                                  { 
00042           return new CalDetCERTimeWin; }

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

Implements DbiTableRow.

Definition at line 19 of file CalDetCERTimeWin.cxx.

References DbiRowStream::CurColName(), fParticleType, fWin0High, fWin0Low, fWin1High, fWin1Low, fWin2High, fWin2Low, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00020                                                          {
00021 
00022      if ( rs.TableName() == "CALDETCERTIMEWIN" ) {
00023      // dumb filling
00024           rs>> fParticleType
00025             >> fWin0Low
00026             >> fWin0High
00027             >> fWin1Low
00028             >> fWin1High
00029             >> fWin2Low
00030             >> fWin2High;
00031      }
00032      else{
00033      // Smart method
00034       Int_t numCol = rs.NumCols();
00035       //  The first column (SeqNo) has already been processed.
00036       for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00037          string colName = rs.CurColName();
00038          if (      colName == "PARTICLETYPE" ) rs >> fParticleType;
00039          else if ( colName == "WIN0LOW" )       rs >> fWin0Low;
00040          else if ( colName == "WIN0HIGH" )       rs >> fWin0High;
00041          else if ( colName == "WIN1LOW" )       rs >> fWin1Low;
00042          else if ( colName == "WIN1HIGH" )       rs >> fWin1High;
00043          else if ( colName == "WIN2LOW" )       rs >> fWin2Low;
00044          else if ( colName == "WIN2HIGH" )       rs >> fWin2High;
00045          else {
00046             MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00047                                    << "(" << colName << ")"
00048                                    << "; not part of CalDetCERTimeWin" 
00049                                    << endl;
00050          rs.IncrementCurCol();
00051          }
00052       }
00053 
00054      }
00055 }

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

Reimplemented from DbiTableRow.

Definition at line 32 of file CalDetCERTimeWin.h.

References fParticleType.

00032 { return fParticleType; }

UInt_t CalDetCERTimeWin::GetParticleType (  )  const [inline]

Definition at line 33 of file CalDetCERTimeWin.h.

References fParticleType.

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

00033 { return fParticleType; }

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

Definition at line 95 of file CalDetCERTimeWin.cxx.

Referenced by AutoPIDMaker::Reco().

00096 {
00097      return std::string(
00098           "(SeqNo int,   PARTICLETYPE  int,"
00099           " WIN0LOW float, WIN0HIGH float, "
00100           " WIN1LOW float, WIN1HIGH float, "
00101           " WIN2LOW float, WIN2HIGH float)"
00102           );
00103 }

Float_t CalDetCERTimeWin::GetWin0High (  )  const [inline]

Definition at line 35 of file CalDetCERTimeWin.h.

References fWin0High.

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

00035 {return fWin0High;}

Float_t CalDetCERTimeWin::GetWin0Low (  )  const [inline]

Definition at line 34 of file CalDetCERTimeWin.h.

References fWin0Low.

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

00034 {return fWin0Low;}

Float_t CalDetCERTimeWin::GetWin1High (  )  const [inline]

Definition at line 37 of file CalDetCERTimeWin.h.

References fWin1High.

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

00037 {return fWin1High;}

Float_t CalDetCERTimeWin::GetWin1Low (  )  const [inline]

Definition at line 36 of file CalDetCERTimeWin.h.

References fWin1Low.

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

00036 {return fWin1Low;}

Float_t CalDetCERTimeWin::GetWin2High (  )  const [inline]

Definition at line 39 of file CalDetCERTimeWin.h.

References fWin2High.

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

00039 {return fWin2High;}

Float_t CalDetCERTimeWin::GetWin2Low (  )  const [inline]

Definition at line 38 of file CalDetCERTimeWin.h.

References fWin2Low.

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

00038 {return fWin2Low;}

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

Definition at line 70 of file CalDetCERTimeWin.cxx.

References fParticleType, fWin0High, fWin0Low, fWin1High, fWin1Low, fWin2High, and fWin2Low.

00071 {
00072      os<< "-----------------------------------------------\n"
00073        << "PARTICLETYPE: "<<fParticleType<<"\n"
00074        << "WIN0LOW: "<<fWin0Low<<"\n"
00075        << "WIN0HIGH: "<<fWin0High<<"\n"
00076        << "WIN1LOW: "<<fWin1Low<<"\n"
00077        << "WIN1HIGH: "<<fWin1High<<"\n"
00078        << "WIN2LOW: "<<fWin2Low<<"\n"
00079        << "WIN2HIGH: "<<fWin2High<<"\n"
00080        << "-----------------------------------------------\n";
00081      return os;
00082 }

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

Definition at line 89 of file CalDetCERTimeWin.cxx.

Referenced by operator<<().

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

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

Reimplemented from DbiTableRow.

Definition at line 57 of file CalDetCERTimeWin.cxx.

References fParticleType, fWin0High, fWin0Low, fWin1High, fWin1Low, fWin2High, and fWin2Low.

00058                                                                    {
00059 //     MSG("Dbi", Msg::kVerbose)<<"Calling Store!"<<std::endl;
00060      ors<< fParticleType
00061         << fWin0Low
00062         << fWin0High
00063         << fWin1Low
00064         << fWin1High
00065         << fWin2Low
00066         << fWin2High;
00067 
00068 }


Member Data Documentation

Definition at line 65 of file CalDetCERTimeWin.h.

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

Float_t CalDetCERTimeWin::fWin0High [private]

Definition at line 69 of file CalDetCERTimeWin.h.

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

Float_t CalDetCERTimeWin::fWin0Low [private]

Definition at line 68 of file CalDetCERTimeWin.h.

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

Float_t CalDetCERTimeWin::fWin1High [private]

Definition at line 71 of file CalDetCERTimeWin.h.

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

Float_t CalDetCERTimeWin::fWin1Low [private]

Definition at line 70 of file CalDetCERTimeWin.h.

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

Float_t CalDetCERTimeWin::fWin2High [private]

Definition at line 73 of file CalDetCERTimeWin.h.

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

Float_t CalDetCERTimeWin::fWin2Low [private]

Definition at line 72 of file CalDetCERTimeWin.h.

Referenced by Fill(), GetWin2Low(), 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