StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_emcTriggerStatusC.h
1 #ifndef St_emcTriggerStatusC_h
2 #define St_emcTriggerStatusC_h
3 
4 #include "TChair.h"
5 #include "tables/St_emcTriggerStatus_Table.h"
6 
7 class St_emcTriggerStatusC : public TChair {
8  public:
9  emcTriggerStatus_st *Struct(Int_t i = 0) const {return ((St_emcTriggerStatus*) Table())->GetTable()+i;}
10  UInt_t getNumRows() const {return GetNRows();}
11  UChar_t* PatchStatus(Int_t i = 0) const {return Struct(i)->PatchStatus;}
12  UChar_t* HighTowerStatus(Int_t i = 0) const {return Struct(i)->HighTowerStatus;}
13  UChar_t* TowerStatus(Int_t i = 0) const {return &Struct(i)->TowerStatus[0][0];}
14  protected:
15  St_emcTriggerStatusC(St_emcTriggerStatus *table=0) : TChair(table) {}
16  virtual ~St_emcTriggerStatusC() {}
17  private:
18  ClassDefChair(St_emcTriggerStatus, emcTriggerStatus_st )
19  ClassDef(St_emcTriggerStatusC,1) //C++ TChair for emcTriggerStatus table class
20 };
22  public:
23  static St_bemcTriggerStatusC* instance();
24  protected:
25  St_bemcTriggerStatusC(St_emcTriggerStatus *table=0) : St_emcTriggerStatusC(table) {}
26  virtual ~St_bemcTriggerStatusC() {fgInstance = 0;}
27  private:
28  static St_bemcTriggerStatusC* fgInstance;
29  ClassDef(St_bemcTriggerStatusC,1) //C++ TChair for emcTriggerStatus table class
30 };
31 #endif
Definition: TChair.h:27