StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tpcElectronicsC.h
1 #ifndef St_tpcElectronicsC_h
2 #define St_tpcElectronicsC_h
3 
4 #include "TChair.h"
5 #include "tables/St_tpcElectronics_Table.h"
6 #include "St_starClockOnlC.h"
7 class St_tpcElectronicsC : public TChair {
8  public:
9  static St_tpcElectronicsC* instance();
10  tpcElectronics_st *Struct(Int_t i = 0) {return ((St_tpcElectronics*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  Int_t numberOfTimeBins(Int_t i = 0) {return Struct(i)->numberOfTimeBins;}
13  Double_t nominalGain(Int_t i = 0) {return Struct(i)->nominalGain;}
14  // Double_t samplingFrequency(Int_t i = 0) {return Struct(i)->samplingFrequency;} obsolete
15  Double_t samplingFrequency(Int_t i = 0) {return 1e-6*St_starClockOnlC::instance()->CurrentFrequency(i);}
16  Double_t tZero(Int_t i = 0) {return Struct(i)->tZero;}
17  Double_t adcCharge(Int_t i = 0) {return Struct(i)->adcCharge;}
18  Double_t adcConversion(Int_t i = 0) {return Struct(i)->adcConversion;}
19  Double_t averagePedestal(Int_t i = 0) {return Struct(i)->averagePedestal;}
20  Double_t shapingTime(Int_t i = 0) {return Struct(i)->shapingTime;}
21  Double_t tau(Int_t i = 0) {return Struct(i)->tau;}
22  protected:
23  St_tpcElectronicsC(St_tpcElectronics *table=0) : TChair(table) {}
24  virtual ~St_tpcElectronicsC() {fgInstance = 0;}
25  private:
26  static St_tpcElectronicsC* fgInstance;
27  ClassDefChair(St_tpcElectronics, tpcElectronics_st )
28  ClassDef(St_tpcElectronicsC,1) //C++ TChair for tpcElectronics table class
29 };
30 #endif
Definition: TChair.h:27