Removed hardwired gain inefficiency. Will be taken from the gain map.
[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:
b1fea02e 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
b1fea02e 53 virtual Bool_t RefitTrack(AliMUONTrack &track, Bool_t enableImprovement = kTRUE) = 0;
7deb8eb0 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
b1fea02e 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
9bf6860b 67 /// Make track candidates from clusters in stations(1..) 4 and 5
1fef78c8 68 virtual void MakeTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
9bf6860b 69 /// Make extra track candidates from clusters in stations(1..) 4 and 5
70 virtual void MakeMoreTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
ea94c18b 71 /// Follow tracks in stations(1..) 3, 2 and 1
1fef78c8 72 virtual void FollowTracks(AliMUONVClusterStore& clusterStore) = 0;
b709ac13 73 /// Complement the reconstructed tracks
96ebe67e 74 virtual void ComplementTracks(const AliMUONVClusterStore& clusterStore) = 0;
7332f213 75 void ImproveTracks();
76 /// Improve the given reconstructed track
77 virtual void ImproveTrack(AliMUONTrack &track) = 0;
78 void Finalize();
79 /// Finalize the given track
80 virtual void FinalizeTrack(AliMUONTrack &track) = 0;
ea94c18b 81
9bf6860b 82 TClonesArray* MakeSegmentsBetweenChambers(const AliMUONVClusterStore& clusterStore, Int_t ch1, Int_t ch2);
8d0843c6 83
ea94c18b 84 void RemoveIdenticalTracks();
85 void RemoveDoubleTracks();
86
1fef78c8 87 void AskForNewClustersInStation(const AliMUONTrackParam &trackParam,
88 AliMUONVClusterStore& clusterStore, Int_t station);
9bf6860b 89 void AskForNewClustersInChamber(const AliMUONTrackParam &trackParam,
90 AliMUONVClusterStore& clusterStore, Int_t chamber);
1fef78c8 91
96ebe67e 92 Double_t TryOneCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster,
93 AliMUONTrackParam &trackParamAtCluster, Bool_t updatePropagator = kFALSE);
94 Bool_t TryOneClusterFast(const AliMUONTrackParam &trackParam, AliMUONVCluster* cluster);
95 Double_t TryTwoClustersFast(const AliMUONTrackParam &trackParamAtCluster1, AliMUONVCluster* cluster2,
96 AliMUONTrackParam &trackParamAtCluster2);
019df241 97
9bf6860b 98 Bool_t FollowLinearTrackInChamber(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore, Int_t nextChamber);
99 Bool_t FollowLinearTrackInStation(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore, Int_t nextStation);
ea94c18b 100
8d0843c6 101
102 private:
103
8d0843c6 104 // Functions
ea94c18b 105 void ResetTracks();
ea94c18b 106
8d0843c6 107
8d0843c6 108 ClassDef(AliMUONVTrackReconstructor, 0) // MUON track reconstructor in ALICE
208f139e 109};
8d0843c6 110
111#endif