1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 //-----------------------------------------------------------------------------
18 /// \class AliMUONRecoParam
20 /// Class with MUON reconstruction parameters
22 /// \author Philippe Pillot
23 //-----------------------------------------------------------------------------
27 #include "AliMUONRecoParam.h"
31 #include <Riostream.h>
33 ClassImp(AliMUONRecoParam)
36 //_____________________________________________________________________________
37 AliMUONRecoParam::AliMUONRecoParam()
39 fClusteringMode("MLEM"),
40 fTrackingMode("KALMAN"),
41 fMinBendingMomentum(0.),
42 fMaxBendingMomentum(0.),
43 fNonBendingVertexDispersion(0.),
44 fBendingVertexDispersion(0.),
45 fMaxNonBendingDistanceToTrack(0.),
46 fMaxBendingDistanceToTrack(0.),
47 fSigmaCutForTracking(0.),
48 fSigmaCutForImprovement(0.),
49 fSigmaCutForTrigger(0.),
50 fMaxNormChi2MatchTrigger(0.),
51 fCombinedClusterTrackReco(kFALSE),
52 fTrackAllTracks(kFALSE),
53 fRecoverTracks(kFALSE),
54 fMakeTrackCandidatesFast(kFALSE),
55 fComplementTracks(kFALSE),
56 fImproveTracks(kFALSE),
61 // use the default parameters for low flux environment
65 //_____________________________________________________________________________
66 AliMUONRecoParam::~AliMUONRecoParam()
71 //_____________________________________________________________________________
72 AliMUONRecoParam *AliMUONRecoParam::GetLowFluxParam()
74 /// Return default reconstruction parameters for low flux environment
76 AliMUONRecoParam *param = new AliMUONRecoParam();
77 param->SetLowFluxParam();
82 //_____________________________________________________________________________
83 AliMUONRecoParam *AliMUONRecoParam::GetHighFluxParam()
85 /// Return default reconstruction parameters for high flux environment
87 AliMUONRecoParam *param = new AliMUONRecoParam();
88 param->SetHighFluxParam();
93 //_____________________________________________________________________________
94 void AliMUONRecoParam::SetLowFluxParam()
96 /// Set reconstruction parameters for low flux environment
98 fMinBendingMomentum = 0.5;
99 fMaxBendingMomentum = 3000.;
100 fNonBendingVertexDispersion = 10.;
101 fBendingVertexDispersion = 10.;
102 fMaxNonBendingDistanceToTrack = 2.;
103 fMaxBendingDistanceToTrack = 2.;
104 fSigmaCutForTracking = 6.;
105 fSigmaCutForImprovement = 5.;
106 fSigmaCutForTrigger = 8.;
107 fMaxNormChi2MatchTrigger = 16.;
108 fTrackAllTracks = kTRUE;
109 fRecoverTracks = kTRUE;
110 fMakeTrackCandidatesFast = kFALSE;
111 fComplementTracks = kTRUE;
112 fImproveTracks = kTRUE;
113 fUseSmoother = kTRUE;
117 //_____________________________________________________________________________
118 void AliMUONRecoParam::SetHighFluxParam()
120 /// Set reconstruction parameters for high flux environment
122 fMinBendingMomentum = 0.5;
123 fMaxBendingMomentum = 3000.;
124 fNonBendingVertexDispersion = 10.;
125 fBendingVertexDispersion = 10.;
126 fMaxNonBendingDistanceToTrack = 2.;
127 fMaxBendingDistanceToTrack = 2.;
128 fSigmaCutForTracking = 6.;
129 fSigmaCutForImprovement = 5.;
130 fSigmaCutForTrigger = 8.;
131 fMaxNormChi2MatchTrigger = 16.;
132 fTrackAllTracks = kTRUE;
133 fRecoverTracks = kTRUE;
134 fMakeTrackCandidatesFast = kFALSE;
135 fComplementTracks = kTRUE;
136 fImproveTracks = kTRUE;
137 fUseSmoother = kTRUE;
141 //_____________________________________________________________________________
142 void AliMUONRecoParam::Print(Option_t *option) const
144 /// print reconstruction parameters
145 /// if option = FULL then print also unused parameters
147 cout<<endl<<"\t------Reconstruction parameters------"<<endl;
149 cout<<Form("Clustering mode = %s",fClusteringMode.Data())<<endl;
151 cout<<Form("Tracking mode = %s",fTrackingMode.Data())<<endl;
153 if (fCombinedClusterTrackReco) cout<<"Combined cluster/track reconstruction is on"<<endl;
154 else cout<<"Combined cluster/track reconstruction is off"<<endl;
156 cout<<Form("Bending momentum range = [%5.2f,%5.2f]",fMinBendingMomentum,fMaxBendingMomentum)<<endl;
158 if (strstr(fTrackingMode,"ORIGINAL"))
159 cout<<Form("Vertex dispertion = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
160 else if (strstr(option,"FULL"))
161 cout<<Form("Vertex dispertion (used for original tracking only) = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
163 cout<<Form("Maximum distance to track = (%5.2f,%5.2f)",fMaxNonBendingDistanceToTrack,fMaxBendingDistanceToTrack)<<endl;
165 cout<<Form("Sigma cut for tracking = %5.2f",fSigmaCutForTracking)<<endl;
167 cout<<Form("Sigma cut for trigger hit pattern = %5.2f",fSigmaCutForTrigger)<<endl;
169 if (fTrackAllTracks) cout<<"Track all the possible candidates"<<endl;
170 else cout<<"Track only the best candidates"<<endl;
172 if (strstr(option,"FULL")) {
173 cout<<"Make track candidates assuming linear propagation between stations 4 and 5: ";
174 if (fMakeTrackCandidatesFast) cout<<"ON"<<endl;
175 else cout<<"OFF"<<endl;
176 } else if (fMakeTrackCandidatesFast)
177 cout<<"Make track candidates assuming linear propagation between stations 4 and 5"<<endl;
179 if (strstr(option,"FULL")) {
180 cout<<"Try to recover tracks getting lost during tracking: ";
181 if (fRecoverTracks) cout<<"ON"<<endl;
182 else cout<<"OFF"<<endl;
183 } else if (fRecoverTracks)
184 cout<<"Try to recover tracks getting lost during tracking"<<endl;
186 if (strstr(option,"FULL")) {
187 cout<<"Try to complete the reconstructed tracks by adding missing clusters: ";
188 if (fComplementTracks) cout<<"ON"<<endl;
189 else cout<<"OFF"<<endl;
190 } else if (fComplementTracks)
191 cout<<"Try to complete the reconstructed tracks by adding missing clusters"<<endl;
193 if (strstr(option,"FULL")) {
194 cout<<"Try to improve the reconstructed tracks by removing bad clusters: ";
195 if (fImproveTracks) cout<<Form("ON (sigma cut = %5.2f)",fSigmaCutForImprovement)<<endl;
196 else cout<<"OFF"<<endl;
197 } else if (fImproveTracks)
198 cout<<Form("Try to improve the reconstructed tracks by removing bad clusters (sigma cut = %5.2f)",fSigmaCutForImprovement)<<endl;
200 if (strstr(option,"FULL")) {
201 cout<<"Use smoother to compute final track parameters, etc, at each cluster (used for Kalman tracking only): ";
202 if (fUseSmoother) cout<<"ON"<<endl;
203 else cout<<"OFF"<<endl;
204 } else if (fUseSmoother)
205 cout<<"Use smoother to compute final track parameters, etc, at each cluster"<<endl;
207 cout<<Form("Maximum normalized chi2 of tracking/trigger track matching = %5.2f",fMaxNormChi2MatchTrigger)<<endl;
209 cout<<"\t-------------------------------------"<<endl<<endl;