00001
00002
00004
00005
00006
00007
00008
00010
00011 #ifndef CALADCTOPES_H
00012 #define CALADCTOPES_H
00013
00014 #include "DatabaseInterface/DbiTableRow.h"
00015 #include "LeakChecker/Lea.h"
00016
00017 class DbiValidityRec;
00018
00019 class CalADCtoPEs : public DbiTableRow
00020 {
00021
00022 public:
00023
00024
00025 CalADCtoPEs() { LEA_CTOR; }
00026 CalADCtoPEs(Int_t agg, UInt_t sk, Float_t g, Float_t gerr, Float_t spew, Float_t spewerr) :
00027 fAggregate(agg),fSEIDkey(sk),fGain(g),fGainErr(gerr),fSPEWidth(spew),fSPEWidthErr(spewerr) { LEA_CTOR; }
00028 virtual ~CalADCtoPEs(){ LEA_DTOR; };
00029
00030
00031 Bool_t CanL2Cache() const { return kTRUE; }
00032 UInt_t GetIndex(UInt_t ) const { return fSEIDkey; }
00033 UInt_t GetSEIDkey() const { return fSEIDkey; }
00034 Float_t GetGain() const { return fGain; }
00035 Float_t GetGainErr() const { return fGainErr; }
00036 Float_t GetSPEWidth() const { return fSPEWidth;}
00037 Float_t GetSPEWidthErr() const { return fSPEWidthErr;}
00038 Float_t GetPE(const Float_t rawcharge) const;
00039 virtual Int_t GetAggregateNo() const { return fAggregate; }
00040 virtual DbiTableRow* CreateTableRow() const {
00041 return new CalADCtoPEs; }
00042
00043
00044 virtual void Fill(DbiResultSet& rs,
00045 const DbiValidityRec* vrec);
00046 virtual void Store(DbiOutRowStream& ors,
00047 const DbiValidityRec* vrec) const;
00048
00049
00050 private:
00051
00052 CalADCtoPEs(const CalADCtoPEs& from)
00053 : DbiTableRow(from) { LEA_CTOR; *this = from; }
00054
00055
00056
00057 Int_t fAggregate;
00058 Int_t fSEIDkey;
00059 Float_t fGain;
00060 Float_t fGainErr;
00061 Float_t fSPEWidth;
00062 Float_t fSPEWidthErr;
00063
00064
00065 ClassDef(CalADCtoPEs,0)
00066 };
00067
00068
00069 #endif // CALADCTOPES_H
00070
00071
00072
00073
00074