StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcPedestalC.h
1 #ifndef St_tpcPedestalC_h
2 #define St_tpcPedestalC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcPedestal_Table.h"
6 
7 class St_tpcPedestalC : public TChair {
8  public:
9  static St_tpcPedestalC* instance();
10  tpcPedestal_st *Struct(Int_t i = 0) {return ((St_tpcPedestal*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  Float_t& Pedestal(Int_t sector = 1, Int_t row = 1, Int_t pad = 1)
13  {return Struct(sector-1)->Pedestal[row-1][pad-1];}
14  Float_t& Rms(Int_t sector = 1, Int_t row = 1, Int_t pad = 1)
15  {return Struct(sector-1)->Rms[row-1][pad-1];}
16  protected:
17  St_tpcPedestalC(St_tpcPedestal *table=0) : TChair(table) {}
18  virtual ~St_tpcPedestalC() {fgInstance = 0;}
19  private:
20  static St_tpcPedestalC* fgInstance;
21  ClassDefChair(St_tpcPedestal, tpcPedestal_st )
22  ClassDef(St_tpcPedestalC,1) //C++ TChair for tpcPedestal table class
23 };
24 #endif
Definition: TChair.h:27