PandaRoot
PndGFRecoTask Class Reference

Task to perform kalman tracking via genfit2. More...

#include <PndGFRecoTask.h>

Inheritance diagram for PndGFRecoTask:
PndPersistencyTask

Public Member Functions

 PndGFRecoTask (const char *name="Genfit", Int_t iVerbose=0)
 
 ~PndGFRecoTask ()
 
void AddParticleHypo (int pdgCode)
 Add a particle hypothesis used for fitting. If used more then once all hypothesis are used for one track (multiKalman). More...
 
void SetMultiPID ()
 Adds a predefined set of particles as tracking hypothesis (e, mu, pi, K, p) More...
 
void UseIdealPID (bool val=true, Int_t defaultPID=211)
 Flag to use ideal PID from MC tracks instead of particle hypothesis. More...
 
void SetTrackInBranchName (TString name)
 Set the name of the input branch Set the name of the input branch with the prefit PndTracks. More...
 
void SetTrackOutBranchName (TString name)
 Name of the output branch containing the fitted PndTracks. More...
 
void SetFitter (genfit::AbsKalmanFitter *fitter)
 Set fitter used for fitting. Fitter passed to PndGFRecoFit. More...
 
void SetNBusyCut (int val)
 Cut to suppress events with too many tracks. More...
 
void UseEventDisplay (bool val=true)
 
virtual InitStatus Init ()
 
void SetParContainers ()
 
virtual void Exec (Option_t *opt)
 
virtual void FinishTask ()
 
- Public Member Functions inherited from PndPersistencyTask
 PndPersistencyTask ()
 
 PndPersistencyTask (const char *name, Int_t iVerbose=1)
 
virtual ~PndPersistencyTask ()
 
void SetPersistency (Bool_t val=kTRUE)
 
Bool_t GetPersistency ()
 

Protected Member Functions

int GetIdealPdgCode (PndTrack *track)
 
void DeleteOldTracks ()
 

Detailed Description

Task to perform kalman tracking via genfit2.

Date
19.04.2022
Author
Tobias Stockmanns

Definition at line 61 of file PndGFRecoTask.h.

Constructor & Destructor Documentation

◆ PndGFRecoTask()

PndGFRecoTask::PndGFRecoTask ( const char *  name = "Genfit",
Int_t  iVerbose = 0 
)

◆ ~PndGFRecoTask()

PndGFRecoTask::~PndGFRecoTask ( )

Member Function Documentation

◆ AddParticleHypo()

void PndGFRecoTask::AddParticleHypo ( int  pdgCode)

Add a particle hypothesis used for fitting. If used more then once all hypothesis are used for one track (multiKalman).

pdgCode code of particle hypothesis according to PDG definition. Sign is not important.

◆ DeleteOldTracks()

void PndGFRecoTask::DeleteOldTracks ( )
inlineprotected

Definition at line 122 of file PndGFRecoTask.h.

123  {
124  for (auto &track : fPidHypothesis) {
125  track.fArray->Delete();
126  }
127  }

◆ Exec()

virtual void PndGFRecoTask::Exec ( Option_t *  opt)
virtual

◆ FinishTask()

virtual void PndGFRecoTask::FinishTask ( )
inlinevirtual

Definition at line 118 of file PndGFRecoTask.h.

118 {}

◆ GetIdealPdgCode()

int PndGFRecoTask::GetIdealPdgCode ( PndTrack track)
protected

◆ Init()

virtual InitStatus PndGFRecoTask::Init ( )
virtual

◆ SetFitter()

void PndGFRecoTask::SetFitter ( genfit::AbsKalmanFitter fitter)

Set fitter used for fitting. Fitter passed to PndGFRecoFit.

◆ SetMultiPID()

void PndGFRecoTask::SetMultiPID ( )

Adds a predefined set of particles as tracking hypothesis (e, mu, pi, K, p)

◆ SetNBusyCut()

void PndGFRecoTask::SetNBusyCut ( int  val)
inline

Cut to suppress events with too many tracks.

Definition at line 110 of file PndGFRecoTask.h.

110 { fNBusyCut = val; }

◆ SetParContainers()

void PndGFRecoTask::SetParContainers ( )

◆ SetTrackInBranchName()

void PndGFRecoTask::SetTrackInBranchName ( TString  name)
inline

Set the name of the input branch Set the name of the input branch with the prefit PndTracks.

Definition at line 95 of file PndGFRecoTask.h.

95 { fInputBranchName = name; }

◆ SetTrackOutBranchName()

void PndGFRecoTask::SetTrackOutBranchName ( TString  name)
inline

Name of the output branch containing the fitted PndTracks.

Definition at line 100 of file PndGFRecoTask.h.

100 { fOutputBranchName = name; }

◆ UseEventDisplay()

void PndGFRecoTask::UseEventDisplay ( bool  val = true)
inline

Definition at line 112 of file PndGFRecoTask.h.

112 { fUseEventDisplay = val; }

◆ UseIdealPID()

void PndGFRecoTask::UseIdealPID ( bool  val = true,
Int_t  defaultPID = 211 
)
inline

Flag to use ideal PID from MC tracks instead of particle hypothesis.

val switches ideal PID on or off
defaultPID default particle hypothesis used if no proper ideal value can be determined

Definition at line 85 of file PndGFRecoTask.h.

86  {
87  fIdealPID = val;
88  fDefaultPID = defaultPID;
89  }

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