"MarlinReco"  1.16.0
MarlinTrackFit.h
1 #ifndef MARLINTRACKFIT_H
2 #define MARLINTRACKFIT_H 1
3 #include "HelixClass.h"
4 
11 extern "C" {
12  void tfithl_(int & NPT, double * XF,double * YF, float * RF, float *PF, double * WF,float * ZF,
13  float * WZF, int & IOPT, float * VV0,
14  float * EE0, float & CH2PH, float & CH2Z);
15 }
16 
17 extern "C" {
18  void trackfit_(int & nhits, int * idet, int * itype,
19  float * x, float * y, float * z, float * phireso, float * zreso,
20  float * ref, int & ierr, float * rfit, float * rfite, float & chi2, int & ndf,
21  int & noutl, int * idoutl, int & fitcode);
22 
23 }
24 
25 
27  public:
28 
33 
38 
117  int DoFitting(int useExtraPoint, int fitOpt, // inputs
118  int & nhits, float bField, int * idet, int * itype, // inputs
119  float chi2PrefitCut, // inputs
120  float * x, float * y, float * z, float * RPReso, float * ZReso, // inputs
121  float * param, float * eparam, float * RefPoint, float & chi2, int & ndf, // outputs
122  float & chi2rphi, float & chi2z,int * lhits); // outputs
123 
136  void CrudeErrorEstimates(float BField, float * reso, float * param, float * eparam);
137  void setParametersForIPErrors(float * par);
138 
139  private:
140 
141  float _parIpReso[3];
142 
143  void CalculateChi2(HelixClass & helix, int & nhits,
144  float * xhit, float * yhit, float * zhit,
145  int * iType, float * rphireso, float * zreso,
146  float * chi2hit, float & chi2rphi, float & chi2z);
147 
148  void ConvertLCtoTANAGRA(float * param, float & bField, float * ref);
149  void ConvertTANAGRAtoLC(float * rfit, float & bField, int & fitCode, float * param);
150  void ConvertCovMatrix(float * rfit, float * rfite, float * param, float & bField, int fitCode, float * eparam);
151 
152 };
153 
154 #endif
~MarlinTrackFit()
Destructor.
int DoFitting(int useExtraPoint, int fitOpt, int &nhits, float bField, int *idet, int *itype, float chi2PrefitCut, float *x, float *y, float *z, float *RPReso, float *ZReso, float *param, float *eparam, float *RefPoint, float &chi2, int &ndf, float &chi2rphi, float &chi2z, int *lhits)
Method performs track fitting taking into account energy loss and MS First simple helix fit is perfor...
Definition: MarlinTrackFit.h:26
MarlinTrackFit()
Constructor.
void CrudeErrorEstimates(float BField, float *reso, float *param, float *eparam)
Method fills covariance matrix according to apriori specified resolutions Covariance matrix is assume...