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