StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_itpcRDOMapC.h
1 #ifndef St_itpcRDOMapC_h
2 #define St_itpcRDOMapC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcRDOMap_Table.h"
6 
7 class St_itpcRDOMapC : public TChair {
8  public:
9  static St_itpcRDOMapC* 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  protected:
20  St_itpcRDOMapC(St_tpcRDOMap *table=0) : TChair(table) {}
21  virtual ~St_itpcRDOMapC() {fgInstance = 0;}
22  private:
23  static St_itpcRDOMapC* fgInstance;
24  ClassDefineChair(St_itpcRDOMapC, St_tpcRDOMap, tpcRDOMap_st )
25  ClassDef(St_itpcRDOMapC,1) //C++ TChair for itpcRDOMap table class
26 };
27 #endif
Definition: TChair.h:27