PandaRoot
PndGFRecoFit.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include "PndTrack.h"
13 
14 #include "AbsKalmanFitter.h"
15 #include "MeasurementFactory.h"
16 
18 
19 #include "FairGeanePro.h"
20 
21 class PndGFRecoFit {
22  public:
23  PndGFRecoFit();
24  virtual ~PndGFRecoFit();
25 
30  void Init();
31 
38  PndTrack *Fit(PndTrack *prefit, int pdgcode);
39 
45  void SetFitter(genfit::AbsKalmanFitter *fitter) { fFitter = fitter; }
46 
54  void SetPropagateToIP(bool val = true) { fPropagateToIP = val; }
55 
59  void SetPropagateDistance(double val) { fPropagateDistance = val; }
60 
62 
63  protected:
64  void SetDefaultFitter();
65 
66  private:
68  genfit::AbsKalmanFitter *fFitter = nullptr;
69  bool fPropagateToIP = false;
70  float fPropagateDistance = 2.0;
71  // bool fPerpPlane = false;
72  FairGeanePro *fPro0 = nullptr; // todo: replace Geane propagator with genfit propagator
73  genfit::EventDisplay* fGFdisplay = nullptr;
74 
75  int fVerbose = 0;
76 };
Event display designed to run with Genfit.
Definition: EventDisplay.h:53
void SetPropagateDistance(double val)
Sets the distance the initial parameters are propagated backward along the track. ...
Definition: PndGFRecoFit.h:59
PndTrack * Fit(PndTrack *prefit, int pdgcode)
Method to perform the fit of a track.
Abstract base class for Kalman fitter and derived fitting algorithms.
void UseEventDisplay()
Definition: PndGFRecoFit.h:61
Class to perform a kalman fit via genfit2 within PandaRoot.
Definition: PndGFRecoFit.h:21
virtual ~PndGFRecoFit()
void Init()
Initialization of the fitter Has to be called in the Init() call of a task to initialize the TClones...
void SetDefaultFitter()
void SetPropagateToIP(bool val=true)
Toggle between initial propagation to primary vertex or to a given length The start values for the k...
Definition: PndGFRecoFit.h:54
static EventDisplay * getInstance()
void SetFitter(genfit::AbsKalmanFitter *fitter)
Set different genfit2 fitters If no external fitter is set a default fitter is generated.
Definition: PndGFRecoFit.h:45