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()
38 : AliDetectorRecoParam(),
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),
60 SetNameTitle("MUON","MUON");
62 // use the default parameters for low flux environment
66 //_____________________________________________________________________________
67 AliMUONRecoParam::~AliMUONRecoParam()
72 //_____________________________________________________________________________
73 AliMUONRecoParam *AliMUONRecoParam::GetLowFluxParam()
75 /// Return default reconstruction parameters for low flux environment
77 AliMUONRecoParam *param = new AliMUONRecoParam();
78 param->SetLowFluxParam();
83 //_____________________________________________________________________________
84 AliMUONRecoParam *AliMUONRecoParam::GetHighFluxParam()
86 /// Return default reconstruction parameters for high flux environment
88 AliMUONRecoParam *param = new AliMUONRecoParam();
89 param->SetHighFluxParam();
94 //_____________________________________________________________________________
95 void AliMUONRecoParam::SetLowFluxParam()
97 /// Set reconstruction parameters for low flux environment
99 fMinBendingMomentum = 0.5;
100 fMaxBendingMomentum = 3000.;
101 fNonBendingVertexDispersion = 10.;
102 fBendingVertexDispersion = 10.;
103 fMaxNonBendingDistanceToTrack = 2.;
104 fMaxBendingDistanceToTrack = 2.;
105 fSigmaCutForTracking = 6.;
106 fSigmaCutForImprovement = 5.;
107 fSigmaCutForTrigger = 8.;
108 fMaxNormChi2MatchTrigger = 16.;
109 fTrackAllTracks = kTRUE;
110 fRecoverTracks = kTRUE;
111 fMakeTrackCandidatesFast = kFALSE;
112 fComplementTracks = kTRUE;
113 fImproveTracks = kTRUE;
114 fUseSmoother = kTRUE;
118 //_____________________________________________________________________________
119 void AliMUONRecoParam::SetHighFluxParam()
121 /// Set reconstruction parameters for high flux environment
123 fMinBendingMomentum = 0.5;
124 fMaxBendingMomentum = 3000.;
125 fNonBendingVertexDispersion = 10.;
126 fBendingVertexDispersion = 10.;
127 fMaxNonBendingDistanceToTrack = 2.;
128 fMaxBendingDistanceToTrack = 2.;
129 fSigmaCutForTracking = 6.;
130 fSigmaCutForImprovement = 5.;
131 fSigmaCutForTrigger = 8.;
132 fMaxNormChi2MatchTrigger = 16.;
133 fTrackAllTracks = kTRUE;
134 fRecoverTracks = kTRUE;
135 fMakeTrackCandidatesFast = kFALSE;
136 fComplementTracks = kTRUE;
137 fImproveTracks = kTRUE;
138 fUseSmoother = kTRUE;
142 //_____________________________________________________________________________
143 void AliMUONRecoParam::Print(Option_t *option) const
145 /// print reconstruction parameters
146 /// if option = FULL then print also unused parameters
148 cout<<endl<<"\t------Reconstruction parameters------"<<endl;
150 cout<<Form("Clustering mode = %s",fClusteringMode.Data())<<endl;
152 cout<<Form("Tracking mode = %s",fTrackingMode.Data())<<endl;
154 if (fCombinedClusterTrackReco) cout<<"Combined cluster/track reconstruction: ON"<<endl;
155 else cout<<"Combined cluster/track reconstruction: OFF"<<endl;
157 cout<<Form("Bending momentum range = [%5.2f,%5.2f]",fMinBendingMomentum,fMaxBendingMomentum)<<endl;
159 if (strstr(fTrackingMode,"ORIGINAL"))
160 cout<<Form("Vertex dispertion = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
161 else if (strstr(option,"FULL"))
162 cout<<Form("Vertex dispertion (used for original tracking only) = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
164 cout<<Form("Maximum distance to track = (%5.2f,%5.2f)",fMaxNonBendingDistanceToTrack,fMaxBendingDistanceToTrack)<<endl;
166 cout<<Form("Sigma cut for tracking = %5.2f",fSigmaCutForTracking)<<endl;
168 cout<<Form("Sigma cut for trigger hit pattern = %5.2f",fSigmaCutForTrigger)<<endl;
170 if (fTrackAllTracks) cout<<"Track all the possible candidates"<<endl;
171 else cout<<"Track only the best candidates"<<endl;
173 if (strstr(option,"FULL")) {
174 cout<<"Make track candidates assuming linear propagation between stations 4 and 5: ";
175 if (fMakeTrackCandidatesFast) cout<<"ON"<<endl;
176 else cout<<"OFF"<<endl;
177 } else if (fMakeTrackCandidatesFast)
178 cout<<"Make track candidates assuming linear propagation between stations 4 and 5"<<endl;
180 if (strstr(option,"FULL")) {
181 cout<<"Try to recover tracks getting lost during tracking: ";
182 if (fRecoverTracks) cout<<"ON"<<endl;
183 else cout<<"OFF"<<endl;
184 } else if (fRecoverTracks)
185 cout<<"Try to recover tracks getting lost during tracking"<<endl;
187 if (strstr(option,"FULL")) {
188 cout<<"Try to complete the reconstructed tracks by adding missing clusters: ";
189 if (fComplementTracks) cout<<"ON"<<endl;
190 else cout<<"OFF"<<endl;
191 } else if (fComplementTracks)
192 cout<<"Try to complete the reconstructed tracks by adding missing clusters"<<endl;
194 if (strstr(option,"FULL")) {
195 cout<<"Try to improve the reconstructed tracks by removing bad clusters: ";
196 if (fImproveTracks) cout<<Form("ON (sigma cut = %5.2f)",fSigmaCutForImprovement)<<endl;
197 else cout<<"OFF"<<endl;
198 } else if (fImproveTracks)
199 cout<<Form("Try to improve the reconstructed tracks by removing bad clusters (sigma cut = %5.2f)",fSigmaCutForImprovement)<<endl;
201 if (strstr(option,"FULL")) {
202 cout<<"Use smoother to compute final track parameters, etc, at each cluster (used for Kalman tracking only): ";
203 if (fUseSmoother) cout<<"ON"<<endl;
204 else cout<<"OFF"<<endl;
205 } else if (fUseSmoother)
206 cout<<"Use smoother to compute final track parameters, etc, at each cluster"<<endl;
208 cout<<Form("Maximum normalized chi2 of tracking/trigger track matching = %5.2f",fMaxNormChi2MatchTrigger)<<endl;
210 cout<<"\t-------------------------------------"<<endl<<endl;