StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcHighVoltagesC.h
1 #ifndef St_tpcHighVoltagesC_h
2 #define St_tpcHighVoltagesC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcHighVoltages_Table.h"
6 
7 class St_tpcHighVoltagesC : public TChair {
8  public:
9  static St_tpcHighVoltagesC* instance();
10  tpcHighVoltages_st *Struct(Int_t i = 0) {return ((St_tpcHighVoltages*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  Float_t cathode(Int_t i = 0) {return Struct(i)->cathode;}
13  Float_t gatedGridRef(Int_t i = 0) {return Struct(i)->gatedGridRef;}
14  Float_t* gridLeakWallTip(Int_t i = 0) {return Struct(i)->gridLeakWallTip;}
15  Float_t* gridLeakWallSide(Int_t i = 0) {return Struct(i)->gridLeakWallSide;}
16  Double_t getCathodeVoltage() {return cathode();}
17  Double_t getGGVoltage() {return gatedGridRef();}
18  Double_t getGridLeakWallTip(Int_t sector = 1) {return gridLeakWallTip()[sector-1];}
19  Double_t getGridLeakWallSide(Int_t sector = 1) {return gridLeakWallSide()[sector-1];}
20 
21  protected:
22  St_tpcHighVoltagesC(St_tpcHighVoltages *table=0) : TChair(table) {}
23  virtual ~St_tpcHighVoltagesC() {fgInstance = 0;}
24  private:
25  static St_tpcHighVoltagesC* fgInstance;
26  ClassDefChair(St_tpcHighVoltages, tpcHighVoltages_st )
27  ClassDef(St_tpcHighVoltagesC,1) //C++ TChair for tpcHighVoltages table class
28 };
29 #endif
Definition: TChair.h:27