Bug fixed for conversion to same float value for start/end timestamps
[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
8d0843c6 40 // Reconstructed tracks
41 /// Return number of reconstructed tracks
42 Int_t GetNRecTracks() const {return fNRecTracks;} // Number
43 /// Set number of reconstructed tracks
44 void SetNRecTracks(Int_t NRecTracks) {fNRecTracks = NRecTracks;}
45 /// Return array of reconstructed tracks
ea94c18b 46 TClonesArray* GetRecTracksPtr() const {return fRecTracksPtr;} // Array
8d0843c6 47
48 // Functions
1fef78c8 49 void EventReconstruct(AliMUONVClusterStore& clusterStore,
7ec3b9cf 50 AliMUONVTrackStore& trackStore);
8d0843c6 51
32ab62c9 52 void EventReconstructTrigger(const AliMUONTriggerCircuit& triggerCircuit,
7ec3b9cf 53 const AliMUONVTriggerStore& triggerStore,
54 AliMUONVTriggerTrackStore& triggerTrackStore);
55
56 void ValidateTracksWithTrigger(AliMUONVTrackStore& trackStore,
57 const AliMUONVTriggerTrackStore& triggerTrackStore,
58 const AliMUONVTriggerStore& triggerStore,
59 const AliMUONTrackHitPattern& trackHitPattern);
ea94c18b 60
61
8d0843c6 62 protected:
63
8d0843c6 64 TClonesArray *fRecTracksPtr; ///< pointer to array of reconstructed tracks
65 Int_t fNRecTracks; ///< number of reconstructed tracks
66
1fef78c8 67 AliMUONVClusterServer& fClusterServer; ///< reference to our cluster server
ea94c18b 68
8d0843c6 69 // Functions
70 AliMUONVTrackReconstructor (const AliMUONVTrackReconstructor& rhs); ///< copy constructor
71 AliMUONVTrackReconstructor& operator=(const AliMUONVTrackReconstructor& rhs); ///< assignment operator
72
ea94c18b 73 /// Make track candidats from clusters in stations(1..) 4 and 5
1fef78c8 74 virtual void MakeTrackCandidates(AliMUONVClusterStore& clusterStore) = 0;
ea94c18b 75 /// Follow tracks in stations(1..) 3, 2 and 1
1fef78c8 76 virtual void FollowTracks(AliMUONVClusterStore& clusterStore) = 0;
b709ac13 77 /// Complement the reconstructed tracks
96ebe67e 78 virtual void ComplementTracks(const AliMUONVClusterStore& clusterStore) = 0;
ea94c18b 79 /// Improve the reconstructed tracks
80 virtual void ImproveTracks() = 0;
81 /// Finalize the tracking results
82 virtual void Finalize() = 0;
83
96ebe67e 84 TClonesArray* MakeSegmentsInStation(const AliMUONVClusterStore& clusterStore, Int_t station);
8d0843c6 85
ea94c18b 86 void RemoveIdenticalTracks();
87 void RemoveDoubleTracks();
88
1fef78c8 89 void AskForNewClustersInStation(const AliMUONTrackParam &trackParam,
90 AliMUONVClusterStore& clusterStore, Int_t station);
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
96ebe67e 98 Bool_t FollowLinearTrackInStation(AliMUONTrack &trackCandidate, const AliMUONVClusterStore& clusterStore,
99 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