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