Remove already deleted files that were recreated during merge.
[u/mrichter/AliRoot.git] / MUON / AliMUONVTrackReconstructor.h
CommitLineData
8d0843c6 1#ifndef ALIMUONVTRACKRECONSTRUCTOR_H
2#define ALIMUONVTRACKRECONSTRUCTOR_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8/// \ingroup rec
9/// \class AliMUONVTrackReconstructor
10/// \brief Virtual class for the MUON track reconstruction
11///
c4ee792d 12// Author: Philippe Pillot
8d0843c6 13
14#include <TObject.h>
15
16class TClonesArray;
019df241 17class AliMUONTrack;
ea94c18b 18class AliMUONTrackParam;
19class AliMUONHitForRec;
8d0843c6 20class AliMUONTriggerTrack;
7771752e 21class AliMUONTrackHitPattern;
7ec3b9cf 22class AliMUONVClusterStore;
23class AliMUONVTrackStore;
24class AliMUONVTriggerTrackStore;
25class AliMUONVTriggerStore;
26class AliMUONGeometryTransformer;
27class AliMUONDigitMaker;
32ab62c9 28class AliMUONTriggerCircuit;
8d0843c6 29
30class AliMUONVTrackReconstructor : public TObject {
31
32 public:
7ec3b9cf 33 AliMUONVTrackReconstructor(); // default Constructor
8d0843c6 34 virtual ~AliMUONVTrackReconstructor(); // Destructor
35
36 // Parameters for track reconstruction: public methods
37 // Get and Set, Set to defaults
38 /// Return minimum value (GeV/c) of momentum in bending plane
ea94c18b 39 Double_t GetMinBendingMomentum() const {return fMinBendingMomentum;}
8d0843c6 40
41 // Reconstructed tracks
42 /// Return number of reconstructed tracks
43 Int_t GetNRecTracks() const {return fNRecTracks;} // Number
44 /// Set number of reconstructed tracks
45 void SetNRecTracks(Int_t NRecTracks) {fNRecTracks = NRecTracks;}
46 /// Return array of reconstructed tracks
ea94c18b 47 TClonesArray* GetRecTracksPtr() const {return fRecTracksPtr;} // Array
8d0843c6 48
49 // Functions
7ec3b9cf 50 void EventReconstruct(const AliMUONVClusterStore& clusterStore,
51 AliMUONVTrackStore& trackStore);
8d0843c6 52
32ab62c9 53 void EventReconstructTrigger(const AliMUONTriggerCircuit& triggerCircuit,
7ec3b9cf 54 const AliMUONVTriggerStore& triggerStore,
55 AliMUONVTriggerTrackStore& triggerTrackStore);
56
57 void ValidateTracksWithTrigger(AliMUONVTrackStore& trackStore,
58 const AliMUONVTriggerTrackStore& triggerTrackStore,
59 const AliMUONVTriggerStore& triggerStore,
60 const AliMUONTrackHitPattern& trackHitPattern);
ea94c18b 61
62
8d0843c6 63 protected:
64
65 // Defaults parameters for reconstruction
66 static const Double_t fgkDefaultMinBendingMomentum; ///< default min. bending momentum for reconstruction
67 static const Double_t fgkDefaultMaxBendingMomentum; ///< default max. bending momentum for reconstruction
208f139e 68 static const Double_t fgkDefaultMaxNormChi2MatchTrigger; ///< default maximum normalized chi2 of tracking/trigger track matching
8d0843c6 69
70 // Parameters for track reconstruction
ea94c18b 71 static const Double_t fgkSigmaToCutForTracking; ///< cut in sigma to apply on cluster local chi2 and track global chi2 during tracking
72 static const Double_t fgkSigmaToCutForImprovement; ///< cut in sigma to apply on cluster local chi2 during track improvement
019df241 73 static const Bool_t fgkMakeTrackCandidatesFast; ///< kTRUE to make track candidates assuming linear propagation between stations 4 and 5
ea94c18b 74 static const Bool_t fgkTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones
75 static const Double_t fgkMaxTrackingDistanceBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in bending direction
76 static const Double_t fgkMaxTrackingDistanceNonBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in non bending direction
77 static const Bool_t fgkRecoverTracks; ///< kTRUE to try to recover the tracks being lost during reconstruction
b709ac13 78 static const Bool_t fgkComplementTracks; ///< kTRUE to try to complete the reconstructed tracks by adding missing clusters
79 static const Bool_t fgkImproveTracks; ///< kTRUE to try to improve the reconstructed tracks by removing bad clusters
ea94c18b 80
81 // Parameters for track reconstruction
8d0843c6 82 Double_t fMinBendingMomentum; ///< minimum value (GeV/c) of momentum in bending plane
83 Double_t fMaxBendingMomentum; ///< maximum value (GeV/c) of momentum in bending plane
208f139e 84 Double_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
8d0843c6 85
8d0843c6 86 TClonesArray* fHitsForRecPtr; ///< pointer to the array of hits for reconstruction
87 Int_t fNHitsForRec; ///< number of hits for reconstruction
8d0843c6 88 Int_t* fNHitsForRecPerChamber; ///< number of HitsForRec
89 Int_t* fIndexOfFirstHitForRecPerChamber; ///< index (0...) of first HitForRec
90
8d0843c6 91 // Reconstructed tracks
92 TClonesArray *fRecTracksPtr; ///< pointer to array of reconstructed tracks
93 Int_t fNRecTracks; ///< number of reconstructed tracks
94
ea94c18b 95
8d0843c6 96 // Functions
97 AliMUONVTrackReconstructor (const AliMUONVTrackReconstructor& rhs); ///< copy constructor
98 AliMUONVTrackReconstructor& operator=(const AliMUONVTrackReconstructor& rhs); ///< assignment operator
99
ea94c18b 100 /// Make track candidats from clusters in stations(1..) 4 and 5
101 virtual void MakeTrackCandidates() = 0;
102 /// Follow tracks in stations(1..) 3, 2 and 1
103 virtual void FollowTracks() = 0;
b709ac13 104 /// Complement the reconstructed tracks
105 virtual void ComplementTracks() = 0;
ea94c18b 106 /// Improve the reconstructed tracks
107 virtual void ImproveTracks() = 0;
108 /// Finalize the tracking results
109 virtual void Finalize() = 0;
110
111 TClonesArray* MakeSegmentsInStation(Int_t station);
8d0843c6 112
ea94c18b 113 void RemoveIdenticalTracks();
114 void RemoveDoubleTracks();
115
116 Double_t TryOneHitForRec(const AliMUONTrackParam &trackParam, AliMUONHitForRec* hitForRec,
117 AliMUONTrackParam &trackParamAtHit, Bool_t updatePropagator = kFALSE);
019df241 118 Bool_t TryOneHitForRecFast(const AliMUONTrackParam &trackParam, AliMUONHitForRec* hitForRec);
119 Double_t TryTwoHitForRecFast(const AliMUONTrackParam &trackParamAtHit1, AliMUONHitForRec* hitForRec2,
120 AliMUONTrackParam &trackParamAtHit2);
121
122 Bool_t FollowLinearTrackInStation(AliMUONTrack &trackCandidate, Int_t nextStation);
ea94c18b 123
8d0843c6 124
125 private:
126
8d0843c6 127 // Functions
ea94c18b 128 void ResetTracks();
129 void ResetHitsForRec();
130
131 void AddHitsForRecFromRawClusters(const AliMUONVClusterStore& clusterStore);
132 void SortHitsForRecWithIncreasingChamber();
133
134 void MakeTracks();
135
8d0843c6 136
8d0843c6 137 ClassDef(AliMUONVTrackReconstructor, 0) // MUON track reconstructor in ALICE
208f139e 138};
8d0843c6 139
140#endif