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