StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_ftpcVoltageStatusC.h
1 #ifndef St_ftpcVoltageStatusC_h
2 #define St_ftpcVoltageStatusC_h
3 
4 #include "TChair.h"
5 #include "tables/St_ftpcVoltageStatus_Table.h"
6 
7 class St_ftpcVoltageStatusC : public TChair {
8  public:
9  static St_ftpcVoltageStatusC* instance();
10  ftpcVoltageStatus_st *Struct(Int_t i = 0) {return ((St_ftpcVoltageStatus*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  UInt_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
13  UInt_t startStatusTime(Int_t i = 0) {return Struct(i)->startStatusTime;}
14  UInt_t endStatusTime(Int_t i = 0) {return Struct(i)->endStatusTime;}
15  UInt_t statusWest(Int_t i = 0) {return Struct(i)->statusWest;}
16  UInt_t statusEast(Int_t i = 0) {return Struct(i)->statusEast;}
17  UInt_t getStatusFTPCEast() {return statusEast();}
18  UInt_t getStatusFTPCWest() {return statusWest();}
19  protected:
20  St_ftpcVoltageStatusC(St_ftpcVoltageStatus *table=0) : TChair(table) {}
21  virtual ~St_ftpcVoltageStatusC() {fgInstance = 0;}
22  private:
23  static St_ftpcVoltageStatusC* fgInstance;
24  ClassDefChair(St_ftpcVoltageStatus, ftpcVoltageStatus_st )
25  ClassDef(St_ftpcVoltageStatusC,1) //C++ TChair for ftpcVoltageStatus table class
26 };
27 #endif
Definition: TChair.h:27