CalDetTOFRange Class Reference

#include <CalDetTOFRange.h>

Inheritance diagram for CalDetTOFRange:
DbiTableRow

List of all members.

Public Member Functions

 CalDetTOFRange ()
 CalDetTOFRange (UInt_t ptype, Float_t uslow, Float_t ushigh, Float_t midlow, Float_t midhigh, Float_t dslow, Float_t dshigh, Float_t ds_minus_us_low, Float_t ds_minus_us_high, Float_t ds_minus_mid_low, Float_t ds_minus_mid_high)
virtual ~CalDetTOFRange ()
UInt_t GetIndex (UInt_t) const
UInt_t GetParticleType () const
Float_t GetTDC2Low () const
Float_t GetTDC2High () const
Float_t GetTDC1Low () const
Float_t GetTDC1High () const
Float_t GetTDC0Low () const
Float_t GetTDC0High () const
Float_t GetTDC2MinusTDC0Low () const
Float_t GetTDC2MinusTDC0High () const
Float_t GetTDC2MinusTDC1Low () const
Float_t GetTDC2MinusTDC1High () 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

 CalDetTOFRange (const CalDetTOFRange &from)

Private Attributes

UInt_t fParticleType
Float_t fTDC2Low
Float_t fTDC2High
Float_t fTDC1Low
Float_t fTDC1High
Float_t fTDC0Low
Float_t fTDC0High
Float_t fTDC2_Minus_TDC0_Low
Float_t fTDC2_Minus_TDC0_High
Float_t fTDC2_Minus_TDC1_Low
Float_t fTDC2_Minus_TDC1_High

Detailed Description

Definition at line 12 of file CalDetTOFRange.h.


Constructor & Destructor Documentation

CalDetTOFRange::CalDetTOFRange (  )  [inline]

Definition at line 17 of file CalDetTOFRange.h.

References LEA_CTOR.

00017 { LEA_CTOR; }

CalDetTOFRange::CalDetTOFRange ( UInt_t  ptype,
Float_t  uslow,
Float_t  ushigh,
Float_t  midlow,
Float_t  midhigh,
Float_t  dslow,
Float_t  dshigh,
Float_t  ds_minus_us_low,
Float_t  ds_minus_us_high,
Float_t  ds_minus_mid_low,
Float_t  ds_minus_mid_high 
) [inline]

Definition at line 18 of file CalDetTOFRange.h.

References LEA_CTOR.

00024           :
00025           fParticleType(ptype),
00026           fTDC2Low(uslow), fTDC2High(ushigh),
00027           fTDC1Low(midlow), fTDC1High(midhigh),
00028           fTDC0Low(dslow), fTDC0High(dshigh),
00029           fTDC2_Minus_TDC0_Low(ds_minus_us_low), 
00030           fTDC2_Minus_TDC0_High(ds_minus_us_high),
00031           fTDC2_Minus_TDC1_Low(ds_minus_mid_low), 
00032           fTDC2_Minus_TDC1_High(ds_minus_mid_high) 
00033           { LEA_CTOR; }

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

Definition at line 35 of file CalDetTOFRange.h.

References LEA_DTOR.

00035 { LEA_DTOR; }

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

Definition at line 69 of file CalDetTOFRange.h.

References LEA_CTOR.

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


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 51 of file CalDetTOFRange.h.

00051                                                  { 
00052           return new CalDetTOFRange; }

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

Implements DbiTableRow.

Definition at line 19 of file CalDetTOFRange.cxx.

