StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_smdGainC.h
1 #ifndef St_smdGainC_h
2 #define St_smdGainC_h
3 
4 #include "TChair.h"
5 #include "tables/St_smdGain_Table.h"
6 
7 class St_smdGainC : public TChair {
8  public:
9  smdGain_st *Struct(Int_t i = 0) const {return ((St_smdGain*) 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_smdGainC(St_smdGain *table=0) : TChair(table) {}
15  virtual ~St_smdGainC() {}
16  private:
17  ClassDefChair(St_smdGain, smdGain_st )
18  ClassDef(St_smdGainC,1) //C++ TChair for smdGain table class
19 };
20 class St_bsmdeGainC : public St_smdGainC {
21  public:
22  static St_bsmdeGainC* instance();
23  protected:
24  St_bsmdeGainC(St_smdGain *table=0) : St_smdGainC(table) {}
25  virtual ~St_bsmdeGainC() {fgInstance = 0;}
26  private:
27  static St_bsmdeGainC* fgInstance;
28  ClassDef(St_bsmdeGainC,1) //C++ TChair for smdGain table class
29 };
30 class St_bsmdpGainC : public St_smdGainC {
31  public:
32  static St_bsmdpGainC* instance();
33  protected:
34  St_bsmdpGainC(St_smdGain *table=0) : St_smdGainC(table) {}
35  virtual ~St_bsmdpGainC() {fgInstance = 0;}
36  private:
37  static St_bsmdpGainC* fgInstance;
38  ClassDef(St_bsmdpGainC,1) //C++ TChair for smdGain table class
39 };
40 #endif
Definition: TChair.h:27