StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_emcGainC.h
1 #ifndef St_emcGainC_h
2 #define St_emcGainC_h
3 
4 #include "TChair.h"
5 #include "tables/St_emcGain_Table.h"
6 
7 class St_emcGainC : public TChair {
8  public:
9  emcGain_st *Struct(Int_t i = 0) const {return ((St_emcGain*) Table())->GetTable()+i;}
10  UInt_t getNumRows() const {return GetNRows();}
11  UChar_t* Status(Int_t i = 0) const {return Struct(i)->Status;}
12  Float_t* Gain(Int_t i = 0) const {return Struct(i)->Gain;}
13  protected:
14  St_emcGainC(St_emcGain *table=0) : TChair(table) {}
15  virtual ~St_emcGainC() {}
16  private:
17  ClassDefChair(St_emcGain, emcGain_st )
18  ClassDef(St_emcGainC,1) //C++ TChair for emcGain table class
19 };
20 class St_bemcGainC : public St_emcGainC {
21  public:
22  static St_bemcGainC* instance();
23  protected:
24  St_bemcGainC(St_emcGain *table=0) : St_emcGainC(table) {}
25  virtual ~St_bemcGainC() {fgInstance = 0;}
26  private:
27  static St_bemcGainC* fgInstance;
28  ClassDef(St_bemcGainC,1) //C++ St_emcGainC for emcGain table class
29 };
30 class St_bprsGainC : public St_emcGainC {
31  public:
32  static St_bprsGainC* instance();
33  protected:
34  St_bprsGainC(St_emcGain *table=0) : St_emcGainC(table) {}
35  virtual ~St_bprsGainC() {fgInstance = 0;}
36  private:
37  static St_bprsGainC* fgInstance;
38  ClassDef(St_bprsGainC,1) //C++ St_emcGainC for emcGain table class
39 };
40 #endif
Definition: TChair.h:27