Ideal track finder for all types of tracking detectors The PndIdealTrackFinder combines all hits in given branches into PndTrackCand and calculates the PndTrack based on MC information.
More...
#include <PndIdealTrackFinder.h>
Ideal track finder for all types of tracking detectors The PndIdealTrackFinder combines all hits in given branches into PndTrackCand and calculates the PndTrack based on MC information.
- Author
- Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de
- Date
- Apr 12, 2010
Definition at line 25 of file PndIdealTrackFinder.h.
◆ PndIdealTrackFinder()
PndIdealTrackFinder::PndIdealTrackFinder |
( |
TString |
name = "PndIdealTrackFinder" | ) |
|
◆ ~PndIdealTrackFinder()
virtual PndIdealTrackFinder::~PndIdealTrackFinder |
( |
| ) |
|
|
virtual |
◆ AddBranchName() [1/2]
virtual void PndIdealTrackFinder::AddBranchName |
( |
TString |
name | ) |
|
|
inlinevirtual |
Add a branch name of detector hits which should be added to the PndTrack
. If no branch name is given per default all hits of tracking detectors are taken.
- Parameters
-
name | name of branch in input root file |
Definition at line 37 of file PndIdealTrackFinder.h.
References fBranchNames.
std::vector< TString > fBranchNames
◆ AddBranchName() [2/2]
virtual void PndIdealTrackFinder::AddBranchName |
( |
TString |
name, |
|
|
TString |
mcName |
|
) |
| |
|
inlinevirtual |
Add a branch name of detector hits which should be added to the PndTrack
. If no branch name is given per default all hits of tracking detectors are taken.
- Parameters
-
name | name of branch in input root file |
mcName | name of the branch which contains the MC points connected to the hit branch. If no mcName is given a default map is taken. |
Definition at line 48 of file PndIdealTrackFinder.h.
References fBranchNames, and fPointBranchMap.
std::map< TString, TString > fPointBranchMap
std::vector< TString > fBranchNames
◆ ClassDef()
◆ CreateTrackCands()
virtual void PndIdealTrackFinder::CreateTrackCands |
( |
| ) |
|
|
protectedvirtual |
◆ CreateTracks()
virtual void PndIdealTrackFinder::CreateTracks |
( |
| ) |
|
|
protectedvirtual |
◆ Exec()
virtual void PndIdealTrackFinder::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
◆ FilterTrackCands()
virtual void PndIdealTrackFinder::FilterTrackCands |
( |
| ) |
|
|
protectedvirtual |
◆ GetFairMCPoint()
virtual FairMCPoint* PndIdealTrackFinder::GetFairMCPoint |
( |
TString |
hitBranch, |
|
|
FairMultiLinkedData_Interface * |
links, |
|
|
FairMultiLinkedData & |
array |
|
) |
| |
|
protectedvirtual |
◆ Init()
virtual InitStatus PndIdealTrackFinder::Init |
( |
| ) |
|
|
virtual |
◆ SetMomentumSmearing()
void PndIdealTrackFinder::SetMomentumSmearing |
( |
Double_t |
sigmax, |
|
|
Double_t |
sigmay, |
|
|
Double_t |
sigmaz |
|
) |
| |
|
inline |
Sets how much the mc truth momentum values are smeared by absolute values
- Parameters
-
sigmax | absolute smearing in px in [GeV/c] |
sigmay | absolute smearing in py in [GeV/c] |
sigmaz | absoulte smearing in pz in [GeV/c] |
Definition at line 76 of file PndIdealTrackFinder.h.
References fabs(), fMomSigma, and fRelative.
friend F32vec4 fabs(const F32vec4 &a)
TVector3 fMomSigma
Momentum smearing sigma [GeV].
◆ SetOutputBranchName()
virtual void PndIdealTrackFinder::SetOutputBranchName |
( |
TString |
name | ) |
|
|
inlinevirtual |
◆ SetPersistence()
void PndIdealTrackFinder::SetPersistence |
( |
Bool_t |
persistence | ) |
|
|
inline |
◆ SetRelativeMomentumSmearing()
void PndIdealTrackFinder::SetRelativeMomentumSmearing |
( |
Double_t |
dpop | ) |
|
|
inline |
Sets how much the mc truth momentum values are smeared by a relative value. The relative smearing is applied to pt and pz individually. => The error applied to px and py is 1/Sqrt(2) * dpop while for pz it is dpop
- Parameters
-
dpop | relative momentum smearing |
Definition at line 87 of file PndIdealTrackFinder.h.
References fabs(), fDPoP, and fRelative.
friend F32vec4 fabs(const F32vec4 &a)
Double_t fDPoP
Relative momentum Smearing.
◆ SetRunTimeBased()
void PndIdealTrackFinder::SetRunTimeBased |
( |
bool |
valRunTimeBased = true | ) |
|
|
inline |
◆ SetTrackingEfficiency()
void PndIdealTrackFinder::SetTrackingEfficiency |
( |
Double_t |
eff = 1. | ) |
|
|
inline |
Sets an artificial efficiency of the ideal track finder
- Parameters
-
eff | Fraction of tracks which are generated. A value of 1 means all ideal tracks, 0 no tracks are generated. |
Definition at line 110 of file PndIdealTrackFinder.h.
References fEfficiency.
Double_t fEfficiency
Tracking efficiency - if (0 <= e < 1), some tracks will be discarded.
◆ SetTrackSelector()
void PndIdealTrackFinder::SetTrackSelector |
( |
TString |
selector | ) |
|
|
inline |
The track selector decides which kind of ideal tracks are generated from the features of MC tracks. E.g. the "StandardTrackFunctor" creates a track if more than 3 MVD hits or more than 5 (MVD+STT+GEM) hits are from the same track.
- Parameters
-
selector | string which defines a track selector. Valid strings can be found in PndTrackFunctor |
Definition at line 117 of file PndIdealTrackFinder.h.
References fTrackSelector, and PndTrackFunctor::make_PndTrackFunctor().
PndTrackFunctor * fTrackSelector
static PndTrackFunctor * make_PndTrackFunctor(std::string functorName)
◆ SetVertexSmearing()
void PndIdealTrackFinder::SetVertexSmearing |
( |
Double_t |
sigmax = -1. , |
|
|
Double_t |
sigmay = -1. , |
|
|
Double_t |
sigmaz = -1. |
|
) |
| |
|
inline |
Sets how much the mc truth vertex position is smeared by absolute values
- Parameters
-
sigmax | absolute smearing in x in [cm] |
sigmay | absolute smearing in y in [cm] |
sigmaz | absoulte smearing in z in [cm] |
Definition at line 104 of file PndIdealTrackFinder.h.
References fabs(), and fVtxSigma.
friend F32vec4 fabs(const F32vec4 &a)
TVector3 fVtxSigma
Vertex smearing sigma [cm].
◆ SmearVector()
virtual void PndIdealTrackFinder::SmearVector |
( |
TVector3 & |
vec, |
|
|
const TVector3 & |
sigma |
|
) |
| |
|
protectedvirtual |
◆ fBranchMap
std::map<TString, TClonesArray *> PndIdealTrackFinder::fBranchMap |
|
protected |
◆ fBranchNames
std::vector<TString> PndIdealTrackFinder::fBranchNames |
|
protected |
◆ fDPoP
Double_t PndIdealTrackFinder::fDPoP |
|
protected |
◆ fEfficiency
Double_t PndIdealTrackFinder::fEfficiency |
|
protected |
◆ fFirstPointMap
std::map<FairLink, FairMCPoint> PndIdealTrackFinder::fFirstPointMap |
|
protected |
◆ fFunctor
BinaryFunctor* PndIdealTrackFinder::fFunctor |
|
protected |
◆ fHitCount
Int_t PndIdealTrackFinder::fHitCount |
|
protected |
◆ fLastPointMap
std::map<FairLink, FairMCPoint> PndIdealTrackFinder::fLastPointMap |
|
protected |
◆ fMCTrack
TClonesArray* PndIdealTrackFinder::fMCTrack |
|
protected |
◆ fMomSigma
TVector3 PndIdealTrackFinder::fMomSigma |
|
protected |
◆ fOutBranchName
TString PndIdealTrackFinder::fOutBranchName |
|
protected |
◆ fPdg
TDatabasePDG* PndIdealTrackFinder::fPdg |
|
protected |
◆ fPointBranchMap
std::map<TString, TString> PndIdealTrackFinder::fPointBranchMap |
|
protected |
◆ fRelative
Bool_t PndIdealTrackFinder::fRelative |
|
protected |
◆ fRunTimeBased
Bool_t PndIdealTrackFinder::fRunTimeBased |
|
protected |
◆ fStopTimeValue
double PndIdealTrackFinder::fStopTimeValue |
|
protected |
◆ fTrack
TClonesArray* PndIdealTrackFinder::fTrack |
|
protected |
◆ fTrackCand
TClonesArray* PndIdealTrackFinder::fTrackCand |
|
protected |
◆ fTrackCandMap
std::map<FairLink, PndTrackCand> PndIdealTrackFinder::fTrackCandMap |
|
protected |
◆ fTrackSelector
◆ fVtxSigma
TVector3 PndIdealTrackFinder::fVtxSigma |
|
protected |
The documentation for this class was generated from the following file: