StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_emcCalibC.h
1 #ifndef St_emcCalibC_h
2 #define St_emcCalibC_h
3 
4 #include "TChair.h"
5 #include "tables/St_emcCalib_Table.h"
6 
7 class St_emcCalibC : public TChair {
8  public:
9  emcCalib_st *Struct(Int_t i = 0) const {return ((St_emcCalib*) 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* AdcToE(Int_t i = 0) const {return &Struct(i)->AdcToE[0][0];}
13  protected:
14  St_emcCalibC(St_emcCalib *table=0) : TChair(table) {}
15  private:
16  ClassDefChair(St_emcCalib, emcCalib_st )
17  ClassDef(St_emcCalibC,1) //C++ TChair for emcCalib table class
18 };
19 
20 class St_bemcCalibC : public St_emcCalibC {
21  public:
22  static St_bemcCalibC* instance();
23  protected:
24  St_bemcCalibC(St_emcCalib *table=0) : St_emcCalibC(table) {}
25  virtual ~St_bemcCalibC() {fgInstance = 0;}
26  private:
27  static St_bemcCalibC* fgInstance;
28  ClassDef(St_bemcCalibC,1) //C++ TChair for bemcCalib table class
29 };
30 class St_bprsCalibC : public St_emcCalibC {
31  public:
32  static St_bprsCalibC* instance();
33  protected:
34  St_bprsCalibC(St_emcCalib *table=0) : St_emcCalibC(table) {}
35  virtual ~St_bprsCalibC() {fgInstance = 0;}
36  private:
37  static St_bprsCalibC* fgInstance;
38  ClassDef(St_bprsCalibC,1) //C++ TChair for bprsCalib table class
39 };
40 #endif
Definition: TChair.h:27