StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_tofCorrC.h
1 #ifndef St_tofCorrC_h
2 #define St_tofCorrC_h
3 
4 #include "TChair.h"
5 #include "TArrayI.h"
6 #include "TArrayS.h"
7 class St_tofCorrC : public TChair {
8  public:
9  UInt_t getNumRows() const {return GetNRows();}
10  enum{
11  mNTOF = 192, // 192 for tof in Run 8++
12  mNTDIG = 8, // 8 per tray in Run 8++
13  mNModule = 32, // 32 for tofr5++
14  mNVPD = 19, // 19 tubes at each side
15  mNCell = 6, // 6 cells per module
16  mNBinMax = 60, // 60 bins for T-Tot, T-Z correction
17 
18  mNTray = 120, // 120 trays in full
19  mWestVpdTrayId = 121,
20  mEastVpdTrayId = 122
21  };
22  enum calibtype {NOTSET=0, BOARDCALIB=mNTray*(mNModule/4), MODULECALIB=mNTray*mNModule, CELLCALIB=mNTray*mNModule*mNCell};
23  Float_t Correction(Int_t N, Float_t *xArray, Float_t x, Float_t *yArray, Short_t &NN);
24  Int_t Index(Int_t tray, Int_t module, Int_t cell);
25 #if 0
26  virtual Int_t NbinsMax() const = 0;
27  virtual Float_t *xarray(Int_t i = 0) const = 0;
28  virtual Float_t *yarray(Int_t i = 0) const = 0;
29 #endif
30  protected:
31  St_tofCorrC(TTable *table=0);
32  calibtype mCalibType;
33  TArrayI mIndxArray;
34  TArrayS mNusedArray;
35  virtual ~St_tofCorrC() {}
36  private:
37  ClassDef(St_tofCorrC,1) //C++ TChair for tofCorr table class
38 };
39 #endif
Definition: TChair.h:27
Definition: TTable.h:48