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