- AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor
- AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator
-
- AliMUONTrack(AliMUONHitForRec* hitForRec1, AliMUONHitForRec* hitForRec2); // Constructor from a segment
-
- /// return pointeur to track parameters at vertex
- AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;}
- /// set track parameters at vertex
- void SetTrackParamAtVertex(AliMUONTrackParam* trackParam) {fTrackParamAtVertex = *trackParam;}
-
- /// return array of track parameters at hit
- TClonesArray* GetTrackParamAtHit(void) const {return fTrackParamAtHit;}
- /// reset array of track parameters at hit
- void ResetTrackParamAtHit(void) { fTrackParamAtHit->Delete(); }
- void AddTrackParamAtHit(AliMUONTrackParam *trackParam, AliMUONHitForRec *hitForRec);
-
- /// return array of hitForRec at hit
- TClonesArray* GetHitForRecAtHit(void) const {return fHitForRecAtHit;}
- /// reset array of hitForRec at hit
- void ResetHitForRecAtHit(void) { fHitForRecAtHit->Delete(); }
- void AddHitForRecAtHit(const AliMUONHitForRec *hitForRec);
-
- /// return the number of hits attached to the track
- Int_t GetNTrackHits(void) const {return fNTrackHits;}
- /// set the number of hits attached to the track
- void SetNTrackHits(Int_t nTrackHits) {fNTrackHits = nTrackHits;}
-
- /// return pointeur to track parameters extrapolated to the next station
- AliMUONTrackParam* GetExtrapTrackParam(void) {return &fExtrapTrackParam;}
- /// set track parameters extrapolated to next station
- void SetExtrapTrackParam(AliMUONTrackParam* trackParam) {fExtrapTrackParam = *trackParam;}
-
- /// return kTrue if the vertex must be used to constrain the fit, kFalse if not
- Bool_t GetFitWithVertex(void) const {return fFitWithVertex;}
- /// set the flag telling whether the vertex must be used to constrain the fit or not
- void SetFitWithVertex(Bool_t fitWithVertex) { fFitWithVertex = fitWithVertex; }
- /// return the vertex used during the tracking procedure
- AliMUONHitForRec* GetVertex(void) const {return fVertex;}
- void SetVertex(AliMUONHitForRec* vertex);
-
- /// return the minimum value of the function minimized by the fit
- Double_t GetFitFMin(void) const {return fFitFMin;}
- /// set the minimum value of the function minimized by the fit
- void SetFitFMin(Double_t chi2) { fFitFMin = chi2; }
- /// return 0,1,2 if track matches with trigger track, -1 if not
- Int_t GetMatchTrigger(void) const {return fMatchTrigger;}
- /// returns the local trigger number corresponding to the trigger track
- Int_t GetLoTrgNum(void) const {return floTrgNum;}
- /// set the flag telling whether track matches with trigger track or not
- void SetMatchTrigger(Int_t matchTrigger) {fMatchTrigger = matchTrigger;}
- /// set the local trigger number corresponding to the trigger track
- void SetLoTrgNum(Int_t loTrgNum) {floTrgNum = loTrgNum;}
- /// return the chi2 of trigger/track matching
- Double_t GetChi2MatchTrigger(void) const {return fChi2MatchTrigger;}
- /// set the chi2 of trigger/track matching
- void SetChi2MatchTrigger(Double_t chi2MatchTrigger) {fChi2MatchTrigger = chi2MatchTrigger;}
+ AliMUONTrack (const AliMUONTrack& track); // copy constructor
+ AliMUONTrack& operator=(const AliMUONTrack& track); // assignment operator
+
+ void Reset();
+
+ TClonesArray* GetTrackParamAtCluster() const;
+ void AddTrackParamAtCluster(const AliMUONTrackParam &trackParam, AliMUONVCluster &cluster, Bool_t copy = kFALSE);
+ void RemoveTrackParamAtCluster(AliMUONTrackParam *trackParam);
+ void UpdateTrackParamAtCluster();
+ void UpdateCovTrackParamAtCluster();
+
+ Bool_t IsValid(UInt_t requestedStationMask);
+
+ void TagRemovableClusters(UInt_t requestedStationMask);
+
+ /// return the number of clusters attached to the track
+ Int_t GetNClusters() const {return fTrackParamAtCluster ? fTrackParamAtCluster->GetEntriesFast() : 0;}
+
+ /// return kTrue if the vertex must be used to constrain the fit, kFalse if not
+ Bool_t FitWithVertex() const {return fFitWithVertex;}
+ /// set the flag telling whether the vertex must be used to constrain the fit or not
+ void FitWithVertex(Bool_t fitWithVertex) { fFitWithVertex = fitWithVertex; }
+ /// return the vertex resolution square used during the tracking procedure
+ void GetVertexErrXY2(Double_t &nonBendingErr2, Double_t &bendingErr2) const
+ { nonBendingErr2 = fVertexErrXY2[0]; bendingErr2 = fVertexErrXY2[1]; }
+ /// set the vertex resolution square used during the tracking procedure
+ void SetVertexErrXY2(Double_t nonBendingErr2, Double_t bendingErr2)
+ { fVertexErrXY2[0] = nonBendingErr2; fVertexErrXY2[1] = bendingErr2; }
+
+ /// return kTrue if the multiple scattering must be accounted for in the fit, kFalse if not
+ Bool_t FitWithMCS() const {return fFitWithMCS;}
+ /// set the flag telling whether the multiple scattering must be accounted for in the fit or not
+ void FitWithMCS(Bool_t fitWithMCS) {fFitWithMCS = fitWithMCS;}
+
+ Bool_t ComputeClusterWeights(TMatrixD* mcsCovariances = 0);
+ Bool_t ComputeLocalChi2(Bool_t accountForMCS);
+ Double_t ComputeGlobalChi2(Bool_t accountForMCS);
+
+ /// return the minimum value of the function minimized by the fit
+ Double_t GetGlobalChi2() const {return fGlobalChi2;}
+ /// set the minimum value of the function minimized by the fit
+ void SetGlobalChi2(Double_t chi2) { fGlobalChi2 = chi2;}