AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrack.h
Go to the documentation of this file.
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$*/
7 // Revision of includes 07/05/2004
8 
16 
17 #include <TObjArray.h>
18 #include <TMatrixD.h>
19 
20 class AliMUONVCluster;
21 class AliMUONObjectPair;
22 class AliMUONTrackParam;
23 
24 class AliMUONTrack : public TObject
25 {
26  public:
27  AliMUONTrack(); // Default constructor
28  AliMUONTrack(AliMUONObjectPair *segment, Double_t bendingVertexDispersion); // Constructor from a segment
29  virtual ~AliMUONTrack(); // Destructor
30  AliMUONTrack (const AliMUONTrack& track); // copy constructor
31  AliMUONTrack& operator=(const AliMUONTrack& track); // assignment operator
32 
33  void Reset();
34 
36  void AddTrackParamAtCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster &cluster, Bool_t copy = kFALSE);
40 
41  Bool_t IsValid(UInt_t requestedStationMask, Bool_t request2ChInSameSt45 = kFALSE);
42 
43  void TagRemovableClusters(UInt_t requestedStationMask);
44 
46  Int_t GetNClusters() const {return fTrackParamAtCluster ? fTrackParamAtCluster->GetEntriesFast() : 0;}
47 
49  Bool_t FitWithVertex() const {return fFitWithVertex;}
51  void FitWithVertex(Bool_t fitWithVertex) { fFitWithVertex = fitWithVertex; }
53  void GetVertexErrXY2(Double_t &nonBendingErr2, Double_t &bendingErr2) const
54  { nonBendingErr2 = fVertexErrXY2[0]; bendingErr2 = fVertexErrXY2[1]; }
56  void SetVertexErrXY2(Double_t nonBendingErr2, Double_t bendingErr2)
57  { fVertexErrXY2[0] = nonBendingErr2; fVertexErrXY2[1] = bendingErr2; }
58 
60  Bool_t FitWithMCS() const {return fFitWithMCS;}
62  void FitWithMCS(Bool_t fitWithMCS) {fFitWithMCS = fitWithMCS;}
63 
64  Bool_t ComputeClusterWeights(TMatrixD* mcsCovariances = 0);
65  Bool_t ComputeLocalChi2(Bool_t accountForMCS);
66  Double_t ComputeGlobalChi2(Bool_t accountForMCS);
67 
69  Double_t GetGlobalChi2() const {return fGlobalChi2;}
71  void SetGlobalChi2(Double_t chi2) { fGlobalChi2 = chi2;}
72 
74  Bool_t IsImproved() const {return fImproved;}
76  void SetImproved(Bool_t improved) { fImproved = improved;}
77 
79  Int_t GetMatchTrigger(void) const {return fMatchTrigger;}
81  Int_t GetLoTrgNum(void) const {return LoCircuit();}
83  void SetMatchTrigger(Int_t matchTrigger) {fMatchTrigger = matchTrigger;}
85  Double_t GetChi2MatchTrigger(void) const {return fChi2MatchTrigger;}
87  void SetChi2MatchTrigger(Double_t chi2MatchTrigger) {fChi2MatchTrigger = chi2MatchTrigger;}
88 
89  Int_t ClustersInCommon(AliMUONTrack* track, Int_t stMin = 0, Int_t stMax = 4) const;
90 
91  Int_t GetNDF() const;
92  Double_t GetNormalizedChi2() const;
93 
94  Int_t FindCompatibleClusters(const AliMUONTrack &track, Double_t sigma2Cut, Bool_t compatibleCluster[10]) const;
95  Bool_t Match(AliMUONTrack &track, Double_t sigma2Cut, Int_t &nMatchClusters) const;
96 
99  void SetTrackParamAtVertex(const AliMUONTrackParam* trackParam);
100 
102  UShort_t GetHitsPatternInTrigCh() const {return fHitsPatternInTrigCh;}
104  void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh) {fHitsPatternInTrigCh = hitsPatternInTrigCh;}
108  void SetHitsPatternInTrigChTrk(UInt_t hitsPatternInTrigChTrk) {fHitsPatternInTrigChTrk = hitsPatternInTrigChTrk;}
109 
111  void SetLocalTrigger(Int_t loCirc, Int_t loStripX, Int_t loStripY, Int_t loDev, Int_t loLpt, Int_t loHpt, UChar_t respWithoutChamber=0);
113  Int_t GetLocalTrigger(void) const { return fLocalTrigger; }
115  Int_t LoCircuit(void) const { return fLocalTrigger & 0xFF; }
117  Int_t LoStripX(void) const { return fLocalTrigger >> 8 & 0x1F; }
119  Int_t LoStripY(void) const { return fLocalTrigger >> 13 & 0x0F; }
121  Int_t LoDev(void) const { return fLocalTrigger >> 17 & 0x1F; }
123  Int_t LoLpt(void) const { return fLocalTrigger >> 22 & 0x03; }
125  Int_t LoHpt(void) const { return fLocalTrigger >> 24 & 0x03; }
127  Int_t GetTriggerWithoutChamber(void) const { return fLocalTrigger >> 26 & 0xF; }
129  Bool_t TriggerFiredWithoutChamber(Int_t ich) const { return GetTriggerWithoutChamber() >> (3 - ich) & 0x1; }
130 
131  void FindMCLabel();
133  void SetMCLabel(Int_t label) {fTrackID = label;}
135  Int_t GetMCLabel() const {return fTrackID;}
136 
137  void RecursiveDump(void) const; // Recursive dump (with associated clusters)
138 
139  virtual void Print(Option_t* opt="") const;
140 
141  virtual void Clear(Option_t* opt="");
142 
144  static Double_t MaxChi2() {return fgkMaxChi2;}
145 
147  void Connected(Bool_t flag = kTRUE) {fConnected = flag;}
149  Bool_t IsConnected() const {return fConnected;}
150 
151 
152  private:
153 
154  static const Double_t fgkMaxChi2;
155 
157 
158  Bool_t fFitWithVertex;
159  Double_t fVertexErrXY2[2];
160 
161  Bool_t fFitWithMCS;
162 
164  TMatrixD* fClusterWeightsBending;
166 
168  Double_t fGlobalChi2;
169 
170  Bool_t fImproved;
171 
173  Double_t fChi2MatchTrigger;
177 
178  Int_t fTrackID;
179 
181 
184 
186 
187  Bool_t fConnected;
188 
189  // methods
190  Bool_t ComputeClusterWeights(TMatrixD& clusterWeightsNB, TMatrixD& clusterWeightsB,
191  TMatrixD* mcsCovariances = 0, const AliMUONVCluster* discardedCluster = 0) const;
192  void ComputeMCSCovariances(TMatrixD& mcsCovariances) const;
193 
194 
195  ClassDef(AliMUONTrack, 11) // Reconstructed track in ALICE dimuon spectrometer
196 };
197 
198 #endif
UInt_t GetHitsPatternInTrigChTrk() const
set word telling which trigger chambers where hit by track (from tracker track extrapolation) ...
Definition: AliMUONTrack.h:106
void RemoveTrackParamAtCluster(AliMUONTrackParam *trackParam)
Int_t GetNClusters() const
return the number of clusters attached to the track
Definition: AliMUONTrack.h:46
Int_t GetTriggerWithoutChamber(void) const
Word stating if trigger would be fired without one chamber.
Definition: AliMUONTrack.h:127
Bool_t fFitWithMCS
! kTRUE if accounting for multiple scattering in the fit, kFALSE if not
Definition: AliMUONTrack.h:161
virtual ~AliMUONTrack()
Double_t fGlobalChi2
Global chi2 of the track.
Definition: AliMUONTrack.h:168
Int_t LoLpt(void) const
low pt decision local trigger
Definition: AliMUONTrack.h:123
Int_t GetMatchTrigger(void) const
return 1,2,3 if track matches with trigger track, 0 if not
Definition: AliMUONTrack.h:79
#define TObjArray
void SetVertexErrXY2(Double_t nonBendingErr2, Double_t bendingErr2)
set the vertex resolution square used during the tracking procedure
Definition: AliMUONTrack.h:56
Int_t ClustersInCommon(AliMUONTrack *track, Int_t stMin=0, Int_t stMax=4) const
Int_t LoDev(void) const
deviation local trigger
Definition: AliMUONTrack.h:121
void SetHitsPatternInTrigChTrk(UInt_t hitsPatternInTrigChTrk)
set word telling which trigger chambers where hit by track (from tracker track extrapolation) ...
Definition: AliMUONTrack.h:108
Bool_t FitWithVertex() const
return kTrue if the vertex must be used to constrain the fit, kFalse if not
Definition: AliMUONTrack.h:49
UInt_t fHitsPatternInTrigChTrk
Word containing info on the hits left in trigger chambers (calculated from extrapolated tracker track...
Definition: AliMUONTrack.h:183
Int_t LoStripX(void) const
x-strip local trigger
Definition: AliMUONTrack.h:117
Int_t fLocalTrigger
packed local trigger information
Definition: AliMUONTrack.h:185
void ComputeMCSCovariances(TMatrixD &mcsCovariances) const
Track parameters in ALICE dimuon spectrometer.
Int_t fMatchTrigger
Definition: AliMUONTrack.h:172
Int_t LoHpt(void) const
high pt decision local trigger
Definition: AliMUONTrack.h:125
Double_t GetNormalizedChi2() const
AliTPCfastTrack * track
void SetMCLabel(Int_t label)
set the corresponding MC track number
Definition: AliMUONTrack.h:133
Bool_t request2ChInSameSt45
Definition: MUONFakes.C:38
Bool_t ComputeLocalChi2(Bool_t accountForMCS)
Bool_t TriggerFiredWithoutChamber(Int_t ich) const
Check if trigger would be fired without chamber (ich [0,3])
Definition: AliMUONTrack.h:129
Int_t GetLocalTrigger(void) const
return local trigger information for the matched trigger track
Definition: AliMUONTrack.h:113
Bool_t IsValid(UInt_t requestedStationMask, Bool_t request2ChInSameSt45=kFALSE)
Int_t GetLoTrgNum(void) const
returns the local trigger number corresponding to the trigger track (obsolete)
Definition: AliMUONTrack.h:81
UShort_t fHitsPatternInTrigCh
Word containing info on the hits left in trigger chambers.
Definition: AliMUONTrack.h:182
TObjArray * fTrackParamAtCluster
Track parameters at cluster.
Definition: AliMUONTrack.h:156
void FitWithMCS(Bool_t fitWithMCS)
set the flag telling whether the multiple scattering must be accounted for in the fit or not ...
Definition: AliMUONTrack.h:62
Double_t GetChi2MatchTrigger(void) const
return the chi2 of trigger/track matching
Definition: AliMUONTrack.h:85
Bool_t fFitWithVertex
! kTRUE if using the vertex to constrain the fit, kFALSE if not
Definition: AliMUONTrack.h:158
virtual void Clear(Option_t *opt="")
Bool_t Match(AliMUONTrack &track, Double_t sigma2Cut, Int_t &nMatchClusters) const
Bool_t UpdateCovTrackParamAtCluster()
Int_t FindCompatibleClusters(const AliMUONTrack &track, Double_t sigma2Cut, Bool_t compatibleCluster[10]) const
Double_t ComputeGlobalChi2(Bool_t accountForMCS)
Double_t chi2
Definition: AnalyzeLaser.C:7
abstract base class for clusters
Int_t GetNDF() const
void SetTrackParamAtVertex(const AliMUONTrackParam *trackParam)
static const Double_t fgkMaxChi2
maximum chi2 above which the track can be considered as abnormal
Definition: AliMUONTrack.h:154
Int_t LoCircuit(void) const
number of triggering circuit
Definition: AliMUONTrack.h:115
void SetImproved(Bool_t improved)
set the flag telling whether the track has been improved or not
Definition: AliMUONTrack.h:76
Bool_t FitWithMCS() const
return kTrue if the multiple scattering must be accounted for in the fit, kFalse if not ...
Definition: AliMUONTrack.h:60
Double_t GetGlobalChi2() const
return the minimum value of the function minimized by the fit
Definition: AliMUONTrack.h:69
Bool_t UpdateTrackParamAtCluster()
void AddTrackParamAtCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster &cluster, Bool_t copy=kFALSE)
void SetLocalTrigger(Int_t loCirc, Int_t loStripX, Int_t loStripY, Int_t loDev, Int_t loLpt, Int_t loHpt, UChar_t respWithoutChamber=0)
set local trigger information for the matched trigger track
TMatrixD * fClusterWeightsNonBending
! (accounting for multiple scattering and cluster resolution)
Definition: AliMUONTrack.h:163
Int_t fTrackID
Point to the corresponding MC track.
Definition: AliMUONTrack.h:178
Int_t GetMCLabel() const
return the corresponding MC track number
Definition: AliMUONTrack.h:135
void SetMatchTrigger(Int_t matchTrigger)
set the flag telling whether track matches with trigger track or not
Definition: AliMUONTrack.h:83
void GetVertexErrXY2(Double_t &nonBendingErr2, Double_t &bendingErr2) const
return the vertex resolution square used during the tracking procedure
Definition: AliMUONTrack.h:53
AliMUONTrackParam * fTrackParamAtVertex
! Track parameters at vertex
Definition: AliMUONTrack.h:180
void Connected(Bool_t flag=kTRUE)
set the flag which is kTRUE if that track shares cluster(s) with another
Definition: AliMUONTrack.h:147
TMatrixD * fClusterWeightsBending
! (accounting for multiple scattering and cluster resolution)
Definition: AliMUONTrack.h:165
Bool_t fConnected
kTRUE if that track shares cluster(s) with another
Definition: AliMUONTrack.h:187
UInt_t requestedStationMask
Definition: MUONFakes.C:37
Double_t fChi2MatchTrigger
chi2 of trigger/track matching
Definition: AliMUONTrack.h:176
void SetHitsPatternInTrigCh(UShort_t hitsPatternInTrigCh)
set word telling which trigger chambers where hit by track
Definition: AliMUONTrack.h:104
void FitWithVertex(Bool_t fitWithVertex)
set the flag telling whether the vertex must be used to constrain the fit or not
Definition: AliMUONTrack.h:51
Bool_t fImproved
! kTRUE if the track has been improved
Definition: AliMUONTrack.h:170
Int_t LoStripY(void) const
y-strip local trigger
Definition: AliMUONTrack.h:119
void RecursiveDump(void) const
Double_t fVertexErrXY2[2]
! Vertex resolution square used during the tracking procedure if required
Definition: AliMUONTrack.h:159
Reconstructed track in ALICE dimuon spectrometer.
Definition: AliMUONTrack.h:24
Bool_t IsImproved() const
return kTRUE if the track has been improved
Definition: AliMUONTrack.h:74
AliMUONTrack & operator=(const AliMUONTrack &track)
virtual void Print(Option_t *opt="") const
The equivalent of a std::pair<TObject*,TObject*> ;-)
void SetChi2MatchTrigger(Double_t chi2MatchTrigger)
set the chi2 of trigger/track matching
Definition: AliMUONTrack.h:87
void TagRemovableClusters(UInt_t requestedStationMask)
static Double_t MaxChi2()
return the maximum chi2 above which the track can be considered as abnormal (due to extrapolation fai...
Definition: AliMUONTrack.h:144
Bool_t IsConnected() const
return the flag which is kTRUE if that track shares cluster(s) with another
Definition: AliMUONTrack.h:149
TObjArray * GetTrackParamAtCluster() const
AliMUONTrackParam * GetTrackParamAtVertex() const
return pointer to track parameters at vertex (can be 0x0)
Definition: AliMUONTrack.h:98
Bool_t ComputeClusterWeights(TMatrixD *mcsCovariances=0)
UShort_t GetHitsPatternInTrigCh() const
set word telling which trigger chambers where hit by track
Definition: AliMUONTrack.h:102
void SetGlobalChi2(Double_t chi2)
set the minimum value of the function minimized by the fit
Definition: AliMUONTrack.h:71