StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofCamacDaqMapC.h
1 #ifndef St_tofCamacDaqMapC_h
2 #define St_tofCamacDaqMapC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tofCamacDaqMap_Table.h"
6 
7 class St_tofCamacDaqMapC : public TChair {
8  public:
9  static St_tofCamacDaqMapC* instance();
10  tofCamacDaqMap_st *Struct(Int_t i = 0) const {return ((St_tofCamacDaqMap*) 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* detectorId(Int_t i = 0) const {return Struct(i)->detectorId;}
14  short* trayId(Int_t i = 0) const {return Struct(i)->trayId;}
15  short* daqChannel(Int_t i = 0) const {return Struct(i)->daqChannel;}
16  short* adcChan(Int_t i = 0) const {return Struct(i)->adcChan;}
17  short* tdcChan(Int_t i = 0) const {return Struct(i)->tdcChan;}
18  protected:
19  St_tofCamacDaqMapC(St_tofCamacDaqMap *table=0) : TChair(table) {}
20  virtual ~St_tofCamacDaqMapC() {fgInstance = 0;}
21  private:
22  static St_tofCamacDaqMapC* fgInstance;
23  ClassDefChair(St_tofCamacDaqMap, tofCamacDaqMap_st )
24  ClassDef(St_tofCamacDaqMapC,1) //C++ TChair for tofCamacDaqMap table class
25 };
26 #endif
Definition: TChair.h:27