StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofTotbCorrC.h
1 #ifndef St_tofTotbCorrC_h
2 #define St_tofTotbCorrC_h
3 
4 #include "St_tofCorrC.h"
5 #include "tables/St_tofTotbCorr_Table.h"
6 
7 class St_tofTotbCorrC : public St_tofCorrC {
8  public:
9  static St_tofTotbCorrC* instance();
10  tofTotbCorr_st*Struct(Int_t i = 0) const {return ((St_tofTotbCorr*) Table())->GetTable()+i;}
11  Short_t trayId(Int_t i = 0) const {return Struct(i)->trayId;}
12  Short_t moduleId(Int_t i = 0) const {return Struct(i)->moduleId;}
13  Short_t cellId(Int_t i = 0) const {return Struct(i)->cellId;}
14  Short_t tdcId(Int_t i = 0) const {return Struct(i)->tdcId;}
15  Float_t* tot(Int_t i = 0) const {return Struct(i)->tot;}
16  Float_t* corr(Int_t i = 0) const {return Struct(i)->corr;}
17  Float_t Corr(Int_t tray, Int_t module, Int_t cell, Float_t x);
18  protected:
19  St_tofTotbCorrC(St_tofTotbCorr *table=0);
20  virtual ~St_tofTotbCorrC() {fgInstance = 0;}
21  private:
22  static St_tofTotbCorrC* fgInstance;
23  ClassDefChair(St_tofTotbCorr, tofTotbCorr_st )
24  ClassDef(St_tofTotbCorrC,1) //C++ TChair for tofTotbCorr table class
25 };
26 #endif