The description of changes:
[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
019df241 16class AliMUONTrack;
ea94c18b 17class AliMUONTrackParam;
96ebe67e 18class AliMUONVCluster;
8d0843c6 19class AliMUONTriggerTrack;
7771752e 20class AliMUONTrackHitPattern;
1fef78c8 21class AliMUONVClusterServer;
7ec3b9cf 22class AliMUONVClusterStore;
23class AliMUONVTrackStore;
24class AliMUONVTriggerTrackStore;
25class AliMUONVTriggerStore;
26class AliMUONGeometryTransformer;
27class AliMUONDigitMaker;
32ab62c9 28class AliMUONTriggerCircuit;
3304fa09 29class TClonesArray;
a0dc65b4 30class AliMUONRecoParam;
8d0843c6 31
32class AliMUONVTrackReconstructor : public TObject {
33
34 public:
a0dc65b4 35 AliMUONVTrackReconstructor(const AliMUONRecoParam* recoParam, AliMUONVClusterServer* clusterServer); // default Constructor
8d0843c6 36 virtual ~AliMUONVTrackReconstructor(); // Destructor
37
a0dc65b4 38
1fef78c8 39 void EventReconstruct(AliMUONVClusterStore& clusterStore,
7ec3b9cf 40 AliMUONVTrackStore& trackStore);
8d0843c6 41
32ab62c9 42 void EventReconstructTrigger(const AliMUONTriggerCircuit& triggerCircuit,
7ec3b9cf 43 const AliMUONVTriggerStore& triggerStore,
44 AliMUONVTriggerTrackStore& triggerTrackStore);
45
46 void ValidateTracksWithTrigger(AliMUONVTrackStore& trackStore,
47 const AliMUONVTriggerTrackStore& triggerTrackStore,
48 const AliMUONVTriggerStore& triggerStore,
49 const AliMUONTrackHitPattern& trackHitPattern);
a0dc65b4 50
21973f26 51 /// Return reco parameters
5a240757 52 const AliMUONRecoParam* GetRecoParam() const { return fkRecoParam; }
ea94c18b 53
21973f26 54 /// Re-fit the given track
b1fea02e 55 virtual Bool_t RefitTrack(AliMUONTrack &track, Bool_t enableImprovement = kTRUE) = 0;
7deb8eb0 56
ea94c18b 57
8d0843c6 58 protected:
59
8d0843c6 60 TClonesArray *fRecTracksPtr; ///< pointer to array of reconstructed tracks
61 Int_t fNRecTracks; ///< number of reconstructed tracks
62
b1fea02e 63 AliMUONVClusterServer* fClusterServer; ///< reference to our cluster server
ea94c18b 64
5a240757 65 const AliMUONRecoParam* fkRecoParam; ///< reference to reco parameters
a0dc65b4 66
4663da9f 67 Double_t* fMaxMCSAngle2; ///< maximum angle dispersion due to MCS
6b191dea 68
8d0843c6 69 // Functions
70 AliMUONVTrackReconstructor (const AliMUONVTrackReconstructor& rhs); ///< copy constructor
71 AliMUONVTrackReconstructor& operator=(const AliMUONVTrackReconstructor& rhs); ///< assignment operator
72
9bf6860b 73 /// Make track candidates from clusters in stations(1..) 4 and 5
89c8d66d 74 virtual Bool_t MakeTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
9bf6860b 75 /// Make extra track candidates from clusters in stations(1..) 4 and 5
89c8d66d 76 virtual Bool_t MakeMoreTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
ea94c18b 77 /// Follow tracks in stations(1..) 3, 2 and 1
89c8d66d 78 virtual Bool_t FollowTracks(AliMUONVClusterStore& clusterStore) = 0;
b709ac13 79 /// Complement the reconstructed tracks
89c8d66d 80 virtual Bool_t ComplementTracks(const AliMUONVClusterStore& clusterStore) = 0;
7332f213 81 void ImproveTracks();
82 /// Improve the given reconstructed track
83 virtual void ImproveTrack(AliMUONTrack &track) = 0;
84 void Finalize();
85 /// Finalize the given track
4ea3f013 86 virtual Bool_t FinalizeTrack(AliMUONTrack &track) = 0;
ea94c18b 87
6b191dea 88 Bool_t IsAcceptable(AliMUONTrackParam &trackParam);
89
9bf6860b 90 TClonesArray* MakeSegmentsBetweenChambers(const AliMUONVClusterStore& clusterStore, Int_t ch1, Int_t ch2);
8d0843c6 91
89c8d66d 92 void RemoveUsedSegments(TClonesArray& segments);
ea94c18b 93 void RemoveIdenticalTracks();
94 void RemoveDoubleTracks();
5c15a68b 95 void RemoveConnectedTracks(Int_t stMin, Int_t stMax, Bool_t all);
96 void TagConnectedTracks(Int_t stMin, Int_t stMax, Bool_t all);
ea94c18b 97
1fef78c8 98 void AskForNewClustersInStation(const AliMUONTrackParam &trackParam,
99 AliMUONVClusterStore& clusterStore, Int_t station);
9bf6860b 100 void AskForNewClustersInChamber(const AliMUONTrackParam &trackParam,
101 AliMUONVClusterStore& clusterStore, Int_t chamber);
1fef78c8 102
96ebe67e 103 Double_t TryOneCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster,
104 AliMUONTrackParam &trackParamAtCluster, Bool_t updatePropagator = kFALSE);
5a240757 105 Bool_t TryOneClusterFast(const AliMUONTrackParam &trackParam, const AliMUONVCluster* cluster);
96ebe67e 106 Double_t TryTwoClustersFast(const AliMUONTrackParam &trackParamAtCluster1, AliMUONVCluster* cluster2,
107 AliMUONTrackParam &trackParamAtCluster2);
019df241 108
9bf6860b 109 Bool_t FollowLinearTrackInChamber(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore, Int_t nextChamber);
110 Bool_t FollowLinearTrackInStation(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore, Int_t nextStation);
abc2458f 111
8d0843c6 112 private:
113
8d0843c6 114 // Functions
ea94c18b 115 void ResetTracks();
ea94c18b 116
8d0843c6 117
8d0843c6 118 ClassDef(AliMUONVTrackReconstructor, 0) // MUON track reconstructor in ALICE
208f139e 119};
8d0843c6 120
121#endif