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