CbmRoot
CbmTofMergeMcPoints.h
Go to the documentation of this file.
1 
8 #ifndef CBMTOFMERGEMCPOINTS_H_
9 #define CBMTOFMERGEMCPOINTS_H_
10 
11 #include "FairTask.h"
12 class TClonesArray;
13 
14 #include <map>
15 #include <vector>
16 
17 class CbmTofGeoHandler;
18 class CbmTofDetectorId;
19 
20 class CbmTofMergeMcPoints : public FairTask {
21 public:
26 
30  virtual ~CbmTofMergeMcPoints();
31 
35  virtual InitStatus Init();
36 
40  virtual void Exec(Option_t* opt);
41 
45  virtual void Finish();
46 
47 private:
52 
53  void MergeRealisticTofPoints(const TClonesArray* tracks,
54  const TClonesArray* points,
55  TClonesArray* realisticPoints,
56  TClonesArray* pointsMatches);
57 
60 
61  TClonesArray* fMcTracksColl; // MC tracks
62  TClonesArray* fTofPointsColl; // CbmTofPoint array
63 
64  std::map<Int_t, std::vector<Int_t>>
65  fTofPntTrkMap; // map of TrkId + vector of PntId
66  TClonesArray*
67  fRealTofPoints; // CbmTofPoint array for realistic TOF MC: 1 per (Trk, det) pair
68  TClonesArray*
69  fTofRealPntMatches; // CbmMatch array for MC TOF Pnt -> Realistic MC TOF Point
70 
73 
75 };
76 
77 #endif /* CBMTOFMERGEMCPOINTS_H_ */
CbmTofMergeMcPoints::ClassDef
ClassDef(CbmTofMergeMcPoints, 1)
CbmTofMergeMcPoints::Init
virtual InitStatus Init()
Derived from FairTask.
Definition: CbmTofMergeMcPoints.cxx:50
CbmTofMergeMcPoints::fTofPntTrkMap
std::map< Int_t, std::vector< Int_t > > fTofPntTrkMap
Definition: CbmTofMergeMcPoints.h:65
CbmTofMergeMcPoints::fTofId
CbmTofDetectorId * fTofId
Definition: CbmTofMergeMcPoints.h:59
CbmTofMergeMcPoints::CbmTofMergeMcPoints
CbmTofMergeMcPoints(const CbmTofMergeMcPoints &)
CbmTofMergeMcPoints
Definition: CbmTofMergeMcPoints.h:20
tracks
TClonesArray * tracks
Definition: Analyze_matching.h:17
CbmTofGeoHandler
Definition: CbmTofGeoHandler.h:30
CbmTofMergeMcPoints::MergeRealisticTofPoints
void MergeRealisticTofPoints(const TClonesArray *tracks, const TClonesArray *points, TClonesArray *realisticPoints, TClonesArray *pointsMatches)
Definition: CbmTofMergeMcPoints.cxx:130
CbmTofMergeMcPoints::CbmTofMergeMcPoints
CbmTofMergeMcPoints()
Constructor.
Definition: CbmTofMergeMcPoints.cxx:28
CbmTofMergeMcPoints::fGeoHandler
CbmTofGeoHandler * fGeoHandler
Definition: CbmTofMergeMcPoints.h:58
CbmTofMergeMcPoints::fMcTracksColl
TClonesArray * fMcTracksColl
Definition: CbmTofMergeMcPoints.h:61
points
TClonesArray * points
Definition: Analyze_matching.h:18
CbmTofMergeMcPoints::fTofPointsColl
TClonesArray * fTofPointsColl
Definition: CbmTofMergeMcPoints.h:62
CbmTofMergeMcPoints::ReadAndCreateDataBranches
void ReadAndCreateDataBranches()
Read and create data branches.
Definition: CbmTofMergeMcPoints.cxx:97
CbmTofMergeMcPoints::Finish
virtual void Finish()
Derived from FairTask.
Definition: CbmTofMergeMcPoints.cxx:95
CbmTofMergeMcPoints::Exec
virtual void Exec(Option_t *opt)
Derived from FairTask.
Definition: CbmTofMergeMcPoints.cxx:83
CbmTofDetectorId
Definition: CbmTofDetectorId.h:66
CbmTofMergeMcPoints::fRealTofPoints
TClonesArray * fRealTofPoints
Definition: CbmTofMergeMcPoints.h:67
CbmTofMergeMcPoints::operator=
CbmTofMergeMcPoints & operator=(const CbmTofMergeMcPoints &)
CbmTofMergeMcPoints::~CbmTofMergeMcPoints
virtual ~CbmTofMergeMcPoints()
Destructor.
Definition: CbmTofMergeMcPoints.cxx:38
CbmTofMergeMcPoints::fTofRealPntMatches
TClonesArray * fTofRealPntMatches
Definition: CbmTofMergeMcPoints.h:69