]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONRecoParam.h
No effc++ warnings in RALICE
[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
6/// \ingroup rec
7/// \class AliMUONRecoParam
8/// \brief Class with MUON reconstruction parameters
9///
10// Author: Philippe Pillot
11
15d30ed4 12#include "AliDetectorRecoParam.h"
3304fa09 13#include "TString.h"
14
15d30ed4 15class AliMUONRecoParam : public AliDetectorRecoParam
3304fa09 16{
17 public:
18 AliMUONRecoParam();
19 virtual ~AliMUONRecoParam();
20
21 static AliMUONRecoParam *GetLowFluxParam();
22 static AliMUONRecoParam *GetHighFluxParam();
23
de98fdc9 24 /// set the calibration mode
7332f213 25 void SetCalibrationMode(Option_t* mode) { fCalibrationMode = mode; fCalibrationMode.ToUpper();}
de98fdc9 26 /// get the calibration mode
27 Option_t* GetCalibrationMode() const { return fCalibrationMode.Data(); }
7332f213 28
3304fa09 29 /// set the clustering (pre-clustering) mode
7332f213 30 void SetClusteringMode(Option_t* mode) {fClusteringMode = mode; fClusteringMode.ToUpper();}
3304fa09 31 /// get the clustering (pre-clustering) mode
32 Option_t* GetClusteringMode() const {return fClusteringMode.Data();}
33
34 /// set the tracking mode
7332f213 35 void SetTrackingMode(Option_t* mode) {fTrackingMode = mode; fTrackingMode.ToUpper();}
3304fa09 36 /// get the tracking mode
37 Option_t* GetTrackingMode() const {return fTrackingMode.Data();}
38
38bcf0ef 39 /// switch on/off the combined cluster/track reconstruction
40 void CombineClusterTrackReco(Bool_t flag) {fCombinedClusterTrackReco = flag;}
41 /// return kTRUE/kFALSE if the combined cluster/track reconstruction is on/off
42 Bool_t CombineClusterTrackReco() const {return fCombinedClusterTrackReco;}
43
0a18ba02 44 /// save all cluster info (including pads) in ESD, for the given percentage of events
45 void SaveFullClusterInESD(Bool_t flag, Double_t percentOfEvent = 100.) {fSaveFullClusterInESD = flag;
46 fPercentOfFullClusterInESD = (fSaveFullClusterInESD) ? percentOfEvent : 0.;}
47 /// return kTRUE/kFALSE depending on whether we save all cluster info in ESD or not
48 Bool_t SaveFullClusterInESD() const {return fSaveFullClusterInESD;}
49 /// return the percentage of events for which all cluster info are stored in ESD
50 Double_t GetPercentOfFullClusterInESD() const {return fPercentOfFullClusterInESD;}
51
3304fa09 52 /// set the minimum value (GeV/c) of momentum in bending plane
53 void SetMinBendingMomentum(Double_t val) {fMinBendingMomentum = val;}
54 /// return the minimum value (GeV/c) of momentum in bending plane
55 Double_t GetMinBendingMomentum() const {return fMinBendingMomentum;}
56 /// set the maximum value (GeV/c) of momentum in bending plane
57 void SetMaxBendingMomentum(Double_t val) {fMaxBendingMomentum = val;}
58 /// return the maximum value (GeV/c) of momentum in bending plane
59 Double_t GetMaxBendingMomentum() const {return fMaxBendingMomentum;}
60
61 /// set the vertex dispersion (cm) in non bending plane (used for original tracking only)
62 void SetNonBendingVertexDispersion(Double_t val) {fNonBendingVertexDispersion = val;}
63 /// return the vertex dispersion (cm) in bending plane (used for original tracking only)
64 Double_t GetNonBendingVertexDispersion() const {return fNonBendingVertexDispersion;}
65 /// set the vertex dispersion (cm) in non bending plane (used for original tracking only)
66 void SetBendingVertexDispersion(Double_t val) {fBendingVertexDispersion = val;}
67 /// return the vertex dispersion (cm) in bending plane (used for original tracking only)
68 Double_t GetBendingVertexDispersion() const {return fBendingVertexDispersion;}
69
70 /// set the maximum distance to the track to search for compatible cluster(s) in non bending direction
71 void SetMaxNonBendingDistanceToTrack(Double_t val) {fMaxNonBendingDistanceToTrack = val;}
72 /// return the maximum distance to the track to search for compatible cluster(s) in non bending direction
73 Double_t GetMaxNonBendingDistanceToTrack() const {return fMaxNonBendingDistanceToTrack;}
74 /// set the maximum distance to the track to search for compatible cluster(s) in bending direction
75 void SetMaxBendingDistanceToTrack(Double_t val) {fMaxBendingDistanceToTrack = val;}
76 /// return the maximum distance to the track to search for compatible cluster(s) in bending direction
77 Double_t GetMaxBendingDistanceToTrack() const {return fMaxBendingDistanceToTrack;}
78
79 /// set the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
80 void SetSigmaCutForTracking(Double_t val) {fSigmaCutForTracking = val;}
81 /// return the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
82 Double_t GetSigmaCutForTracking() const {return fSigmaCutForTracking;}
83
84 /// switch on/off the track improvement and keep the default cut in sigma to apply on cluster (local chi2)
85 void ImproveTracks(Bool_t flag) {fImproveTracks = flag;}
86 /// switch on/off the track improvement and set the cut in sigma to apply on cluster (local chi2)
87 void ImproveTracks(Bool_t flag, Double_t sigmaCut) {fImproveTracks = flag; fSigmaCutForImprovement = sigmaCut;}
88 /// return kTRUE/kFALSE if the track improvement is switch on/off
89 Bool_t ImproveTracks() const {return fImproveTracks;}
90 /// return the cut in sigma to apply on cluster (local chi2) during track improvement
91 Double_t GetSigmaCutForImprovement() const {return fSigmaCutForImprovement;}
fda59e58 92
93 /// set the cut in sigma to apply on track during trigger hit pattern search
94 void SetSigmaCutForTrigger(Double_t val) {fSigmaCutForTrigger = val;}
95 /// return the cut in sigma to apply on track during trigger hit pattern search
96 Double_t GetSigmaCutForTrigger() const {return fSigmaCutForTrigger;}
3304fa09 97
98 /// set the maximum normalized chi2 of tracking/trigger track matching
99 void SetMaxNormChi2MatchTrigger(Double_t val) {fMaxNormChi2MatchTrigger = val;}
100 /// return the maximum normalized chi2 of tracking/trigger track matching
101 Double_t GetMaxNormChi2MatchTrigger() const {return fMaxNormChi2MatchTrigger;}
102
103 /// switch on/off the tracking of all the possible candidates (track only the best one if switched off)
104 void TrackAllTracks(Bool_t flag) {fTrackAllTracks = flag;}
38bcf0ef 105 /// return kTRUE/kFALSE if the tracking of all the possible candidates is switched on/off
3304fa09 106 Bool_t TrackAllTracks() const {return fTrackAllTracks;}
107
108 /// switch on/off the recovering of tracks being lost during reconstruction
109 void RecoverTracks(Bool_t flag) {fRecoverTracks = flag;}
38bcf0ef 110 /// return kTRUE/kFALSE if the recovering of tracks being lost during reconstruction is switched on/off
3304fa09 111 Bool_t RecoverTracks() const {return fRecoverTracks;}
112
113 /// switch on/off the fast building of track candidates (assuming linear propagation between stations 4 and 5)
114 void MakeTrackCandidatesFast(Bool_t flag) {fMakeTrackCandidatesFast = flag;}
38bcf0ef 115 /// return kTRUE/kFALSE if the fast building of track candidates is switched on/off
3304fa09 116 Bool_t MakeTrackCandidatesFast() const {return fMakeTrackCandidatesFast;}
117
118 /// switch on/off the completion of reconstructed track
119 void ComplementTracks(Bool_t flag) {fComplementTracks = flag;}
38bcf0ef 120 /// return kTRUE/kFALSE if completion of the reconstructed track is switched on/off
3304fa09 121 Bool_t ComplementTracks() const {return fComplementTracks;}
122
123 /// switch on/off the use of the smoother
124 void UseSmoother(Bool_t flag) {fUseSmoother = flag;}
38bcf0ef 125 /// return kTRUE/kFALSE if the use of the smoother is switched on/off
3304fa09 126 Bool_t UseSmoother() const {return fUseSmoother;}
127
128 virtual void Print(Option_t *option = "") const;
129
130
131 private:
132
133 /// clustering mode: NOCLUSTERING, PRECLUSTER, PRECLUSTERV2, PRECLUSTERV3, COG, <pre>
134 /// SIMPLEFIT, SIMPLEFITV3, MLEM:DRAW, MLEM, MLEMV2, MLEMV3 </pre>
135 TString fClusteringMode; ///< \brief name of the clustering (+ pre-clustering) mode
136
137 /// tracking mode: ORIGINAL, KALMAN
138 TString fTrackingMode; ///< \brief name of the tracking mode
139
140 Double32_t fMinBendingMomentum; ///< minimum value (GeV/c) of momentum in bending plane
141 Double32_t fMaxBendingMomentum; ///< maximum value (GeV/c) of momentum in bending plane
142
143 Double32_t fNonBendingVertexDispersion; ///< vertex dispersion (cm) in non bending plane (used for original tracking only)
144 Double32_t fBendingVertexDispersion; ///< vertex dispersion (cm) in bending plane (used for original tracking only)
145
146 Double32_t fMaxNonBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in non bending direction
147 Double32_t fMaxBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in bending direction
148
149 Double32_t fSigmaCutForTracking; ///< cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking
fda59e58 150
3304fa09 151 Double32_t fSigmaCutForImprovement; ///< cut in sigma to apply on cluster (local chi2) during track improvement
152
fda59e58 153 Double32_t fSigmaCutForTrigger; ///< cut in sigma to apply on track during trigger hit pattern search
154
3304fa09 155 Double32_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching
156
0a18ba02 157 Double32_t fPercentOfFullClusterInESD; ///< percentage of events for which all cluster info are stored in ESD
158
38bcf0ef 159 Bool_t fCombinedClusterTrackReco; ///< switch on/off the combined cluster/track reconstruction
160
3304fa09 161 Bool_t fTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones
162
163 Bool_t fRecoverTracks; ///< kTRUE to try to recover the tracks getting lost during reconstruction
164
165 Bool_t fMakeTrackCandidatesFast; ///< kTRUE to make candidate tracks assuming linear propagation between stations 4 and 5
166
167 Bool_t fComplementTracks; ///< kTRUE to try to complete the reconstructed tracks by adding missing clusters
168
169 Bool_t fImproveTracks; ///< kTRUE to try to improve the reconstructed tracks by removing bad clusters
170
171 Bool_t fUseSmoother; ///< kTRUE to use the smoother to compute track parameters/covariances and local chi2 at each cluster (used for Kalman tracking only)
172
0a18ba02 173 Bool_t fSaveFullClusterInESD; ///< kTRUE to save all cluster info (including pads) in ESD
3304fa09 174
de98fdc9 175 /// calibration mode: GAIN, NOGAIN
176 TString fCalibrationMode; ///<\brief calibration mode
177
3304fa09 178 // functions
179 void SetLowFluxParam();
180 void SetHighFluxParam();
181
182
de98fdc9 183 ClassDef(AliMUONRecoParam,2) // MUON reco parameters
3304fa09 184};
185
186#endif
187