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