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

In This Package:

DaqRunInfo.h

Go to the documentation of this file.
00001 #ifndef DAQRUNINFO_H 
00002 #define DAQRUNINFO_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 DaqRunInfo : public DbiTableRow
00013 {
00014 
00015 public:
00016   DaqRunInfo() { }
00017 
00018   DaqRunInfo(const DaqRunInfo& from) 
00019     : DbiTableRow(from) {  *this = from; }
00020 
00021   DaqRunInfo( int rn, int ty , string rt, int dm,
00022              string pn, int sv , int dv, int bv):
00023              m_RunNo(rn), m_TriggerType(ty),
00024              m_RunType(rt), m_DetectorMask(dm), 
00025              m_PartitionName(pn), m_SchemaVersion(sv), 
00026              m_DataVersion(dv), m_BaseVersion(bv) {  };
00027 
00028   virtual ~DaqRunInfo(){  };
00029 
00030 
00031 // State testing member functions
00032   Bool_t CanL2Cache() const { return kFALSE; }
00033 
00034   Bool_t Compare(const DaqRunInfo& that ) const {
00035                 return      m_RunNo          == that.m_RunNo
00036                        &&   m_TriggerType    == that.m_TriggerType
00037                        &&   m_RunType        == that.m_RunType
00038                        &&   m_DetectorMask   == that.m_DetectorMask
00039                        &&   m_PartitionName  == that.m_PartitionName
00040                        &&   m_SchemaVersion  == that.m_SchemaVersion
00041                        &&   m_DataVersion    == that.m_DataVersion
00042                        &&   m_BaseVersion    == that.m_BaseVersion;
00043    }
00044 
00045    
00046   int     GetRunNo()           const { return m_RunNo; }
00047   int     GetTriggerType()     const { return m_TriggerType; }
00048   string  GetRunType()         const { return m_RunType; }
00049   int     GetDetectorMask()    const { return m_DetectorMask; }
00050   string  GetPartitionName()   const { return m_PartitionName; }
00051   int     GetSchemaVersion()   const { return m_SchemaVersion; }
00052   int     GetDataVersion()     const { return m_DataVersion; }
00053   int     GetBaseVersion()     const { return m_BaseVersion; }
00054 
00055   virtual DbiTableRow* CreateTableRow() const { return new DaqRunInfo; }
00056 
00057 // I/O  member functions
00058   virtual void Fill(DbiResultSet& rs,
00059                     const DbiValidityRec* vrec);
00060 
00061 
00062   virtual void Store(DbiOutRowStream& ors,
00063                      const DbiValidityRec* vrec) const;
00064 
00065 private:  
00066 
00067     int     m_RunNo;
00068     int     m_TriggerType;
00069     string  m_RunType;
00070     int     m_DetectorMask;
00071     string  m_PartitionName;
00072     int     m_SchemaVersion;
00073     int     m_DataVersion;
00074     int     m_BaseVersion;
00075 
00076 };
00077 
00078 
00079 #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