Base class for accessing PID detector information.
More...
#include <PndPidDetectorInfo.h>
|
| PndPidDetectorInfo () |
| Default constructor. More...
|
|
virtual | ~PndPidDetectorInfo () |
|
virtual Int_t | SetDetectorHits (FairRootManager *manager)=0 |
| Default destructor. More...
|
|
virtual Bool_t | PreprocessTracks (const Int_t, PndTrack *) |
| Preprocess current track object. More...
|
|
virtual Bool_t | GetInfo (PndTrack *track, PndPidCandidate *pidCand)=0 |
| Include detector information in charged PidCandidate. More...
|
|
virtual void | GetNeutralInfo (Int_t, TClonesArray *) |
| Include detector information in neutral PidCandidate. More...
|
|
virtual void | ActivateDebugNtuple (Bool_t debug_mode) |
| Set debug mode of detector. More...
|
|
void | SetDetectorMode (Short_t detector_mode) |
|
void | SetUsePropagator (Bool_t use_propagator) |
|
void | SetPropagator (PndPropagator *propagator) |
|
void | SetIdeal (Bool_t is_ideal) |
|
void | SetPidHypo (Int_t pid_hyp) |
|
void | SetVerbose (Int_t verbose) |
|
void | SetCorrPar (PndPidCorrPar *pid_corr_par) |
|
virtual Bool_t | SetParContainers (FairRuntimeDb *) |
|
TNtuple * | GetDetCorr () |
|
Int_t | GetDetectorMode () |
|
void | Finish () |
|
virtual void | Reset () |
|
virtual void | Register () |
|
virtual Bool_t | Setup (FairRootManager *, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params) |
| Setup detector info. More...
|
|
virtual Bool_t | Propagate (TVector3 pos, FairTrackParH *helix, FairTrackParH *res, Int_t pdg_code, Int_t direction=1) |
| Call propagator to propagate track to detector. More...
|
|
virtual Bool_t | Propagate (std::string volume, FairTrackParH *helix, FairTrackParH *res, Int_t pdg_code) |
| Call propagator to propagate track to detector. More...
|
|
Base class for accessing PID detector information.
This class provides attributes and their setters that all detectors share. Through the function GetInfo() each detectors information is included in the PidCandidate. The specific implementation of GetInfo() varies for each detector. The same holds true for SetDetectorHits().
- 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 45 of file PndPidDetectorInfo.h.
◆ PndPidDetectorInfo()
PndPidDetectorInfo::PndPidDetectorInfo |
( |
| ) |
|
◆ ~PndPidDetectorInfo()
virtual PndPidDetectorInfo::~PndPidDetectorInfo |
( |
| ) |
|
|
inlinevirtual |
◆ ActivateDebugNtuple()
virtual void PndPidDetectorInfo::ActivateDebugNtuple |
( |
Bool_t |
debug_mode | ) |
|
|
inlinevirtual |
◆ ClassDef()
◆ Finish()
void PndPidDetectorInfo::Finish |
( |
| ) |
|
◆ GetDetCorr()
TNtuple* PndPidDetectorInfo::GetDetCorr |
( |
| ) |
|
|
inline |
◆ GetDetectorMode()
Int_t PndPidDetectorInfo::GetDetectorMode |
( |
| ) |
|
|
inline |
◆ GetInfo()
Include detector information in charged PidCandidate.
Correlate given track and detector hit. The specific implementation is given in the detector subclasses.
- Parameters
-
track | One of the detected tracks in current event. |
pidCand | PidCandidate belonging to track. |
- Returns
- kTRUE if correlation successful.
Implemented in PndPidEmcInfo, PndPidCalorimeterInfo, PndBSPidCalorimeterInfo, PndPidFtsInfo, PndPidSttInfo, PndPidDrcInfo, PndPidDskInfo, PndPidFtofInfo, PndPidRichInfo, PndPidTofInfo, PndPidMvdInfo, PndPidFmdtInfo, PndPidMdtInfo, and PndPidGemInfo.
◆ GetNeutralInfo()
virtual void PndPidDetectorInfo::GetNeutralInfo |
( |
Int_t |
, |
|
|
TClonesArray * |
|
|
) |
| |
|
inlinevirtual |
◆ PreprocessTracks()
virtual Bool_t PndPidDetectorInfo::PreprocessTracks |
( |
const Int_t |
, |
|
|
PndTrack * |
|
|
) |
| |
|
inlinevirtual |
◆ Propagate() [1/2]
virtual Bool_t PndPidDetectorInfo::Propagate |
( |
TVector3 |
pos, |
|
|
FairTrackParH * |
helix, |
|
|
FairTrackParH * |
res, |
|
|
Int_t |
pdg_code, |
|
|
Int_t |
direction = 1 |
|
) |
| |
|
virtual |
Call propagator to propagate track to detector.
- Parameters
-
pos | Best guess of hit position |
helix | Incoming track |
pdg_code | PDG code of the particle which is propagated |
direction | If -1 propagate in backwards direction |
◆ Propagate() [2/2]
virtual Bool_t PndPidDetectorInfo::Propagate |
( |
std::string |
volume, |
|
|
FairTrackParH * |
helix, |
|
|
FairTrackParH * |
res, |
|
|
Int_t |
pdg_code |
|
) |
| |
|
virtual |
Call propagator to propagate track to detector.
- Parameters
-
volume | Volume to which particle is propagated |
helix | Incoming track |
pdg_code | PDG code of the particle which is propagated |
◆ Register()
virtual void PndPidDetectorInfo::Register |
( |
| ) |
|
|
inlinevirtual |
◆ Reset()
virtual void PndPidDetectorInfo::Reset |
( |
| ) |
|
|
inlinevirtual |
◆ SetCorrPar()
void PndPidDetectorInfo::SetCorrPar |
( |
PndPidCorrPar * |
pid_corr_par | ) |
|
|
inline |
◆ SetDetectorHits()
virtual Int_t PndPidDetectorInfo::SetDetectorHits |
( |
FairRootManager * |
manager | ) |
|
|
pure virtual |
Default destructor.
Set detector hit TClonesArrays.
Fill detector hit TCAs and adjust detector mode. The specific implementation is given in the detector subclasses.
- Parameters
-
manager | Needed to get detector hit TCAs of event. |
- Returns
- Adjusted detector mode.
Implemented in PndPidCalorimeterInfo, PndPidEmcInfo, PndPidMuonSystemInfo, PndBSPidCalorimeterInfo, PndPidFtsInfo, PndPidSttInfo, PndPidDrcInfo, PndPidDskInfo, PndPidFtofInfo, PndPidRichInfo, PndPidTofInfo, PndPidMvdInfo, and PndPidGemInfo.
◆ SetDetectorMode()
void PndPidDetectorInfo::SetDetectorMode |
( |
Short_t |
detector_mode | ) |
|
|
inline |
◆ SetIdeal()
void PndPidDetectorInfo::SetIdeal |
( |
Bool_t |
is_ideal | ) |
|
|
inline |
◆ SetParContainers()
virtual Bool_t PndPidDetectorInfo::SetParContainers |
( |
FairRuntimeDb * |
| ) |
|
|
inlinevirtual |
◆ SetPidHypo()
void PndPidDetectorInfo::SetPidHypo |
( |
Int_t |
pid_hyp | ) |
|
|
inline |
◆ SetPropagator()
void PndPidDetectorInfo::SetPropagator |
( |
PndPropagator * |
propagator | ) |
|
|
inline |
◆ Setup()
Setup detector info.
- Parameters
-
manager | Needed to get all relevant TCAs of event. |
propagator | Propagator to be used in track-hit correlation. If the propagator has already been specified it will not be replaced by calling Setup(). |
params | Set of detector and track parameters that is passed from PndPidCorrelator. |
- Returns
- kTRUE if successful.
Reimplemented in PndPidCalorimeterInfo, PndPidEmcInfo, PndPidMuonSystemInfo, PndBSPidCalorimeterInfo, PndPidFtsInfo, PndPidSttInfo, PndPidDrcInfo, PndPidDskInfo, PndPidFtofInfo, PndPidRichInfo, PndPidTofInfo, PndPidMvdInfo, and PndPidTrackingDetectorInfo.
◆ SetUsePropagator()
void PndPidDetectorInfo::SetUsePropagator |
( |
Bool_t |
use_propagator | ) |
|
|
inline |
◆ SetVerbose()
void PndPidDetectorInfo::SetVerbose |
( |
Int_t |
verbose | ) |
|
|
inline |
◆ fCorrPar
◆ fDebugMode
Bool_t PndPidDetectorInfo::fDebugMode = kTRUE |
|
protected |
◆ fDetCorr
TNtuple* PndPidDetectorInfo::fDetCorr = nullptr |
|
protected |
◆ fDetectorParams
◆ fDetMode
Short_t PndPidDetectorInfo::fDetMode = -1 |
|
protected |
Detector Mode.
- -1: not set
- 0: don't include detector
- 1: * for MVD, STT, FTS - use ...Point
- 2: use ...Hit, DskParticle, EmcCluster
- 3: for EMC - use EmcBumps
Definition at line 149 of file PndPidDetectorInfo.h.
◆ fGLength
Float_t PndPidDetectorInfo::fGLength = -1000 |
|
protected |
◆ fIdeal
Bool_t PndPidDetectorInfo::fIdeal = kFALSE |
|
protected |
◆ fPidHyp
Int_t PndPidDetectorInfo::fPidHyp = 0 |
|
protected |
◆ fPropagator
◆ fUsePropagator
Bool_t PndPidDetectorInfo::fUsePropagator = kFALSE |
|
protected |
◆ fVerbose
Int_t PndPidDetectorInfo::fVerbose = 0 |
|
protected |
The documentation for this class was generated from the following file: