]>
Commit | Line | Data |
---|---|---|
a9e2aefa | 1 | #ifndef ALIMUONTRACK_H |
2 | #define ALIMUONTRACK_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /*$Id$*/ | |
30178c30 | 7 | // Revision of includes 07/05/2004 |
8 | ||
692de412 | 9 | /// \ingroup rec |
10 | /// \class AliMUONTrack | |
11 | /// \brief Reconstructed track in ALICE dimuon spectrometer | |
12 | /// | |
13 | //////////////////////////////////////////////////// | |
14 | /// Reconstructed track in ALICE dimuon spectrometer | |
15 | //////////////////////////////////////////////////// | |
3831f268 | 16 | |
30178c30 | 17 | #include <TClonesArray.h> |
18 | ||
c1a185bf | 19 | #include "AliMUONTrackParam.h" // object belongs to the class |
a9e2aefa | 20 | |
a9e2aefa | 21 | class AliMUONHitForRec; |
a9e2aefa | 22 | |
30178c30 | 23 | class AliMUONTrack : public TObject |
24 | { | |
a9e2aefa | 25 | public: |
d837040f | 26 | AliMUONTrack(); // Default constructor |
8429a5e4 | 27 | virtual ~AliMUONTrack(); // Destructor |
a9e2aefa | 28 | AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor |
29 | AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator | |
30 | ||
208f139e | 31 | AliMUONTrack(AliMUONHitForRec* hitForRec1, AliMUONHitForRec* hitForRec2); // Constructor from a segment |
a9e2aefa | 32 | |
2457f726 | 33 | /// return pointeur to track parameters at vertex |
6464217e | 34 | AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;} |
2457f726 | 35 | /// set track parameters at vertex |
208f139e | 36 | void SetTrackParamAtVertex(AliMUONTrackParam* trackParam) {fTrackParamAtVertex = *trackParam;} |
de2cd600 | 37 | |
2457f726 | 38 | /// return array of track parameters at hit |
6464217e | 39 | TClonesArray* GetTrackParamAtHit(void) const {return fTrackParamAtHit;} |
2457f726 | 40 | /// reset array of track parameters at hit |
6464217e | 41 | void ResetTrackParamAtHit(void) { fTrackParamAtHit->Delete(); } |
de2cd600 | 42 | void AddTrackParamAtHit(AliMUONTrackParam *trackParam, AliMUONHitForRec *hitForRec); |
43 | ||
2457f726 | 44 | /// return array of hitForRec at hit |
de2cd600 | 45 | TClonesArray* GetHitForRecAtHit(void) const {return fHitForRecAtHit;} |
2457f726 | 46 | /// reset array of hitForRec at hit |
6464217e | 47 | void ResetHitForRecAtHit(void) { fHitForRecAtHit->Delete(); } |
6464217e | 48 | void AddHitForRecAtHit(const AliMUONHitForRec *hitForRec); |
49 | ||
2457f726 | 50 | /// return the number of hits attached to the track |
6464217e | 51 | Int_t GetNTrackHits(void) const {return fNTrackHits;} |
2457f726 | 52 | /// set the number of hits attached to the track |
6464217e | 53 | void SetNTrackHits(Int_t nTrackHits) {fNTrackHits = nTrackHits;} |
de2cd600 | 54 | |
208f139e | 55 | /// return pointeur to track parameters extrapolated to the next station |
56 | AliMUONTrackParam* GetExtrapTrackParam(void) {return &fExtrapTrackParam;} | |
57 | /// set track parameters extrapolated to next station | |
58 | void SetExtrapTrackParam(AliMUONTrackParam* trackParam) {fExtrapTrackParam = *trackParam;} | |
59 | ||
60 | /// return kTrue if the vertex must be used to constrain the fit, kFalse if not | |
61 | Bool_t GetFitWithVertex(void) const {return fFitWithVertex;} | |
62 | /// set the flag telling whether the vertex must be used to constrain the fit or not | |
63 | void SetFitWithVertex(Bool_t fitWithVertex) { fFitWithVertex = fitWithVertex; } | |
64 | /// return the vertex used during the tracking procedure | |
65 | AliMUONHitForRec* GetVertex(void) const {return fVertex;} | |
66 | void SetVertex(AliMUONHitForRec* vertex); | |
67 | ||
2457f726 | 68 | /// return the minimum value of the function minimized by the fit |
6464217e | 69 | Double_t GetFitFMin(void) const {return fFitFMin;} |
2457f726 | 70 | /// set the minimum value of the function minimized by the fit |
208f139e | 71 | void SetFitFMin(Double_t chi2) { fFitFMin = chi2; } |
2457f726 | 72 | /// return kTrue if track matches with trigger track, kFalse if not |
6464217e | 73 | Bool_t GetMatchTrigger(void) const {return fMatchTrigger;} |
2457f726 | 74 | /// set the flag telling whether track matches with trigger track or not |
208f139e | 75 | void SetMatchTrigger(Bool_t matchTrigger) {fMatchTrigger = matchTrigger;} |
2457f726 | 76 | /// return the chi2 of trigger/track matching |
6464217e | 77 | Double_t GetChi2MatchTrigger(void) const {return fChi2MatchTrigger;} |
2457f726 | 78 | /// set the chi2 of trigger/track matching |
208f139e | 79 | void SetChi2MatchTrigger(Double_t chi2MatchTrigger) {fChi2MatchTrigger = chi2MatchTrigger;} |
de2cd600 | 80 | |
208f139e | 81 | Int_t HitsInCommon(AliMUONTrack* track) const; |
82 | Bool_t* CompatibleTrack(AliMUONTrack* track, Double_t sigma2Cut) const; // return array of compatible chamber | |
b8dc484b | 83 | |
2457f726 | 84 | /// return track number in TrackRefs |
6464217e | 85 | Int_t GetTrackID() const {return fTrackID;} |
2457f726 | 86 | /// set track number in TrackRefs |
6464217e | 87 | void SetTrackID(Int_t trackID) {fTrackID = trackID;} |
88 | ||
208f139e | 89 | Double_t TryOneHitForRec(AliMUONHitForRec* hitForRec); |
90 | Double_t TryTwoHitForRec(AliMUONHitForRec* hitForRec1, AliMUONHitForRec* hitForRec2); | |
91 | ||
de2cd600 | 92 | void RecursiveDump(void) const; // Recursive dump (with track hits) |
6464217e | 93 | |
de2cd600 | 94 | virtual void Print(Option_t* opt="") const; |
a9e2aefa | 95 | |
956019b6 | 96 | |
a9e2aefa | 97 | private: |
208f139e | 98 | static const Double_t fgkMaxTrackingDistanceBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in bending direction |
99 | static const Double_t fgkMaxTrackingDistanceNonBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in non bending direction | |
100 | ||
829425a5 | 101 | AliMUONTrackParam fTrackParamAtVertex; ///< Track parameters at vertex |
102 | TClonesArray *fTrackParamAtHit; ///< Track parameters at hit | |
103 | TClonesArray *fHitForRecAtHit; ///< Cluster parameters at hit | |
2457f726 | 104 | Int_t fNTrackHits; ///< Number of hits attached to the track |
de2cd600 | 105 | |
208f139e | 106 | AliMUONTrackParam fExtrapTrackParam; //!< Track parameters extrapolated to a given z position |
107 | ||
108 | Bool_t fFitWithVertex; //!< 1 if using the vertex to constrain the fit, 0 if not | |
109 | AliMUONHitForRec *fVertex; //!< Vertex used during the tracking procedure if required | |
110 | ||
829425a5 | 111 | Double_t fFitFMin; ///< minimum value of the function minimized by the fit |
112 | Bool_t fMatchTrigger; ///< 1 if track matches with trigger track, 0 if not | |
113 | Double_t fChi2MatchTrigger; ///< chi2 of trigger/track matching | |
de2cd600 | 114 | |
829425a5 | 115 | Int_t fTrackID; ///< track ID = track number in TrackRefs |
de2cd600 | 116 | |
117 | ||
118 | ClassDef(AliMUONTrack, 3) // Reconstructed track in ALICE dimuon spectrometer | |
119 | }; | |
a9e2aefa | 120 | |
121 | #endif |