StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofTOffsetC.h
1 #ifndef St_tofTOffsetC_h
2 #define St_tofTOffsetC_h
3 
4 #include "St_tofCorrC.h"
5 #include "tables/St_tofTOffset_Table.h"
6 
7 class St_tofTOffsetC : public St_tofCorrC {
8  public:
9  static St_tofTOffsetC* instance();
10  tofTOffset_st *Struct(Int_t i = 0) const {return ((St_tofTOffset*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  short trayId(Int_t i = 0) const {return Struct(i)->trayId;}
13  Float_t* T0(Int_t i = 0) const {return Struct(i)->T0;}
14  Float_t t0(Int_t tray, Int_t module, Int_t cell) const;
15  protected:
16  St_tofTOffsetC(St_tofTOffset *table=0) : St_tofCorrC(table) {}
17  virtual ~St_tofTOffsetC() {fgInstance = 0;}
18  private:
19  static St_tofTOffsetC* fgInstance;
20  ClassDefChair(St_tofTOffset, tofTOffset_st )
21  ClassDef(St_tofTOffsetC,1) //C++ TChair for tofTOffset table class
22 };
23 #endif