StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_triggerIDC.h
1 #ifndef St_triggerIDC_h
2 #define St_triggerIDC_h
3 
4 #include "TChair.h"
5 #include "tables/St_triggerID_Table.h"
6 
7 class St_triggerIDC : public TChair {
8  public:
9  static St_triggerIDC* instance();
10  triggerID_st *Struct(Int_t i = 0) {return ((St_triggerID*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  UInt_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
13  UInt_t idxTrg(Int_t i = 0) {return Struct(i)->idxTrg;}
14  UInt_t daqTrgId(Int_t i = 0) {return Struct(i)->daqTrgId;}
15  UInt_t offlineTrgId(Int_t i = 0) {return Struct(i)->offlineTrgId;}
16  UInt_t trgNameVersion(Int_t i = 0) {return Struct(i)->trgNameVersion;}
17  UInt_t trgVersion(Int_t i = 0) {return Struct(i)->trgVersion;}
18  UInt_t threashVersion(Int_t i = 0) {return Struct(i)->threashVersion;}
19  UInt_t psVersion(Int_t i = 0) {return Struct(i)->psVersion;}
20  protected:
21  St_triggerIDC(St_triggerID *table=0) : TChair(table) {}
22  virtual ~St_triggerIDC() {fgInstance = 0;}
23  private:
24  static St_triggerIDC* fgInstance;
25  ClassDefChair(St_triggerID, triggerID_st )
26  ClassDef(St_triggerIDC,1) //C++ TChair for triggerID table class
27 };
28 #endif
Definition: TChair.h:27