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

CalDetBeamMomentum Class Reference

#include <CalDetBeamMomentum.h>

Inheritance diagram for CalDetBeamMomentum:

DbiTableRow List of all members.

Public Member Functions

 CalDetBeamMomentum ()
 CalDetBeamMomentum (UInt_t run, Double_t beamp)
virtual ~CalDetBeamMomentum ()
virtual DbiTableRowCreateTableRow () const
UInt_t GetIndex (UInt_t) const
UInt_t GetRun () const
Double_t GetMomentum () const
virtual void Print (Option_t *option="") const
std::ostream & Print (std::ostream &, Option_t *option="") 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

 CalDetBeamMomentum (const CalDetBeamMomentum &from)

Private Attributes

UInt_t fRunNo
Double_t fBeamMomentum

Constructor & Destructor Documentation

CalDetBeamMomentum::CalDetBeamMomentum  )  [inline]
 

Definition at line 17 of file CalDetBeamMomentum.h.

00017 { LEA_CTOR; }

CalDetBeamMomentum::CalDetBeamMomentum UInt_t  run,
Double_t  beamp
[inline]
 

Definition at line 18 of file CalDetBeamMomentum.h.

References fBeamMomentum, fRunNo, and run().

00019           : fRunNo(run), fBeamMomentum(beamp)
00020           { LEA_CTOR; }

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

Definition at line 22 of file CalDetBeamMomentum.h.

00022 { LEA_DTOR; }

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

Definition at line 47 of file CalDetBeamMomentum.h.

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


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 26 of file CalDetBeamMomentum.h.

00026                                                  { 
00027           return new CalDetBeamMomentum; }

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

Implements DbiTableRow.

Definition at line 20 of file CalDetBeamMomentum.cxx.

References MSG.

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

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

Reimplemented from DbiTableRow.

Definition at line 29 of file CalDetBeamMomentum.h.

00029 { return fRunNo; }

Double_t CalDetBeamMomentum::GetMomentum  )  const [inline]
 

Definition at line 31 of file CalDetBeamMomentum.h.

Referenced by UberModuleLite::Reco(), and UberModule::Reco().

00031 {return fBeamMomentum;}

UInt_t CalDetBeamMomentum::GetRun  )  const [inline]
 

Definition at line 30 of file CalDetBeamMomentum.h.

00030 {return fRunNo;}

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

Definition at line 72 of file CalDetBeamMomentum.cxx.

00073 {
00074      return std::string("(SeqNo int,   RUNNO  int, BEAMMOMENTUM float)");
00075 }

std::ostream & CalDetBeamMomentum::Print std::ostream &  ,
Option_t *  option = ""
const
 

Definition at line 53 of file CalDetBeamMomentum.cxx.

References fBeamMomentum, and fRunNo.

00054 {
00055      os<< "-----------------------------------------------\n"
00056        << "RUNNO: "<<fRunNo<<"\n"
00057        << "BEAMMOMENTUM: "<<fBeamMomentum<<"\n"
00058        << "-----------------------------------------------";
00059      return os;
00060 }

void CalDetBeamMomentum::Print Option_t *  option = ""  )  const [virtual]
 

Definition at line 67 of file CalDetBeamMomentum.cxx.

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

00068 {
00069      Print(std::cout,op);
00070 }

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

Reimplemented from DbiTableRow.

Definition at line 47 of file CalDetBeamMomentum.cxx.

References fRunNo.

00048                                                                    {
00049 //     MSG("Dbi", Msg::kWarning)<<"Calling Store!"<<std::endl;
00050      ors<< fRunNo <<fBeamMomentum;
00051 }


Member Data Documentation

Double_t CalDetBeamMomentum::fBeamMomentum [private]
 

Definition at line 54 of file CalDetBeamMomentum.h.

Referenced by CalDetBeamMomentum(), and Print().

UInt_t CalDetBeamMomentum::fRunNo [private]
 

Definition at line 53 of file CalDetBeamMomentum.h.

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