CbmRoot
CbmLitFindGlobalTracksIdeal.h
Go to the documentation of this file.
1 
8 #ifndef CBMLITFINDGLOBALTRACKSIDEAL_H_
9 #define CBMLITFINDGLOBALTRACKSIDEAL_H_
10 
11 #include "FairTask.h"
13 
14 #include <map>
15 
16 class TClonesArray;
17 
32 class CbmLitFindGlobalTracksIdeal : public FairTask {
33 public:
34  /*
35  * \brief Default constructor.
36  */
38 
39  /*
40  * \brief Destructor.
41  */
43 
47  virtual InitStatus Init();
48 
52  virtual void Exec(Option_t* opt);
53 
54 private:
58  virtual void Finish();
59 
63  void ReadDataBranches();
64 
68  void FillTrackMap(std::map<Int_t, Int_t>& mcMap, const TClonesArray* matches);
69 
73  void FillMapTof();
74 
78  void CreateGlobalTracks();
79 
81 
82  // Pointers to data arrays
83  TClonesArray* fMCTracks; // CbmMCTrack
84  TClonesArray* fStsMatches; // CbmTrackMatchNew
85  TClonesArray* fMuchMatches; // CbmTrackMatchNew
86  TClonesArray* fTrdMatches; // CbmTrackMatchNew
87  TClonesArray* fTofMCPoints; // CbmTofPoint
88  TClonesArray* fTofHits; // CbmTofHit
89  TClonesArray* fTofHitsMatches; //
90  TClonesArray* fGlobalTracks; //output: CbmGlobalTrack
91 
92  // Maps for reconstructed tracks
93  // <MC track index, reconstructed track index>
94  std::map<Int_t, Int_t> fMcStsMap; // STS
95  std::map<Int_t, Int_t> fMcTrdMap; // TRD
96  std::map<Int_t, Int_t> fMcMuchMap; // MUCH
97  std::map<Int_t, Int_t> fMcTofMap; //TOF
98 
99  Int_t fEventNo; //event counter
100 
103 
105 };
106 
107 #endif /* CBMLITFINDGLOBALTRACKSIDEAL_H_ */
CbmLitFindGlobalTracksIdeal::fMcTrdMap
std::map< Int_t, Int_t > fMcTrdMap
Definition: CbmLitFindGlobalTracksIdeal.h:95
CbmLitFindGlobalTracksIdeal::fStsMatches
TClonesArray * fStsMatches
Definition: CbmLitFindGlobalTracksIdeal.h:84
CbmLitFindGlobalTracksIdeal::Finish
virtual void Finish()
Derived from FairTask.
Definition: CbmLitFindGlobalTracksIdeal.cxx:65
CbmLitFindGlobalTracksIdeal::fEventNo
Int_t fEventNo
Definition: CbmLitFindGlobalTracksIdeal.h:99
CbmLitFindGlobalTracksIdeal::~CbmLitFindGlobalTracksIdeal
virtual ~CbmLitFindGlobalTracksIdeal()
Definition: CbmLitFindGlobalTracksIdeal.cxx:41
CbmLitFindGlobalTracksIdeal::Exec
virtual void Exec(Option_t *opt)
Derived from FairTask.
Definition: CbmLitFindGlobalTracksIdeal.cxx:52
CbmLitFindGlobalTracksIdeal::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmLitFindGlobalTracksIdeal.h:90
CbmLitFindGlobalTracksIdeal::fMcStsMap
std::map< Int_t, Int_t > fMcStsMap
Definition: CbmLitFindGlobalTracksIdeal.h:94
CbmLitFindGlobalTracksIdeal::operator=
CbmLitFindGlobalTracksIdeal & operator=(const CbmLitFindGlobalTracksIdeal &)
CbmLitDetectorSetup
Helper class to access detector presence.
Definition: CbmLitDetectorSetup.h:22
CbmLitFindGlobalTracksIdeal::fTofMCPoints
TClonesArray * fTofMCPoints
Definition: CbmLitFindGlobalTracksIdeal.h:87
CbmLitFindGlobalTracksIdeal::ClassDef
ClassDef(CbmLitFindGlobalTracksIdeal, 1)
CbmLitFindGlobalTracksIdeal::Init
virtual InitStatus Init()
Derived from FairTask.
Definition: CbmLitFindGlobalTracksIdeal.cxx:43
CbmLitFindGlobalTracksIdeal::fTrdMatches
TClonesArray * fTrdMatches
Definition: CbmLitFindGlobalTracksIdeal.h:86
CbmLitFindGlobalTracksIdeal::fMuchMatches
TClonesArray * fMuchMatches
Definition: CbmLitFindGlobalTracksIdeal.h:85
CbmLitFindGlobalTracksIdeal::fTofHitsMatches
TClonesArray * fTofHitsMatches
Definition: CbmLitFindGlobalTracksIdeal.h:89
CbmLitFindGlobalTracksIdeal::fMCTracks
TClonesArray * fMCTracks
Definition: CbmLitFindGlobalTracksIdeal.h:83
CbmLitFindGlobalTracksIdeal::fMcTofMap
std::map< Int_t, Int_t > fMcTofMap
Definition: CbmLitFindGlobalTracksIdeal.h:97
CbmLitFindGlobalTracksIdeal::CbmLitFindGlobalTracksIdeal
CbmLitFindGlobalTracksIdeal(const CbmLitFindGlobalTracksIdeal &)
CbmLitFindGlobalTracksIdeal::fTofHits
TClonesArray * fTofHits
Definition: CbmLitFindGlobalTracksIdeal.h:88
CbmLitFindGlobalTracksIdeal::fDet
CbmLitDetectorSetup fDet
Definition: CbmLitFindGlobalTracksIdeal.h:80
CbmLitFindGlobalTracksIdeal::CbmLitFindGlobalTracksIdeal
CbmLitFindGlobalTracksIdeal()
Definition: CbmLitFindGlobalTracksIdeal.cxx:19
CbmLitFindGlobalTracksIdeal::FillTrackMap
void FillTrackMap(std::map< Int_t, Int_t > &mcMap, const TClonesArray *matches)
Fill map from <MC track index> to <reconstructed track index>.
Definition: CbmLitFindGlobalTracksIdeal.cxx:110
CbmLitFindGlobalTracksIdeal::FillMapTof
void FillMapTof()
Fill map from <MC track index> to <TOF hit index>.
Definition: CbmLitFindGlobalTracksIdeal.cxx:123
CbmLitFindGlobalTracksIdeal
FairTask for ideal global track reconstruction.
Definition: CbmLitFindGlobalTracksIdeal.h:32
CbmLitFindGlobalTracksIdeal::ReadDataBranches
void ReadDataBranches()
Read necessary data branches from the input data files.
Definition: CbmLitFindGlobalTracksIdeal.cxx:67
CbmLitFindGlobalTracksIdeal::fMcMuchMap
std::map< Int_t, Int_t > fMcMuchMap
Definition: CbmLitFindGlobalTracksIdeal.h:96
CbmLitFindGlobalTracksIdeal::CreateGlobalTracks
void CreateGlobalTracks()
Create output CbmGlobalTracks and write them to output array.
Definition: CbmLitFindGlobalTracksIdeal.cxx:140
CbmLitDetectorSetup.h
Helper class to access detector presence.