- AliMUONTrack (const AliMUONTrack& AliMUONTrack); // copy constructor
- AliMUONTrack& operator=(const AliMUONTrack& AliMUONTrack); // assignment operator
-
- AliMUONTrack(AliMUONSegment* BegSegment, AliMUONSegment* EndSegment, AliMUONEventReconstructor* EventReconstructor); // Constructor from two Segment's
- AliMUONTrack(AliMUONSegment* Segment, AliMUONHitForRec* HitForRec, AliMUONEventReconstructor* EventReconstructor); // Constructor from one Segment and one HitForRec
- void Remove(void);
-
- AliMUONEventReconstructor* GetEventReconstructor(void) const {return fEventReconstructor;}
- AliMUONTrackParam* GetTrackParamAtVertex(void) {return &fTrackParamAtVertex;}
- void SetTrackParamAtVertex(void); // Set track parameters at vertex from last stations 4 & 5
- void SetTrackParamAtVertex(AliMUONTrackParam* TrackParam) {fTrackParamAtVertex = *TrackParam;}
- TClonesArray *GetTrackParamAtHit(void) const {return fTrackParamAtHit;}
- void ResetTrackParamAtHit(void) { fTrackParamAtHit->Delete(); }
- void AddTrackParamAtHit(const AliMUONTrackParam *trackParam)
- {new ((*fTrackParamAtHit)[fTrackParamAtHit->GetEntriesFast()]) AliMUONTrackParam(*trackParam);}
-
- TObjArray* GetTrackHitsPtr(void) const {return fTrackHitsPtr;}
- Int_t GetNTrackHits(void) const {return fNTrackHits;}
- Int_t GetFitMCS(void) const {return fFitMCS;}
- Int_t GetFitNParam(void) const {return fFitNParam;}
- Int_t GetFitStart(void) const {return fFitStart;}
- Double_t GetFitFMin(void) const {return fFitFMin;}
- Bool_t GetMatchTrigger(void) const {return fMatchTrigger;}
+ 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;}
+
+ /// return kTRUE if the track has been improved
+ Bool_t IsImproved() const {return fImproved;}
+ /// set the flag telling whether the track has been improved or not
+ void SetImproved(Bool_t improved) { fImproved = improved;}
+
+ /// return 1,2,3 if track matches with trigger track, 0 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