StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcRDOMapC.h
1 #ifndef St_tpcRDOMapC_h
2 #define St_tpcRDOMapC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcRDOMap_Table.h"
6 
7 class St_tpcRDOMapC : public TChair {
8  public:
9  static St_tpcRDOMapC* instance();
10  tpcRDOMap_st *Struct(Int_t i = 0) const {return ((St_tpcRDOMap*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  UChar_t nrows(Int_t i = 0) const {return Struct(i)->nrows;}
13  UChar_t index(Int_t i = 0) const {return Struct(i)->idx;}
14  UChar_t row(Int_t i = 0) const {return Struct(i)->row;}
15  UChar_t padMin(Int_t i = 0) const {return Struct(i)->padMin;}
16  UChar_t padMax(Int_t i = 0) const {return Struct(i)->padMax;}
17  UChar_t rdoI(Int_t i = 0) const {return Struct(i)->rdo;}
18  Int_t rdo(Int_t padrow, Int_t pad = 1) const;
19  Int_t rdo(Int_t sector, Int_t padrow, Int_t pad) const;
20  protected:
21  St_tpcRDOMapC(St_tpcRDOMap *table=0) : TChair(table) {}
22  virtual ~St_tpcRDOMapC() {fgInstance = 0;}
23  private:
24  static St_tpcRDOMapC* fgInstance;
25  ClassDefChair(St_tpcRDOMap, tpcRDOMap_st )
26  ClassDef(St_tpcRDOMapC,1) //C++ TChair for tpcRDOMap table class
27 };
28 #endif
Definition: TChair.h:27