Adding more detailed information on about matching with trigger tracks and the hit...
[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
14#include <TObject.h>
15
16class TClonesArray;
17class AliMUONData;
18class AliMUONTriggerTrack;
19
20class AliMUONVTrackReconstructor : public TObject {
21
22 public:
23 AliMUONVTrackReconstructor(AliMUONData* data); // default Constructor
24 virtual ~AliMUONVTrackReconstructor(); // Destructor
25
26 // Parameters for track reconstruction: public methods
27 // Get and Set, Set to defaults
28 /// Return minimum value (GeV/c) of momentum in bending plane
29 Double_t GetMinBendingMomentum(void) const {return fMinBendingMomentum;}
30 /// Return chamber resolution (cm) in bending plane
31 Double_t GetBendingResolution(void) const {return fBendingResolution;}
32 /// Return chamber resolution (cm) in non-bending plane
33 Double_t GetNonBendingResolution(void) const {return fNonBendingResolution;}
8d0843c6 34
35 // Reconstructed tracks
36 /// Return number of reconstructed tracks
37 Int_t GetNRecTracks() const {return fNRecTracks;} // Number
38 /// Set number of reconstructed tracks
39 void SetNRecTracks(Int_t NRecTracks) {fNRecTracks = NRecTracks;}
40 /// Return array of reconstructed tracks
41 TClonesArray* GetRecTracksPtr(void) const {return fRecTracksPtr;} // Array
42
43 // Functions
44 void EventReconstruct(void);
45 void EventReconstructTrigger(void);
71a2d3aa 46 virtual void EventDump(void) = 0; ///< dump reconstructed event
8d0843c6 47 void EventDumpTrigger(void); // dump reconstructed trigger event
48
8d0843c6 49 /// Return MUON data
50 AliMUONData* GetMUONData() {return fMUONData;}
71a2d3aa 51 /// Set MUON data
196471e9 52 void SetMUONData(AliMUONData* data) {fMUONData = data;}
8d0843c6 53
54 /// Set trigger circuit
55 void SetTriggerCircuit(TClonesArray* circuit) {fTriggerCircuit = circuit;}
56
57
58 protected:
59
60 // Defaults parameters for reconstruction
61 static const Double_t fgkDefaultMinBendingMomentum; ///< default min. bending momentum for reconstruction
62 static const Double_t fgkDefaultMaxBendingMomentum; ///< default max. bending momentum for reconstruction
63 static const Double_t fgkDefaultBendingResolution; ///< default bending coordinate resolution for reconstruction
64 static const Double_t fgkDefaultNonBendingResolution; ///< default non bending coordinate resolution for reconstruction
208f139e 65 static const Double_t fgkDefaultBendingVertexDispersion; ///< default vertex dispersion in bending plane for reconstruction
66 static const Double_t fgkDefaultNonBendingVertexDispersion; ///< default vertex dispersion in non bending plane for reconstruction
67 static const Double_t fgkDefaultMaxNormChi2MatchTrigger; ///< default maximum normalized chi2 of tracking/trigger track matching
8d0843c6 68
69 // Parameters for track reconstruction
70 Double_t fMinBendingMomentum; ///< minimum value (GeV/c) of momentum in bending plane
71 Double_t fMaxBendingMomentum; ///< maximum value (GeV/c) of momentum in bending plane
72 Double_t fBendingResolution; ///< chamber resolution (cm) in bending plane
73 Double_t fNonBendingResolution; ///< chamber resolution (cm) in non bending plane
208f139e 74 Double_t fBendingVertexDispersion; ///< vextex dispersion (cm) in bending plane
75 Double_t fNonBendingVertexDispersion; ///< vextex dispersion (cm) in non bending plane
76 Double_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
8d0843c6 77
8d0843c6 78 TClonesArray* fHitsForRecPtr; ///< pointer to the array of hits for reconstruction
79 Int_t fNHitsForRec; ///< number of hits for reconstruction
8d0843c6 80 Int_t* fNHitsForRecPerChamber; ///< number of HitsForRec
81 Int_t* fIndexOfFirstHitForRecPerChamber; ///< index (0...) of first HitForRec
82
8d0843c6 83 // Reconstructed tracks
84 TClonesArray *fRecTracksPtr; ///< pointer to array of reconstructed tracks
85 Int_t fNRecTracks; ///< number of reconstructed tracks
86
87 // data container
88 AliMUONData* fMUONData; ///< Data container for MUON subsystem
89
90 // Functions
91 AliMUONVTrackReconstructor (const AliMUONVTrackReconstructor& rhs); ///< copy constructor
92 AliMUONVTrackReconstructor& operator=(const AliMUONVTrackReconstructor& rhs); ///< assignment operator
93
94 void SortHitsForRecWithIncreasingChamber();
208f139e 95 TClonesArray *MakeSegmentsInStation(Int_t station);
8d0843c6 96
71a2d3aa 97 /// \todo add comment
8d0843c6 98 virtual void AddHitsForRecFromRawClusters() = 0;
71a2d3aa 99 /// \todo add comment
8d0843c6 100 virtual void MakeTracks(void) = 0;
71a2d3aa 101 /// \todo add comment
8d0843c6 102 virtual void MakeTrackCandidates(void) = 0;
71a2d3aa 103 /// \todo add comment
8d0843c6 104 virtual void FollowTracks(void) = 0;
71a2d3aa 105 /// \todo add comment
8d0843c6 106 virtual void RemoveDoubleTracks(void) = 0;
71a2d3aa 107 /// \todo add comment
208f139e 108 virtual void FillMUONTrack(void) = 0;
8d0843c6 109
110 private:
111
112 AliMUONTriggerTrack* fTriggerTrack; ///< Trigger track structure
113
114 TClonesArray* fTriggerCircuit; //!< trigger circuit array
115
116 // Functions
8d0843c6 117 void ResetTracks(void);
8d0843c6 118 void ResetHitsForRec(void);
119
120 void ValidateTracksWithTrigger(void);
121
122 Bool_t MakeTriggerTracks(void);
123
124
125 ClassDef(AliMUONVTrackReconstructor, 0) // MUON track reconstructor in ALICE
208f139e 126};
8d0843c6 127
128#endif