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