]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONRecoParam.cxx
Adding option to switch on/off the combined tracking (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoParam.cxx
1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
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 **************************************************************************/
15
16
17 //-----------------------------------------------------------------------------
18 /// \class AliMUONRecoParam
19 ///
20 /// Class with MUON reconstruction parameters
21 ///
22 ///  \author Philippe Pillot
23 //-----------------------------------------------------------------------------
24
25
26
27 #include "AliMUONRecoParam.h"
28
29 #include "AliLog.h"
30
31 #include <Riostream.h>
32
33 ClassImp(AliMUONRecoParam)
34
35
36 //_____________________________________________________________________________
37 AliMUONRecoParam::AliMUONRecoParam()
38 : TObject(),
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),
57   fUseSmoother(kFALSE)
58 {
59   /// Constructor
60   
61   // use the default parameters for low flux environment
62   SetLowFluxParam();
63 }
64
65 //_____________________________________________________________________________
66 AliMUONRecoParam::~AliMUONRecoParam() 
67 {
68   /// Destructor
69 }
70
71 //_____________________________________________________________________________
72 AliMUONRecoParam *AliMUONRecoParam::GetLowFluxParam() 
73 {
74   /// Return default reconstruction parameters for low flux environment
75   
76   AliMUONRecoParam *param = new AliMUONRecoParam();
77   param->SetLowFluxParam();
78   
79   return param;
80 }
81
82 //_____________________________________________________________________________
83 AliMUONRecoParam *AliMUONRecoParam::GetHighFluxParam() 
84 {
85   /// Return default reconstruction parameters for high flux environment
86   
87   AliMUONRecoParam *param = new AliMUONRecoParam();
88   param->SetHighFluxParam();
89  
90   return param;
91 }
92
93 //_____________________________________________________________________________
94 void AliMUONRecoParam::SetLowFluxParam() 
95 {
96   /// Set reconstruction parameters for low flux environment
97   
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;
114   
115 }
116
117 //_____________________________________________________________________________
118 void AliMUONRecoParam::SetHighFluxParam() 
119 {
120   /// Set reconstruction parameters for high flux environment
121   
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;
138   
139 }
140
141 //_____________________________________________________________________________
142 void AliMUONRecoParam::Print(Option_t *option) const
143 {
144   /// print reconstruction parameters
145   /// if option = FULL then print also unused parameters
146   
147   cout<<endl<<"\t------Reconstruction parameters------"<<endl;
148   
149   cout<<Form("Clustering mode = %s",fClusteringMode.Data())<<endl;
150   
151   cout<<Form("Tracking mode = %s",fTrackingMode.Data())<<endl;
152   
153   if (fCombinedClusterTrackReco) cout<<"Combined cluster/track reconstruction is on"<<endl;
154   else cout<<"Combined cluster/track reconstruction is off"<<endl;
155   
156   cout<<Form("Bending momentum range = [%5.2f,%5.2f]",fMinBendingMomentum,fMaxBendingMomentum)<<endl;
157   
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;
162   
163   cout<<Form("Maximum distance to track = (%5.2f,%5.2f)",fMaxNonBendingDistanceToTrack,fMaxBendingDistanceToTrack)<<endl;
164   
165   cout<<Form("Sigma cut for tracking = %5.2f",fSigmaCutForTracking)<<endl;
166
167   cout<<Form("Sigma cut for trigger hit pattern = %5.2f",fSigmaCutForTrigger)<<endl;
168   
169   if (fTrackAllTracks) cout<<"Track all the possible candidates"<<endl;
170   else cout<<"Track only the best candidates"<<endl;
171   
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;
178   
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;
185   
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;
192   
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;
199   
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;
206   
207   cout<<Form("Maximum normalized chi2 of tracking/trigger track matching = %5.2f",fMaxNormChi2MatchTrigger)<<endl;
208   
209   cout<<"\t-------------------------------------"<<endl<<endl;
210   
211 }
212