forked from star-bnl/star-sw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSt_itpcRDOMapC.h
More file actions
27 lines (25 loc) · 1.07 KB
/
St_itpcRDOMapC.h
File metadata and controls
27 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef St_itpcRDOMapC_h
#define St_itpcRDOMapC_h
#include "TChair.h"
#include "tables/St_tpcRDOMap_Table.h"
class St_itpcRDOMapC : public TChair {
public:
static St_itpcRDOMapC* instance();
tpcRDOMap_st *Struct(Int_t i = 0) const {return ((St_tpcRDOMap*) Table())->GetTable()+i;}
UInt_t getNumRows() const {return GetNRows();}
UChar_t nrows(Int_t i = 0) const {return Struct(i)->nrows;}
UChar_t index(Int_t i = 0) const {return Struct(i)->idx;}
UChar_t row(Int_t i = 0) const {return Struct(i)->row;}
UChar_t padMin(Int_t i = 0) const {return Struct(i)->padMin;}
UChar_t padMax(Int_t i = 0) const {return Struct(i)->padMax;}
UChar_t rdoI(Int_t i = 0) const {return Struct(i)->rdo;}
Int_t rdo(Int_t padrow, Int_t pad = 1) const;
protected:
St_itpcRDOMapC(St_tpcRDOMap *table=0) : TChair(table) {}
virtual ~St_itpcRDOMapC() {fgInstance = 0;}
private:
static St_itpcRDOMapC* fgInstance;
ClassDefineChair(St_itpcRDOMapC, St_tpcRDOMap, tpcRDOMap_st )
ClassDef(St_itpcRDOMapC,1) //C++ TChair for itpcRDOMap table class
};
#endif