StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_trigPrescalesC.h
1 #ifndef St_trigPrescalesC_h
2 #define St_trigPrescalesC_h
3 
4 #include "TChair.h"
5 #include "tables/St_trigPrescales_Table.h"
6 
7 class St_trigPrescalesC : public TChair {
8  public:
9  static St_trigPrescalesC* instance();
10  trigPrescales_st *Struct(Int_t i = 0) {return ((St_trigPrescales*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  Int_t runNumber(Int_t i = 0) {return Struct(i)->runNumber;}
13  Int_t idxTrigger(Int_t i = 0) {return Struct(i)->idxTrigger;}
14  Int_t idxLevel(Int_t i = 0) {return Struct(i)->idxLevel;}
15  Int_t id(Int_t i = 0) {return Struct(i)->id;}
16  Float_t ps(Int_t i = 0) {return Struct(i)->ps;}
17  protected:
18  St_trigPrescalesC(St_trigPrescales *table=0) : TChair(table) {}
19  virtual ~St_trigPrescalesC() {if (Table()->IsMarked()) delete GetThisTable(); fgInstance = 0;}
20  private:
21  static St_trigPrescalesC* fgInstance;
22  ClassDefChair(St_trigPrescales, trigPrescales_st )
23  ClassDef(St_trigPrescalesC,1) //C++ TChair for trigPrescales table class
24 };
25 #endif
Definition: TChair.h:27