CbmRoot
Loading...
Searching...
No Matches
CbmLitFindGlobalTracksIdeal.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2016 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
12#ifndef CBMLITFINDGLOBALTRACKSIDEAL_H_
13#define CBMLITFINDGLOBALTRACKSIDEAL_H_
14
15#include "FairTask.h"
17
18#include <map>
19
20class TClonesArray;
21
36class CbmLitFindGlobalTracksIdeal : public FairTask {
37 public:
38 /*
39 * \brief Default constructor.
40 */
42
43 /*
44 * \brief Destructor.
45 */
47
51 virtual InitStatus Init();
52
56 virtual void Exec(Option_t* opt);
57
58 private:
62 virtual void Finish();
63
67 void ReadDataBranches();
68
72 void FillTrackMap(std::map<Int_t, Int_t>& mcMap, const TClonesArray* matches);
73
77 void FillMapTof();
78
82 void CreateGlobalTracks();
83
85
86 // Pointers to data arrays
87 TClonesArray* fMCTracks; // CbmMCTrack
88 TClonesArray* fStsMatches; // CbmTrackMatchNew
89 TClonesArray* fMuchMatches; // CbmTrackMatchNew
90 TClonesArray* fTrdMatches; // CbmTrackMatchNew
91 TClonesArray* fTofMCPoints; // CbmTofPoint
92 TClonesArray* fTofHits; // CbmTofHit
93 TClonesArray* fTofHitsMatches; //
94 TClonesArray* fGlobalTracks; //output: CbmGlobalTrack
95
96 // Maps for reconstructed tracks
97 // <MC track index, reconstructed track index>
98 std::map<Int_t, Int_t> fMcStsMap; // STS
99 std::map<Int_t, Int_t> fMcTrdMap; // TRD
100 std::map<Int_t, Int_t> fMcMuchMap; // MUCH
101 std::map<Int_t, Int_t> fMcTofMap; //TOF
102
103 Int_t fEventNo; //event counter
104
107
109};
110
111#endif /* CBMLITFINDGLOBALTRACKSIDEAL_H_ */
Helper class to access detector presence.
Helper class to access detector presence.
FairTask for ideal global track reconstruction.
void ReadDataBranches()
Read necessary data branches from the input data files.
virtual void Exec(Option_t *opt)
Derived from FairTask.
ClassDef(CbmLitFindGlobalTracksIdeal, 1)
virtual InitStatus Init()
Derived from FairTask.
CbmLitFindGlobalTracksIdeal(const CbmLitFindGlobalTracksIdeal &)
virtual void Finish()
Derived from FairTask.
void CreateGlobalTracks()
Create output CbmGlobalTracks and write them to output array.
void FillMapTof()
Fill map from <MC track index> to <TOF hit index>.
void FillTrackMap(std::map< Int_t, Int_t > &mcMap, const TClonesArray *matches)
Fill map from <MC track index> to <reconstructed track index>.
CbmLitFindGlobalTracksIdeal & operator=(const CbmLitFindGlobalTracksIdeal &)