PandaRoot
PndPidTrackingSystemInfo Class Reference

Class for combining all PID track information. More...

#include <PndPidTrackingSystemInfo.h>

Inheritance diagram for PndPidTrackingSystemInfo:
PndPidTrackInfo

Public Member Functions

 PndPidTrackingSystemInfo (Bool_t use_default_setup=kTRUE)
 Default constructor. More...
 
virtual ~PndPidTrackingSystemInfo ()
 Default destructor. More...
 
void SetDetectors (std::vector< PndPidTrackingDetectorInfo *> detectors)
 
void AddDetector (PndPidTrackingDetectorInfo *detector_info)
 
std::vector< PndPidTrackingDetectorInfo * > GetDetectors ()
 
void Reset ()
 Call Reset() of PndTrackingDetectorInfo classes. More...
 
void SetPidHypo (Int_t pid_hyp)
 Set fPidHyp and call SetPidHypo() of PndTrackingDetectorInfo classes. More...
 
void SetPropagator (PndPropagator *propagator)
 Set fPropagator and call SetPropagator() of PndTrackingDetectorInfo classes. More...
 
void SetParContainers (FairRuntimeDb *db)
 Call SetParContainers() of PndTrackingDetectorInfo classes. More...
 
Bool_t Setup (FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params)
 Setup tracking info and tracking detector info. More...
 
Bool_t GetCompleteTrackingSystemInfo (Int_t track_index, PndPidCandidate *pidCand)
 Include track and tracking detector information in PidCandidate. More...
 
- Public Member Functions inherited from PndPidTrackInfo
 PndPidTrackInfo ()
 Default constructor. More...
 
virtual ~PndPidTrackInfo ()
 Default destructor. More...
 
void SetUsePropagator (Bool_t use_propagator)
 
void SetPropagator (PndPropagator *propagator)
 
void SetPidHypo (Int_t pid_hyp)
 
void SetVerbose (Int_t verbose)
 
void SetBackPropagate (Bool_t back_propagate)
 
void SetTrackBranchBarrel (TString track_branch)
 
void SetTrackBranchForward (TString track_branch)
 
void SetIsBarrel (Bool_t is_barrel)
 
Int_t GetNTracksTotal ()
 
virtual void Register ()
 
Bool_t SetMcTrack (FairRootManager *manager)
 Set McTrack TClonesArray. More...
 
Bool_t GetInfo (Int_t track_index, PndPidCandidate *pidCand)
 Include track information in PidCandidate. More...
 
Int_t GetNTracks ()
 Get number of tracks in barrel or forward detector. More...
 
PndTrackGetTrack (Int_t index)
 Get track from barrel or foward track TClonesArrays. More...
 
PndMCTrackGetMcTrack (Int_t index)
 Get track from MC track TClonesArrays. More...
 
Bool_t SetTrackArrays (FairRootManager *manager)
 

Protected Member Functions

 ClassDef (PndPidTrackingSystemInfo, 1)
 
- Protected Member Functions inherited from PndPidTrackInfo
 ClassDef (PndPidTrackInfo, 1)
 

Protected Attributes

Bool_t fUseDefaultSetup
 
std::vector< PndPidTrackingDetectorInfo * > fDetectors = {}
 
- Protected Attributes inherited from PndPidTrackInfo
Bool_t fUsePropagator = kFALSE
 kTRUE to use propagator like PndGeanePro. More...
 
PndPropagatorfPropagator = nullptr
 The propagator. More...
 
Int_t fPidHyp = 0
 Particle Id hypothesis (pdg particle code) More...
 
Int_t fVerbose = 0
 Verbosity level. More...
 
TString fTrackBranchBarrel = ""
 
TString fTrackBranchForward = ""
 
TClonesArray * fTrackBarrel = nullptr
 
TClonesArray * fTrackForward = nullptr
 
TClonesArray * fMcTrack = nullptr
 
Bool_t fBackPropagate = kFALSE
 
Bool_t fIsBarrel = kTRUE
 

Detailed Description

Class for combining all PID track information.

Through the function GetCompleteTrackingSystemInfo() the track information is included in the PidCandidate.

Author
Sarah Gaiser gaise.nosp@m.r@hi.nosp@m.skp.u.nosp@m.ni-b.nosp@m.onn.d.nosp@m.e, HISKP Bonn
Version
1.0
Date
Jan 2021

