#include <TObject.h>
#include <TMatrixD.h>
-class AliMUONHitForRec;
-class AliESDMuonTrack;
+class AliMUONVCluster;
class AliMUONTrackParam : public TObject
{
AliMUONTrackParam(const AliMUONTrackParam& theMUONTrackParam);
AliMUONTrackParam& operator=(const AliMUONTrackParam& theMUONTrackParam);
- void GetParamFrom(const AliESDMuonTrack& esdMuonTrack);
- void SetParamFor(AliESDMuonTrack& esdMuonTrack) const;
- void GetParamFromUncorrected(const AliESDMuonTrack& esdMuonTrack);
- void SetParamForUncorrected(AliESDMuonTrack& esdMuonTrack) const;
-
// Get and Set methods for data
/// return Z coordinate (cm)
Double_t GetZ() const {return fZ;}
const TMatrixD& GetSmoothCovariances() const;
void SetSmoothCovariances(const TMatrixD& covariances);
- AliMUONHitForRec* GetHitForRecPtr() const;
- /// set pointeur to associated HitForRec
- void SetHitForRecPtr(AliMUONHitForRec* hitForRec) {fHitForRecPtr = hitForRec;}
+ /// get pointeur to associated cluster
+ AliMUONVCluster* GetClusterPtr() const {return fClusterPtr;}
+ void SetClusterPtr(AliMUONVCluster* cluster, Bool_t owner = kFALSE);
- /// return kTRUE if the associated hit can be removed from the track it belongs to
+ /// return kTRUE if the associated cluster can be removed from the track it belongs to
Bool_t IsRemovable() const {return fRemovable;}
- /// set the flag telling whether the associated hit can be removed from the track it belongs to or not
+ /// set the flag telling whether the associated cluster can be removed from the track it belongs to or not
void SetRemovable(Bool_t removable) {fRemovable = removable;}
- /// return the chi2 of the track when the associated HitForRec was attached
+ /// return the chi2 of the track when the associated cluster was attached
Double_t GetTrackChi2() const {return fTrackChi2;}
- /// set the chi2 of the track when the associated HitForRec was attached
+ /// set the chi2 of the track when the associated cluster was attached
void SetTrackChi2(Double_t chi2) {fTrackChi2 = chi2;}
- /// return the local chi2 of the associated HitForRec with respect to the track
+ /// return the local chi2 of the associated cluster with respect to the track
Double_t GetLocalChi2() const {return fLocalChi2;}
- /// set the local chi2 of the associated HitForRec with respect to the track
+ /// set the local chi2 of the associated cluster with respect to the track
void SetLocalChi2(Double_t chi2) {fLocalChi2 = chi2;}
- /// necessary for sorting TClonesArray of TrackHit's
+ /// necessary for sorting TClonesArray of AliMUONTrackParam
Bool_t IsSortable () const {return kTRUE;}
Int_t Compare(const TObject* trackParam) const;
+ Bool_t CompatibleTrackParam(const AliMUONTrackParam &trackParam, Double_t sigma2Cut, Double_t &normChi2) const;
+
virtual void Print(Option_t* opt="") const;
virtual void Clear(Option_t* opt="");
/// <X,InvP_yz> <SlopeX,InvP_yz> <Y,InvP_yz> <SlopeY,InvP_yz> <InvP_yz,InvP_yz> </pre>
mutable TMatrixD *fCovariances; ///< \brief Covariance matrix of track parameters
- mutable TMatrixD *fPropagator; //!< Jacobian used to extrapolate the track parameters and covariances to the actual z position
- mutable TMatrixD *fExtrapParameters; //!< Track parameters extrapolated to the actual z position (not filtered by Kalman)
+ mutable TMatrixD *fPropagator; //!< Jacobian used to extrapolate the track parameters and covariances to the actual z position
+ mutable TMatrixD *fExtrapParameters; //!< Track parameters extrapolated to the actual z position (not filtered by Kalman)
mutable TMatrixD *fExtrapCovariances; //!< Covariance matrix extrapolated to the actual z position (not filtered by Kalman)
- mutable TMatrixD *fSmoothParameters; //!< Track parameters obtained using smoother
+ mutable TMatrixD *fSmoothParameters; //!< Track parameters obtained using smoother
mutable TMatrixD *fSmoothCovariances; //!< Covariance matrix obtained using smoother
- AliMUONHitForRec *fHitForRecPtr; //!< Pointer to associated HitForRec if any
+ AliMUONVCluster *fClusterPtr; //!< Pointer to associated cluster if any
+ Bool_t fOwnCluster; //!< Ownership of the associated cluster
- Bool_t fRemovable; //!< kTRUE if the associated hit can be removed from the track it belongs to
+ Bool_t fRemovable; //!< kTRUE if the associated cluster can be removed from the track it belongs to
- Double_t fTrackChi2; //!< Chi2 of the track when the associated HitForRec was attached
- Double_t fLocalChi2; //!< Local chi2 of the associated HitForRec with respect to the track
+ Double_t fTrackChi2; //!< Chi2 of the track when the associated cluster was attached
+ Double_t fLocalChi2; //!< Local chi2 of the associated cluster with respect to the track
ClassDef(AliMUONTrackParam, 4) // Track parameters in ALICE dimuon spectrometer
};