StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_bprsMapC.h
1 #ifndef St_bprsMapC_h
2 #define St_bprsMapC_h
3 
4 #include "TChair.h"
5 #include "tables/St_bprsMap_Table.h"
6 
7 class St_bprsMapC : public TChair {
8  public:
9  static St_bprsMapC* instance();
10  bprsMap_st *Struct(Int_t i = 0) const {return ((St_bprsMap*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  UChar_t m(Int_t i = 0) const {return Struct(i)->m;}
13  UChar_t e(Int_t i = 0) const {return Struct(i)->e;}
14  UChar_t s(Int_t i = 0) const {return Struct(i)->s;}
15  UChar_t PMTbox(Int_t i = 0) const {return Struct(i)->PMTbox;}
16  UChar_t MAPMT(Int_t i = 0) const {return Struct(i)->MAPMT;}
17  UChar_t pixel(Int_t i = 0) const {return Struct(i)->pixel;}
18  UChar_t rdo(Int_t i = 0) const {return Struct(i)->rdo;}
19  unsigned short rdoChannel(Int_t i = 0) const {return Struct(i)->rdoChannel;}
20  UChar_t wire(Int_t i = 0) const {return Struct(i)->wire;}
21  UChar_t feeA(Int_t i = 0) const {return Struct(i)->feeA;}
22  UChar_t SCA(Int_t i = 0) const {return Struct(i)->SCA;}
23  UChar_t SCAChannel(Int_t i = 0) const {return Struct(i)->SCAChannel;}
24  UChar_t powerSupply(Int_t i = 0) const {return Struct(i)->powerSupply;}
25  UChar_t powerSupplyModule(Int_t i = 0) const {return Struct(i)->powerSupplyModule;}
26  UChar_t powerSupplyChannel(Int_t i = 0) const {return Struct(i)->powerSupplyChannel;}
27  Float_t eta(Int_t i = 0) const {return Struct(i)->eta;}
28  Float_t phi(Int_t i = 0) const {return Struct(i)->phi;}
29  protected:
30  St_bprsMapC(St_bprsMap *table=0) : TChair(table) {}
31  virtual ~St_bprsMapC() {fgInstance = 0;}
32  private:
33  static St_bprsMapC* fgInstance;
34  ClassDefChair(St_bprsMap, bprsMap_st )
35  ClassDef(St_bprsMapC,1) //C++ TChair for bprsMap table class
36 };
37 #endif
Definition: TChair.h:27