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

Dcs_Hv.h

Go to the documentation of this file.
00001 #ifndef DCSHV_H
00002 #define DCSHV_H
00003 
00004 #include "Rtypes.h"
00005 #include "DatabaseInterface/DbiTableRow.h"
00006 #include "DatabaseInterface/DbiOutRowStream.h"
00007 #include "DatabaseInterface/DbiResultSet.h"
00008 //#include "LeakChecker/Lea.h"
00009 #include "RawData/RawRecord.h"
00010 #include "RawData/RawHeader.h"
00011 #include "RawData/RawDataBlock.h"
00012 #include "Record/RecRecord.h"
00013 #include "JobControl/JobCommand.h"
00014 #include "JobControl/JobCModuleRegistry.h"
00015 #include "MinosObjectMap/MomNavigator.h"
00016 #include "MessageService/MsgService.h"
00017 #include "Validity/VldContext.h"
00018 
00019 class DbiValidityRec;
00020 
00021 class Dcs_Hv : public DbiTableRow
00022 {
00023 
00024 using TObject::Compare;  // So won't be hidden
00025 
00026 public:
00027 // Constructors and destructors.
00028   Dcs_Hv() { }
00029   Dcs_Hv(const Dcs_Hv& from) : DbiTableRow(from) { *this = from; }
00030   Dcs_Hv(UInt_t a, UInt_t b, UInt_t c, UInt_t d, UInt_t e, UInt_t f, UInt_t g, UInt_t h, UInt_t i, UInt_t j, UInt_t k, UInt_t l) : 
00031           iLogical(a),iGeom(b),iMainframe(c),iCard(d),iChannel(e),iPlane(f),iSupermod(g),iSide(h),iPmt(i),iSetV(j),iReadV(k), iAlarm(l) { }
00032   virtual ~Dcs_Hv(){ };
00033 
00034 
00035 // State testing member functions
00036   Bool_t CanL2Cache() const { return kTRUE; }
00037   Bool_t Compare(const Dcs_Hv& that ) const {
00038                 return     iLogical   == that.iLogical
00039                        &&  iGeom      == that.iGeom
00040                        &&  iMainframe == that.iMainframe
00041                        &&  iCard      == that.iCard
00042                        &&  iChannel   == that.iChannel
00043                        &&  iPlane     == that.iPlane
00044                        &&  iSupermod  == that.iSupermod
00045                        &&  iSide      == that.iSide
00046                        &&  iPmt       == that.iPmt
00047                        &&  iSetV      == that.iSetV
00048                        &&  iReadV     == that.iReadV
00049                        &&  iAlarm     == that.iAlarm; }
00050 
00051   UInt_t GetIndex(UInt_t /* defIndex */) const { return iSupermod; }
00052   Int_t GetLogical() const { return iLogical; }
00053   Int_t GetGeometry() const { return iGeom; }
00054   Int_t GetMainframe() const { return iMainframe; }
00055   Int_t GetCard() const { return iCard; }
00056   Int_t GetChannel() const { return iChannel; }
00057   Int_t GetPlane() const { return iPlane; }
00058   Int_t GetSupermod() const { return iSupermod; }
00059   Int_t GetSide() const { return iSide; }
00060   Int_t GetPmt() const { return iPmt; }
00061   Int_t GetSetV() const { return iSetV; }
00062   Int_t GetReadV() const { return  iReadV; }
00063   Int_t GetAlarm() const { return iAlarm; }
00064   Int_t GetAggregateNo() const { return iSupermod; }
00065 
00066 // I/O  member functions
00067   virtual void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00068   virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00069 
00070   virtual DbiTableRow* CreateTableRow() const { return new Dcs_Hv; }
00071 
00072 private:  
00073 
00074 // Data members
00075 
00076     Int_t  iLogical;
00077     Int_t  iGeom;
00078     Int_t  iMainframe;
00079     Int_t iCard;
00080     Int_t iChannel;
00081     Int_t iPlane;
00082     Int_t  iSupermod;
00083     Int_t iSide;
00084     Int_t  iPmt;
00085     Int_t  iSetV;
00086     Int_t  iReadV;
00087     Int_t  iAlarm;
00088 
00089     ClassDef(Dcs_Hv,0)
00090 
00091 };
00092 
00093 #endif  // DCSHV_H

Generated on Mon Feb 15 11:06:36 2010 for loon by  doxygen 1.3.9.1