StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofZbCorrC.h
1 #ifndef St_tofZbCorrC_h
2 #define St_tofZbCorrC_h
3 
4 #include "St_tofCorrC.h"
5 #include "tables/St_tofZbCorr_Table.h"
6 
7 class St_tofZbCorrC : public St_tofCorrC {
8  public:
9  static St_tofZbCorrC* instance();
10  tofZbCorr_st *Struct(Int_t i = 0) const {return ((St_tofZbCorr*) 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  Float_t* z(Int_t i = 0) const {return Struct(i)->z;}
15  Float_t* corr(Int_t i = 0) const {return Struct(i)->corr;}
16  Float_t Corr(Int_t tray, Int_t module, Int_t cell, Float_t x);
17  protected:
18  St_tofZbCorrC(St_tofZbCorr *table=0);
19  private:
20  static St_tofZbCorrC* fgInstance;
21  ClassDefChair(St_tofZbCorr, tofZbCorr_st )
22  ClassDef(St_tofZbCorrC,1) //C++ TChair for tofZbCorr table class
23 };
24 #endif