PandaRoot
PndPidTrackInfo Class Reference

Base class for accessing PID track information. More...

#include <PndPidTrackInfo.h>

Inheritance diagram for PndPidTrackInfo:
PndPidTrackingSystemInfo

Public Member Functions

 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 (PndPidTrackInfo, 1)
 

Protected Attributes

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

Base class for accessing PID track information.

Through the function GetInfo() 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 26 of file PndPidTrackInfo.h.

Constructor & Destructor Documentation

◆ PndPidTrackInfo()

PndPidTrackInfo::PndPidTrackInfo ( )

Default constructor.

◆ ~PndPidTrackInfo()

virtual PndPidTrackInfo::~PndPidTrackInfo ( )
virtual

Default destructor.

Member Function Documentation

◆ ClassDef()

PndPidTrackInfo::ClassDef ( PndPidTrackInfo  ,
 
)
protected

◆ GetInfo()

Bool_t PndPidTrackInfo::GetInfo ( Int_t  track_index,
PndPidCandidate pidCand 
)

Include track information in PidCandidate.

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

Referenced by Register().

◆ GetMcTrack()

PndMCTrack* PndPidTrackInfo::GetMcTrack ( Int_t  index)

Get track from MC track TClonesArrays.

Parameters
indexIndex of track in TCA.
Returns
The track at "index" in TCA.

Referenced by Register().

◆ GetNTracks()

Int_t PndPidTrackInfo::GetNTracks ( )

Get number of tracks in barrel or forward detector.

Depending on the flag fIsBarrel either the number of tracks in the barrel detector (kTRUE) or in the forward detector (kFALSE) is returned.

Returns
Number of tracks.

Referenced by Register().

◆ GetNTracksTotal()

Int_t PndPidTrackInfo::GetNTracksTotal ( )
inline

Definition at line 43 of file PndPidTrackInfo.h.

References fTrackBarrel, and fTrackForward.

43 { return ((fTrackBarrel != nullptr) ? fTrackBarrel->GetEntriesFast() : 0) + ((fTrackForward != nullptr) ? fTrackForward->GetEntriesFast() : 0); };
TClonesArray * fTrackForward
TClonesArray * fTrackBarrel

◆ GetTrack()

PndTrack* PndPidTrackInfo::GetTrack ( Int_t  index)

Get track from barrel or foward track TClonesArrays.

Depending on the flag fIsBarrel either the track at "index" in the barrel detector (kTRUE) or in the forward detector (kFALSE) is returned.

Parameters
indexIndex of track in TCA.
Returns
The track at "index" in TCA.

Referenced by Register().

◆ Register()

virtual void PndPidTrackInfo::Register ( )
inlinevirtual

Definition at line 45 of file PndPidTrackInfo.h.

References GetInfo(), GetMcTrack(), GetNTracks(), GetTrack(), SetMcTrack(), and SetTrackArrays().

45 {};

◆ SetBackPropagate()

void PndPidTrackInfo::SetBackPropagate ( Bool_t  back_propagate)
inline

Definition at line 38 of file PndPidTrackInfo.h.

References fBackPropagate.

38 { fBackPropagate = back_propagate; };

◆ SetIsBarrel()

void PndPidTrackInfo::SetIsBarrel ( Bool_t  is_barrel)
inline

Definition at line 41 of file PndPidTrackInfo.h.

References fIsBarrel.

41 { fIsBarrel = is_barrel; };

◆ SetMcTrack()

Bool_t PndPidTrackInfo::SetMcTrack ( FairRootManager *  manager)

Set McTrack TClonesArray.

Parameters
managerNeeded to get MC track TCA of event.
Returns
kTRUE if TCA set successfully.

Referenced by Register().

◆ SetPidHypo()

void PndPidTrackInfo::SetPidHypo ( Int_t  pid_hyp)
inline

Definition at line 36 of file PndPidTrackInfo.h.

References fPidHyp.

36 { fPidHyp = pid_hyp; };
Int_t fPidHyp
Particle Id hypothesis (pdg particle code)

◆ SetPropagator()

