StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_bemcMapC.h
1 #ifndef St_bemcMapC_h
2 #define St_bemcMapC_h
3 
4 #include "TChair.h"
5 #include "tables/St_bemcMap_Table.h"
6 
7 class St_bemcMapC : public TChair {
8  public:
9  static St_bemcMapC* instance();
10  bemcMap_st *Struct(Int_t i = 0) const {return ((St_bemcMap*) 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  unsigned short daqID(Int_t i = 0) const {return Struct(i)->daqID;}
16  UChar_t crate(Int_t i = 0) const {return Struct(i)->crate;}
17  UChar_t crateChannel(Int_t i = 0) const {return Struct(i)->crateChannel;}
18  UChar_t TDC(Int_t i = 0) const {return Struct(i)->TDC;}
19  unsigned short triggerPatch(Int_t i = 0) const {return Struct(i)->triggerPatch;}
20  UChar_t jetPatch(Int_t i = 0) const {return Struct(i)->jetPatch;}
21  unsigned short DSM(Int_t i = 0) const {return Struct(i)->DSM;}
22  Float_t eta(Int_t i = 0) const {return Struct(i)->eta;}
23  Float_t phi(Int_t i = 0) const {return Struct(i)->phi;}
24  protected:
25  St_bemcMapC(St_bemcMap *table=0) : TChair(table) {}
26  virtual ~St_bemcMapC() {fgInstance = 0;}
27  private:
28  static St_bemcMapC* fgInstance;
29  ClassDefChair(St_bemcMap, bemcMap_st )
30  ClassDef(St_bemcMapC,1) //C++ TChair for bemcMap table class
31 };
32 #endif
Definition: TChair.h:27
Definition: DSM.hh:16