| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

A full ef classlist @htmlinclude used_packages.html @verbinclude requirements DaqCalibRunInfo.h

Go to the documentation of this file.
00001 #ifndef DAQCALIBRUNINFO_H 
00002 #define DAQCALIBRUNINFO_H
00003 
00004 #include "Rtypes.h"
00005 #include "DatabaseInterface/DbiTableRow.h"
00006 #include <string>
00007 
00008 using namespace std;
00009 
00010 class DbiValidityRec;
00011 
00012 class DaqCalibRunInfo : public DbiTableRow
00013 {
00014 
00015 public:
00016   DaqCalibRunInfo() { }
00017 
00018   DaqCalibRunInfo(const DaqCalibRunInfo& from) 
00019     : DbiTableRow(from) {  *this = from; }
00020 
00021   DaqCalibRunInfo( int rn, int adn, int did , 
00022              int sida, int zpa, int sidb, int zpb, 
00023              int sidc, int zpc, int dura, int n1, int n2,
00024              int v1, int v2,  int lf, int ps, int lm):
00025              m_RunNo(rn), m_AdNo(adn),
00026              m_DetectorId(adn), 
00027              m_SourceIdA(sida), m_ZPositionA(zpa), 
00028              m_SourceIdB(sidb), m_ZPositionB(zpb), 
00029              m_SourceIdC(sidc), m_ZPositionC(zpc), 
00030              m_Duration(dura), m_LedNumber1(n1),
00031              m_LedNumber2(n2), m_LedVoltage1(v1),
00032              m_LedVoltage2(v2), m_LedFreq(lf), 
00033              m_LedPulseSep(ps), m_LtbMode(lm) {  };
00034 
00035   virtual ~DaqCalibRunInfo(){  };
00036 
00037 
00038 // State testing member functions
00039   Bool_t CanL2Cache() const { return kFALSE; }
00040 
00041   Bool_t Compare(const DaqCalibRunInfo& that ) const {
00042                 return    m_RunNo       == that.m_RunNo
00043                        && m_AdNo        == that.m_AdNo
00044                        && m_DetectorId  == that.m_DetectorId
00045                        && m_SourceIdA   == that.m_SourceIdA
00046                        && m_ZPositionA  == that.m_ZPositionA
00047                        && m_SourceIdB   == that.m_SourceIdB
00048                        && m_ZPositionB  == that.m_ZPositionB
00049                        && m_SourceIdC   == that.m_SourceIdC
00050                        && m_ZPositionC  == that.m_ZPositionC
00051                        && m_Duration    == that.m_Duration
00052                        && m_LedNumber1  == that.m_LedNumber1
00053                        && m_LedNumber2  == that.m_LedNumber2
00054                        && m_LedVoltage1 == that.m_LedVoltage1
00055                        && m_LedVoltage2 == that.m_LedVoltage2
00056                        && m_LedFreq     == that.m_LedFreq
00057                        && m_LedPulseSep == that.m_LedPulseSep
00058                        && m_LtbMode     == that.m_LtbMode;
00059    }
00060 
00061    
00062   int  GetRunNo()       const { return m_RunNo; }
00063   int  GetAdNo()        const { return m_AdNo; }
00064   int  GetDetectorId()  const { return m_DetectorId; }
00065   int  GetSourceIdA()   const { return m_SourceIdA; }
00066   int  GetZPositionA()  const { return m_ZPositionA; }
00067   int  GetSourceIdB()   const { return m_SourceIdB; }
00068   int  GetZPositionB()  const { return m_ZPositionB; }
00069   int  GetSourceIdC()   const { return m_SourceIdC; }
00070   int  GetZPositionC()  const { return m_ZPositionC; }
00071   int  GetDuration()    const { return m_Duration; }
00072   int  GetLedNumber1()  const { return m_LedNumber1; }
00073   int  GetLedNumber2()  const { return m_LedNumber2; }
00074   int  GetLedVoltage1() const { return m_LedVoltage1; }
00075   int  GetLedVoltage2() const { return m_LedVoltage2; }
00076   int  GetLedFreq()     const { return m_LedFreq; }
00077   int  GetLedPulseSep() const { return m_LedPulseSep; }
00078   int  GetLtbMode()     const { return m_LtbMode; }
00079 
00080   virtual DbiTableRow* CreateTableRow() const { return new DaqCalibRunInfo; }
00081 
00082 // I/O  member functions
00083   virtual void Fill(DbiResultSet& rs,
00084                     const DbiValidityRec* vrec);
00085 
00086 
00087   virtual void Store(DbiOutRowStream& ors,
00088                      const DbiValidityRec* vrec) const;
00089 
00090 private:  
00091 
00092   int  m_RunNo; 
00093   int  m_AdNo; 
00094   int  m_DetectorId; 
00095   int  m_SourceIdA; 
00096   int  m_ZPositionA; 
00097   int  m_SourceIdB; 
00098   int  m_ZPositionB; 
00099   int  m_SourceIdC; 
00100   int  m_ZPositionC; 
00101   int  m_Duration; 
00102   int  m_LedNumber1; 
00103   int  m_LedNumber2; 
00104   int  m_LedVoltage1; 
00105   int  m_LedVoltage2; 
00106   int  m_LedFreq; 
00107   int  m_LedPulseSep; 
00108   int  m_LtbMode; 
00109 
00110 };
00111 
00112 
00113 #endif  // DAQRUNINFO_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:16:30 2011 for DaqRunInfoSvc by doxygen 1.4.7