StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_istPedNoiseC.h
1 #ifndef St_istPedNoiseC_h
2 #define St_istPedNoiseC_h
3 
4 #include "TChair.h"
5 #include "tables/St_istPedNoise_Table.h"
6 
7 class St_istPedNoiseC : public TChair {
8  public:
9  static St_istPedNoiseC* instance();
10  istPedNoise_st *Struct(Int_t i = 0) const {return ((St_istPedNoise*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  unsigned short* cmNoise(Int_t i = 0) const {return Struct(i)->cmNoise;}
13  unsigned short* pedestal(Int_t i = 0) const {return Struct(i)->pedestal;}
14  unsigned short* rmsNoise(Int_t i = 0) const {return Struct(i)->rmsNoise;}
15  protected:
16  St_istPedNoiseC(St_istPedNoise *table=0) : TChair(table) {}
17  virtual ~St_istPedNoiseC() {fgInstance = 0;}
18  private:
19  static St_istPedNoiseC* fgInstance;
20  ClassDefChair(St_istPedNoise, istPedNoise_st )
21  ClassDef(St_istPedNoiseC,1) //C++ TChair for istPedNoise table class
22 };
23 #endif
Definition: TChair.h:27