StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofModuleConfigC.h
1 #ifndef St_tofModuleConfigC_h
2 #define St_tofModuleConfigC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tofModuleConfig_Table.h"
6 
7 class St_tofModuleConfigC : public TChair {
8  public:
9  static St_tofModuleConfigC* instance();
10  tofModuleConfig_st *Struct(Int_t i = 0) const {return ((St_tofModuleConfig*) 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* iModule(Int_t i = 0) const {return Struct(i)->iModule;}
15  short* iStatModule(Int_t i = 0) const {return Struct(i)->iStatModule;}
16  short* iStatCells(Int_t i = 0) const {return Struct(i)->iStatCells;}
17  short* iChannel(Int_t i = 0) const {return Struct(i)->iChannel;}
18  protected:
19  St_tofModuleConfigC(St_tofModuleConfig *table=0) : TChair(table) {}
20  virtual ~St_tofModuleConfigC() {fgInstance = 0;}
21  private:
22  static St_tofModuleConfigC* fgInstance;
23  ClassDefChair(St_tofModuleConfig, tofModuleConfig_st )
24  ClassDef(St_tofModuleConfigC,1) //C++ TChair for tofModuleConfig table class
25 };
26 #endif
Definition: TChair.h:27