Definition at line 25 of file PndPidTrackingSystemInfo.h.

Constructor & Destructor Documentation

◆ PndPidTrackingSystemInfo()

PndPidTrackingSystemInfo::PndPidTrackingSystemInfo ( Bool_t  use_default_setup = kTRUE)

Default constructor.

◆ ~PndPidTrackingSystemInfo()

virtual PndPidTrackingSystemInfo::~PndPidTrackingSystemInfo ( )
virtual

Default destructor.

Member Function Documentation

◆ AddDetector()

void PndPidTrackingSystemInfo::AddDetector ( PndPidTrackingDetectorInfo detector_info)
inline

Definition at line 40 of file PndPidTrackingSystemInfo.h.

References fDetectors.

40  {
41  fDetectors.push_back(detector_info);
42  }
std::vector< PndPidTrackingDetectorInfo * > fDetectors

◆ ClassDef()

PndPidTrackingSystemInfo::ClassDef ( PndPidTrackingSystemInfo  ,
 
)
protected

◆ GetCompleteTrackingSystemInfo()

Bool_t PndPidTrackingSystemInfo::GetCompleteTrackingSystemInfo ( Int_t  track_index,
PndPidCandidate pidCand 
)

Include track and tracking detector information in PidCandidate.

Parameters
track_indexIndex of track in TCA.
pidCandPidCandidate belonging to track.
Returns
kTRUE if successful.

Referenced by GetDetectors().

◆ GetDetectors()

std::vector<PndPidTrackingDetectorInfo*> PndPidTrackingSystemInfo::GetDetectors ( )
inline

Definition at line 43 of file PndPidTrackingSystemInfo.h.

References fDetectors, GetCompleteTrackingSystemInfo(), Reset(), SetParContainers(), SetPidHypo(), SetPropagator(), and Setup().

43 { return fDetectors; };
std::vector< PndPidTrackingDetectorInfo * > fDetectors

◆ Reset()

void PndPidTrackingSystemInfo::Reset ( )

Call Reset() of PndTrackingDetectorInfo classes.

Referenced by GetDetectors().

◆ SetDetectors()

void PndPidTrackingSystemInfo::SetDetectors ( std::vector< PndPidTrackingDetectorInfo *>  detectors)
inline

Definition at line 37 of file PndPidTrackingSystemInfo.h.

References fDetectors.

37  {
38  fDetectors = detectors;
39  };
std::vector< PndPidTrackingDetectorInfo * > fDetectors

◆ SetParContainers()

void PndPidTrackingSystemInfo::SetParContainers ( FairRuntimeDb *  db)

Call SetParContainers() of PndTrackingDetectorInfo classes.

Parameters
dbRuntime data base.

Referenced by GetDetectors().

◆ SetPidHypo()

void PndPidTrackingSystemInfo::SetPidHypo ( Int_t  pid_hyp)

Set fPidHyp and call SetPidHypo() of PndTrackingDetectorInfo classes.

Parameters
pid_hypParticle Id hypothesis (pdg particle code).

Referenced by GetDetectors().

◆ SetPropagator()

void PndPidTrackingSystemInfo::SetPropagator ( PndPropagator propagator)

Set fPropagator and call SetPropagator() of PndTrackingDetectorInfo classes.

Parameters
propagatorThe propagator.

Referenced by GetDetectors().

◆ Setup()

Bool_t PndPidTrackingSystemInfo::Setup ( FairRootManager *  manager,
PndPropagator propagator,
PndPidDetectorParams::DetectorParams params 
)

Setup tracking info and tracking detector info.

Parameters
managerNeeded to get all relevant TCAs of event.
propagatorPropagator to be used in track-hit correlation.
paramsSet of detector and track parameters that is passed from PndPidCorrelator.
Returns
kTRUE if successful.

Referenced by GetDetectors().

Member Data Documentation

◆ fDetectors

std::vector<PndPidTrackingDetectorInfo*> PndPidTrackingSystemInfo::fDetectors = {}
protected

Definition at line 87 of file PndPidTrackingSystemInfo.h.

Referenced by AddDetector(), GetDetectors(), and SetDetectors().

◆ fUseDefaultSetup

Bool_t PndPidTrackingSystemInfo::fUseDefaultSetup
protected

Definition at line 86 of file PndPidTrackingSystemInfo.h.


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