StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_vpdTotCorrC.h
1 #ifndef St_vpdTotCorrC_h
2 #define St_vpdTotCorrC_h
3 
4 #include "St_tofCorrC.h"
5 #include "tables/St_vpdTotCorr_Table.h"
6 class St_vpdTotCorrC : public St_tofCorrC {
7  public:
8  static St_vpdTotCorrC* instance();
9  vpdTotCorr_st *Struct(Int_t i = 0) const {return ((St_vpdTotCorr*) Table())->GetTable()+i;}
10  UInt_t getNumRows() const {return GetNRows();}
11  short tubeId(Int_t i = 0) const {return Struct(i)->tubeId;}
12  Float_t* tot(Int_t i = 0) const {return Struct(i)->tot;}
13  Float_t* corr(Int_t i = 0) const {return Struct(i)->corr;}
14  short corralgo(Int_t i = 0) const {return Struct(i)->corralgo;}
15  Float_t Corr(Int_t i, Float_t x);
16  protected:
17  St_vpdTotCorrC(St_vpdTotCorr *table=0) : St_tofCorrC(table) {}
18  virtual ~St_vpdTotCorrC() {fgInstance = 0;}
19  private:
20  static St_vpdTotCorrC* fgInstance;
21  ClassDefChair(St_vpdTotCorr, vpdTotCorr_st )
22  ClassDef(St_vpdTotCorrC,1) //C++ St_tofCorrC for vpdTotCorr table class
23 };
24 #endif