Optional friend tree replaced by list of friends.
[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
3304fa09 14#include "AliMUONReconstructor.h"
15#include "AliMUONRecoParam.h"
16
8d0843c6 17#include <TObject.h>
18
019df241 19class AliMUONTrack;
ea94c18b 20class AliMUONTrackParam;
96ebe67e 21class AliMUONVCluster;
8d0843c6 22class AliMUONTriggerTrack;
7771752e 23class AliMUONTrackHitPattern;
1fef78c8 24class AliMUONVClusterServer;
7ec3b9cf 25class AliMUONVClusterStore;
26class AliMUONVTrackStore;
27class AliMUONVTriggerTrackStore;
28class AliMUONVTriggerStore;
29class AliMUONGeometryTransformer;
30class AliMUONDigitMaker;
32ab62c9 31class AliMUONTriggerCircuit;
3304fa09 32class TClonesArray;
8d0843c6 33
34class AliMUONVTrackReconstructor : public TObject {
35
36 public:
1fef78c8 37 AliMUONVTrackReconstructor(AliMUONVClusterServer& clusterServer); // default Constructor
8d0843c6 38 virtual ~AliMUONVTrackReconstructor(); // Destructor
39
1fef78c8 40 void EventReconstruct(AliMUONVClusterStore& clusterStore,
7ec3b9cf 41 AliMUONVTrackStore& trackStore);
8d0843c6 42
32ab62c9 43 void EventReconstructTrigger(const AliMUONTriggerCircuit& triggerCircuit,
7ec3b9cf 44 const AliMUONVTriggerStore& triggerStore,
45 AliMUONVTriggerTrackStore& triggerTrackStore);
46
47 void ValidateTracksWithTrigger(AliMUONVTrackStore& trackStore,
48 const AliMUONVTriggerTrackStore& triggerTrackStore,
49 const AliMUONVTriggerStore& triggerStore,
50 const AliMUONTrackHitPattern& trackHitPattern);
ea94c18b 51
7deb8eb0 52 /// re-fit the given track
53 virtual Bool_t RefitTrack(AliMUONTrack &track) = 0;
54
ea94c18b 55
8d0843c6 56 protected:
57
8d0843c6 58 TClonesArray *fRecTracksPtr; ///< pointer to array of reconstructed tracks
59 Int_t fNRecTracks; ///< number of reconstructed tracks
60
1fef78c8 61 AliMUONVClusterServer& fClusterServer; ///< reference to our cluster server
ea94c18b 62
8d0843c6 63 // Functions
64 AliMUONVTrackReconstructor (const AliMUONVTrackReconstructor& rhs); ///< copy constructor
65 AliMUONVTrackReconstructor& operator=(const AliMUONVTrackReconstructor& rhs); ///< assignment operator
66
ea94c18b 67 /// Make track candidats from clusters in stations(1..) 4 and 5
1fef78c8 68 virtual void MakeTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
ea94c18b 69 /// Follow tracks in stations(1..) 3, 2 and 1
1fef78c8 70 virtual void FollowTracks(AliMUONVClusterStore& clusterStore) = 0;
b709ac13 71 /// Complement the reconstructed tracks
96ebe67e 72 virtual void ComplementTracks(const AliMUONVClusterStore& clusterStore) = 0;
7332f213 73 void ImproveTracks();
74 /// Improve the given reconstructed track
75 virtual void ImproveTrack(AliMUONTrack &track) = 0;
76 void Finalize();
77 /// Finalize the given track
78 virtual void FinalizeTrack(AliMUONTrack &track) = 0;
ea94c18b 79
96ebe67e 80 TClonesArray* MakeSegmentsInStation(const AliMUONVClusterStore& clusterStore, Int_t station);
8d0843c6 81
ea94c18b 82 void RemoveIdenticalTracks();
83 void RemoveDoubleTracks();
84
1fef78c8 85 void AskForNewClustersInStation(const AliMUONTrackParam &trackParam,
86 AliMUONVClusterStore& clusterStore, Int_t station);
87
96ebe67e 88 Double_t TryOneCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster,
89 AliMUONTrackParam &trackParamAtCluster, Bool_t updatePropagator = kFALSE);
90 Bool_t TryOneClusterFast(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster);
91 Double_t TryTwoClustersFast(const AliMUONTrackParam &trackParamAtCluster1, AliMUONVCluster* cluster2,
92 AliMUONTrackParam &trackParamAtCluster2);
019df241 93
96ebe67e 94 Bool_t FollowLinearTrackInStation(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore,
95 Int_t nextStation);
ea94c18b 96
8d0843c6 97
98 private:
99
8d0843c6 100 // Functions
ea94c18b 101 void ResetTracks();
ea94c18b 102
8d0843c6 103
8d0843c6 104 ClassDef(AliMUONVTrackReconstructor, 0) // MUON track reconstructor in ALICE
208f139e 105};
8d0843c6 106
107#endif