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