1 #ifndef PID_CORRELATOR_H 2 #define PID_CORRELATOR_H 15 #include "TClonesArray.h" 17 #include "FairLogger.h" 19 #include "FairRootManager.h" 20 #include "FairGeane.h" 43 virtual void Exec(Option_t *option);
44 virtual InitStatus
Init();
50 Bool_t use_default_setup = kTRUE);
99 FairRootManager *
fManager = FairRootManager::Instance();
void SetPropagator(PndPropagator *propagator=nullptr)
Set propagator for all necessary propagation of tracks.
friend class PidCorrelatorHelper
needed for unit tests
Bool_t fMdtRefit
Use MDT Kalman refit propagation.
Int_t fEventCounter
Event number.
void SetBarrelDetectors(std::vector< PndPidDetectorInfo *> barrel_detectors)
virtual void Exec(Option_t *option)
Bool_t fFast
kFALSE: normal; kTRUE: no correlation/extrapolation/neutral
void SetUsePropagator(Bool_t use_propagator=kTRUE)
PndPropagator * fPropagator
Propagator to be used.
virtual void SetParContainers()
Bool_t fCorrErrorProp
Error propagation in correlation.
TFile * fFileDebugNtuples
File for debug ntuples.
TClonesArray * fPidNeutralCand
PndPidCandidate TCA for neutral particles.
void SetBarrelTrackBranch(TString branch)
PndPidCorrPar * fCorrPar
Correlation parameters.
FairRootManager * fManager
Base class for accessing PID detector information of calorimeter system (EMC, FSC).
virtual ~PndPidCorrelator()
Default destructor.
TString fTrackBranchBarrel
Options to choose PndTrack branches (barrel)
void AddBarrelDetector(PndPidDetectorInfo *detector_info)
TString fDebugDir
Ntuple output directory.
void SetPidHyp(Int_t pid)
PndPidCorrelator(const char *name, const char *title="Pnd Task", Bool_t use_default_setup=kTRUE)
Constrcutor setting name and title.
Int_t FindIdealPidHyp(std::vector< FairLink > *mcTrackLinks)
Find ideal PID hypothesis from MC information.
void SetMdtRefit(Bool_t mdt)
Bool_t fBackPropagate
kFALSE -> do not propagate to IP; kTRUE -> propagate to IP
Base class for accessing PID detector information of tracking system (MVD, STT, GEM, FTS).
TString fTrackBranchForward
Options to choose PndTrack branches (forward)
PndPidTrackingSystemInfo * fTrackingSystemInfo
Class to access pid information from tracking system.
Bool_t fDoNeutralCand
Create neutral candidates.
void SetDebugMode(Bool_t debug)
Int_t FindPidHyp(Int_t pid_hyp)
Find PID hypothesis.
void SetTrackingSystemInfo(PndPidTrackingSystemInfo *tracking_info)
PndPidDetectorParams::DetectorParams fDetectorParams
void SetupDetectorParams()
TString fTrackOutBranch
Options to choose output branch.
void AddTrackingDetector(PndPidTrackingDetectorInfo *detector_info)
void SetDebugFilename(TString filename)
PndPidCandidate * AddChargedCandidate(PndPidCandidate *cand)
Add charged candidate to charged candidate TCA.
void AddForwardDetector(PndPidDetectorInfo *detector_info)
ClassDef(PndPidCorrelator, 4)
static Bool_t fHasPrimary
Int_t fPidHyp
particle hypothesis for propagation
void ConstructChargedCandidates(std::vector< PndPidDetectorInfo *> detectors, TString track_branch)
Construct PidCandidates by calling GetInfo() on DetectorInfo and TrackInfo classes.
Bool_t fDebugMode
If true fill ntuples for debug.
Class for combining all PID track information.
Bool_t fFlagCut
kFALSE: all the tracks; kTRUE: store tracks only if flag>0
TClonesArray * fPidChargedCand
PndPidCandidate TCA for charged particles.
void DefaultDetectorSetup()
void SetCorrErrProp(Bool_t err)
std::vector< PndPidDetectorInfo * > fBarrelDetectors
Vector of barrel detectors.
void SetBackPropagate(Bool_t opt=kTRUE)
Bool_t fUsePropagator
Use propagation.
Bool_t fIdealHyp
Flag to use MC particle hypothesis.
Base class for accessing PID detector information.
void SetTrackingDetectors(std::vector< PndPidTrackingDetectorInfo *> tracking_detectors)
Bool_t fIdeal
Ideal Correlation.
PndPidCalorimeterInfo * fCalorimeterInfo
Class to access EMC/FSC pid information.
Propagator interface class for PandaRoot.
void SetCalorimeterInfo(PndPidCalorimeterInfo *detector_info)
void SetForwardTrackBranch(TString branch)
void SetIdealHyp(Bool_t opt=kTRUE)
virtual InitStatus Init()
void SetForwardDetectors(std::vector< PndPidDetectorInfo *> forward_detectors)
The PID Correlator class.
void SetFast(Bool_t fast)
void SetFlagCut(Bool_t opt=kTRUE)
void SetOption(Option_t *option=" ")
void SetOutputBranch(TString branch)
TString fDebugFile
Ntuple output file.
std::vector< PndPidDetectorInfo * > fForwardDetectors
Vector of forward detectors.
Bool_t fUseDefaultDetectorSetup
If true DefaultDetectorSetup() is called in constructor.