StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiTpcHitErrorMDF4.h
1 #ifndef StiTpcHitErrorMDF4_h
2 #define StiTpcHitErrorMDF4_h
3 
4 #include "Sti/StiNodePars.h"
5 #include "St_MDFCorrection4C.h"
6 #include "StDetectorDbMaker/St_tpcDriftVelocityC.h"
7 #include "StDetectorDbMaker/St_tpcPadConfigC.h"
8 
10  public:
11  virtual void calculateError(Double_t _z, Double_t _eta, Double_t _tanl,
12  Double_t &ecross, Double_t &edip,
13  Double_t fudgeFactor = 1, Double_t AdcL = 5.5, Double_t *dZ = 0, Double_t *dX = 0);
14  virtual void calculateError(const StiNodePars *pars,
15  Double_t &ecross, Double_t &edip,
16  Double_t fudgeFactor = 1, Double_t AdcL = 5.5, Double_t *dZ = 0, Double_t *dX = 0) {
17  calculateError(pars->z(), pars->eta(), pars->tanl(), ecross, edip, fudgeFactor, AdcL, dZ, dX);
18  }
19  protected:
20  StiTpcHitErrorMDF4(St_MDFCorrection4 *table=0) : St_MDFCorrection4C(table) {}
21  virtual ~StiTpcHitErrorMDF4() {}
22  private:
23  void convert(Double_t _z, Double_t _eta, Double_t _tanl, Double_t AdcL);
24  Double_t fxx[4];
25  virtual Double_t padPitch() = 0;
26  Double_t timePitch() {return St_tpcDriftVelocityC::instance()->timeBucketPitch();}
27  ClassDefineChair(StiTpcHitErrorMDF4,St_MDFCorrection4, MDFCorrection4_st )
28  ClassDef(StiTpcHitErrorMDF4,1) //C++ TChair for MDFCorrection4 table class
29 };
30 //________________________________________________________________________________
32  public:
33  static StiTpcInnerHitErrorMDF4 *instance();
34  protected:
35  StiTpcInnerHitErrorMDF4(St_MDFCorrection4 *table=0) : StiTpcHitErrorMDF4(table) {}
36  virtual ~StiTpcInnerHitErrorMDF4() {fgInstance = 0;}
37  private:
38  static StiTpcInnerHitErrorMDF4* fgInstance;
39  Double_t padPitch() {return St_tpcPadConfigC::instance()->innerSectorPadPitch();}
40  ClassDef(StiTpcInnerHitErrorMDF4,1) //C++ TChair for MDFCorrection4 table class
41 };
42 //________________________________________________________________________________
44  public:
45  static StiTpcOuterHitErrorMDF4 *instance();
46  protected:
47  StiTpcOuterHitErrorMDF4(St_MDFCorrection4 *table=0) : StiTpcHitErrorMDF4(table) {}
48  virtual ~StiTpcOuterHitErrorMDF4() {fgInstance = 0;}
49  private:
50  static StiTpcOuterHitErrorMDF4* fgInstance;
51  Double_t padPitch() {return St_tpcPadConfigC::instance()->innerSectorPadPitch();}
52  ClassDef(StiTpcOuterHitErrorMDF4,1) //C++ TChair for MDFCorrection4 table class
53 };
54 
55 #endif