StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_iTPCSurveyC.h
1 #ifndef St_iTPCSurveyC_h
2 #define St_iTPCSurveyC_h
3 
4 #include "TChair.h"
5 #include "tables/St_iTPCSurvey_Table.h"
6 
7 class St_iTPCSurveyC : public TChair {
8  public:
9  static St_iTPCSurveyC* instance();
10  iTPCSurvey_st *Struct(Int_t i = 0) const {return ((St_iTPCSurvey*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  Int_t Id(Int_t i = 0) const {return Struct(i)->Id;}
13  Float_t Angle(Int_t i = 0) const {return Struct(i)->Angle;}
14  Float_t dx(Int_t i = 0) const {return Struct(i)->dx;}
15  Float_t dy(Int_t i = 0) const {return Struct(i)->dy;}
16  Float_t ScaleX(Int_t i = 0) const {return Struct(i)->ScaleX;}
17  Float_t ScaleY(Int_t i = 0) const {return Struct(i)->ScaleY;}
18  Char_t* comment(Int_t i = 0) const {return Struct(i)->comment;}
19  protected:
20  St_iTPCSurveyC(St_iTPCSurvey *table=0) : TChair(table) {}
21  virtual ~St_iTPCSurveyC() {fgInstance = 0;}
22  private:
23  static St_iTPCSurveyC* fgInstance;
24  ClassDefChair(St_iTPCSurvey, iTPCSurvey_st )
25  ClassDef(St_iTPCSurveyC,1) //C++ TChair for iTPCSurvey table class
26 };
27 #endif
Definition: TChair.h:27