StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcAnodeHVavgC.h
1 #ifndef St_tpcAnodeHVavgC_h
2 #define St_tpcAnodeHVavgC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcAnodeHVavg_Table.h"
6 
7 class St_tpcAnodeHVavgC : public TChair {
8  public:
9  static St_tpcAnodeHVavgC* instance();
10  tpcAnodeHVavg_st *Struct(Int_t i = 0) const {return ((St_tpcAnodeHVavg*) Table())->GetTable()+i;}
11  UInt_t getNumRows() const {return GetNRows();}
12  UShort_t sector(Int_t i = 0) const {return Struct(i)->sector;}
13  UShort_t socket(Int_t i = 0) const {return Struct(i)->socket;}
14  Float_t voltage(Int_t i = 0) const;
15  Float_t rms(Int_t i = 0) const {return Struct(i)->rms;}
16  Int_t numentries(Int_t i = 0) const {return Struct(i)->numentries;}
17  Int_t numoutliers(Int_t i = 0) const {return Struct(i)->numoutliers;}
18  Bool_t livePadrow(Int_t sec = 1, Int_t padrow = 1) const { return voltagePadrow(sec,padrow) > 850; }
19  Float_t voltagePadrow(Int_t sec = 1, Int_t padrow = 1) const; // sector=1..24 , padrow=1..100
20  Bool_t tripped(Int_t sec = 1, Int_t padrow = 1) const;// { return (voltage() < -100); }
21  protected:
22  St_tpcAnodeHVavgC(St_tpcAnodeHVavg *table=0) : TChair(table) {}
23  virtual ~St_tpcAnodeHVavgC() {fgInstance = 0;}
24  private:
25  static St_tpcAnodeHVavgC* fgInstance;
26  ClassDefChair(St_tpcAnodeHVavg, tpcAnodeHVavg_st )
27  ClassDef(St_tpcAnodeHVavgC,1) //C++ TChair for tpcAnodeHVavg table class
28 };
29 #endif
Definition: TChair.h:27