References DbiRowStream::CurColName(), fParticleType, fTDC0High, fTDC0Low, fTDC1High, fTDC1Low, fTDC2_Minus_TDC0_High, fTDC2_Minus_TDC0_Low, fTDC2_Minus_TDC1_High, fTDC2_Minus_TDC1_Low, fTDC2High, fTDC2Low, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00020                                                          {
00021 
00022      if ( rs.TableName() == "CALDETTOFRANGE" ) {
00023      // dumb filling
00024           rs>> fParticleType
00025             >> fTDC0Low
00026             >> fTDC0High
00027             >> fTDC1Low
00028             >> fTDC1High
00029             >> fTDC2Low
00030             >> fTDC2High
00031             >> fTDC2_Minus_TDC0_Low
00032             >> fTDC2_Minus_TDC0_High
00033             >> fTDC2_Minus_TDC1_Low
00034             >> fTDC2_Minus_TDC1_High;
00035      }
00036      else{
00037      // Smart method
00038       Int_t numCol = rs.NumCols();
00039       //  The first column (SeqNo) has already been processed.
00040       for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00041          string colName = rs.CurColName();
00042          if (      colName == "PARTICLETYPE" ) rs >> fParticleType;
00043          else if ( colName == "TDC0LOW" )       rs >> fTDC0Low;
00044          else if ( colName == "TDC0HIGH" )       rs >> fTDC0High;
00045          else if ( colName == "TDC1LOW" )       rs >> fTDC1Low;
00046          else if ( colName == "TDC1HIGH" )       rs >> fTDC1High;
00047          else if ( colName == "TDC2LOW" )       rs >> fTDC2Low;
00048          else if ( colName == "TDC2HIGH" )       rs >> fTDC2High;
00049          else if ( colName == "TDC2MINUSTDC0LOW" ) rs >> fTDC2_Minus_TDC0_Low;
00050          else if ( colName == "TDC2MINUSTDC0HIGH" ) rs >> fTDC2_Minus_TDC0_High;
00051          else if ( colName == "TDC2MINUSTDC1LOW" ) rs >> fTDC2_Minus_TDC1_Low;
00052          else if ( colName == "TDC2MINUSTDC1HIGH" ) rs >> fTDC2_Minus_TDC1_High;
00053          else {
00054             MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00055                                    << "(" << colName << ")"
00056                                    << "; not part of CalDetTOFRange" 
00057                                    << endl;
00058          rs.IncrementCurCol();
00059          }
00060       }
00061 
00062      }
00063 }

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

Reimplemented from DbiTableRow.

Definition at line 38 of file CalDetTOFRange.h.

References fParticleType.

00038 { return fParticleType; }

UInt_t CalDetTOFRange::GetParticleType (  )  const [inline]

Definition at line 39 of file CalDetTOFRange.h.

References fParticleType.

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

00039 { return fParticleType; }

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

Definition at line 109 of file CalDetTOFRange.cxx.

Referenced by AutoPIDMaker::Reco().

00109                                       {
00110      return std::string(
00111           "(SeqNo int,   PARTICLETYPE  int,"
00112           " TDC0LOW float, TDC0HIGH float, "
00113           " TDC1LOW float, TDC1HIGH float, "
00114           " TDC2LOW float, TDC2HIGH float, "
00115           " TDC2MINUSTDC0LOW float, TDC2MINUSTDC0HIGH float, "
00116           " TDC2MINUSTDC1LOW float, TDC2MINUSTDC1HIGH float )"
00117           );
00118 }

Float_t CalDetTOFRange::GetTDC0High (  )  const [inline]

Definition at line 45 of file CalDetTOFRange.h.

References fTDC0High.

Referenced by main().

00045 {return fTDC0High;}

Float_t CalDetTOFRange::GetTDC0Low (  )  const [inline]

Definition at line 44 of file CalDetTOFRange.h.

References fTDC0Low.

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

00044 {return fTDC0Low;}

Float_t CalDetTOFRange::GetTDC1High (  )  const [inline]

Definition at line 43 of file CalDetTOFRange.h.

References fTDC1High.

Referenced by main().

00043 {return fTDC1High;}

Float_t CalDetTOFRange::GetTDC1Low (  )  const [inline]

Definition at line 42 of file CalDetTOFRange.h.

References fTDC1Low.

Referenced by main().

00042 {return fTDC1Low;}

Float_t CalDetTOFRange::GetTDC2High (  )  const [inline]

Definition at line 41 of file CalDetTOFRange.h.

References fTDC2High.

Referenced by main().

00041 {return fTDC2High;}

Float_t CalDetTOFRange::GetTDC2Low (  )  const [inline]

Definition at line 40 of file CalDetTOFRange.h.

References fTDC2Low.

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

00040 {return fTDC2Low;}

Float_t CalDetTOFRange::GetTDC2MinusTDC0High (  )  const [inline]

Definition at line 47 of file CalDetTOFRange.h.

References fTDC2_Minus_TDC0_High.

Referenced by main().

00047 {return fTDC2_Minus_TDC0_High;}

Float_t CalDetTOFRange::GetTDC2MinusTDC0Low (  )  const [inline]

Definition at line 46 of file CalDetTOFRange.h.

References fTDC2_Minus_TDC0_Low.

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

