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