]>
Commit | Line | Data |
---|---|---|
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 | ||
12 | #include "TObject.h" | |
13 | #include "TString.h" | |
14 | ||
15 | class AliMUONRecoParam : public TObject | |
16 | { | |
17 | public: | |
18 | AliMUONRecoParam(); | |
19 | virtual ~AliMUONRecoParam(); | |
20 | ||
21 | static AliMUONRecoParam *GetLowFluxParam(); | |
22 | static AliMUONRecoParam *GetHighFluxParam(); | |
23 | ||
24 | /// set the clustering (pre-clustering) mode | |
25 | void SetClusteringMode(Option_t* mode) {fClusteringMode = mode;} | |
26 | /// get the clustering (pre-clustering) mode | |
27 | Option_t* GetClusteringMode() const {return fClusteringMode.Data();} | |
28 | ||
29 | /// set the tracking mode | |
30 | void SetTrackingMode(Option_t* mode) {fTrackingMode = mode;} | |
31 | /// get the tracking mode | |
32 | Option_t* GetTrackingMode() const {return fTrackingMode.Data();} | |
33 | ||
34 | /// set the minimum value (GeV/c) of momentum in bending plane | |
35 | void SetMinBendingMomentum(Double_t val) {fMinBendingMomentum = val;} | |
36 | /// return the minimum value (GeV/c) of momentum in bending plane | |
37 | Double_t GetMinBendingMomentum() const {return fMinBendingMomentum;} | |
38 | /// set the maximum value (GeV/c) of momentum in bending plane | |
39 | void SetMaxBendingMomentum(Double_t val) {fMaxBendingMomentum = val;} | |
40 | /// return the maximum value (GeV/c) of momentum in bending plane | |
41 | Double_t GetMaxBendingMomentum() const {return fMaxBendingMomentum;} | |
42 | ||
43 | /// set the vertex dispersion (cm) in non bending plane (used for original tracking only) | |
44 | void SetNonBendingVertexDispersion(Double_t val) {fNonBendingVertexDispersion = val;} | |
45 | /// return the vertex dispersion (cm) in bending plane (used for original tracking only) | |
46 | Double_t GetNonBendingVertexDispersion() const {return fNonBendingVertexDispersion;} | |
47 | /// set the vertex dispersion (cm) in non bending plane (used for original tracking only) | |
48 | void SetBendingVertexDispersion(Double_t val) {fBendingVertexDispersion = val;} | |
49 | /// return the vertex dispersion (cm) in bending plane (used for original tracking only) | |
50 | Double_t GetBendingVertexDispersion() const {return fBendingVertexDispersion;} | |
51 | ||
52 | /// set the maximum distance to the track to search for compatible cluster(s) in non bending direction | |
53 | void SetMaxNonBendingDistanceToTrack(Double_t val) {fMaxNonBendingDistanceToTrack = val;} | |
54 | /// return the maximum distance to the track to search for compatible cluster(s) in non bending direction | |
55 | Double_t GetMaxNonBendingDistanceToTrack() const {return fMaxNonBendingDistanceToTrack;} | |
56 | /// set the maximum distance to the track to search for compatible cluster(s) in bending direction | |
57 | void SetMaxBendingDistanceToTrack(Double_t val) {fMaxBendingDistanceToTrack = val;} | |
58 | /// return the maximum distance to the track to search for compatible cluster(s) in bending direction | |
59 | Double_t GetMaxBendingDistanceToTrack() const {return fMaxBendingDistanceToTrack;} | |
60 | ||
61 | /// set the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking | |
62 | void SetSigmaCutForTracking(Double_t val) {fSigmaCutForTracking = val;} | |
63 | /// return the cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking | |
64 | Double_t GetSigmaCutForTracking() const {return fSigmaCutForTracking;} | |
65 | ||
66 | /// switch on/off the track improvement and keep the default cut in sigma to apply on cluster (local chi2) | |
67 | void ImproveTracks(Bool_t flag) {fImproveTracks = flag;} | |
68 | /// switch on/off the track improvement and set the cut in sigma to apply on cluster (local chi2) | |
69 | void ImproveTracks(Bool_t flag, Double_t sigmaCut) {fImproveTracks = flag; fSigmaCutForImprovement = sigmaCut;} | |
70 | /// return kTRUE/kFALSE if the track improvement is switch on/off | |
71 | Bool_t ImproveTracks() const {return fImproveTracks;} | |
72 | /// return the cut in sigma to apply on cluster (local chi2) during track improvement | |
73 | Double_t GetSigmaCutForImprovement() const {return fSigmaCutForImprovement;} | |
74 | ||
75 | /// set the maximum normalized chi2 of tracking/trigger track matching | |
76 | void SetMaxNormChi2MatchTrigger(Double_t val) {fMaxNormChi2MatchTrigger = val;} | |
77 | /// return the maximum normalized chi2 of tracking/trigger track matching | |
78 | Double_t GetMaxNormChi2MatchTrigger() const {return fMaxNormChi2MatchTrigger;} | |
79 | ||
80 | /// switch on/off the tracking of all the possible candidates (track only the best one if switched off) | |
81 | void TrackAllTracks(Bool_t flag) {fTrackAllTracks = flag;} | |
82 | /// return kTRUE/kFALSE if the tracking of all the possible candidates is switch on/off | |
83 | Bool_t TrackAllTracks() const {return fTrackAllTracks;} | |
84 | ||
85 | /// switch on/off the recovering of tracks being lost during reconstruction | |
86 | void RecoverTracks(Bool_t flag) {fRecoverTracks = flag;} | |
87 | /// return kTRUE/kFALSE if the recovering of tracks being lost during reconstruction is switch on/off | |
88 | Bool_t RecoverTracks() const {return fRecoverTracks;} | |
89 | ||
90 | /// switch on/off the fast building of track candidates (assuming linear propagation between stations 4 and 5) | |
91 | void MakeTrackCandidatesFast(Bool_t flag) {fMakeTrackCandidatesFast = flag;} | |
92 | /// return kTRUE/kFALSE if the fast building of track candidates is switch on/off | |
93 | Bool_t MakeTrackCandidatesFast() const {return fMakeTrackCandidatesFast;} | |
94 | ||
95 | /// switch on/off the completion of reconstructed track | |
96 | void ComplementTracks(Bool_t flag) {fComplementTracks = flag;} | |
97 | /// return kTRUE/kFALSE if completion of the reconstructed track is switch on/off | |
98 | Bool_t ComplementTracks() const {return fComplementTracks;} | |
99 | ||
100 | /// switch on/off the use of the smoother | |
101 | void UseSmoother(Bool_t flag) {fUseSmoother = flag;} | |
102 | /// return kTRUE/kFALSE if the use of the smoother is switch on/off | |
103 | Bool_t UseSmoother() const {return fUseSmoother;} | |
104 | ||
105 | virtual void Print(Option_t *option = "") const; | |
106 | ||
107 | ||
108 | private: | |
109 | ||
110 | /// clustering mode: NOCLUSTERING, PRECLUSTER, PRECLUSTERV2, PRECLUSTERV3, COG, <pre> | |
111 | /// SIMPLEFIT, SIMPLEFITV3, MLEM:DRAW, MLEM, MLEMV2, MLEMV3 </pre> | |
112 | TString fClusteringMode; ///< \brief name of the clustering (+ pre-clustering) mode | |
113 | ||
114 | /// tracking mode: ORIGINAL, KALMAN | |
115 | TString fTrackingMode; ///< \brief name of the tracking mode | |
116 | ||
117 | Double32_t fMinBendingMomentum; ///< minimum value (GeV/c) of momentum in bending plane | |
118 | Double32_t fMaxBendingMomentum; ///< maximum value (GeV/c) of momentum in bending plane | |
119 | ||
120 | Double32_t fNonBendingVertexDispersion; ///< vertex dispersion (cm) in non bending plane (used for original tracking only) | |
121 | Double32_t fBendingVertexDispersion; ///< vertex dispersion (cm) in bending plane (used for original tracking only) | |
122 | ||
123 | Double32_t fMaxNonBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in non bending direction | |
124 | Double32_t fMaxBendingDistanceToTrack; ///< maximum distance to the track to search for compatible cluster(s) in bending direction | |
125 | ||
126 | Double32_t fSigmaCutForTracking; ///< cut in sigma to apply on cluster (local chi2) and track (global chi2) during tracking | |
127 | ||
128 | Double32_t fSigmaCutForImprovement; ///< cut in sigma to apply on cluster (local chi2) during track improvement | |
129 | ||
130 | Double32_t fMaxNormChi2MatchTrigger; ///< maximum normalized chi2 of tracking/trigger track matching | |
131 | ||
132 | Bool_t fTrackAllTracks; ///< kTRUE to track all the possible candidates; kFALSE to track only the best ones | |
133 | ||
134 | Bool_t fRecoverTracks; ///< kTRUE to try to recover the tracks getting lost during reconstruction | |
135 | ||
136 | Bool_t fMakeTrackCandidatesFast; ///< kTRUE to make candidate tracks assuming linear propagation between stations 4 and 5 | |
137 | ||
138 | Bool_t fComplementTracks; ///< kTRUE to try to complete the reconstructed tracks by adding missing clusters | |
139 | ||
140 | Bool_t fImproveTracks; ///< kTRUE to try to improve the reconstructed tracks by removing bad clusters | |
141 | ||
142 | Bool_t fUseSmoother; ///< kTRUE to use the smoother to compute track parameters/covariances and local chi2 at each cluster (used for Kalman tracking only) | |
143 | ||
144 | ||
145 | // functions | |
146 | void SetLowFluxParam(); | |
147 | void SetHighFluxParam(); | |
148 | ||
149 | ||
150 | ClassDef(AliMUONRecoParam,1) // MUON reco parameters | |
151 | }; | |
152 | ||
153 | #endif | |
154 |