]>
Commit | Line | Data |
---|---|---|
c7e89ea3 | 1 | /************************************************************************** |
2 | * Author: Panos Christakoglou. * | |
3 | * Contributors are mentioned in the code where appropriate. * | |
4 | * * | |
5 | * Permission to use, copy, modify and distribute this software and its * | |
6 | * documentation strictly for non-commercial purposes is hereby granted * | |
7 | * without fee, provided that the above copyright notice appears in all * | |
8 | * copies and that both the copyright notice and this permission notice * | |
9 | * appear in the supporting documentation. The authors make no claims * | |
10 | * about the suitability of this software for any purpose. It is * | |
11 | * provided "as is" without express or implied warranty. * | |
12 | **************************************************************************/ | |
13 | ||
14 | /* $Id$ */ | |
15 | ||
16 | //----------------------------------------------------------------- | |
17 | // AliEventTagCuts class | |
18 | // This is the class to deal with the event tag level cuts | |
19 | // Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch | |
20 | //----------------------------------------------------------------- | |
21 | ||
22 | class AliLog; | |
23 | class AliESD; | |
24 | ||
25 | #include "AliEventTag.h" | |
26 | #include "AliEventTagCuts.h" | |
27 | ||
28 | ClassImp(AliEventTagCuts) | |
29 | ||
30 | ||
7e73fbbd | 31 | //___________________________________________________________________________ |
fe12e09c | 32 | AliEventTagCuts::AliEventTagCuts() : |
33 | TObject(), | |
fe12e09c | 34 | |
96e43231 | 35 | fNParticipantsMin(-1), fNParticipantsMax(10000), |
36 | fNParticipantsFlag(kFALSE), | |
37 | fImpactParamMin(-1.0), fImpactParamMax(1000.0), | |
38 | fImpactParamFlag(kFALSE), | |
39 | ||
fe12e09c | 40 | fVxMin(-1000.0), fVxMax(1000.0), |
41 | fVxFlag(kFALSE), | |
42 | fVyMin(-1000.0), fVyMax(1000.0), | |
43 | fVyFlag(kFALSE), | |
44 | fVzMin(-1000.0), fVzMax(1000.0), | |
45 | fVzFlag(kFALSE), | |
fe12e09c | 46 | fPrimaryVertexFlag(1), |
47 | fPVFlag(kFALSE), | |
48 | ||
49 | fPrimaryVertexZErrorMin(-10000.), fPrimaryVertexZErrorMax(10000.), | |
50 | fPVzErrorFlag(kFALSE), | |
51 | fTriggerMask(0), | |
52 | fTriggerMaskFlag(kFALSE), | |
53 | fTriggerCluster(0), | |
54 | fTriggerClusterFlag(kFALSE), | |
55 | ||
56 | fZDCNeutron1EnergyMin(-1.0), fZDCNeutron1EnergyMax(100000.0), | |
57 | fZDCNeutron1EnergyFlag(kFALSE), | |
58 | fZDCProton1EnergyMin(-1.0), fZDCProton1EnergyMax(100000.0), | |
59 | fZDCProton1EnergyFlag(kFALSE), | |
60 | fZDCNeutron2EnergyMin(-1.0), fZDCNeutron2EnergyMax(100000.0), | |
61 | fZDCNeutron2EnergyFlag(kFALSE), | |
62 | fZDCProton2EnergyMin(-1.0), fZDCProton2EnergyMax(100000.0), | |
63 | fZDCProton2EnergyFlag(kFALSE), | |
64 | fZDCEMEnergyMin(-1.0), fZDCEMEnergyMax(100000.0), | |
65 | fZDCEMEnergyFlag(kFALSE), | |
66 | fT0VertexZMin(-10000.0), fT0VertexZMax(10000.0), | |
67 | fT0VertexZFlag(kFALSE), | |
68 | fMultMin(0), fMultMax(100000), | |
69 | fMultFlag(kFALSE), | |
63fafb59 | 70 | fPosMultMin(-1), fPosMultMax(100000), |
71 | fPosMultFlag(kFALSE), | |
72 | fNegMultMin(-1), fNegMultMax(100000), | |
73 | fNegMultFlag(kFALSE), | |
74 | fNeutrMultMin(-1), fNeutrMultMax(100000), | |
75 | fNeutrMultFlag(kFALSE), | |
76 | fNV0sMin(-1), fNV0sMax(1000000), | |
77 | fNV0sFlag(kFALSE), | |
78 | fNCascadesMin(-1), fNCascadesMax(100000), | |
79 | fNCascadesFlag(kFALSE), | |
80 | fNKinksMin(-1), fNKinksMax(1000000), | |
81 | fNKinksFlag(kFALSE), | |
82 | ||
83 | fNPMDTracksMin(-1), fNPMDTracksMax(100000), | |
84 | fNPMDTracksFlag(kFALSE), | |
85 | fNFMDTracksMin(-1), fNFMDTracksMax(100000), | |
86 | fNFMDTracksFlag(kFALSE), | |
87 | fNPHOSClustersMin(-1), fNPHOSClustersMax(100000), | |
88 | fNPHOSClustersFlag(kFALSE), | |
89 | fNEMCALClustersMin(-1), fNEMCALClustersMax(100000), | |
90 | fNEMCALClustersFlag(kFALSE), | |
91 | fNJetCandidatesMin(-1), fNJetCandidatesMax(100000), | |
92 | fNJetCandidatesFlag(kFALSE), | |
93 | ||
94 | fTopJetEnergyMin(-1.0), | |
95 | fTopJetEnergyMinFlag(kFALSE), | |
63fafb59 | 96 | fTopNeutralEnergyMin(-1.0), |
97 | fTopNeutralEnergyMinFlag(kFALSE), | |
96e43231 | 98 | fNHardPhotonCandidatesMin(-1), fNHardPhotonCandidatesMax(100000), |
99 | fNHardPhotonCandidatesFlag(kFALSE), | |
63fafb59 | 100 | fNChargedAbove1GeVMin(-1), fNChargedAbove1GeVMax(100000), |
101 | fNChargedAbove1GeVFlag(kFALSE), | |
102 | fNChargedAbove3GeVMin(-1), fNChargedAbove3GeVMax(100000), | |
103 | fNChargedAbove3GeVFlag(kFALSE), | |
104 | fNChargedAbove10GeVMin(-1), fNChargedAbove10GeVMax(100000), | |
105 | fNChargedAbove10GeVFlag(kFALSE), | |
106 | fNMuonsAbove1GeVMin(-1), fNMuonsAbove1GeVMax(100000), | |
107 | fNMuonsAbove1GeVFlag(kFALSE), | |
108 | fNMuonsAbove3GeVMin(-1), fNMuonsAbove3GeVMax(100000), | |
109 | fNMuonsAbove3GeVFlag(kFALSE), | |
110 | fNMuonsAbove10GeVMin(-1), fNMuonsAbove10GeVMax(100000), | |
111 | fNMuonsAbove10GeVFlag(kFALSE), | |
112 | fNElectronsAbove1GeVMin(-1), fNElectronsAbove1GeVMax(100000), | |
113 | fNElectronsAbove1GeVFlag(kFALSE), | |
114 | fNElectronsAbove3GeVMin(-1), fNElectronsAbove3GeVMax(100000), | |
115 | fNElectronsAbove3GeVFlag(kFALSE), | |
116 | fNElectronsAbove10GeVMin(-1), fNElectronsAbove10GeVMax(100000), | |
117 | fNElectronsAbove10GeVFlag(kFALSE), | |
118 | fNElectronsMin(-1), fNElectronsMax(100000), | |
119 | fNElectronsFlag(kFALSE), | |
d3893274 | 120 | fNFWMuonsMin(-1), fNFWMuonsMax(100000), |
121 | fNFWMuonsFlag(kFALSE), | |
63fafb59 | 122 | fNMuonsMin(-1), fNMuonsMax(100000), |
123 | fNMuonsFlag(kFALSE), | |
124 | fNPionsMin(-1), fNPionsMax(100000), | |
125 | fNPionsFlag(kFALSE), | |
126 | fNKaonsMin(-1), fNKaonsMax(100000), | |
127 | fNKaonsFlag(kFALSE), | |
128 | fNProtonsMin(-1), fNProtonsMax(100000), | |
129 | fNProtonsFlag(kFALSE), | |
130 | fNLambdasMin(-1), fNLambdasMax(100000), | |
131 | fNLambdasFlag(kFALSE), | |
132 | fNPhotonsMin(-1), fNPhotonsMax(100000), | |
133 | fNPhotonFlag(kFALSE), | |
134 | fNPi0sMin(-1), fNPi0sMax(100000), | |
135 | fNPi0sFlag(kFALSE), | |
136 | fNNeutronsMin(-1), fNNeutronsMax(100000), | |
137 | fNNeutronsFlag(kFALSE), | |
138 | fNKaon0sMin(-1), fNKaon0sMax(100000), | |
139 | fNKaon0sFlag(kFALSE), | |
fe12e09c | 140 | fTotalPMin(-1.0), fTotalPMax(1000000.0), |
141 | fTotalPFlag(kFALSE), | |
142 | fMeanPtMin(-1.0), fMeanPtMax(100000.0), | |
143 | fMeanPtFlag(kFALSE), | |
63fafb59 | 144 | fTopPtMin(-1.0), |
145 | fTopPtMinFlag(kFALSE), | |
fe12e09c | 146 | fTotalNeutralPMin(-1.0), fTotalNeutralPMax(1000000.0), |
147 | fTotalNeutralPFlag(kFALSE), | |
148 | fMeanNeutralPtMin(-1.0), fMeanNeutralPtMax(1000000.0), | |
149 | fMeanNeutralPtFlag(kFALSE), | |
63fafb59 | 150 | fTopNeutralPtMin(-1.0), |
151 | fTopNeutralPtMinFlag(kFALSE), | |
fe12e09c | 152 | fEventPlaneAngleMin(-10000000.0), fEventPlaneAngleMax(10000000.0), |
153 | fEventPlaneAngleFlag(kFALSE), | |
154 | fHBTRadiiMin(-1.0), fHBTRadiiMax(100000.0), | |
155 | fHBTRadiiFlag(kFALSE) | |
156 | { | |
c7e89ea3 | 157 | //Default constructor which calls the Reset method. |
158 | Reset(); | |
159 | } | |
160 | ||
7e73fbbd | 161 | //___________________________________________________________________________ |
162 | AliEventTagCuts::~AliEventTagCuts() { | |
c7e89ea3 | 163 | //Defaut destructor. |
164 | } | |
165 | ||
7e73fbbd | 166 | //___________________________________________________________________________ |
167 | void AliEventTagCuts::Reset() { | |
c7e89ea3 | 168 | //Sets dummy values to every private member. |
63fafb59 | 169 | fNParticipantsFlag = kFALSE; |
170 | fImpactParamFlag = kFALSE; | |
171 | ||
c7e89ea3 | 172 | fVxFlag = kFALSE; |
173 | fVyFlag = kFALSE; | |
174 | fVzFlag = kFALSE; | |
c7e89ea3 | 175 | fPVFlag = kFALSE; |
7e73fbbd | 176 | fPVzErrorFlag = kFALSE; |
63fafb59 | 177 | |
7e73fbbd | 178 | fTriggerMaskFlag = kFALSE; |
179 | fTriggerClusterFlag = kFALSE; | |
180 | ||
32a5cab4 | 181 | fZDCNeutron1EnergyFlag = kFALSE; |
182 | fZDCProton1EnergyFlag = kFALSE; | |
183 | fZDCNeutron2EnergyFlag = kFALSE; | |
184 | fZDCProton2EnergyFlag = kFALSE; | |
c7e89ea3 | 185 | fZDCEMEnergyFlag = kFALSE; |
186 | fT0VertexZFlag = kFALSE; | |
187 | fMultFlag = kFALSE; | |
63fafb59 | 188 | fPosMultFlag = kFALSE; |
189 | fNegMultFlag = kFALSE; | |
190 | fNeutrMultFlag = kFALSE; | |
191 | fNV0sFlag = kFALSE; | |
192 | fNCascadesFlag = kFALSE; | |
193 | fNKinksFlag = kFALSE; | |
194 | ||
195 | fNPMDTracksFlag = kFALSE; | |
196 | fNFMDTracksFlag = kFALSE; | |
197 | fNPHOSClustersFlag = kFALSE; | |
198 | fNEMCALClustersFlag = kFALSE; | |
199 | fNJetCandidatesFlag = kFALSE; | |
200 | ||
201 | fTopJetEnergyMinFlag = kFALSE; | |
202 | fNHardPhotonCandidatesFlag = kFALSE; | |
203 | fTopNeutralEnergyMinFlag = kFALSE; | |
204 | fNChargedAbove1GeVFlag = kFALSE; | |
205 | fNChargedAbove3GeVFlag = kFALSE; | |
206 | fNChargedAbove10GeVFlag = kFALSE; | |
207 | fNMuonsAbove1GeVFlag = kFALSE; | |
208 | fNMuonsAbove3GeVFlag = kFALSE; | |
209 | fNMuonsAbove10GeVFlag = kFALSE; | |
210 | fNElectronsAbove1GeVFlag = kFALSE; | |
211 | fNElectronsAbove3GeVFlag = kFALSE; | |
212 | fNElectronsAbove10GeVFlag = kFALSE; | |
213 | fNElectronsFlag = kFALSE; | |
d3893274 | 214 | fNFWMuonsFlag = kFALSE; |
63fafb59 | 215 | fNMuonsFlag = kFALSE; |
216 | fNPionsFlag = kFALSE; | |
217 | fNKaonsFlag = kFALSE; | |
218 | fNProtonsFlag = kFALSE; | |
219 | fNLambdasFlag = kFALSE; | |
220 | fNPhotonFlag = kFALSE; | |
221 | fNPi0sFlag = kFALSE; | |
222 | fNNeutronsFlag = kFALSE; | |
223 | fNKaon0sFlag = kFALSE; | |
c7e89ea3 | 224 | fTotalPFlag = kFALSE; |
225 | fMeanPtFlag = kFALSE; | |
63fafb59 | 226 | fTopPtMinFlag = kFALSE; |
c7e89ea3 | 227 | fTotalNeutralPFlag = kFALSE; |
228 | fMeanNeutralPtFlag = kFALSE; | |
63fafb59 | 229 | fTopNeutralPtMinFlag = kFALSE; |
c7e89ea3 | 230 | fEventPlaneAngleFlag = kFALSE; |
231 | fHBTRadiiFlag = kFALSE; | |
232 | ||
7e73fbbd | 233 | fVxMin = -1000.0; fVxMax = 1000.0; |
234 | fVyMin = -1000.0; fVyMax = 1000.0; | |
235 | fVzMin = -1000.0; fVzMax = 1000.0; | |
63fafb59 | 236 | fNParticipantsMin = -1; fNParticipantsMax = 10000; |
7e73fbbd | 237 | fImpactParamMin = -1.0; fImpactParamMax = 1000.0; |
c7e89ea3 | 238 | fPrimaryVertexFlag = 1; |
7e73fbbd | 239 | |
240 | fPrimaryVertexZErrorMin = -10000.; fPrimaryVertexZErrorMax = 10000.; | |
241 | fTriggerMask = 0; | |
242 | fTriggerCluster = 0; | |
c7e89ea3 | 243 | |
7e73fbbd | 244 | fZDCNeutron1EnergyMin = -1.0; fZDCNeutron1EnergyMax = 100000.0; |
245 | fZDCProton1EnergyMin = -1.0; fZDCProton1EnergyMax = 100000.0; | |
246 | fZDCNeutron2EnergyMin = -1.0; fZDCNeutron2EnergyMax = 100000.0; | |
247 | fZDCProton2EnergyMin = -1.0; fZDCProton2EnergyMax = 100000.0; | |
248 | fZDCEMEnergyMin = -1.0; fZDCEMEnergyMax = 100000.0; | |
249 | fT0VertexZMin = -10000.0; fT0VertexZMax = 10000.0; | |
250 | fMultMin = 0; fMultMax = 100000; | |
63fafb59 | 251 | fPosMultMin = -1; fPosMultMax = 100000; |
252 | fNegMultMin = -1; fNegMultMax = 100000; | |
253 | fNeutrMultMin = -1; fNeutrMultMax = 100000; | |
254 | fNV0sMin = -1; fNV0sMax = 1000000; | |
255 | fNCascadesMin = -1; fNCascadesMax = 100000; | |
256 | fNKinksMin = -1; fNKinksMax = 1000000; | |
257 | ||
258 | fNPMDTracksMin = -1, fNPMDTracksMax = 100000; | |
259 | fNFMDTracksMin = -1, fNFMDTracksMax = 100000; | |
260 | fNPHOSClustersMin = -1, fNPHOSClustersMax = 100000; | |
261 | fNEMCALClustersMin = -1, fNEMCALClustersMax = 100000; | |
262 | fNJetCandidatesMin = -1, fNJetCandidatesMax = 100000; | |
263 | ||
264 | fTopJetEnergyMin = -1.0; | |
265 | fNHardPhotonCandidatesMin = -1; fNHardPhotonCandidatesMax = 100000; | |
266 | fTopNeutralEnergyMin = -1.0; | |
267 | fNChargedAbove1GeVMin = -1; fNChargedAbove1GeVMax = 100000; | |
268 | fNChargedAbove3GeVMin = -1; fNChargedAbove3GeVMax = 100000; | |
269 | fNChargedAbove10GeVMin = -1; fNChargedAbove10GeVMax = 100000; | |
270 | fNMuonsAbove1GeVMin = -1; fNMuonsAbove1GeVMax = 100000; | |
271 | fNMuonsAbove3GeVMin = -1; fNMuonsAbove3GeVMax = 100000; | |
272 | fNMuonsAbove10GeVMin = -1; fNMuonsAbove10GeVMax = 100000; | |
273 | fNElectronsAbove1GeVMin = -1; fNElectronsAbove1GeVMax = 100000; | |
274 | fNElectronsAbove3GeVMin = -1; fNElectronsAbove3GeVMax = 100000; | |
275 | fNElectronsAbove10GeVMin = -1; fNElectronsAbove10GeVMax = 100000; | |
276 | fNElectronsMin = -1; fNElectronsMax = 100000; | |
d3893274 | 277 | fNFWMuonsMin = -1; fNFWMuonsMax = 100000; |
63fafb59 | 278 | fNMuonsMin = -1; fNMuonsMax = 100000; |
279 | fNPionsMin = -1; fNPionsMax = 100000; | |
280 | fNKaonsMin = -1; fNKaonsMax = 100000; | |
281 | fNProtonsMin = -1; fNProtonsMax = 100000; | |
282 | fNLambdasMin = -1; fNLambdasMax = 100000; | |
283 | fNPhotonsMin = -1; fNPhotonsMax = 100000; | |
284 | fNPi0sMin = -1; fNPi0sMax = 100000; | |
285 | fNNeutronsMin = -1; fNNeutronsMax = 100000; | |
286 | fNKaon0sMin = -1; fNKaon0sMax = 100000; | |
7e73fbbd | 287 | fTotalPMin = -1.0; fTotalPMax = 1000000.0; |
288 | fMeanPtMin = -1.0; fMeanPtMax = 100000.0; | |
63fafb59 | 289 | fTopPtMin = -1.0; fTotalNeutralPMin = -1.0; |
7e73fbbd | 290 | fTotalNeutralPMax = 1000000.0; |
291 | fMeanNeutralPtMin = -1.0; fMeanNeutralPtMax = 1000000.0; | |
63fafb59 | 292 | fTopNeutralPtMin = -1.0; |
7e73fbbd | 293 | fEventPlaneAngleMin = -10000000.0; fEventPlaneAngleMax = 10000000.0; |
294 | fHBTRadiiMin = -1.0; fHBTRadiiMax = 100000.0; | |
c7e89ea3 | 295 | } |
296 | ||
7e73fbbd | 297 | //___________________________________________________________________________ |
915d9c13 | 298 | void AliEventTagCuts::SetPrimaryVertexXRange(Float_t low, Float_t high) { |
c7e89ea3 | 299 | //Sets the primary vertex x range |
300 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 301 | fVxMin = low; |
302 | fVxMax = high; | |
c7e89ea3 | 303 | fVxFlag = kTRUE; |
304 | } | |
305 | ||
7e73fbbd | 306 | //___________________________________________________________________________ |
915d9c13 | 307 | void AliEventTagCuts::SetPrimaryVertexYRange(Float_t low, Float_t high) { |
c7e89ea3 | 308 | //Sets the primary vertex y range |
309 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 310 | fVyMin = low; |
311 | fVyMax = high; | |
c7e89ea3 | 312 | fVyFlag = kTRUE; |
313 | } | |
314 | ||
7e73fbbd | 315 | //___________________________________________________________________________ |
915d9c13 | 316 | void AliEventTagCuts::SetPrimaryVertexZRange(Float_t low, Float_t high) { |
c7e89ea3 | 317 | //Sets the primary vertex z range |
318 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 319 | fVzMin = low; |
320 | fVzMax = high; | |
c7e89ea3 | 321 | fVzFlag = kTRUE; |
322 | } | |
323 | ||
7e73fbbd | 324 | //___________________________________________________________________________ |
915d9c13 | 325 | void AliEventTagCuts::SetPrimaryVertexZErrorRange(Float_t low, Float_t high) { |
326 | //Sets the primary vertex z error range | |
327 | //and the corresponding flag to kTRUE if the cut is used. | |
328 | fPrimaryVertexZErrorMin = low; | |
329 | fPrimaryVertexZErrorMax = high; | |
330 | fPVzErrorFlag = kTRUE; | |
331 | } | |
332 | ||
333 | //___________________________________________________________________________ | |
334 | void AliEventTagCuts::SetTriggerMask(ULong64_t trmask) { | |
335 | //Sets the trigger mask | |
336 | //and the corresponding flag to kTRUE if the cut is used. | |
337 | fTriggerMask = trmask; | |
338 | fTriggerMaskFlag = kTRUE; | |
339 | } | |
340 | ||
341 | //___________________________________________________________________________ | |
342 | void AliEventTagCuts::SetTriggerCluster(UChar_t trcluster) { | |
343 | //Sets the trigger cluster | |
344 | //and the corresponding flag to kTRUE if the cut is used. | |
345 | fTriggerCluster = trcluster; | |
346 | fTriggerClusterFlag = kTRUE; | |
347 | } | |
348 | ||
349 | //___________________________________________________________________________ | |
350 | void AliEventTagCuts::SetMultiplicityRange(Int_t low, Int_t high) { | |
c7e89ea3 | 351 | //Sets the primary multiplicity range |
352 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 353 | fMultMin = low; |
354 | fMultMax = high; | |
c7e89ea3 | 355 | fMultFlag = kTRUE; |
356 | } | |
357 | ||
7e73fbbd | 358 | //___________________________________________________________________________ |
915d9c13 | 359 | void AliEventTagCuts::SetNParticipantsRange(Int_t low, Int_t high) { |
c7e89ea3 | 360 | //Sets the number of participants range |
361 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 362 | fNParticipantsMin = low; |
363 | fNParticipantsMax = high; | |
364 | fNParticipantsFlag = kTRUE; | |
c7e89ea3 | 365 | } |
366 | ||
7e73fbbd | 367 | //___________________________________________________________________________ |
915d9c13 | 368 | void AliEventTagCuts::SetImpactParamRange(Float_t low, Float_t high) { |
c7e89ea3 | 369 | //Sets the impact parameter range |
370 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 371 | fImpactParamMin = low; |
372 | fImpactParamMax = high; | |
c7e89ea3 | 373 | fImpactParamFlag = kTRUE; |
374 | } | |
375 | ||
376 | ||
7e73fbbd | 377 | //___________________________________________________________________________ |
915d9c13 | 378 | void AliEventTagCuts::SetPrimaryVertexFlag(Int_t flag) { |
c7e89ea3 | 379 | //Sets the primary vertex flag cut |
380 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 381 | fPrimaryVertexFlag = flag; |
c7e89ea3 | 382 | fPVFlag = kTRUE; |
383 | } | |
384 | ||
7e73fbbd | 385 | //___________________________________________________________________________ |
915d9c13 | 386 | void AliEventTagCuts::SetZDCNeutron1Range(Float_t low, Float_t high) { |
c7e89ea3 | 387 | //Sets the ZDC's neutron energy range |
388 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 389 | fZDCNeutron1EnergyMin = low; |
390 | fZDCNeutron1EnergyMax = high; | |
32a5cab4 | 391 | fZDCNeutron1EnergyFlag = kTRUE; |
c7e89ea3 | 392 | } |
7e73fbbd | 393 | |
394 | //___________________________________________________________________________ | |
915d9c13 | 395 | void AliEventTagCuts::SetZDCProton1Range(Float_t low, Float_t high) { |
c7e89ea3 | 396 | //Sets the ZDC's proton energy range |
397 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 398 | fZDCProton1EnergyMin = low; |
399 | fZDCProton1EnergyMax = high; | |
32a5cab4 | 400 | fZDCProton1EnergyFlag = kTRUE; |
401 | } | |
7e73fbbd | 402 | //___________________________________________________________________________ |
915d9c13 | 403 | void AliEventTagCuts::SetZDCNeutron2Range(Float_t low, Float_t high) { |
32a5cab4 | 404 | //Sets the ZDC's neutron energy range |
405 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 406 | fZDCNeutron2EnergyMin = low; |
407 | fZDCNeutron2EnergyMax = high; | |
32a5cab4 | 408 | fZDCNeutron2EnergyFlag = kTRUE; |
409 | } | |
7e73fbbd | 410 | //___________________________________________________________________________ |
915d9c13 | 411 | void AliEventTagCuts::SetZDCProton2Range(Float_t low, Float_t high) { |
32a5cab4 | 412 | //Sets the ZDC's proton energy range |
413 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 414 | fZDCProton2EnergyMin = low; |
415 | fZDCProton2EnergyMax = high; | |
32a5cab4 | 416 | fZDCProton2EnergyFlag = kTRUE; |
c7e89ea3 | 417 | } |
7e73fbbd | 418 | //___________________________________________________________________________ |
915d9c13 | 419 | void AliEventTagCuts::SetZDCEMRange(Float_t low, Float_t high) { |
a85132e7 | 420 | //Sets the ZDC's em energy range |
c7e89ea3 | 421 | //and the corresponding flag to kTRUE if the cut is used. |
915d9c13 | 422 | fZDCEMEnergyMin = low; |
423 | fZDCEMEnergyMax = high; | |
c7e89ea3 | 424 | fZDCEMEnergyFlag = kTRUE; |
425 | } | |
426 | ||
7e73fbbd | 427 | //___________________________________________________________________________ |
915d9c13 | 428 | void AliEventTagCuts::SetT0VertexZRange(Float_t low, Float_t high) { |
c7e89ea3 | 429 | //Sets the T0's Vz range |
430 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 431 | fT0VertexZMin = low; |
432 | fT0VertexZMax = high; | |
c7e89ea3 | 433 | fT0VertexZFlag = kTRUE; |
434 | } | |
435 | ||
7e73fbbd | 436 | //___________________________________________________________________________ |
915d9c13 | 437 | void AliEventTagCuts::SetPosMultiplicityRange(Int_t low, Int_t high) { |
c7e89ea3 | 438 | //Sets the positive multiplicity range |
439 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 440 | fPosMultMin = low; |
441 | fPosMultMax = high; | |
442 | fPosMultFlag = kTRUE; | |
c7e89ea3 | 443 | } |
444 | ||
445 | ||
7e73fbbd | 446 | //___________________________________________________________________________ |
915d9c13 | 447 | void AliEventTagCuts::SetNegMultiplicityRange(Int_t low, Int_t high) { |
c7e89ea3 | 448 | //Sets the negative multiplicity range |
449 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 450 | fNegMultMin = low; |
451 | fNegMultMax = high; | |
452 | fNegMultFlag = kTRUE; | |
c7e89ea3 | 453 | } |
454 | ||
455 | ||
7e73fbbd | 456 | //___________________________________________________________________________ |
915d9c13 | 457 | void AliEventTagCuts::SetNeutrMultiplicityRange(Int_t low, Int_t high) { |
c7e89ea3 | 458 | //Sets the neutral particle multiplicity range |
459 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 460 | fNeutrMultMin = low; |
461 | fNeutrMultMax = high; | |
462 | fNeutrMultFlag = kTRUE; | |
c7e89ea3 | 463 | } |
464 | ||
7e73fbbd | 465 | //___________________________________________________________________________ |
915d9c13 | 466 | void AliEventTagCuts::SetNV0sRange(Int_t low, Int_t high) { |
c7e89ea3 | 467 | //Sets the v0s multiplicity range |
468 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 469 | fNV0sMin = low; |
470 | fNV0sMax = high; | |
471 | fNV0sFlag = kTRUE; | |
c7e89ea3 | 472 | } |
473 | ||
7e73fbbd | 474 | //___________________________________________________________________________ |
915d9c13 | 475 | void AliEventTagCuts::SetNCascadesRange(Int_t low, Int_t high) { |
c7e89ea3 | 476 | //Sets the cascades multiplicity range |
477 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 478 | fNCascadesMin = low; |
479 | fNCascadesMax = high; | |
480 | fNCascadesFlag = kTRUE; | |
c7e89ea3 | 481 | } |
482 | ||
7e73fbbd | 483 | //___________________________________________________________________________ |
915d9c13 | 484 | void AliEventTagCuts::SetNKinksRange(Int_t low, Int_t high) { |
485 | //Sets the kinks multiplicity range | |
c7e89ea3 | 486 | //and the corresponding flag to kTRUE if the cut is used. |
63fafb59 | 487 | fNKinksMin = low; |
488 | fNKinksMax = high; | |
489 | fNKinksFlag = kTRUE; | |
c7e89ea3 | 490 | } |
491 | ||
7e73fbbd | 492 | //___________________________________________________________________________ |
915d9c13 | 493 | void AliEventTagCuts::SetNPMDTracksRange(Int_t low, Int_t high) { |
494 | //Sets the number of PMD tracks range | |
495 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 496 | fNPMDTracksMin = low; |
497 | fNPMDTracksMax = high; | |
498 | fNPMDTracksFlag = kTRUE; | |
915d9c13 | 499 | } |
500 | ||
501 | //___________________________________________________________________________ | |
502 | void AliEventTagCuts::SetNFMDTracksRange(Int_t low, Int_t high) { | |
503 | //Sets the number of FMD tracks range | |
504 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 505 | fNFMDTracksMin = low; |
506 | fNFMDTracksMax = high; | |
507 | fNFMDTracksFlag = kTRUE; | |
915d9c13 | 508 | } |
509 | ||
510 | //___________________________________________________________________________ | |
511 | void AliEventTagCuts::SetNPHOSClustersRange(Int_t low, Int_t high) { | |
512 | //Sets the number of PHOS clusters range | |
513 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 514 | fNPHOSClustersMin = low; |
515 | fNPHOSClustersMax = high; | |
516 | fNPHOSClustersFlag = kTRUE; | |
915d9c13 | 517 | } |
518 | ||
519 | //___________________________________________________________________________ | |
520 | void AliEventTagCuts::SetNEMCALClustersRange(Int_t low, Int_t high) { | |
521 | //Sets the number of EMCAL clusters range | |
522 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 523 | fNEMCALClustersMin = low; |
524 | fNEMCALClustersMax = high; | |
525 | fNEMCALClustersFlag = kTRUE; | |
915d9c13 | 526 | } |
527 | ||
528 | //___________________________________________________________________________ | |
529 | void AliEventTagCuts::SetNJetCandidatesRange(Int_t low, Int_t high) { | |
530 | //Sets the number of jet candidates range | |
531 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 532 | fNJetCandidatesMin = low; |
533 | fNJetCandidatesMax = high; | |
534 | fNJetCandidatesFlag = kTRUE; | |
915d9c13 | 535 | } |
536 | ||
537 | //___________________________________________________________________________ | |
538 | void AliEventTagCuts::SetTopJetEnergyMin(Float_t low) { | |
c7e89ea3 | 539 | //Sets the lower limit of the maximum jet energy |
540 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 541 | fTopJetEnergyMin = low; |
542 | fTopJetEnergyMinFlag = kTRUE; | |
c7e89ea3 | 543 | } |
7e73fbbd | 544 | //___________________________________________________________________________ |
915d9c13 | 545 | void AliEventTagCuts::SetTopNeutralEnergyMin(Float_t low) { |
c7e89ea3 | 546 | //Sets the lower limit of the maximum neutral jet energy |
547 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 548 | fTopNeutralEnergyMin = low; |
549 | fTopNeutralEnergyMinFlag = kTRUE; | |
c7e89ea3 | 550 | } |
7e73fbbd | 551 | //___________________________________________________________________________ |
915d9c13 | 552 | void AliEventTagCuts::SetNHardPhotonsRange(Int_t low, Int_t high) { |
c7e89ea3 | 553 | //Sets the hard photons multiplicity range |
554 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 555 | fNHardPhotonCandidatesMin = low; |
556 | fNHardPhotonCandidatesMax = high; | |
557 | fNHardPhotonCandidatesFlag = kTRUE; | |
c7e89ea3 | 558 | } |
559 | ||
7e73fbbd | 560 | //___________________________________________________________________________ |
915d9c13 | 561 | void AliEventTagCuts::SetNChargedAbove1GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 562 | //Sets the number of charged above 1GeV range |
563 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 564 | fNChargedAbove1GeVMin = low; |
565 | fNChargedAbove1GeVMax = high; | |
566 | fNChargedAbove1GeVFlag = kTRUE; | |
c7e89ea3 | 567 | } |
568 | ||
7e73fbbd | 569 | //___________________________________________________________________________ |
915d9c13 | 570 | void AliEventTagCuts::SetNChargedAbove3GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 571 | //Sets the number of charged above 3GeV range |
572 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 573 | fNChargedAbove3GeVMin = low; |
574 | fNChargedAbove3GeVMax = high; | |
575 | fNChargedAbove3GeVFlag = kTRUE; | |
c7e89ea3 | 576 | } |
577 | ||
578 | ||
7e73fbbd | 579 | //___________________________________________________________________________ |
915d9c13 | 580 | void AliEventTagCuts::SetNChargedAbove10GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 581 | //Sets the number of charged above 10GeV range |
582 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 583 | fNChargedAbove10GeVMin = low; |
584 | fNChargedAbove10GeVMax = high; | |
585 | fNChargedAbove10GeVFlag = kTRUE; | |
c7e89ea3 | 586 | } |
587 | ||
588 | ||
7e73fbbd | 589 | //___________________________________________________________________________ |
915d9c13 | 590 | void AliEventTagCuts::SetNMuonsAbove1GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 591 | //Sets the number of muons above 1GeV range |
592 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 593 | fNMuonsAbove1GeVMin = low; |
594 | fNMuonsAbove1GeVMax = high; | |
595 | fNMuonsAbove1GeVFlag = kTRUE; | |
c7e89ea3 | 596 | } |
597 | ||
598 | ||
7e73fbbd | 599 | //___________________________________________________________________________ |
915d9c13 | 600 | void AliEventTagCuts::SetNMuonsAbove3GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 601 | //Sets the number of muons above 3GeV range |
602 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 603 | fNMuonsAbove3GeVMin = low; |
604 | fNMuonsAbove3GeVMax = high; | |
605 | fNMuonsAbove3GeVFlag = kTRUE; | |
c7e89ea3 | 606 | } |
607 | ||
7e73fbbd | 608 | //___________________________________________________________________________ |
915d9c13 | 609 | void AliEventTagCuts::SetNMuonsAbove10GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 610 | //Sets the number of muons above 10GeV range |
611 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 612 | fNMuonsAbove10GeVMin = low; |
613 | fNMuonsAbove10GeVMax = high; | |
614 | fNMuonsAbove10GeVFlag = kTRUE; | |
c7e89ea3 | 615 | } |
616 | ||
617 | ||
7e73fbbd | 618 | //___________________________________________________________________________ |
915d9c13 | 619 | void AliEventTagCuts::SetNElectronsAbove1GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 620 | //Sets the number of electrons above 1GeV range |
621 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 622 | fNElectronsAbove1GeVMin = low; |
623 | fNElectronsAbove1GeVMax = high; | |
624 | fNElectronsAbove1GeVFlag = kTRUE; | |
c7e89ea3 | 625 | } |
626 | ||
7e73fbbd | 627 | //___________________________________________________________________________ |
915d9c13 | 628 | void AliEventTagCuts::SetNElectronsAbove3GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 629 | //Sets the number of electrons above 3GeV range |
630 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 631 | fNElectronsAbove3GeVMin = low; |
632 | fNElectronsAbove3GeVMax = high; | |
633 | fNElectronsAbove3GeVFlag = kTRUE; | |
c7e89ea3 | 634 | } |
635 | ||
7e73fbbd | 636 | //___________________________________________________________________________ |
915d9c13 | 637 | void AliEventTagCuts::SetNElectronsAbove10GeVRange(Int_t low, Int_t high) { |
c7e89ea3 | 638 | //Sets the number of electrons above 10GeV range |
639 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 640 | fNElectronsAbove10GeVMin = low; |
641 | fNElectronsAbove10GeVMax = high; | |
642 | fNElectronsAbove10GeVFlag = kTRUE; | |
c7e89ea3 | 643 | } |
7e73fbbd | 644 | //___________________________________________________________________________ |
915d9c13 | 645 | void AliEventTagCuts::SetNElectronRange(Int_t low, Int_t high) { |
c7e89ea3 | 646 | //Sets the electron multiplicity range |
647 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 648 | fNElectronsMin = low; |
649 | fNElectronsMax = high; | |
650 | fNElectronsFlag = kTRUE; | |
c7e89ea3 | 651 | } |
d3893274 | 652 | //___________________________________________________________________________ |
653 | void AliEventTagCuts::SetNFWMuonRange(Int_t low, Int_t high) { | |
654 | //Sets the forward muon multiplicity range | |
655 | //and the corresponding flag to kTRUE if the cut is used. | |
656 | fNFWMuonsMin = low; | |
657 | fNFWMuonsMax = high; | |
658 | fNFWMuonsFlag = kTRUE; | |
659 | } | |
660 | ||
7e73fbbd | 661 | //___________________________________________________________________________ |
915d9c13 | 662 | void AliEventTagCuts::SetNMuonRange(Int_t low, Int_t high) { |
c7e89ea3 | 663 | //Sets the muon multiplicity range |
664 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 665 | fNMuonsMin = low; |
666 | fNMuonsMax = high; | |
667 | fNMuonsFlag = kTRUE; | |
c7e89ea3 | 668 | } |
669 | ||
7e73fbbd | 670 | //___________________________________________________________________________ |
915d9c13 | 671 | void AliEventTagCuts::SetNPionRange(Int_t low, Int_t high) { |
c7e89ea3 | 672 | //Sets the pion multiplicity range |
673 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 674 | fNPionsMin = low; |
675 | fNPionsMax = high; | |
676 | fNPionsFlag = kTRUE; | |
c7e89ea3 | 677 | } |
678 | ||
7e73fbbd | 679 | //___________________________________________________________________________ |
915d9c13 | 680 | void AliEventTagCuts::SetNKaonRange(Int_t low, Int_t high) { |
c7e89ea3 | 681 | //Sets the kaon multiplicity range |
682 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 683 | fNKaonsMin = low; |
684 | fNKaonsMax = high; | |
685 | fNKaonsFlag = kTRUE; | |
c7e89ea3 | 686 | } |
687 | ||
7e73fbbd | 688 | //___________________________________________________________________________ |
915d9c13 | 689 | void AliEventTagCuts::SetNProtonRange(Int_t low, Int_t high) { |
c7e89ea3 | 690 | //Sets the proton multiplicity range |
691 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 692 | fNProtonsMin = low; |
693 | fNProtonsMax = high; | |
694 | fNProtonsFlag = kTRUE; | |
c7e89ea3 | 695 | } |
696 | ||
7e73fbbd | 697 | //___________________________________________________________________________ |
915d9c13 | 698 | void AliEventTagCuts::SetNLambdaRange(Int_t low, Int_t high) { |
c7e89ea3 | 699 | //Sets the lambda multiplicity range |
700 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 701 | fNLambdasMin = low; |
702 | fNLambdasMax = high; | |
703 | fNLambdasFlag = kTRUE; | |
c7e89ea3 | 704 | } |
7e73fbbd | 705 | //___________________________________________________________________________ |
915d9c13 | 706 | void AliEventTagCuts::SetNPhotonRange(Int_t low, Int_t high) { |
c7e89ea3 | 707 | //Sets the photon multiplicity range |
708 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 709 | fNPhotonsMin = low; |
710 | fNPhotonsMax = high; | |
711 | fNPhotonFlag = kTRUE; | |
c7e89ea3 | 712 | } |
7e73fbbd | 713 | //___________________________________________________________________________ |
915d9c13 | 714 | void AliEventTagCuts::SetNPi0Range(Int_t low, Int_t high) { |
c7e89ea3 | 715 | //Sets the pi0 multiplicity range |
716 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 717 | fNPi0sMin = low; |
718 | fNPi0sMax = high; | |
719 | fNPi0sFlag = kTRUE; | |
c7e89ea3 | 720 | } |
721 | ||
7e73fbbd | 722 | //___________________________________________________________________________ |
915d9c13 | 723 | void AliEventTagCuts::SetNNeutronRange(Int_t low, Int_t high) { |
c7e89ea3 | 724 | //Sets the neutron multiplicity range |
725 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 726 | fNNeutronsMin = low; |
727 | fNNeutronsMax = high; | |
728 | fNNeutronsFlag = kTRUE; | |
c7e89ea3 | 729 | } |
730 | ||
7e73fbbd | 731 | //___________________________________________________________________________ |
915d9c13 | 732 | void AliEventTagCuts::SetNKaon0Range(Int_t low, Int_t high) { |
c7e89ea3 | 733 | //Sets the K0s multiplicity range |
734 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 735 | fNKaon0sMin = low; |
736 | fNKaon0sMax = high; | |
737 | fNKaon0sFlag = kTRUE; | |
c7e89ea3 | 738 | } |
739 | ||
7e73fbbd | 740 | //___________________________________________________________________________ |
915d9c13 | 741 | void AliEventTagCuts::SetTotalPRange(Float_t low, Float_t high) { |
c7e89ea3 | 742 | //Sets the total momentum range |
743 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 744 | fTotalPMin = low; |
745 | fTotalPMax = high; | |
c7e89ea3 | 746 | fTotalPFlag = kTRUE; |
747 | } | |
748 | ||
7e73fbbd | 749 | //___________________________________________________________________________ |
915d9c13 | 750 | void AliEventTagCuts::SetMeanPtRange(Float_t low, Float_t high) { |
c7e89ea3 | 751 | //Sets the mean Pt range |
752 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 753 | fMeanPtMin = low; |
754 | fMeanPtMax = high; | |
c7e89ea3 | 755 | fMeanPtFlag = kTRUE; |
756 | } | |
757 | ||
7e73fbbd | 758 | //___________________________________________________________________________ |
915d9c13 | 759 | void AliEventTagCuts::SetTopPtMin(Float_t low) { |
c7e89ea3 | 760 | //Sets the lower limit of the max Pt value |
761 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 762 | fTopPtMin = low; |
763 | fTopPtMinFlag = kTRUE; | |
c7e89ea3 | 764 | } |
765 | ||
7e73fbbd | 766 | //___________________________________________________________________________ |
915d9c13 | 767 | void AliEventTagCuts::SetTotalNeutralPRange(Float_t low, Float_t high) { |
c7e89ea3 | 768 | //Sets the total momentum of neutral particles range |
769 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 770 | fTotalNeutralPMin =low ; |
771 | fTotalNeutralPMax = high; | |
c7e89ea3 | 772 | fTotalNeutralPFlag = kTRUE; |
773 | } | |
7e73fbbd | 774 | //___________________________________________________________________________ |
915d9c13 | 775 | void AliEventTagCuts::SetMeanNeutralPtPRange(Float_t low, Float_t high) { |
c7e89ea3 | 776 | //Sets the mean Pt of neutral particles range |
777 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 778 | fMeanNeutralPtMin = low; |
779 | fMeanNeutralPtMax = high; | |
c7e89ea3 | 780 | fMeanNeutralPtFlag = kTRUE; |
63fafb59 | 781 | } |
7e73fbbd | 782 | //___________________________________________________________________________ |
915d9c13 | 783 | void AliEventTagCuts::SetTopNeutralPtMin(Float_t low) { |
c7e89ea3 | 784 | //Sets the lower limit of the maximum Pt of neutral particles |
785 | //and the corresponding flag to kTRUE if the cut is used. | |
63fafb59 | 786 | fTopNeutralPtMin = low; |
787 | fTopNeutralPtMinFlag = kTRUE; | |
c7e89ea3 | 788 | } |
789 | ||
7e73fbbd | 790 | //___________________________________________________________________________ |
63fafb59 | 791 | void AliEventTagCuts::SetEventPlaneAngleRange(Float_t low, Float_t high) { |
c7e89ea3 | 792 | //Sets the event plane range |
793 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 794 | fEventPlaneAngleMin = low; |
795 | fEventPlaneAngleMax = high; | |
c7e89ea3 | 796 | fEventPlaneAngleFlag = kTRUE; |
797 | } | |
798 | ||
7e73fbbd | 799 | //___________________________________________________________________________ |
915d9c13 | 800 | void AliEventTagCuts::SetHBTRadiiRange(Float_t low, Float_t high) { |
c7e89ea3 | 801 | //Sets the HBT radii range |
802 | //and the corresponding flag to kTRUE if the cut is used. | |
915d9c13 | 803 | fHBTRadiiMin = low; |
804 | fHBTRadiiMax = high; | |
c7e89ea3 | 805 | fHBTRadiiFlag = kTRUE; |
806 | } | |
807 | ||
7e73fbbd | 808 | //___________________________________________________________________________ |
809 | Bool_t AliEventTagCuts::IsAccepted(AliEventTag *EvTag) const { | |
c7e89ea3 | 810 | //Returns true if the event is accepted otherwise false. |
c7e89ea3 | 811 | if(fVzFlag) |
812 | if((EvTag->GetVertexZ() < fVzMin) || (EvTag->GetVertexZ() > fVzMax)) | |
813 | return kFALSE; | |
814 | ||
815 | if(fVyFlag) | |
816 | if((EvTag->GetVertexY() < fVyMin) || (EvTag->GetVertexY() > fVyMax)) | |
817 | return kFALSE; | |
818 | ||
819 | if(fVxFlag) | |
820 | if((EvTag->GetVertexX() < fVxMin) || (EvTag->GetVertexX() > fVxMax)) | |
821 | return kFALSE; | |
822 | ||
63fafb59 | 823 | if(fNParticipantsFlag) |
824 | if((EvTag->GetNumOfParticipants() < fNParticipantsMin) || (EvTag->GetNumOfParticipants() > fNParticipantsMax)) | |
c7e89ea3 | 825 | return kFALSE; |
826 | ||
827 | if(fImpactParamFlag) | |
828 | if((EvTag->GetImpactParameter() < fImpactParamMin) || (EvTag->GetImpactParameter() > fImpactParamMax)) | |
829 | return kFALSE; | |
830 | ||
831 | if(fPVFlag) | |
832 | if((EvTag->GetVertexFlag() != fPrimaryVertexFlag)) | |
833 | return kFALSE; | |
834 | ||
7e73fbbd | 835 | if(fPVzErrorFlag) |
836 | if((EvTag->GetVertexZError() < fPrimaryVertexZErrorMin) || (EvTag->GetVertexZError() > fPrimaryVertexZErrorMax)) | |
837 | return kFALSE; | |
838 | if(fTriggerMaskFlag) | |
839 | if((EvTag->GetTriggerMask() != fTriggerMask)) | |
840 | return kFALSE; | |
841 | if(fTriggerClusterFlag) | |
842 | if((EvTag->GetTriggerMask() != fTriggerMask)) | |
843 | return kFALSE; | |
844 | ||
32a5cab4 | 845 | if(fZDCNeutron1EnergyFlag) |
846 | if((EvTag->GetZDCNeutron1Energy() < fZDCNeutron1EnergyMin) || (EvTag->GetZDCNeutron1Energy() > fZDCNeutron1EnergyMax)) | |
847 | return kFALSE; | |
848 | ||
849 | if(fZDCProton1EnergyFlag) | |
850 | if((EvTag->GetZDCProton1Energy() < fZDCProton1EnergyMin) || (EvTag->GetZDCProton1Energy() > fZDCProton1EnergyMax)) | |
851 | return kFALSE; | |
852 | ||
853 | if(fZDCNeutron2EnergyFlag) | |
854 | if((EvTag->GetZDCNeutron2Energy() < fZDCNeutron2EnergyMin) || (EvTag->GetZDCNeutron2Energy() > fZDCNeutron2EnergyMax)) | |
c7e89ea3 | 855 | return kFALSE; |
856 | ||
32a5cab4 | 857 | if(fZDCProton2EnergyFlag) |
858 | if((EvTag->GetZDCProton2Energy() < fZDCProton2EnergyMin) || (EvTag->GetZDCProton2Energy() > fZDCProton2EnergyMax)) | |
c7e89ea3 | 859 | return kFALSE; |
860 | ||
861 | if(fZDCEMEnergyFlag) | |
a85132e7 | 862 | if((EvTag->GetZDCEMEnergy(1) < fZDCEMEnergyMin) || (EvTag->GetZDCEMEnergy(1) > fZDCEMEnergyMax)) |
c7e89ea3 | 863 | return kFALSE; |
864 | ||
865 | if(fT0VertexZFlag) | |
866 | if((EvTag->GetT0VertexZ() < fT0VertexZMin) || (EvTag->GetT0VertexZ() > fT0VertexZMax)) | |
867 | return kFALSE; | |
868 | ||
7e73fbbd | 869 | if(fMultFlag) |
870 | if((EvTag->GetNumOfTracks() < fMultMin) || (EvTag->GetNumOfTracks() > fMultMax)) | |
871 | return kFALSE; | |
63fafb59 | 872 | |
873 | if(fPosMultFlag) | |
874 | if((EvTag->GetNumOfPosTracks() < fPosMultMin) || (EvTag->GetNumOfPosTracks() > fPosMultMax)) | |
c7e89ea3 | 875 | return kFALSE; |
876 | ||
63fafb59 | 877 | if(fNegMultFlag) |
878 | if((EvTag->GetNumOfNegTracks() < fNegMultMin) || (EvTag->GetNumOfNegTracks() > fNegMultMax)) | |
c7e89ea3 | 879 | return kFALSE; |
880 | ||
63fafb59 | 881 | if(fNeutrMultFlag) |
882 | if((EvTag->GetNumOfNeutrTracks() < fNeutrMultMin) || (EvTag->GetNumOfNeutrTracks() > fNeutrMultMax)) | |
c7e89ea3 | 883 | return kFALSE; |
884 | ||
63fafb59 | 885 | if(fNV0sFlag) |
886 | if((EvTag->GetNumOfV0s() < fNV0sMin) || (EvTag->GetNumOfV0s() > fNV0sMax)) | |
c7e89ea3 | 887 | return kFALSE; |
888 | ||
63fafb59 | 889 | if(fNCascadesFlag) |
890 | if((EvTag->GetNumOfCascades() < fNCascadesMin) || (EvTag->GetNumOfCascades() > fNCascadesMax)) | |
c7e89ea3 | 891 | return kFALSE; |
892 | ||
63fafb59 | 893 | if(fNKinksFlag) |
894 | if((EvTag->GetNumOfKinks() < fNKinksMin) || (EvTag->GetNumOfKinks() > fNKinksMax)) | |
c7e89ea3 | 895 | return kFALSE; |
7e73fbbd | 896 | |
897 | ||
63fafb59 | 898 | if(fNPMDTracksFlag) |
899 | if((EvTag->GetNumOfPMDTracks() < fNPMDTracksMin) || (EvTag->GetNumOfPMDTracks() > fNPMDTracksMax)) | |
7e73fbbd | 900 | return kFALSE; |
63fafb59 | 901 | if(fNFMDTracksFlag) |
902 | if((EvTag->GetNumOfFMDTracks() < fNFMDTracksMin) || (EvTag->GetNumOfFMDTracks() > fNFMDTracksMax)) | |
7e73fbbd | 903 | return kFALSE; |
63fafb59 | 904 | if(fNPHOSClustersFlag) |
905 | if((EvTag->GetNumOfPHOSClusters() < fNPHOSClustersMin) || (EvTag->GetNumOfPHOSClusters() > fNPHOSClustersMax)) | |
7e73fbbd | 906 | return kFALSE; |
63fafb59 | 907 | if(fNEMCALClustersFlag) |
908 | if((EvTag->GetNumOfEMCALClusters() < fNEMCALClustersMin) || (EvTag->GetNumOfEMCALClusters() > fNEMCALClustersMax)) | |
7e73fbbd | 909 | return kFALSE; |
63fafb59 | 910 | if(fNJetCandidatesFlag) |
911 | if((EvTag->GetNumOfJetCandidates() < fNJetCandidatesMin) || (EvTag->GetNumOfJetCandidates() > fNJetCandidatesMax)) | |
7e73fbbd | 912 | return kFALSE; |
913 | ||
914 | ||
63fafb59 | 915 | if(fTopJetEnergyMinFlag) |
916 | if((EvTag->GetMaxJetEnergy() < fTopJetEnergyMin)) | |
c7e89ea3 | 917 | return kFALSE; |
918 | ||
63fafb59 | 919 | if(fNHardPhotonCandidatesFlag) |
920 | if((EvTag->GetNumOfHardPhotonsCandidates() < fNHardPhotonCandidatesMin) || (EvTag->GetNumOfHardPhotonsCandidates() > fNHardPhotonCandidatesMax)) | |
c7e89ea3 | 921 | return kFALSE; |
922 | ||
63fafb59 | 923 | if(fTopNeutralEnergyMinFlag) |
924 | if((EvTag->GetMaxNeutralEnergy() < fTopNeutralEnergyMin)) | |
c7e89ea3 | 925 | return kFALSE; |
926 | ||
63fafb59 | 927 | if(fNChargedAbove1GeVFlag) |
928 | if((EvTag->GetNumOfChargedAbove1GeV() < fNChargedAbove1GeVMin) || (EvTag->GetNumOfChargedAbove1GeV() > fNChargedAbove1GeVMax)) | |
c7e89ea3 | 929 | return kFALSE; |
930 | ||
63fafb59 | 931 | if(fNChargedAbove3GeVFlag) |
932 | if((EvTag->GetNumOfChargedAbove3GeV() < fNChargedAbove3GeVMin) || (EvTag->GetNumOfChargedAbove3GeV() > fNChargedAbove3GeVMax)) | |
c7e89ea3 | 933 | return kFALSE; |
934 | ||
63fafb59 | 935 | if(fNChargedAbove10GeVFlag) |
936 | if((EvTag->GetNumOfChargedAbove10GeV() < fNChargedAbove10GeVMin) || (EvTag->GetNumOfChargedAbove10GeV() > fNChargedAbove10GeVMax)) | |
c7e89ea3 | 937 | return kFALSE; |
938 | ||
63fafb59 | 939 | if(fNMuonsAbove1GeVFlag) |
940 | if((EvTag->GetNumOfMuonsAbove1GeV() < fNMuonsAbove1GeVMin) || (EvTag->GetNumOfMuonsAbove1GeV() > fNMuonsAbove1GeVMax)) | |
c7e89ea3 | 941 | return kFALSE; |
942 | ||
63fafb59 | 943 | if(fNMuonsAbove3GeVFlag) |
944 | if((EvTag->GetNumOfMuonsAbove3GeV() < fNMuonsAbove3GeVMin) || (EvTag->GetNumOfMuonsAbove3GeV() > fNMuonsAbove3GeVMax)) | |
c7e89ea3 | 945 | return kFALSE; |
946 | ||
63fafb59 | 947 | if(fNMuonsAbove10GeVFlag) |
948 | if((EvTag->GetNumOfMuonsAbove10GeV() < fNMuonsAbove10GeVMin) || (EvTag->GetNumOfMuonsAbove10GeV() > fNMuonsAbove10GeVMax)) | |
c7e89ea3 | 949 | return kFALSE; |
950 | ||
63fafb59 | 951 | if(fNElectronsAbove1GeVFlag) |
952 | if((EvTag->GetNumOfElectronsAbove1GeV() < fNElectronsAbove1GeVMin) || (EvTag->GetNumOfElectronsAbove1GeV() > fNElectronsAbove1GeVMax)) | |
c7e89ea3 | 953 | return kFALSE; |
954 | ||
63fafb59 | 955 | if(fNElectronsAbove3GeVFlag) |
956 | if((EvTag->GetNumOfElectronsAbove3GeV() < fNElectronsAbove3GeVMin) || (EvTag->GetNumOfElectronsAbove3GeV() > fNElectronsAbove3GeVMax)) | |
c7e89ea3 | 957 | return kFALSE; |
958 | ||
63fafb59 | 959 | if(fNElectronsAbove10GeVFlag) |
960 | if((EvTag->GetNumOfElectronsAbove10GeV() < fNElectronsAbove10GeVMin) || (EvTag->GetNumOfElectronsAbove10GeV() > fNElectronsAbove10GeVMax)) | |
c7e89ea3 | 961 | return kFALSE; |
962 | ||
63fafb59 | 963 | if(fNElectronsFlag) |
964 | if((EvTag->GetNumOfElectrons() < fNElectronsMin) || (EvTag->GetNumOfElectrons() > fNElectronsMax)) | |
c7e89ea3 | 965 | return kFALSE; |
966 | ||
d3893274 | 967 | if(fNFWMuonsFlag) |
968 | if((EvTag->GetNumOfFWMuons() < fNFWMuonsMin) || (EvTag->GetNumOfFWMuons() > fNFWMuonsMax)) | |
969 | return kFALSE; | |
970 | ||
63fafb59 | 971 | if(fNMuonsFlag) |
972 | if((EvTag->GetNumOfMuons() < fNMuonsMin) || (EvTag->GetNumOfMuons() > fNMuonsMax)) | |
c7e89ea3 | 973 | return kFALSE; |
974 | ||
63fafb59 | 975 | if(fNPionsFlag) |
976 | if((EvTag->GetNumOfPions() < fNPionsMin) || (EvTag->GetNumOfPions() > fNPionsMax)) | |
c7e89ea3 | 977 | return kFALSE; |
978 | ||
63fafb59 | 979 | if(fNKaonsFlag) |
980 | if((EvTag->GetNumOfKaons() < fNKaonsMin) || (EvTag->GetNumOfKaons() > fNKaonsMax)) | |
c7e89ea3 | 981 | return kFALSE; |
982 | ||
63fafb59 | 983 | if(fNProtonsFlag) |
984 | if((EvTag->GetNumOfProtons() < fNProtonsMin) || (EvTag->GetNumOfProtons() > fNProtonsMax)) | |
c7e89ea3 | 985 | return kFALSE; |
986 | ||
63fafb59 | 987 | if(fNLambdasFlag) |
988 | if((EvTag->GetNumOfLambdas() < fNLambdasMin) || (EvTag->GetNumOfLambdas() > fNLambdasMax)) | |
c7e89ea3 | 989 | return kFALSE; |
990 | ||
63fafb59 | 991 | if(fNPhotonFlag) |
992 | if((EvTag->GetNumOfPhotons() < fNPhotonsMin) || (EvTag->GetNumOfPhotons() > fNPhotonsMax)) | |
c7e89ea3 | 993 | return kFALSE; |
994 | ||
63fafb59 | 995 | if(fNPi0sFlag) |
996 | if((EvTag->GetNumOfPi0s() < fNPi0sMin) || (EvTag->GetNumOfPi0s() > fNPi0sMax)) | |
c7e89ea3 | 997 | return kFALSE; |
998 | ||
63fafb59 | 999 | if(fNNeutronsFlag) |
1000 | if((EvTag->GetNumOfNeutrons() < fNNeutronsMin) || (EvTag->GetNumOfNeutrons() > fNNeutronsMax)) | |
c7e89ea3 | 1001 | return kFALSE; |
1002 | ||
63fafb59 | 1003 | if(fNKaon0sFlag) |
1004 | if((EvTag->GetNumOfKaon0s() < fNKaon0sMin) || (EvTag->GetNumOfKaon0s() > fNKaon0sMax)) | |
c7e89ea3 | 1005 | return kFALSE; |
1006 | ||
1007 | if(fTotalPFlag) | |
1008 | if((EvTag->GetTotalMomentum() < fTotalPMin) || (EvTag->GetTotalMomentum() > fTotalPMax)) | |
1009 | return kFALSE; | |
1010 | ||
1011 | if(fMeanPtFlag) | |
1012 | if((EvTag->GetMeanPt() < fMeanPtMin) || (EvTag->GetMeanPt() > fMeanPtMax)) | |
1013 | return kFALSE; | |
1014 | ||
63fafb59 | 1015 | if(fTopPtMinFlag) |
1016 | if((EvTag->GetMaxPt() < fTopPtMin)) | |
c7e89ea3 | 1017 | return kFALSE; |
1018 | ||
1019 | if(fTotalNeutralPFlag) | |
1020 | if((EvTag->GetNeutralTotalMomentum() < fTotalNeutralPMin) || (EvTag->GetNeutralTotalMomentum() > fTotalNeutralPMax)) | |
1021 | return kFALSE; | |
1022 | ||
1023 | if(fMeanNeutralPtFlag) | |
1024 | if((EvTag->GetNeutralMeanPt() < fMeanNeutralPtMin) || (EvTag->GetNeutralMeanPt() >fMeanNeutralPtMax )) | |
1025 | return kFALSE; | |
1026 | ||
63fafb59 | 1027 | if(fTopNeutralPtMinFlag) |
1028 | if((EvTag->GetNeutralMaxPt() < fTopNeutralPtMin)) | |
c7e89ea3 | 1029 | return kFALSE; |
1030 | ||
1031 | if(fEventPlaneAngleFlag) | |
1032 | if((EvTag->GetEventPlaneAngle() < fEventPlaneAngleMin) || (EvTag->GetEventPlaneAngle() > fEventPlaneAngleMax)) | |
1033 | return kFALSE; | |
1034 | ||
1035 | if(fHBTRadiiFlag) | |
1036 | if((EvTag->GetHBTRadii() < fHBTRadiiMin) || (EvTag->GetHBTRadii() > fHBTRadiiMax)) | |
1037 | return kFALSE; | |
1038 | ||
1039 | return kTRUE; | |
1040 | } |