PandaRoot
PndGFRecoFit Class Reference

Class to perform a kalman fit via genfit2 within PandaRoot. More...

#include <PndGFRecoFit.h>

Public Member Functions

 PndGFRecoFit ()
 
virtual ~PndGFRecoFit ()
 
void Init ()
 Initialization of the fitter Has to be called in the Init() call of a task to initialize the TClonesArrays. More...
 
PndTrackFit (PndTrack *prefit, int pdgcode)
 Method to perform the fit of a track. More...
 
void SetFitter (genfit::AbsKalmanFitter *fitter)
 Set different genfit2 fitters If no external fitter is set a default fitter is generated. More...
 
void SetPropagateToIP (bool val=true)
 Toggle between initial propagation to primary vertex or to a given length The start values for the kalman fit are given at the first point of the track This can cause a problem for the propagation. Therefore the start parameters are propagated to a point before the start of the track. This switch selects if the propagation is done to the primary vertex or just by a given distance (SetPropagateDistance() ). More...
 
void SetPropagateDistance (double val)
 Sets the distance the initial parameters are propagated backward along the track. More...
 
void UseEventDisplay ()
 

Protected Member Functions

void SetDefaultFitter ()
 

Detailed Description

Class to perform a kalman fit via genfit2 within PandaRoot.

Date
20.04.2022
Author
Tobias Stockmanns

Definition at line 21 of file PndGFRecoFit.h.

Constructor & Destructor Documentation

◆ PndGFRecoFit()

PndGFRecoFit::PndGFRecoFit ( )

◆ ~PndGFRecoFit()

virtual PndGFRecoFit::~PndGFRecoFit ( )
virtual

Member Function Documentation

◆ Fit()

PndTrack* PndGFRecoFit::Fit ( PndTrack prefit,
int  pdgcode 
)

Method to perform the fit of a track.

Parameters
prefitTrack to be fitted including prefit values
pdgcodeParticle hypothesis used for the tracking
Returns
fitted track as PndTrack

◆ Init()

void PndGFRecoFit::Init ( )

Initialization of the fitter Has to be called in the Init() call of a task to initialize the TClonesArrays.

◆ SetDefaultFitter()

void PndGFRecoFit::SetDefaultFitter ( )
protected

Referenced by UseEventDisplay().

◆ SetFitter()

void PndGFRecoFit::SetFitter ( genfit::AbsKalmanFitter fitter)
inline

Set different genfit2 fitters If no external fitter is set a default fitter is generated.

Parameters
fitterFitter to be used

Definition at line 45 of file PndGFRecoFit.h.

45 { fFitter = fitter; }

◆ SetPropagateDistance()

void PndGFRecoFit::SetPropagateDistance ( double  val)
inline

Sets the distance the initial parameters are propagated backward along the track.

Definition at line 59 of file PndGFRecoFit.h.

59 { fPropagateDistance = val; }

◆ SetPropagateToIP()

void PndGFRecoFit::SetPropagateToIP ( bool  val = true)
inline

Toggle between initial propagation to primary vertex or to a given length The start values for the kalman fit are given at the first point of the track This can cause a problem for the propagation. Therefore the start parameters are propagated to a point before the start of the track. This switch selects if the propagation is done to the primary vertex or just by a given distance (SetPropagateDistance() ).

Definition at line 54 of file PndGFRecoFit.h.

54 { fPropagateToIP = val; }

◆ UseEventDisplay()

void PndGFRecoFit::UseEventDisplay ( )
inline

Definition at line 61 of file PndGFRecoFit.h.

References genfit::EventDisplay::getInstance(), and SetDefaultFitter().

61 { fGFdisplay = genfit::EventDisplay::getInstance(); }
static EventDisplay * getInstance()

The documentation for this class was generated from the following file: