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