void PndPidTrackInfo::SetPropagator ( PndPropagator propagator)
inline

Definition at line 35 of file PndPidTrackInfo.h.

References fPropagator.

35 { fPropagator = propagator; };
PndPropagator * fPropagator
The propagator.

◆ SetTrackArrays()

Bool_t PndPidTrackInfo::SetTrackArrays ( FairRootManager *  manager)

Referenced by Register().

◆ SetTrackBranchBarrel()

void PndPidTrackInfo::SetTrackBranchBarrel ( TString  track_branch)
inline

Definition at line 39 of file PndPidTrackInfo.h.

References fTrackBranchBarrel.

39 { fTrackBranchBarrel = track_branch; };
TString fTrackBranchBarrel

◆ SetTrackBranchForward()

void PndPidTrackInfo::SetTrackBranchForward ( TString  track_branch)
inline

Definition at line 40 of file PndPidTrackInfo.h.

References fTrackBranchForward.

40 { fTrackBranchForward = track_branch; };
TString fTrackBranchForward

◆ SetUsePropagator()

void PndPidTrackInfo::SetUsePropagator ( Bool_t  use_propagator)
inline

Definition at line 34 of file PndPidTrackInfo.h.

References fUsePropagator.

34 { fUsePropagator = use_propagator; };
Bool_t fUsePropagator
kTRUE to use propagator like PndGeanePro.

◆ SetVerbose()

void PndPidTrackInfo::SetVerbose ( Int_t  verbose)
inline

Definition at line 37 of file PndPidTrackInfo.h.

References fVerbose.

37 { fVerbose = verbose; };
Int_t fVerbose
Verbosity level.

Member Data Documentation

◆ fBackPropagate

Bool_t PndPidTrackInfo::fBackPropagate = kFALSE
protected

Definition at line 99 of file PndPidTrackInfo.h.

Referenced by SetBackPropagate().

◆ fIsBarrel

Bool_t PndPidTrackInfo::fIsBarrel = kTRUE
protected

Definition at line 100 of file PndPidTrackInfo.h.

Referenced by SetIsBarrel().

◆ fMcTrack

TClonesArray* PndPidTrackInfo::fMcTrack = nullptr
protected

Definition at line 98 of file PndPidTrackInfo.h.

◆ fPidHyp

Int_t PndPidTrackInfo::fPidHyp = 0
protected

Particle Id hypothesis (pdg particle code)

Definition at line 91 of file PndPidTrackInfo.h.

Referenced by SetPidHypo().

◆ fPropagator

PndPropagator* PndPidTrackInfo::fPropagator = nullptr
protected

The propagator.

Definition at line 90 of file PndPidTrackInfo.h.

Referenced by SetPropagator().

◆ fTrackBarrel

TClonesArray* PndPidTrackInfo::fTrackBarrel = nullptr
protected

Definition at line 96 of file PndPidTrackInfo.h.

Referenced by GetNTracksTotal().

◆ fTrackBranchBarrel

TString PndPidTrackInfo::fTrackBranchBarrel = ""
protected

Definition at line 94 of file PndPidTrackInfo.h.

Referenced by SetTrackBranchBarrel().

◆ fTrackBranchForward

TString PndPidTrackInfo::fTrackBranchForward = ""
protected

Definition at line 95 of file PndPidTrackInfo.h.

Referenced by SetTrackBranchForward().

◆ fTrackForward

TClonesArray* PndPidTrackInfo::fTrackForward = nullptr
protected

Definition at line 97 of file PndPidTrackInfo.h.

Referenced by GetNTracksTotal().

◆ fUsePropagator

Bool_t PndPidTrackInfo::fUsePropagator = kFALSE
protected

kTRUE to use propagator like PndGeanePro.

Definition at line 89 of file PndPidTrackInfo.h.

Referenced by SetUsePropagator().

◆ fVerbose

Int_t PndPidTrackInfo::fVerbose = 0
protected

Verbosity level.

Definition at line 92 of file PndPidTrackInfo.h.

Referenced by SetVerbose().


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