PandaRoot
PndPidTrackingSystemInfo.h
Go to the documentation of this file.
1 #ifndef PID_TRACKING_INFO_H
2 #define PID_TRACKING_INFO_H
3 
4 #include "FairPropagator.h"
5 #include "PndPropagator.h"
6 #include "FairGeane.h"
7 #include "FairRootManager.h"
8 #include "FairRuntimeDb.h"
9 #include "FairLogger.h"
10 
11 #include "PndPidCandidate.h"
12 #include "PndPidTrackInfo.h"
14 
15 class TGeant3;
16 
26  public:
30  PndPidTrackingSystemInfo(Bool_t use_default_setup = kTRUE);
31 
35  virtual ~PndPidTrackingSystemInfo();
36 
37  void SetDetectors(std::vector<PndPidTrackingDetectorInfo*> detectors) {
38  fDetectors = detectors;
39  };
40  void AddDetector(PndPidTrackingDetectorInfo* detector_info) {
41  fDetectors.push_back(detector_info);
42  }
43  std::vector<PndPidTrackingDetectorInfo*> GetDetectors() { return fDetectors; };
44 
48  void Reset();
49 
54  void SetPidHypo(Int_t pid_hyp);
55 
60  void SetPropagator(PndPropagator *propagator);
61 
66  void SetParContainers(FairRuntimeDb *db);
67 
75  Bool_t Setup(FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params);
76 
83  Bool_t GetCompleteTrackingSystemInfo(Int_t track_index, PndPidCandidate *pidCand);
84 
85  protected:
87  std::vector<PndPidTrackingDetectorInfo*> fDetectors = {};
88 
90 };
91 
92 #endif // PID_TRACKING_INFO_H
PndPidTrackingSystemInfo(Bool_t use_default_setup=kTRUE)
Default constructor.
void AddDetector(PndPidTrackingDetectorInfo *detector_info)
std::vector< PndPidTrackingDetectorInfo * > GetDetectors()
void SetPropagator(PndPropagator *propagator)
Set fPropagator and call SetPropagator() of PndTrackingDetectorInfo classes.
void Reset()
Call Reset() of PndTrackingDetectorInfo classes.
Base class for accessing PID track information.
Base class for accessing PID detector information of tracking system (MVD, STT, GEM, FTS).
ClassDef(PndPidTrackingSystemInfo, 1)
Class for combining all PID track information.
virtual ~PndPidTrackingSystemInfo()
Default destructor.
Bool_t GetCompleteTrackingSystemInfo(Int_t track_index, PndPidCandidate *pidCand)
Include track and tracking detector information in PidCandidate.
void SetDetectors(std::vector< PndPidTrackingDetectorInfo *> detectors)
void SetPidHypo(Int_t pid_hyp)
Set fPidHyp and call SetPidHypo() of PndTrackingDetectorInfo classes.
Propagator interface class for PandaRoot.
Definition: PndPropagator.h:52
Bool_t Setup(FairRootManager *manager, PndPropagator *propagator, PndPidDetectorParams::DetectorParams *params)
Setup tracking info and tracking detector info.
std::vector< PndPidTrackingDetectorInfo * > fDetectors
void SetParContainers(FairRuntimeDb *db)
Call SetParContainers() of PndTrackingDetectorInfo classes.