StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiHitErrorCalculator.h
1 #ifndef StiHitErrorCalculator_h
2 #define StiHitErrorCalculator_h
3 
4 #include "TChair.h"
5 #include "tables/St_HitError_Table.h"
6 #include "Sti/StiNodePars.h"
7 
8 class StiHitErrorCalculator : public TChair {
9  public:
10  HitError_st *Struct(Int_t i = 0) {return ((St_HitError*) Table())->GetTable()+i;}
11  UInt_t getNumRows() {return GetNRows();}
12  Double_t* coeff(Int_t i = 0) {return Struct(i)->coeff;}
13  virtual void calculateError(Double_t _z, Double_t _eta, Double_t _tanl, Double_t &ecross, Double_t &edip, Double_t fudgeFactor = 1) const;
14  virtual void calculateError(const StiNodePars *pars,Double_t &ecross,Double_t &edip, Double_t fudgeFactor = 1) const {
15  calculateError(pars->z(), pars->eta(), pars->tanl(), ecross, edip, fudgeFactor);
16  }
17  protected:
18  StiHitErrorCalculator(St_HitError *table=0) : TChair(table) {}
19  virtual ~StiHitErrorCalculator() {}
20  private:
21  ClassDefineChair(StiHitErrorCalculator,St_HitError, HitError_st )
22  ClassDef(StiHitErrorCalculator,1) //C++ TChair for HitError table class
23 };
24 #endif
Definition: TChair.h:27
virtual void calculateError(Double_t _z, Double_t _eta, Double_t _tanl, Double_t &ecross, Double_t &edip, Double_t fudgeFactor=1) const
coeff[6] = 0:intrinsicY 1: driftY 2: crossY 3:intrinsicZ 4: driftZ 5: crossZ
Definition: StiChairs.cxx:7