]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRecoParam.h
Minor chages
[u/mrichter/AliRoot.git] / MUON / AliMUONRecoParam.h
CommitLineData
3304fa09 1#ifndef AliMUONRecoParam_H
2#define AliMUONRecoParam_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4* See cxx source for full Copyright notice */
5
bf4d93eb 6// $Id$
7
3304fa09 8/// \ingroup rec
9/// \class AliMUONRecoParam
10/// \brief Class with MUON reconstruction parameters
11///
12// Author: Philippe Pillot
13
15d30ed4 14#include "AliDetectorRecoParam.h"
3304fa09 15#include "TString.h"
16
15d30ed4 17class AliMUONRecoParam : public AliDetectorRecoParam
3304fa09 18{
19 public:
20 AliMUONRecoParam();
21 virtual ~AliMUONRecoParam();
22
23 static AliMUONRecoParam *GetLowFluxParam();
24 static AliMUONRecoParam *GetHighFluxParam();
0e894e58 25 static AliMUONRecoParam *GetCosmicParam();
3304fa09 26
9bf6860b 27 /// set the calibration mode (see GetCalibrationMode() for possible modes)
7332f213 28 void SetCalibrationMode(Option_t* mode) { fCalibrationMode = mode; fCalibrationMode.ToUpper();}
9bf6860b 29
30 Option_t* GetCalibrationMode() const;
31
3304fa09 32 /// set the clustering (pre-clustering) mode
7332f213 33 void SetClusteringMode(Option_t* mode) {fClusteringMode = mode; fClusteringMode.ToUpper();}
3304fa09 34 /// get the clustering (pre-clustering) mode
35 Option_t* GetClusteringMode() const {return fClusteringMode.Data();}
36
37 /// set the tracking mode
7332f213 38 void SetTrackingMode(Option_t* mode) {fTrackingMode = mode; fTrackingMode.ToUpper();}
3304fa09 39 /// get the tracking mode
40 Option_t* GetTrackingMode() const {return fTrackingMode.Data();}
41
38bcf0ef 42 /// switch on/off the combined cluster/track reconstruction
43 void CombineClusterTrackReco(Bool_t flag) {fCombinedClusterTrackReco = flag;}
44 /// return kTRUE/kFALSE if the combined cluster/track reconstruction is on/off
45 Bool_t CombineClusterTrackReco() const {return fCombinedClusterTrackReco;}
46
0a18ba02 47 /// save all cluster info (including pads) in ESD, for the given percentage of events
48 void SaveFullClusterInESD(Bool_t flag, Double_t percentOfEvent = 100.) {fSaveFullClusterInESD = flag;
49 fPercentOfFullClusterInESD = (fSaveFullClusterInESD) ? percentOfEvent : 0.;}
50 /// return kTRUE/kFALSE depending on whether we save all cluster info in ESD or not
51 Bool_t SaveFullClusterInESD() const {return fSaveFullClusterInESD;}
52 /// return the percentage of events for which all cluster info are stored in ESD
53 Double_t GetPercentOfFullClusterInESD() const {return fPercentOfFullClusterInESD;}
54
0e894e58 55 /// set the most probable value (GeV/c) of momentum in bending plane
56 /// needed to get some "reasonable" corrections for MCS and E loss even if B = 0
57 void SetMostProbBendingMomentum(Double_t val) {fMostProbBendingMomentum = val;}
58 /// return the most probable value (GeV/c) of momentum in bending plane
59 Double_t GetMostProbBendingMomentum() const {return fMostProbBendingMomentum;}
60
3304fa09 61 /// set the minimum value (GeV/c) of momentum in bending plane
62 void SetMinBendingMomentum(Double_t val) {fMinBendingMomentum = val;}
63 /// return the minimum value (GeV/c) of momentum in bending plane
64 Double_t GetMinBendingMomentum() const {return fMinBendingMomentum;}
65 /// set the maximum value (GeV/c) of momentum in bending plane
66 void SetMaxBendingMomentum(Double_t val) {fMaxBendingMomentum = val;}
67 /// return the maximum value (GeV/c) of momentum in bending plane
68 Double_t GetMaxBendingMomentum() const {return fMaxBendingMomentum;}
9bf6860b 69 /// set the maximum value of the non bending slope
70 void SetMaxNonBendingSlope(Double_t val) {fMaxNonBendingSlope = val;}
71 /// return the maximum value of the non bending slope
72 Double_t GetMaxNonBendingSlope() const {return fMaxNonBendingSlope;}
9f093251 73 /// set the maximum value of the bending slope
74 void SetMaxBendingSlope(Double_t val) {fMaxBendingSlope = val;}
75 /// return the maximum value of the bending slope
76 Double_t GetMaxBendingSlope() const {return fMaxBendingSlope;}
3304fa09 77
78 /// set the vertex dispersion (cm) in non bending plane (used for original tracking only)
79 void SetNonBendingVertexDispersion(Double_t val) {fNonBendingVertexDispersion = val;}
b1fea02e 80 /// return the vertex dispersion (cm) in non bending plane (used for original tracking only)
3304fa09 81 Double_t GetNonBendingVertexDispersion() const {return fNonBendingVertexDispersion;}
b1fea02e 82 /// set the vertex dispersion (cm) in bending plane (used for original tracking only)
3304fa09 83 void SetBendingVertexDispersion(Double_t val) {fBendingVertexDispersion = val;}
84 /// return the vertex dispersion (cm) in bending plane (used for original tracking only)
85 Double_t GetBendingVertexDispersion() const {return fBendingVertexDispersion;}
86
87 /// set the maximum distance to the track to search for compatible cluster(s) in non bending direction
88 void SetMaxNonBendingDistanceToTrack(Double_t val) {fMaxNonBendingDistanceToTrack = val;}
89 /// return the maximum distance to the track to search for compatible cluster(s) in non bending direction
90 Double_t GetMaxNonBendingDistanceToTrack() const {return fMaxNonBendingDistanceToTrack;}
91 /// set the maximum distance to the track to search for compatible cluster(s) in bending direction
92 void SetMaxBendingDistanceToTrack(Double_t val) {fMaxBendingDistanceToTrack = val;}
93 /// return the maximum distance to the track to search for compatible cluster(s) in bending direction
94 Double_t GetMaxBendingDistanceToTrack() const {return fMaxBendingDistanceToTrack;}
95
96 /// set the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
97 void SetSigmaCutForTracking(Double_t val) {fSigmaCutForTracking = val;}
98 /// return the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
99 Double_t GetSigmaCutForTracking() const {return fSigmaCutForTracking;}
100
101 /// switch on/off the track improvement and keep the default cut in sigma to apply on cluster (local chi2)
102 void ImproveTracks(Bool_t flag) {fImproveTracks = flag;}
103 /// switch on/off the track improvement and set the cut in sigma to apply on cluster (local chi2)
104 void ImproveTracks(Bool_t flag, Double_t sigmaCut) {fImproveTracks = flag; fSigmaCutForImprovement = sigmaCut;}
105 /// return kTRUE/kFALSE if the track improvement is switch on/off
106 Bool_t ImproveTracks() const {return fImproveTracks;}
107 /// return the cut in sigma to apply on cluster (local chi2) during track improvement
108 Double_t GetSigmaCutForImprovement() const {return fSigmaCutForImprovement;}
fda59e58 109
110 /// set the cut in sigma to apply on track during trigger hit pattern search
111 void SetSigmaCutForTrigger(Double_t val) {fSigmaCutForTrigger = val;}
112 /// return the cut in sigma to apply on track during trigger hit pattern search
113 Double_t GetSigmaCutForTrigger() const {return fSigmaCutForTrigger;}
b5270f21 114 /// set the cut in strips to apply on trigger track during trigger chamber efficiency
115 void SetStripCutForTrigger(Double_t val) {fStripCutForTrigger = val;}
116 /// return the cut in strips to apply on trigger track during trigger chamber efficiency
117 Double_t GetStripCutForTrigger() const {return fStripCutForTrigger;}
118 /// set the maximum search area in strips to apply on trigger track during trigger chamber efficiency
119 void SetMaxStripAreaForTrigger(Double_t val) {fMaxStripAreaForTrigger = val;}
120 /// return the maximum search area in strips to apply on trigger track during trigger chamber efficiency
121 Double_t GetMaxStripAreaForTrigger() const {return fMaxStripAreaForTrigger;}
3304fa09 122
123 /// set the maximum normalized chi2 of tracking/trigger track matching
124 void SetMaxNormChi2MatchTrigger(Double_t val) {fMaxNormChi2MatchTrigger = val;}
125 /// return the maximum normalized chi2 of tracking/trigger track matching
126 Double_t GetMaxNormChi2MatchTrigger() const {return fMaxNormChi2MatchTrigger;}
127
128 /// switch on/off the tracking of all the possible candidates (track only the best one if switched off)
129 void TrackAllTracks(Bool_t flag) {fTrackAllTracks = flag;}
38bcf0ef 130 /// return kTRUE/kFALSE if the tracking of all the possible candidates is switched on/off
3304fa09 131 Bool_t TrackAllTracks() const {return fTrackAllTracks;}
132
133 /// switch on/off the recovering of tracks being lost during reconstruction
134 void RecoverTracks(Bool_t flag) {fRecoverTracks = flag;}
38bcf0ef 135 /// return kTRUE/kFALSE if the recovering of tracks being lost during reconstruction is switched on/off
3304fa09 136 Bool_t RecoverTracks() const {return fRecoverTracks;}
137
138 /// switch on/off the fast building of track candidates (assuming linear propagation between stations 4 and 5)
139 void MakeTrackCandidatesFast(Bool_t flag) {fMakeTrackCandidatesFast = flag;}
38bcf0ef 140 /// return kTRUE/kFALSE if the fast building of track candidates is switched on/off
3304fa09 141 Bool_t MakeTrackCandidatesFast() const {return fMakeTrackCandidatesFast;}
142
9bf6860b 143 /// switch on/off the building of track candidates starting from 1 cluster in each of the stations 4 and 5
144 void MakeMoreTrackCandidates(Bool_t flag) {fMakeMoreTrackCandidates = flag;}
145 /// return kTRUE/kFALSE if the building of extra track candidates is switched on/off
146 Bool_t MakeMoreTrackCandidates() const {return fMakeMoreTrackCandidates;}
147
3304fa09 148 /// switch on/off the completion of reconstructed track
149 void ComplementTracks(Bool_t flag) {fComplementTracks = flag;}
38bcf0ef 150 /// return kTRUE/kFALSE if completion of the reconstructed track is switched on/off
3304fa09 151 Bool_t ComplementTracks() const {return fComplementTracks;}
152
153 /// switch on/off the use of the smoother
154 void UseSmoother(Bool_t flag) {fUseSmoother = flag;}
38bcf0ef 155 /// return kTRUE/kFALSE if the use of the smoother is switched on/off
3304fa09 156 Bool_t UseSmoother() const {return fUseSmoother;}
157
9bf6860b 158 /// switch on/off a chamber in the reconstruction
159 void UseChamber(Int_t iCh, Bool_t flag) {if (iCh >= 0 && iCh < 10) fUseChamber[iCh] = flag;}
160 /// return kTRUE/kFALSE whether the chamber must be used or not
161 Bool_t UseChamber(Int_t iCh) const {return (iCh >= 0 && iCh < 10) ? fUseChamber[iCh] : kFALSE;}
162
163 /// request or not at least one cluster in the station to validate the track
164 void RequestStation(Int_t iSt, Bool_t flag) {if (iSt >= 0 && iSt < 5) fRequestStation[iSt] = flag;}
165 /// return kTRUE/kFALSE whether at least one cluster is requested in the station to validate the track
166 Bool_t RequestStation(Int_t iSt) const {return (iSt >= 0 && iSt < 5) ? fRequestStation[iSt] : kFALSE;}
167
6cac085d 168 /// set the bypassSt45 value
004a9ccd 169 void BypassSt45(Bool_t st4, Bool_t st5);
170
9bf6860b 171 /// return kTRUE if we should replace clusters in St 4 and 5 by generated clusters from trigger tracks
004a9ccd 172 Bool_t BypassSt45() const { return fBypassSt45==45; }
9bf6860b 173
004a9ccd 174 /// return kTRUE if we should replace clusters in St 4 by generated clusters from trigger tracks
175 Bool_t BypassSt4() const { return BypassSt45() || fBypassSt45==4 ; }
176
177 /// return kTRUE if we should replace clusters in St 5 by generated clusters from trigger tracks
178 Bool_t BypassSt5() const { return BypassSt45() || fBypassSt45==5 ; }
179
180 /// Set Low and High threshold for St12 HV
181 void SetHVSt12Limits(float low, float high) { fHVSt12Limits[0]=low; fHVSt12Limits[1]=high; }
182 /// Retrieve low limit for St12's HV
183 Float_t HVSt12LowLimit() const { return fHVSt12Limits[0]; }
184 /// Retrieve high limit for St12's HV
185 Float_t HVSt12HighLimit() const { return fHVSt12Limits[1]; }
186
187 /// Set Low and High threshold for St345 HV
188 void SetHVSt345Limits(float low, float high) { fHVSt345Limits[0]=low; fHVSt345Limits[1]=high; }
189 /// Retrieve low limit for St345's HV
190 Float_t HVSt345LowLimit() const { return fHVSt345Limits[0]; }
191 /// Retrieve high limit for St345's HV
192 Float_t HVSt345HighLimit() const { return fHVSt345Limits[1]; }
193
194 /// Set Low and High threshold for pedestal mean
195 void SetPedMeanLimits(float low, float high) { fPedMeanLimits[0]=low; fPedMeanLimits[1]=high; }
196 /// Retrieve low limit of ped mean
197 Float_t PedMeanLowLimit() const { return fPedMeanLimits[0]; }
198 /// Retrieve high limit of ped mean
199 Float_t PedMeanHighLimit() const { return fPedMeanLimits[1]; }
200
201 /// Set Low and High threshold for pedestal sigma
202 void SetPedSigmaLimits(float low, float high) { fPedSigmaLimits[0]=low; fPedSigmaLimits[1]=high; }
203 /// Retrieve low limit of ped sigma
204 Float_t PedSigmaLowLimit() const { return fPedSigmaLimits[0]; }
205 /// Retrieve high limit of ped sigma
206 Float_t PedSigmaHighLimit() const { return fPedSigmaLimits[1]; }
207
208 /// Set Low and High threshold for gain a0 term
209 void SetGainA1Limits(float low, float high) { fGainA1Limits[0]=low; fGainA1Limits[1]=high; }
210 /// Retrieve low limit of a1 (linear term) gain parameter
211 Float_t GainA1LowLimit() const { return fGainA1Limits[0]; }
212 /// Retrieve high limit of a1 (linear term) gain parameter
213 Float_t GainA1HighLimit() const { return fGainA1Limits[1]; }
214
215 /// Set Low and High threshold for gain a1 term
216 void SetGainA2Limits(float low, float high) { fGainA2Limits[0]=low; fGainA2Limits[1]=high; }
217 /// Retrieve low limit of a2 (quadratic term) gain parameter
218 Float_t GainA2LowLimit() const { return fGainA2Limits[0]; }
219 /// Retrieve high limit of a2 (quadratic term) gain parameter
220 Float_t GainA2HighLimit() const { return fGainA2Limits[1]; }
221
222 /// Set Low and High threshold for gain threshold term
223 void SetGainThresLimits(float low, float high) { fGainThresLimits[0]=low; fGainThresLimits[1]=high; }
224 /// Retrieve low limit on threshold gain parameter
225 Float_t GainThresLowLimit() const { return fGainThresLimits[0]; }
226 /// Retrieve high limit on threshold gain parameter
227 Float_t GainThresHighLimit() const { return fGainThresLimits[1]; }
228
229 /// Set the goodness mask (see AliMUONPadStatusMapMaker)
230 void SetPadGoodnessMask(UInt_t mask) { fPadGoodnessMask=mask; }
231 /// Get the goodness mask
232 UInt_t PadGoodnessMask() const { return fPadGoodnessMask; }
233
9bf6860b 234 virtual void Print(Option_t *option = "") const;
3304fa09 235
170f4046 236 /// Number of sigma cut we must apply when cutting on adc-ped
237 Double_t ChargeSigmaCut() const { return fChargeSigmaCut; }
238
239 /// Number of sigma cut we must apply when cutting on adc-ped
240 void ChargeSigmaCut(Double_t value) { fChargeSigmaCut=value; }
241
004a9ccd 242private:
243 void SetDefaultLimits();
244
3304fa09 245 private:
246
247 /// clustering mode: NOCLUSTERING, PRECLUSTER, PRECLUSTERV2, PRECLUSTERV3, COG, <pre>
248 /// SIMPLEFIT, SIMPLEFITV3, MLEM:DRAW, MLEM, MLEMV2, MLEMV3 </pre>
249 TString fClusteringMode; ///< \brief name of the clustering (+ pre-clustering) mode
250
251 /// tracking mode: ORIGINAL, KALMAN
252 TString fTrackingMode; ///< \brief name of the tracking mode
253
0e894e58 254 Double32_t fMostProbBendingMomentum; ///< most probable value (GeV/c) of muon momentum in bending plane (used when B = 0)
255
3304fa09 256 Double32_t fMinBendingMomentum; ///< minimum value (GeV/c) of momentum in bending plane
257 Double32_t fMaxBendingMomentum; ///< maximum value (GeV/c) of momentum in bending plane
9bf6860b 258 Double32_t fMaxNonBendingSlope; ///< maximum value of the non bending slope
9f093251 259 Double32_t fMaxBendingSlope; ///< maximum value of the bending slope (used only if B = 0)
3304fa09 260
261 Double32_t fNonBendingVertexDispersion; ///< vertex dispersion (cm) in non bending plane (used for original tracking only)
262 Double32_t fBendingVertexDispersion; ///< vertex dispersion (cm) in bending plane (used for original tracking only)
263
264 Double32_t fMaxNonBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in non bending direction
265 Double32_t fMaxBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in bending direction
266
267 Double32_t fSigmaCutForTracking; ///< cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
fda59e58 268
3304fa09 269 Double32_t fSigmaCutForImprovement; ///< cut in sigma to apply on cluster (local chi2) during track improvement
270
fda59e58 271 Double32_t fSigmaCutForTrigger; ///< cut in sigma to apply on track during trigger hit pattern search
b5270f21 272
273 Double32_t fStripCutForTrigger; ///< cut in strips to apply on trigger track during trigger chamber efficiency
274
275 Double32_t fMaxStripAreaForTrigger; ///< max. search area in strips to apply on trigger track during trigger chamber efficiency
fda59e58 276
3304fa09 277 Double32_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
278
0a18ba02 279 Double32_t fPercentOfFullClusterInESD; ///< percentage of events for which all cluster info are stored in ESD
280
38bcf0ef 281 Bool_t fCombinedClusterTrackReco; ///< switch on/off the combined cluster/track reconstruction
282
3304fa09 283 Bool_t fTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones
284
285 Bool_t fRecoverTracks; ///< kTRUE to try to recover the tracks getting lost during reconstruction
286
287 Bool_t fMakeTrackCandidatesFast; ///< kTRUE to make candidate tracks assuming linear propagation between stations 4 and 5
288
9bf6860b 289 Bool_t fMakeMoreTrackCandidates; ///< kTRUE to make candidate tracks starting from 1 cluster in each of the stations 4 and 5
290
3304fa09 291 Bool_t fComplementTracks; ///< kTRUE to try to complete the reconstructed tracks by adding missing clusters
292
293 Bool_t fImproveTracks; ///< kTRUE to try to improve the reconstructed tracks by removing bad clusters
294
295 Bool_t fUseSmoother; ///< kTRUE to use the smoother to compute track parameters/covariances and local chi2 at each cluster (used for Kalman tracking only)
296
0a18ba02 297 Bool_t fSaveFullClusterInESD; ///< kTRUE to save all cluster info (including pads) in ESD
3304fa09 298
9bf6860b 299 /// calibration mode: GAIN, NOGAIN, GAINCONSTANTCAPA
de98fdc9 300 TString fCalibrationMode; ///<\brief calibration mode
301
004a9ccd 302 Int_t fBypassSt45; ///< non-zero to use trigger tracks to generate "fake" clusters in St 4 and 5. Can be 0, 4, 5 or 45 only
9bf6860b 303
304 Bool_t fUseChamber[10]; ///< kTRUE to use the chamber i in the tracking algorithm
305
306 Bool_t fRequestStation[5]; ///< kTRUE to request at least one cluster in station i to validate the track
307
113ad708 308 Double32_t fGainA1Limits[2]; ///< Low and High threshold for gain a0 parameter
309 Double32_t fGainA2Limits[2]; ///< Low and High threshold for gain a1 parameter
310 Double32_t fGainThresLimits[2]; ///< Low and High threshold for gain threshold parameter
311 Double32_t fHVSt12Limits[2]; ///< Low and High threshold for St12 HV
312 Double32_t fHVSt345Limits[2]; ///< Low and High threshold for St345 HV
313 Double32_t fPedMeanLimits[2]; ///< Low and High threshold for pedestal mean
314 Double32_t fPedSigmaLimits[2]; ///< Low and High threshold for pedestal sigma
004a9ccd 315
113ad708 316 UInt_t fPadGoodnessMask; ///< goodness mask (see AliMUONPadStatusMaker)
004a9ccd 317
170f4046 318 Double_t fChargeSigmaCut; //< number of sigma to cut on adc-ped
319
3304fa09 320 // functions
321 void SetLowFluxParam();
322 void SetHighFluxParam();
0e894e58 323 void SetCosmicParam();
004a9ccd 324
170f4046 325 ClassDef(AliMUONRecoParam,8) // MUON reco parameters
3304fa09 326};
327
328#endif
329