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