00046 {return fTDC2_Minus_TDC0_Low;}

Float_t CalDetTOFRange::GetTDC2MinusTDC1High (  )  const [inline]

Definition at line 49 of file CalDetTOFRange.h.

References fTDC2_Minus_TDC1_High.

Referenced by main().

00049 {return fTDC2_Minus_TDC1_High;}

Float_t CalDetTOFRange::GetTDC2MinusTDC1Low (  )  const [inline]

Definition at line 48 of file CalDetTOFRange.h.

References fTDC2_Minus_TDC1_Low.

Referenced by main().

00048 {return fTDC2_Minus_TDC1_Low;}

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

Definition at line 81 of file CalDetTOFRange.cxx.

References fParticleType, fTDC0High, fTDC0Low, fTDC1High, fTDC1Low, fTDC2_Minus_TDC0_High, fTDC2_Minus_TDC0_Low, fTDC2_Minus_TDC1_High, fTDC2_Minus_TDC1_Low, fTDC2High, and fTDC2Low.

00082 {
00083      os<< "-----------------------------------------------\n"
00084        << "PARTICLETYPE: "<<fParticleType<<"\n"
00085        << "TDC0LOW: "<<fTDC0Low<<"\n"
00086        << "TDC0HIGH: "<<fTDC0High<<"\n"
00087        << "TDC1LOW: "<<fTDC1Low<<"\n"
00088        << "TDC1HIGH: "<<fTDC1High<<"\n"
00089        << "TDC2LOW: "<<fTDC2Low<<"\n"
00090        << "TDC2HIGH: "<<fTDC2High<<"\n"
00091        << "TDC2MINUSTDC0LOW: "<<fTDC2_Minus_TDC0_Low<<"\n"
00092        << "TDC2MINUSTDC0HIGH: "<<fTDC2_Minus_TDC0_High<<"\n"
00093        << "TDC2MINUSTDC1LOW: "<<fTDC2_Minus_TDC1_Low<<"\n"
00094        << "TDC2MINUSTDC1HIGH: "<<fTDC2_Minus_TDC1_High<<"\n"
00095        << "-----------------------------------------------";
00096      return os;
00097 }

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

Definition at line 104 of file CalDetTOFRange.cxx.

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

00105 {
00106      Print(std::cout,op);
00107 }

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

Reimplemented from DbiTableRow.

Definition at line 65 of file CalDetTOFRange.cxx.

References fParticleType, fTDC0High, fTDC0Low, fTDC1High, fTDC1Low, fTDC2_Minus_TDC0_High, fTDC2_Minus_TDC0_Low, fTDC2_Minus_TDC1_High, fTDC2_Minus_TDC1_Low, fTDC2High, and fTDC2Low.

00066                                                                    {
00067 //     MSG("Dbi", Msg::kVerbose)<<"Calling Store!"<<std::endl;
00068           ors<< fParticleType
00069             << fTDC0Low
00070             << fTDC0High
00071             << fTDC1Low
00072             << fTDC1High
00073             << fTDC2Low
00074             << fTDC2High
00075             << fTDC2_Minus_TDC0_Low
00076             << fTDC2_Minus_TDC0_High
00077             << fTDC2_Minus_TDC1_Low
00078             << fTDC2_Minus_TDC1_High;
00079 }


Member Data Documentation

Definition at line 75 of file CalDetTOFRange.h.

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

Float_t CalDetTOFRange::fTDC0High [private]

Definition at line 83 of file CalDetTOFRange.h.

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

Float_t CalDetTOFRange::fTDC0Low [private]

Definition at line 82 of file CalDetTOFRange.h.

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

Float_t CalDetTOFRange::fTDC1High [private]

Definition at line 81 of file CalDetTOFRange.h.

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

Float_t CalDetTOFRange::fTDC1Low [private]

Definition at line 80 of file CalDetTOFRange.h.

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

Definition at line 87 of file CalDetTOFRange.h.

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

Definition at line 86 of file CalDetTOFRange.h.

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

Definition at line 89 of file CalDetTOFRange.h.

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

Definition at line 88 of file CalDetTOFRange.h.

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

Float_t CalDetTOFRange::fTDC2High [private]

Definition at line 79 of file CalDetTOFRange.h.

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

Float_t CalDetTOFRange::fTDC2Low [private]

Definition at line 78 of file CalDetTOFRange.h.

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


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1