No need for specific compilation options
[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
52
8d0843c6 53 protected:
54
8d0843c6 55 TClonesArray *fRecTracksPtr; ///< pointer to array of reconstructed tracks
56 Int_t fNRecTracks; ///< number of reconstructed tracks
57
1fef78c8 58 AliMUONVClusterServer& fClusterServer; ///< reference to our cluster server
ea94c18b 59
8d0843c6 60 // Functions
61 AliMUONVTrackReconstructor (const AliMUONVTrackReconstructor& rhs); ///< copy constructor
62 AliMUONVTrackReconstructor& operator=(const AliMUONVTrackReconstructor& rhs); ///< assignment operator
63
ea94c18b 64 /// Make track candidats from clusters in stations(1..) 4 and 5
1fef78c8 65 virtual void MakeTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
ea94c18b 66 /// Follow tracks in stations(1..) 3, 2 and 1
1fef78c8 67 virtual void FollowTracks(AliMUONVClusterStore& clusterStore) = 0;
b709ac13 68 /// Complement the reconstructed tracks
96ebe67e 69 virtual void ComplementTracks(const AliMUONVClusterStore& clusterStore) = 0;
7332f213 70 void ImproveTracks();
71 /// Improve the given reconstructed track
72 virtual void ImproveTrack(AliMUONTrack &track) = 0;
73 void Finalize();
74 /// Finalize the given track
75 virtual void FinalizeTrack(AliMUONTrack &track) = 0;
ea94c18b 76
96ebe67e 77 TClonesArray* MakeSegmentsInStation(const AliMUONVClusterStore& clusterStore, Int_t station);
8d0843c6 78
ea94c18b 79 void RemoveIdenticalTracks();
80 void RemoveDoubleTracks();
81
1fef78c8 82 void AskForNewClustersInStation(const AliMUONTrackParam &trackParam,
83 AliMUONVClusterStore& clusterStore, Int_t station);
84
96ebe67e 85 Double_t TryOneCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster,
86 AliMUONTrackParam &trackParamAtCluster, Bool_t updatePropagator = kFALSE);
87 Bool_t TryOneClusterFast(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster);
88 Double_t TryTwoClustersFast(const AliMUONTrackParam &trackParamAtCluster1, AliMUONVCluster* cluster2,
89 AliMUONTrackParam &trackParamAtCluster2);
019df241 90
96ebe67e 91 Bool_t FollowLinearTrackInStation(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore,
92 Int_t nextStation);
ea94c18b 93
8d0843c6 94
95 private:
96
8d0843c6 97 // Functions
ea94c18b 98 void ResetTracks();
ea94c18b 99
8d0843c6 100
8d0843c6 101 ClassDef(AliMUONVTrackReconstructor, 0) // MUON track reconstructor in ALICE
208f139e 102};
8d0843c6 103
104#endif