Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CalDetOverlapWin Class Reference

#include <CalDetOverlapWin.h>

Inheritance diagram for CalDetOverlapWin:

DbiTableRow List of all members.

Public Member Functions

 CalDetOverlapWin ()
 CalDetOverlapWin (UInt_t ptype, Float_t winlow, Float_t winhigh)
virtual ~CalDetOverlapWin ()
UInt_t GetIndex (UInt_t) const
UInt_t GetParticleType () const
Float_t GetWinLow () const
Float_t GetWinHigh () 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

std::string GetTableDesc ()

Private Member Functions

 CalDetOverlapWin (const CalDetOverlapWin &from)

Private Attributes

UInt_t fParticleType
Float_t fWinLow
Float_t fWinHigh

Constructor & Destructor Documentation

CalDetOverlapWin::CalDetOverlapWin  )  [inline]
 

Definition at line 17 of file CalDetOverlapWin.h.

00017 { LEA_CTOR; }

CalDetOverlapWin::CalDetOverlapWin UInt_t  ptype,
Float_t  winlow,
Float_t  winhigh
[inline]
 

Definition at line 18 of file CalDetOverlapWin.h.

References fParticleType, fWinHigh, and fWinLow.

00020           :
00021           fParticleType(ptype),
00022           fWinLow(winlow), fWinHigh(winhigh)
00023           { LEA_CTOR; }

virtual CalDetOverlapWin::~CalDetOverlapWin  )  [inline, virtual]
 

Definition at line 25 of file CalDetOverlapWin.h.

00025 { LEA_DTOR; }

CalDetOverlapWin::CalDetOverlapWin const CalDetOverlapWin from  )  [inline, private]
 

Definition at line 51 of file CalDetOverlapWin.h.

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


Member Function Documentation

virtual DbiTableRow* CalDetOverlapWin::CreateTableRow  )  const [inline, virtual]
 

Implements DbiTableRow.

Definition at line 33 of file CalDetOverlapWin.h.

00033                                                  { 
00034           return new CalDetOverlapWin; }

void CalDetOverlapWin::Fill DbiResultSet rs,
const DbiValidityRec vrec
[virtual]
 

Implements DbiTableRow.

Definition at line 19 of file CalDetOverlapWin.cxx.

References MSG.

00020                                                          {
00021 
00022      if ( rs.TableName() == "CALDETOVERLAPWIN" ) {
00023      // dumb filling
00024           rs>> fParticleType
00025             >> fWinLow
00026             >> fWinHigh;
00027      }
00028      else{
00029      // Smart method
00030       Int_t numCol = rs.NumCols();
00031       //  The first column (SeqNo) has already been processed.
00032       for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00033          string colName = rs.CurColName();
00034          if (      colName == "PARTICLETYPE" ) rs >> fParticleType;
00035          else if ( colName == "WINLOW" )       rs >> fWinLow;
00036          else if ( colName == "WINHIGH" )       rs >> fWinHigh;
00037          else {
00038             MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00039                                    << "(" << colName << ")"
00040                                    << "; not part of CalDetOverlapWin" 
00041                                    << endl;
00042          rs.IncrementCurCol();
00043          }
00044       }
00045 
00046      }
00047 }

UInt_t CalDetOverlapWin::GetIndex UInt_t   )  const [inline, virtual]
 

Reimplemented from DbiTableRow.

Definition at line 28 of file CalDetOverlapWin.h.

00028 { return fParticleType; }

UInt_t CalDetOverlapWin::GetParticleType  )  const [inline]
 

Definition at line 29 of file CalDetOverlapWin.h.

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

00029 { return fParticleType; }

std::string CalDetOverlapWin::GetTableDesc  )  [static]
 

Definition at line 78 of file CalDetOverlapWin.cxx.

00079 {
00080      return std::string(
00081           "(SeqNo int,   PARTICLETYPE  int,"
00082           " WINLOW float, WINHIGH float)"
00083           );
00084 }

Float_t CalDetOverlapWin::GetWinHigh  )  const [inline]
 

Definition at line 31 of file CalDetOverlapWin.h.

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

00031 {return fWinHigh;}

Float_t CalDetOverlapWin::GetWinLow  )  const [inline]
 

Definition at line 30 of file CalDetOverlapWin.h.

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

00030 {return fWinLow;}

std::ostream & CalDetOverlapWin::Print std::ostream &  ,
Option_t *  op = ""
const
 

Definition at line 57 of file CalDetOverlapWin.cxx.

References fParticleType, fWinHigh, and fWinLow.

00058 {
00059      os<< "-----------------------------------------------\n"
00060        << "PARTICLETYPE: "<<fParticleType<<"\n"
00061        << "WINLOW: "<<fWinLow<<"\n"
00062        << "WINHIGH: "<<fWinHigh<<"\n"
00063        << "-----------------------------------------------\n";
00064      return os;
00065 }

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

Definition at line 72 of file CalDetOverlapWin.cxx.

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

00073 {
00074      Print(std::cout,op);
00075 }

void CalDetOverlapWin::Store DbiOutRowStream ors,
const DbiValidityRec vrec
const [virtual]
 

Reimplemented from DbiTableRow.

Definition at line 49 of file CalDetOverlapWin.cxx.

References fParticleType, and fWinLow.

00050                                                                    {
00051 //     MSG("Dbi", Msg::kVerbose)<<"Calling Store!"<<std::endl;
00052      ors<< fParticleType
00053         << fWinLow
00054         << fWinHigh;
00055 }


Member Data Documentation

UInt_t CalDetOverlapWin::fParticleType [private]
 

Definition at line 57 of file CalDetOverlapWin.h.

Referenced by CalDetOverlapWin(), Print(), and Store().

Float_t CalDetOverlapWin::fWinHigh [private]
 

Definition at line 61 of file CalDetOverlapWin.h.

Referenced by CalDetOverlapWin(), and Print().

Float_t CalDetOverlapWin::fWinLow [private]
 

Definition at line 60 of file CalDetOverlapWin.h.

Referenced by CalDetOverlapWin(), Print(), and Store().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:50 2010 for loon by  doxygen 1.3.9.1