CbmRoot
Loading...
Searching...
No Matches
CbmTofMergeMcPoints.h
Go to the documentation of this file.
1/* Copyright (C) 2016 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
12#ifndef CBMTOFMERGEMCPOINTS_H_
13#define CBMTOFMERGEMCPOINTS_H_
14
15#include "FairTask.h"
16class TClonesArray;
17
18#include <map>
19#include <vector>
20
23
24class CbmTofMergeMcPoints : public FairTask {
25public:
30
34 virtual ~CbmTofMergeMcPoints();
35
39 virtual InitStatus Init();
40
44 virtual void Exec(Option_t* opt);
45
49 virtual void Finish();
50
51private:
56
57 void MergeRealisticTofPoints(const TClonesArray* tracks, const TClonesArray* points, TClonesArray* realisticPoints,
58 TClonesArray* pointsMatches);
59
62
63 TClonesArray* fMcTracksColl; // MC tracks
64 TClonesArray* fTofPointsColl; // CbmTofPoint array
65
66 std::map<Int_t, std::vector<Int_t>> fTofPntTrkMap; // map of TrkId + vector of PntId
67 TClonesArray* fRealTofPoints; // CbmTofPoint array for realistic TOF MC: 1 per (Trk, det) pair
68 TClonesArray* fTofRealPntMatches; // CbmMatch array for MC TOF Pnt -> Realistic MC TOF Point
69
72
74};
75
76#endif /* CBMTOFMERGEMCPOINTS_H_ */
TClonesArray * tracks
TClonesArray * points
CbmTofMergeMcPoints & operator=(const CbmTofMergeMcPoints &)
virtual void Finish()
Derived from FairTask.
CbmTofMergeMcPoints()
Constructor.
CbmTofMergeMcPoints(const CbmTofMergeMcPoints &)
TClonesArray * fTofRealPntMatches
TClonesArray * fMcTracksColl
virtual ~CbmTofMergeMcPoints()
Destructor.
virtual void Exec(Option_t *opt)
Derived from FairTask.
virtual InitStatus Init()
Derived from FairTask.
void ReadAndCreateDataBranches()
Read and create data branches.
CbmTofGeoHandler * fGeoHandler
TClonesArray * fRealTofPoints
ClassDef(CbmTofMergeMcPoints, 1)
std::map< Int_t, std::vector< Int_t > > fTofPntTrkMap
TClonesArray * fTofPointsColl
void MergeRealisticTofPoints(const TClonesArray *tracks, const TClonesArray *points, TClonesArray *realisticPoints, TClonesArray *pointsMatches)
CbmTofDetectorId * fTofId