StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofPedestalC.h
1 #ifndef St_tofPedestalC_h
2 #define St_tofPedestalC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tofPedestal_Table.h"
6 
7 class St_tofPedestalC : public TChair {
8  public:
9  static St_tofPedestalC* instance();
10  tofPedestal_st *Struct(Int_t i = 0) const {return ((St_tofPedestal*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  Int_t entries(Int_t i = 0) const {return Struct(i)->entries;}
13  short* daqChannel(Int_t i = 0) const {return Struct(i)->daqChannel;}
14  short* adcChan(Int_t i = 0) const {return Struct(i)->adcChan;}
15  short* adcPedestal(Int_t i = 0) const {return Struct(i)->adcPedestal;}
16  protected:
17  St_tofPedestalC(St_tofPedestal *table=0) : TChair(table) {}
18  virtual ~St_tofPedestalC() {fgInstance = 0;}
19  private:
20  static St_tofPedestalC* fgInstance;
21  ClassDefChair(St_tofPedestal, tofPedestal_st )
22  ClassDef(St_tofPedestalC,1) //C++ TChair for tofPedestal table class
23 };
24 #endif
Definition: TChair.h:27