]>
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; } |
423b32ca | 72 | /// return 1,2,3 if track matches with trigger track, 0 if not |
7771752e | 73 | Int_t GetMatchTrigger(void) const {return fMatchTrigger;} |
c6ba19f7 | 74 | /// returns the local trigger number corresponding to the trigger track |
75 | Int_t GetLoTrgNum(void) const {return floTrgNum;} | |
2457f726 | 76 | /// set the flag telling whether track matches with trigger track or not |
7771752e | 77 | void SetMatchTrigger(Int_t matchTrigger) {fMatchTrigger = matchTrigger;} |
c6ba19f7 | 78 | /// set the local trigger number corresponding to the trigger track |
79 | void SetLoTrgNum(Int_t loTrgNum) {floTrgNum = loTrgNum;} | |
2457f726 | 80 | /// return the chi2 of trigger/track matching |
6464217e | 81 | Double_t GetChi2MatchTrigger(void) const {return fChi2MatchTrigger;} |
2457f726 | 82 | /// set the chi2 of trigger/track matching |
208f139e | 83 | void SetChi2MatchTrigger(Double_t chi2MatchTrigger) {fChi2MatchTrigger = chi2MatchTrigger;} |
de2cd600 | 84 | |
208f139e | 85 | Int_t HitsInCommon(AliMUONTrack* track) const; |
86 | Bool_t* CompatibleTrack(AliMUONTrack* track, Double_t sigma2Cut) const; // return array of compatible chamber | |
b8dc484b | 87 | |
2457f726 | 88 | /// return track number in TrackRefs |
6464217e | 89 | Int_t GetTrackID() const {return fTrackID;} |
2457f726 | 90 | /// set track number in TrackRefs |
6464217e | 91 | void SetTrackID(Int_t trackID) {fTrackID = trackID;} |
92 | ||
7771752e | 93 | /// set word telling which trigger chambers where hit by track |
94 | UShort_t GetHitsPatternInTrigCh() const {return fHitsPatternInTrigCh;} | |
95 | /// set word telling which trigger chambers where hit by track | |
96 | void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh) {fHitsPatternInTrigCh = hitsPatternInTrigCh;} | |
97 | ||
423b32ca | 98 | /// set local trigger information for the matched trigger track |
99 | void SetLocalTrigger(Int_t loCirc, Int_t loStripX, Int_t loStripY, Int_t loDev, Int_t loLpt, Int_t loHpt); | |
100 | /// return local trigger information for the matched trigger track | |
101 | Int_t GetLocalTrigger(void) const { return fLocalTrigger; } | |
4a335550 | 102 | /// number of triggering circuit |
423b32ca | 103 | Int_t LoCircuit(void) const |
104 | { Int_t circ = fLocalTrigger & 0xFF; return (circ == 234) ? -1 : circ; } | |
4a335550 | 105 | /// x-strip local trigger |
423b32ca | 106 | Int_t LoStripX(void) const { return fLocalTrigger >> 8 & 0x1F; } |
4a335550 | 107 | /// y-strip local trigger |
423b32ca | 108 | Int_t LoStripY(void) const { return fLocalTrigger >> 13 & 0x0F; } |
4a335550 | 109 | /// deviation local trigger |
423b32ca | 110 | Int_t LoDev(void) const { return fLocalTrigger >> 17 & 0x1F; } |
4a335550 | 111 | /// low pt decision local trigger |
423b32ca | 112 | Int_t LoLpt(void) const { return fLocalTrigger >> 22 & 0x03; } |
4a335550 | 113 | /// high pt decision local trigger |
423b32ca | 114 | Int_t LoHpt(void) const { return fLocalTrigger >> 24 & 0x03; } |
115 | ||
208f139e | 116 | Double_t TryOneHitForRec(AliMUONHitForRec* hitForRec); |
117 | Double_t TryTwoHitForRec(AliMUONHitForRec* hitForRec1, AliMUONHitForRec* hitForRec2); | |
118 | ||
de2cd600 | 119 | void RecursiveDump(void) const; // Recursive dump (with track hits) |
6464217e | 120 | |
de2cd600 | 121 | virtual void Print(Option_t* opt="") const; |
a9e2aefa | 122 | |
956019b6 | 123 | |
a9e2aefa | 124 | private: |
208f139e | 125 | static const Double_t fgkMaxTrackingDistanceBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in bending direction |
126 | static const Double_t fgkMaxTrackingDistanceNonBending; ///< Maximum distance to the track to search for compatible hitForRec(s) in non bending direction | |
127 | ||
8cde4af5 | 128 | AliMUONTrackParam fTrackParamAtVertex; //!< Track parameters at vertex |
829425a5 | 129 | TClonesArray *fTrackParamAtHit; ///< Track parameters at hit |
130 | TClonesArray *fHitForRecAtHit; ///< Cluster parameters at hit | |
2457f726 | 131 | Int_t fNTrackHits; ///< Number of hits attached to the track |
de2cd600 | 132 | |
208f139e | 133 | AliMUONTrackParam fExtrapTrackParam; //!< Track parameters extrapolated to a given z position |
134 | ||
135 | Bool_t fFitWithVertex; //!< 1 if using the vertex to constrain the fit, 0 if not | |
136 | AliMUONHitForRec *fVertex; //!< Vertex used during the tracking procedure if required | |
137 | ||
829425a5 | 138 | Double_t fFitFMin; ///< minimum value of the function minimized by the fit |
423b32ca | 139 | Int_t fMatchTrigger; ///< 0 track does not match trigger |
140 | ///< 1 track match but does not pass pt cut | |
141 | ///< 2 track match Low pt cut | |
142 | ///< 3 track match High pt cut | |
c6ba19f7 | 143 | Int_t floTrgNum; ///< the number of the corresponding loTrg, -1 if no matching |
829425a5 | 144 | Double_t fChi2MatchTrigger; ///< chi2 of trigger/track matching |
de2cd600 | 145 | |
829425a5 | 146 | Int_t fTrackID; ///< track ID = track number in TrackRefs |
7771752e | 147 | UShort_t fHitsPatternInTrigCh; ///< Word containing info on the hits left in trigger chambers |
423b32ca | 148 | |
149 | Int_t fLocalTrigger; ///< packed local trigger information | |
de2cd600 | 150 | |
4a335550 | 151 | ClassDef(AliMUONTrack, 6) // Reconstructed track in ALICE dimuon spectrometer |
de2cd600 | 152 | }; |
a9e2aefa | 153 | |
154 | #endif |