00001 #ifndef DCSMAGCAL_H
00002 #define DCSMAGCAL_H
00003
00004 #include "Rtypes.h"
00005 #include "DatabaseInterface/DbiTableRow.h"
00006 #include "DatabaseInterface/DbiOutRowStream.h"
00007 #include "DatabaseInterface/DbiResultSet.h"
00008
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_Mag_Cal : public DbiTableRow
00022 {
00023
00024 using TObject::Compare;
00025
00026 public:
00027
00028 Dcs_Mag_Cal() { }
00029 Dcs_Mag_Cal(const Dcs_Mag_Cal& from) : DbiTableRow(from) { *this = from; }
00030 Dcs_Mag_Cal(Int_t i,Float_t a, Float_t b,Float_t c, Float_t d,Float_t e, Float_t f,Float_t g, Float_t h,Float_t j, Float_t k,Float_t l, Float_t m,Float_t n, Float_t o,Float_t p, Float_t q) :
00031 iIsT7(i),f7Mag1(a),f7Mag2(b),f7Mag3(c),f7Mag4(d),f7Mag5(e),f7Mag6(f),f7Mag7(g),f7Mag8(h),f11Mag1(j),f11Mag2(k),f11Mag3(l),f11Mag4(m),f11Mag5(n),f11Mag6(o),f11Mag7(p),f11Mag8(q) { }
00032 virtual ~Dcs_Mag_Cal(){ };
00033
00034
00035
00036 Bool_t CanL2Cache() const { return kTRUE; }
00037 Bool_t Compare(const Dcs_Mag_Cal& that ) const {
00038 return iIsT7 == that.iIsT7
00039 && f7Mag1 == that.f7Mag1
00040 && f7Mag2 == that.f7Mag2
00041 && f7Mag3 == that.f7Mag3
00042 && f7Mag4 == that.f7Mag4
00043 && f7Mag5 == that.f7Mag5
00044 && f7Mag6 == that.f7Mag6
00045 && f7Mag7 == that.f7Mag7
00046 && f7Mag8 == that.f7Mag8
00047 && f11Mag1 == that.f11Mag1
00048 && f11Mag2 == that.f11Mag2
00049 && f11Mag3 == that.f11Mag3
00050 && f11Mag4 == that.f11Mag4
00051 && f11Mag5 == that.f11Mag5
00052 && f11Mag6 == that.f11Mag6
00053 && f11Mag7 == that.f11Mag7
00054 && f11Mag8 == that.f11Mag8; }
00055
00056
00057 Int_t GetIsT7() const { return iIsT7; }
00058 Float_t GetMagZT7_BHZ01S7() const { return f7Mag1; }
00059 Float_t GetMagZT7_BHZ01NS7() const { return f7Mag2; }
00060 Float_t GetMagZT7_BHZ02() const { return f7Mag3; }
00061 Float_t GetMagZT7_QFO01() const { return f7Mag4; }
00062 Float_t GetMagZT7_QDE02() const { return f7Mag5; }
00063 Float_t GetMagZT7_QFO03() const { return f7Mag6; }
00064 Float_t GetMagZT7_QDE04() const { return f7Mag7; }
00065 Float_t GetMagZT7_QFO05() const { return f7Mag8; }
00066 Float_t GetMagZT11_QDE01() const { return f11Mag1; }
00067 Float_t GetMagZT11_QFO02() const { return f11Mag2; }
00068 Float_t GetMagZT11_BHZ01() const { return f11Mag3; }
00069 Float_t GetMagZT11_QFO03() const { return f11Mag4; }
00070 Float_t GetMagZT11_BHZ02() const { return f11Mag5; }
00071 Float_t GetMagZT11_QFO04() const { return f11Mag6; }
00072 Float_t GetMagZT11_QDE05() const { return f11Mag7; }
00073 Float_t GetMagZT11_BVT01() const { return f11Mag8; }
00074
00075
00076
00077 virtual void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00078 virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00079
00080 virtual DbiTableRow* CreateTableRow() const { return new Dcs_Mag_Cal; }
00081
00082 private:
00083
00084
00085
00086 Int_t iIsT7;
00087 Float_t f7Mag1;
00088 Float_t f7Mag2;
00089 Float_t f7Mag3;
00090 Float_t f7Mag4;
00091 Float_t f7Mag5;
00092 Float_t f7Mag6;
00093 Float_t f7Mag7;
00094 Float_t f7Mag8;
00095 Float_t f11Mag1;
00096 Float_t f11Mag2;
00097 Float_t f11Mag3;
00098 Float_t f11Mag4;
00099 Float_t f11Mag5;
00100 Float_t f11Mag6;
00101 Float_t f11Mag7;
00102 Float_t f11Mag8;
00103
00104 ClassDef(Dcs_Mag_Cal,0)
00105
00106 };
00107
00108 #endif // DCSMAGCAL_H