StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_vpdSimParamsC.h
1 #ifndef St_vpdSimParamsC_h
2 #define St_vpdSimParamsC_h
3 
4 #include "TChair.h"
5 #include "tables/St_vpdSimParams_Table.h"
6 
7 class St_vpdSimParamsC : public TChair {
8  public:
9  static St_vpdSimParamsC* instance();
10  vpdSimParams_st *Struct(Int_t i = 0) const {return ((St_vpdSimParams*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  Short_t* tubeRes(Int_t i = 0) const {return Struct(i)->tubeRes;}
13  UChar_t* tubeID(Int_t i = 0) const {return Struct(i)->tubeID;}
14  UChar_t* tubeStatusFlag(Int_t i = 0) const {return Struct(i)->tubeStatusFlag;}
15  UChar_t* tubeTriggerFlag(Int_t i = 0) const {return Struct(i)->tubeTriggerFlag;}
16  protected:
17  St_vpdSimParamsC(St_vpdSimParams *table=0) : TChair(table) {}
18  virtual ~St_vpdSimParamsC() {fgInstance = 0;}
19  private:
20  static St_vpdSimParamsC* fgInstance;
21  ClassDefChair(St_vpdSimParams, vpdSimParams_st )
22  ClassDef(St_vpdSimParamsC,1) //C++ TChair for vpdSimParams table class
23 };
24 #endif
Definition: TChair.h:27