1 #ifndef AliMFTTrackerMU_H
2 #define AliMFTTrackerMU_H
4 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //====================================================================================================================================================
11 // Class for the creation of the "global muon tracks" built from the tracks reconstructed in the
12 // muon spectrometer and the clusters of the Muon Forward Tracker
14 // Contact author: antonio.uras@cern.ch
16 //====================================================================================================================================================
20 #include "AliGeomManager.h"
21 #include "AliESDEvent.h"
22 #include "AliESDMuonTrack.h"
23 #include "AliESDMuonGlobalTrack.h"
24 #include "AliTracker.h"
27 #include "AliMUONTrackExtrap.h"
28 #include "AliMUONTrack.h"
29 #include "AliMUONESDInterface.h"
30 #include "AliMuonForwardTrack.h"
32 //====================================================================================================================================================
34 class AliMFTTrackerMU : public AliTracker {
38 enum {kConverged, kDiverged};
41 virtual ~AliMFTTrackerMU();
43 Int_t LoadClusters(TTree *cf);
44 void UnloadClusters();
45 Int_t Clusters2Tracks(AliESDEvent *event);
47 void SetNPlanesMFT(Int_t nPlanesMFT) { fNPlanesMFT = nPlanesMFT; }
48 void SeparateFrontBackClusters();
50 Int_t FindClusterInPlane(Int_t planeId);
52 void SetVertexError(Double_t xErr, Double_t yErr, Double_t zErr) { fVertexErrorX=xErr; fVertexErrorY=yErr; fVertexErrorZ=zErr; }
53 void SetMinResearchRadiusAtPlane(Int_t plane, Double_t radius) { if (plane>=0 && plane<fNMaxPlanes) fMinResearchRadiusAtPlane[plane] = radius; }
55 Double_t TryOneCluster(const AliMUONTrackParam &trackParam, AliMFTCluster *cluster);
57 /// Dummy implementation
58 virtual Int_t PropagateBack(AliESDEvent* /*event*/) {return 0;}
59 /// Dummy implementation
60 virtual Int_t RefitInward(AliESDEvent* /*event*/) {return 0;}
61 /// Dummy implementation
62 virtual AliCluster *GetCluster(Int_t /*index*/) const {return 0;}
67 static const Int_t fNMaxPlanes = AliMFTConstants::fNMaxPlanes; // max number of MFT planes
68 static const Double_t fRadLengthSi;
69 static const Int_t fMaxNCandidates = 1000;
71 AliESDEvent *fESD; //! pointer to the ESD event
74 AliMFTSegmentation *fSegmentation; //!
75 Int_t fNPlanesMFT, fNPlanesMFTAnalyzed;
77 Double_t fSigmaClusterCut; // to select the clusters in the MFT planes which are compatible with the extrapolated muon track
78 Double_t fScaleSigmaClusterCut; // to tune the cut on the compatible clusters in case of too many candidates
80 Int_t fNMaxMissingMFTClusters; // max. number of MFT clusters which can be missed in the global fit procedure
81 Bool_t fIsPlaneMandatory[fNMaxPlanes]; // specifies which MFT planes cannot be missed in the global fit procedure
83 Bool_t fGlobalTrackingDiverged; // to keep memory of a possible divergence in the global tracking finding
85 TClonesArray *fMFTClusterArray[fNMaxPlanes]; //! array of clusters for the planes of the MFT
86 TClonesArray *fMFTClusterArrayFront[fNMaxPlanes]; //! array of front clusters for the planes of the MFT
87 TClonesArray *fMFTClusterArrayBack[fNMaxPlanes]; //! array of back clusters for the planes of the MFT
89 TClonesArray *fCandidateTracks; //! array of candidate global tracks
91 AliMUONTrack *fMUONTrack; //! muon track being analyzed
93 AliMuonForwardTrack *fCurrentTrack; //! muon extrapolated track being tested
94 AliMuonForwardTrack *fFinalBestCandidate; //! best final candidate (if any)
96 // uncertainty on the x position of the primary vertex (seed for the extrapolation of the MUON tracks)
97 Double_t fVertexErrorX;
98 Double_t fVertexErrorY;
99 Double_t fVertexErrorZ;
101 Bool_t fBransonCorrection; // if TRUE, Branson Correction is applied when extrapolating the MUON tracks to the vertex region
103 Double_t fMinResearchRadiusAtPlane[fNMaxPlanes];
107 AliMFTTrackerMU(const AliMFTTrackerMU &tracker);
108 AliMFTTrackerMU & operator=(const AliMFTTrackerMU &tracker);
109 ClassDef(AliMFTTrackerMU,1) //MFT tracker for muon tracks
113 //====================================================================================================================================================