StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcAvCurrentC.h
1 #ifndef St_tpcAvCurrentC_h
2 #define St_tpcAvCurrentC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcAvCurrent_Table.h"
6 
7 class St_tpcAvCurrentC : public TChair {
8  public:
9  static St_tpcAvCurrentC* instance();
10  tpcAvCurrent_st *Struct(Int_t i = 0) const {return ((St_tpcAvCurrent*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  Int_t run(Int_t i = 0) const {return Struct(i)->run;}
13  Float_t currentI(Int_t i = 0) const {return Struct(i)->currentI;}
14  Float_t currentO(Int_t i = 0) const {return Struct(i)->currentO;}
15  Float_t chargeI(Int_t i = 0) const {return Struct(i)->chargeI;}
16  Float_t chargeO(Int_t i = 0) const {return Struct(i)->chargeO;}
17  protected:
18  St_tpcAvCurrentC(St_tpcAvCurrent *table=0) : TChair(table) {}
19  virtual ~St_tpcAvCurrentC() {fgInstance = 0;}
20  private:
21  static St_tpcAvCurrentC* fgInstance;
22  ClassDefChair(St_tpcAvCurrent, tpcAvCurrent_st )
23  ClassDef(St_tpcAvCurrentC,1) //C++ TChair for tpcAvCurrent table class
24 };
25 #endif
Definition: TChair.h:27