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