Following naming conventions/improving readibility of the methods (Markus).
[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
25#include "AliEventTag.h"
26#include "AliEventTagCuts.h"
27
28ClassImp(AliEventTagCuts)
29
30
7e73fbbd 31//___________________________________________________________________________
fe12e09c 32AliEventTagCuts::AliEventTagCuts() :
33 TObject(),
34
35
36
37
38 fVxMin(-1000.0), fVxMax(1000.0),
39 fVxFlag(kFALSE),
40 fVyMin(-1000.0), fVyMax(1000.0),
41 fVyFlag(kFALSE),
42 fVzMin(-1000.0), fVzMax(1000.0),
43 fVzFlag(kFALSE),
44 fParticipantsMin(-1), fParticipantMax(10000),
45 fParticipantsFlag(kFALSE),
46 fImpactParamMin(-1.0), fImpactParamMax(1000.0),
47 fImpactParamFlag(kFALSE),
48 fPrimaryVertexFlag(1),
49 fPVFlag(kFALSE),
50
51 fPrimaryVertexZErrorMin(-10000.), fPrimaryVertexZErrorMax(10000.),
52 fPVzErrorFlag(kFALSE),
53 fTriggerMask(0),
54 fTriggerMaskFlag(kFALSE),
55 fTriggerCluster(0),
56 fTriggerClusterFlag(kFALSE),
57
58 fZDCNeutron1EnergyMin(-1.0), fZDCNeutron1EnergyMax(100000.0),
59 fZDCNeutron1EnergyFlag(kFALSE),
60 fZDCProton1EnergyMin(-1.0), fZDCProton1EnergyMax(100000.0),
61 fZDCProton1EnergyFlag(kFALSE),
62 fZDCNeutron2EnergyMin(-1.0), fZDCNeutron2EnergyMax(100000.0),
63 fZDCNeutron2EnergyFlag(kFALSE),
64 fZDCProton2EnergyMin(-1.0), fZDCProton2EnergyMax(100000.0),
65 fZDCProton2EnergyFlag(kFALSE),
66 fZDCEMEnergyMin(-1.0), fZDCEMEnergyMax(100000.0),
67 fZDCEMEnergyFlag(kFALSE),
68 fT0VertexZMin(-10000.0), fT0VertexZMax(10000.0),
69 fT0VertexZFlag(kFALSE),
70 fMultMin(0), fMultMax(100000),
71 fMultFlag(kFALSE),
72 fMultPosMin(-1), fMultPosMax(100000),
73 fMultPosFlag(kFALSE),
74 fMultNegMin(-1), fMultNegMax(100000),
75 fMultNegFlag(kFALSE),
76 fMultNeutrMin(-1), fMultNeutrMax(100000),
77 fMultNeutrFlag(kFALSE),
78 fV0sMin(-1), fV0sMax(1000000),
79 fV0sFlag(kFALSE),
80 fCascadesMin(-1), fCascadesMax(100000),
81 fCascadesFlag(kFALSE),
82 fkinksMin(-1), fkinksMax(1000000),
83 fkinksFlag(kFALSE),
84
85 fPMDTracksMin(-1), fPMDTracksMax(100000),
86 fPMDTracksFlag(kFALSE),
87 fFMDTracksMin(-1), fFMDTracksMax(100000),
88 fFMDTracksFlag(kFALSE),
89 fPHOSClustersMin(-1), fPHOSClustersMax(100000),
90 fPHOSClustersFlag(kFALSE),
91 fEMCALClustersMin(-1), fEMCALClustersMax(100000),
92 fEMCALClustersFlag(kFALSE),
93 fJetCandidatesMin(-1), fJetCandidatesMax(100000),
94 fJetCandidatesFlag(kFALSE),
95
96 fMaxJetEnergy(-1.0),
97 fMaxJetEnergyFlag(kFALSE),
98 fNHardPhotonsCandidatesMin(-1), fNHardPhotonsCandidatesMax(100000),
99 fNHardPhotonsCandidatesFlag(kFALSE),
100 fMaxNeutralEnergy(-1.0),
101 fMaxNeutralFlag(kFALSE),
102 fChargedAbove1GeVMin(-1), fChargedAbove1GeVMax(100000),
103 fChargedAbove1GeVFlag(kFALSE),
104 fChargedAbove3GeVMin(-1), fChargedAbove3GeVMax(100000),
105 fChargedAbove3GeVFlag(kFALSE),
106 fChargedAbove10GeVMin(-1), fChargedAbove10GeVMax(100000),
107 fChargedAbove10GeVFlag(kFALSE),
108 fMuonsAbove1GeVMin(-1), fMuonsAbove1GeVMax(100000),
109 fMuonsAbove1GeVFlag(kFALSE),
110 fMuonsAbove3GeVMin(-1), fMuonsAbove3GeVMax(100000),
111 fMuonsAbove3GeVFlag(kFALSE),
112 fMuonsAbove10GeVMin(-1), fMuonsAbove10GeVMax(100000),
113 fMuonsAbove10GeVFlag(kFALSE),
114 fElectronsAbove1GeVMin(-1), fElectronsAbove1GeVMax(100000),
115 fElectronsAbove1GeVFlag(kFALSE),
116 fElectronsAbove3GeVMin(-1), fElectronsAbove3GeVMax(100000),
117 fElectronsAbove3GeVFlag(kFALSE),
118 fElectronsAbove10GeVMin(-1), fElectronsAbove10GeVMax(100000),
119 fElectronsAbove10GeVFlag(kFALSE),
120 fElectronsMin(-1), fElectronsMax(100000),
121 fElectronsFlag(kFALSE),
122 fMuonsMin(-1), fMuonsMax(100000),
123 fMuonsFlag(kFALSE),
124 fPionsMin(-1), fPionsMax(100000),
125 fPionsFlag(kFALSE),
126 fKaonsMin(-1), fKaonsMax(100000),
127 fKaonsFlag(kFALSE),
128 fProtonsMin(-1), fProtonsMax(100000),
129 fProtonsFlag(kFALSE),
130 fLambdasMin(-1), fLambdasMax(100000),
131 fLambdasFlag(kFALSE),
132 fPhotonsMin(-1), fPhotonsMax(100000),
133 fPhotonFlag(kFALSE),
134 fPi0sMin(-1), fPi0sMax(100000),
135 fPi0sFlag(kFALSE),
136 fNeutronsMin(-1), fNeutronsMax(100000),
137 fNeutronsFlag(kFALSE),
138 fKaon0sMin(-1), fKaon0sMax(100000),
139 fKaon0sFlag(kFALSE),
140 fTotalPMin(-1.0), fTotalPMax(1000000.0),
141 fTotalPFlag(kFALSE),
142 fMeanPtMin(-1.0), fMeanPtMax(100000.0),
143 fMeanPtFlag(kFALSE),
144 fMaxPt(-1.0),
145 fMaxPtFlag(kFALSE),
146 fTotalNeutralPMin(-1.0), fTotalNeutralPMax(1000000.0),
147 fTotalNeutralPFlag(kFALSE),
148 fMeanNeutralPtMin(-1.0), fMeanNeutralPtMax(1000000.0),
149 fMeanNeutralPtFlag(kFALSE),
150 fMaxNeutralPt(-1.0),
151 fMaxNeutralPtFlag(kFALSE),
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//___________________________________________________________________________
162AliEventTagCuts::~AliEventTagCuts() {
c7e89ea3 163 //Defaut destructor.
164}
165
7e73fbbd 166//___________________________________________________________________________
167void AliEventTagCuts::Reset() {
c7e89ea3 168 //Sets dummy values to every private member.
169 fVxFlag = kFALSE;
170 fVyFlag = kFALSE;
171 fVzFlag = kFALSE;
172 fParticipantsFlag = kFALSE;
173 fImpactParamFlag = kFALSE;
174 fPVFlag = kFALSE;
7e73fbbd 175
176 fPVzErrorFlag = kFALSE;
177 fTriggerMaskFlag = kFALSE;
178 fTriggerClusterFlag = kFALSE;
179
32a5cab4 180 fZDCNeutron1EnergyFlag = kFALSE;
181 fZDCProton1EnergyFlag = kFALSE;
182 fZDCNeutron2EnergyFlag = kFALSE;
183 fZDCProton2EnergyFlag = kFALSE;
c7e89ea3 184 fZDCEMEnergyFlag = kFALSE;
185 fT0VertexZFlag = kFALSE;
186 fMultFlag = kFALSE;
187 fMultPosFlag = kFALSE;
188 fMultNegFlag = kFALSE;
189 fMultNeutrFlag = kFALSE;
190 fV0sFlag = kFALSE;
191 fCascadesFlag = kFALSE;
192 fkinksFlag = kFALSE;
7e73fbbd 193
194 fPMDTracksFlag = kFALSE;
195 fFMDTracksFlag = kFALSE;
196 fPHOSClustersFlag = kFALSE;
197 fEMCALClustersFlag = kFALSE;
198 fJetCandidatesFlag = kFALSE;
199
c7e89ea3 200 fMaxJetEnergyFlag = kFALSE;
201 fNHardPhotonsCandidatesFlag = kFALSE;
202 fMaxNeutralFlag = kFALSE;
203 fChargedAbove1GeVFlag = kFALSE;
204 fChargedAbove3GeVFlag = kFALSE;
205 fChargedAbove10GeVFlag = kFALSE;
206 fMuonsAbove1GeVFlag = kFALSE;
207 fMuonsAbove3GeVFlag = kFALSE;
208 fMuonsAbove10GeVFlag = kFALSE;
209 fElectronsAbove1GeVFlag = kFALSE;
210 fElectronsAbove3GeVFlag = kFALSE;
211 fElectronsAbove10GeVFlag = kFALSE;
212 fElectronsFlag = kFALSE;
213 fMuonsFlag = kFALSE;
214 fPionsFlag = kFALSE;
215 fKaonsFlag = kFALSE;
216 fProtonsFlag = kFALSE;
217 fLambdasFlag = kFALSE;
218 fPhotonFlag = kFALSE;
219 fPi0sFlag = kFALSE;
220 fNeutronsFlag = kFALSE;
221 fKaon0sFlag = kFALSE;
222 fTotalPFlag = kFALSE;
223 fMeanPtFlag = kFALSE;
224 fMaxPtFlag = kFALSE;
225 fTotalNeutralPFlag = kFALSE;
226 fMeanNeutralPtFlag = kFALSE;
227 fMaxNeutralPtFlag = kFALSE;
228 fEventPlaneAngleFlag = kFALSE;
229 fHBTRadiiFlag = kFALSE;
230
7e73fbbd 231 fVxMin = -1000.0; fVxMax = 1000.0;
232 fVyMin = -1000.0; fVyMax = 1000.0;
233 fVzMin = -1000.0; fVzMax = 1000.0;
234 fParticipantsMin = -1; fParticipantMax = 10000;
235 fImpactParamMin = -1.0; fImpactParamMax = 1000.0;
c7e89ea3 236 fPrimaryVertexFlag = 1;
7e73fbbd 237
238 fPrimaryVertexZErrorMin = -10000.; fPrimaryVertexZErrorMax = 10000.;
239 fTriggerMask = 0;
240 fTriggerCluster = 0;
c7e89ea3 241
7e73fbbd 242 fZDCNeutron1EnergyMin = -1.0; fZDCNeutron1EnergyMax = 100000.0;
243 fZDCProton1EnergyMin = -1.0; fZDCProton1EnergyMax = 100000.0;
244 fZDCNeutron2EnergyMin = -1.0; fZDCNeutron2EnergyMax = 100000.0;
245 fZDCProton2EnergyMin = -1.0; fZDCProton2EnergyMax = 100000.0;
246 fZDCEMEnergyMin = -1.0; fZDCEMEnergyMax = 100000.0;
247 fT0VertexZMin = -10000.0; fT0VertexZMax = 10000.0;
248 fMultMin = 0; fMultMax = 100000;
249 fMultPosMin = -1; fMultPosMax = 100000;
250 fMultNegMin = -1; fMultNegMax = 100000;
251 fMultNeutrMin = -1; fMultNeutrMax = 100000;
252 fV0sMin = -1; fV0sMax = 1000000;
253 fCascadesMin = -1; fCascadesMax = 100000;
254 fkinksMin = -1; fkinksMax = 1000000;
255
256 fPMDTracksMin = -1, fPMDTracksMax = 100000;
257 fFMDTracksMin = -1, fFMDTracksMax = 100000;
258 fPHOSClustersMin = -1, fPHOSClustersMax = 100000;
259 fEMCALClustersMin = -1, fEMCALClustersMax = 100000;
260 fJetCandidatesMin = -1, fJetCandidatesMax = 100000;
c7e89ea3 261
262 fMaxJetEnergy = -1.0;
7e73fbbd 263 fNHardPhotonsCandidatesMin = -1; fNHardPhotonsCandidatesMax = 100000;
c7e89ea3 264 fMaxNeutralEnergy = -1.0;
7e73fbbd 265 fChargedAbove1GeVMin = -1; fChargedAbove1GeVMax = 100000;
266 fChargedAbove3GeVMin = -1; fChargedAbove3GeVMax = 100000;
267 fChargedAbove10GeVMin = -1; fChargedAbove10GeVMax = 100000;
268 fMuonsAbove1GeVMin = -1; fMuonsAbove1GeVMax = 100000;
269 fMuonsAbove3GeVMin = -1; fMuonsAbove3GeVMax = 100000;
270 fMuonsAbove10GeVMin = -1; fMuonsAbove10GeVMax = 100000;
271 fElectronsAbove1GeVMin = -1; fElectronsAbove1GeVMax = 100000;
272 fElectronsAbove3GeVMin = -1; fElectronsAbove3GeVMax = 100000;
273 fElectronsAbove10GeVMin = -1; fElectronsAbove10GeVMax = 100000;
274 fElectronsMin = -1; fElectronsMax = 100000;
275 fMuonsMin = -1; fMuonsMax = 100000;
276 fPionsMin = -1; fPionsMax = 100000;
277 fKaonsMin = -1; fKaonsMax = 100000;
278 fProtonsMin = -1; fProtonsMax = 100000;
279 fLambdasMin = -1; fLambdasMax = 100000;
280 fPhotonsMin = -1; fPhotonsMax = 100000;
281 fPi0sMin = -1; fPi0sMax = 100000;
282 fNeutronsMin = -1; fNeutronsMax = 100000;
283 fKaon0sMin = -1; fKaon0sMax = 100000;
284 fTotalPMin = -1.0; fTotalPMax = 1000000.0;
285 fMeanPtMin = -1.0; fMeanPtMax = 100000.0;
286 fMaxPt = -1.0; fTotalNeutralPMin = -1.0;
287 fTotalNeutralPMax = 1000000.0;
288 fMeanNeutralPtMin = -1.0; fMeanNeutralPtMax = 1000000.0;
c7e89ea3 289 fMaxNeutralPt = -1.0;
7e73fbbd 290 fEventPlaneAngleMin = -10000000.0; fEventPlaneAngleMax = 10000000.0;
291 fHBTRadiiMin = -1.0; fHBTRadiiMax = 100000.0;
c7e89ea3 292}
293
7e73fbbd 294//___________________________________________________________________________
915d9c13 295void AliEventTagCuts::SetPrimaryVertexXRange(Float_t low, Float_t high) {
c7e89ea3 296 //Sets the primary vertex x range
297 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 298 fVxMin = low;
299 fVxMax = high;
c7e89ea3 300 fVxFlag = kTRUE;
301}
302
7e73fbbd 303//___________________________________________________________________________
915d9c13 304void AliEventTagCuts::SetPrimaryVertexYRange(Float_t low, Float_t high) {
c7e89ea3 305 //Sets the primary vertex y range
306 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 307 fVyMin = low;
308 fVyMax = high;
c7e89ea3 309 fVyFlag = kTRUE;
310}
311
7e73fbbd 312//___________________________________________________________________________
915d9c13 313void AliEventTagCuts::SetPrimaryVertexZRange(Float_t low, Float_t high) {
c7e89ea3 314 //Sets the primary vertex z range
315 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 316 fVzMin = low;
317 fVzMax = high;
c7e89ea3 318 fVzFlag = kTRUE;
319}
320
7e73fbbd 321//___________________________________________________________________________
915d9c13 322void AliEventTagCuts::SetPrimaryVertexZErrorRange(Float_t low, Float_t high) {
323 //Sets the primary vertex z error range
324 //and the corresponding flag to kTRUE if the cut is used.
325 fPrimaryVertexZErrorMin = low;
326 fPrimaryVertexZErrorMax = high;
327 fPVzErrorFlag = kTRUE;
328}
329
330//___________________________________________________________________________
331void AliEventTagCuts::SetTriggerMask(ULong64_t trmask) {
332 //Sets the trigger mask
333 //and the corresponding flag to kTRUE if the cut is used.
334 fTriggerMask = trmask;
335 fTriggerMaskFlag = kTRUE;
336}
337
338//___________________________________________________________________________
339void AliEventTagCuts::SetTriggerCluster(UChar_t trcluster) {
340 //Sets the trigger cluster
341 //and the corresponding flag to kTRUE if the cut is used.
342 fTriggerCluster = trcluster;
343 fTriggerClusterFlag = kTRUE;
344}
345
346//___________________________________________________________________________
347void AliEventTagCuts::SetMultiplicityRange(Int_t low, Int_t high) {
c7e89ea3 348 //Sets the primary multiplicity range
349 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 350 fMultMin = low;
351 fMultMax = high;
c7e89ea3 352 fMultFlag = kTRUE;
353}
354
7e73fbbd 355//___________________________________________________________________________
915d9c13 356void AliEventTagCuts::SetNParticipantsRange(Int_t low, Int_t high) {
c7e89ea3 357 //Sets the number of participants range
358 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 359 fParticipantsMin = low;
360 fParticipantMax = high;
c7e89ea3 361 fParticipantsFlag = kTRUE;
362}
363
7e73fbbd 364//___________________________________________________________________________
915d9c13 365void AliEventTagCuts::SetImpactParamRange(Float_t low, Float_t high) {
c7e89ea3 366 //Sets the impact parameter range
367 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 368 fImpactParamMin = low;
369 fImpactParamMax = high;
c7e89ea3 370 fImpactParamFlag = kTRUE;
371}
372
373
7e73fbbd 374//___________________________________________________________________________
915d9c13 375void AliEventTagCuts::SetPrimaryVertexFlag(Int_t flag) {
c7e89ea3 376 //Sets the primary vertex flag cut
377 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 378 fPrimaryVertexFlag = flag;
c7e89ea3 379 fPVFlag = kTRUE;
380}
381
7e73fbbd 382//___________________________________________________________________________
915d9c13 383void AliEventTagCuts::SetZDCNeutron1Range(Float_t low, Float_t high) {
c7e89ea3 384 //Sets the ZDC's neutron energy range
385 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 386 fZDCNeutron1EnergyMin = low;
387 fZDCNeutron1EnergyMax = high;
32a5cab4 388 fZDCNeutron1EnergyFlag = kTRUE;
c7e89ea3 389}
7e73fbbd 390
391//___________________________________________________________________________
915d9c13 392void AliEventTagCuts::SetZDCProton1Range(Float_t low, Float_t high) {
c7e89ea3 393 //Sets the ZDC's proton energy range
394 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 395 fZDCProton1EnergyMin = low;
396 fZDCProton1EnergyMax = high;
32a5cab4 397 fZDCProton1EnergyFlag = kTRUE;
398}
7e73fbbd 399//___________________________________________________________________________
915d9c13 400void AliEventTagCuts::SetZDCNeutron2Range(Float_t low, Float_t high) {
32a5cab4 401 //Sets the ZDC's neutron energy range
402 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 403 fZDCNeutron2EnergyMin = low;
404 fZDCNeutron2EnergyMax = high;
32a5cab4 405 fZDCNeutron2EnergyFlag = kTRUE;
406}
7e73fbbd 407//___________________________________________________________________________
915d9c13 408void AliEventTagCuts::SetZDCProton2Range(Float_t low, Float_t high) {
32a5cab4 409 //Sets the ZDC's proton energy range
410 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 411 fZDCProton2EnergyMin = low;
412 fZDCProton2EnergyMax = high;
32a5cab4 413 fZDCProton2EnergyFlag = kTRUE;
c7e89ea3 414}
7e73fbbd 415//___________________________________________________________________________
915d9c13 416void AliEventTagCuts::SetZDCEMRange(Float_t low, Float_t high) {
c7e89ea3 417 //Sets the ZDC's e/m energy range
418 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 419 fZDCEMEnergyMin = low;
420 fZDCEMEnergyMax = high;
c7e89ea3 421 fZDCEMEnergyFlag = kTRUE;
422}
423
7e73fbbd 424//___________________________________________________________________________
915d9c13 425void AliEventTagCuts::SetT0VertexZRange(Float_t low, Float_t high) {
c7e89ea3 426 //Sets the T0's Vz range
427 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 428 fT0VertexZMin = low;
429 fT0VertexZMax = high;
c7e89ea3 430 fT0VertexZFlag = kTRUE;
431}
432
7e73fbbd 433//___________________________________________________________________________
915d9c13 434void AliEventTagCuts::SetPosMultiplicityRange(Int_t low, Int_t high) {
c7e89ea3 435 //Sets the positive multiplicity range
436 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 437 fMultPosMin = low;
438 fMultPosMax = high;
c7e89ea3 439 fMultPosFlag = kTRUE;
440}
441
442
7e73fbbd 443//___________________________________________________________________________
915d9c13 444void AliEventTagCuts::SetNegMultiplicityRange(Int_t low, Int_t high) {
c7e89ea3 445 //Sets the negative multiplicity range
446 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 447 fMultNegMin = low;
448 fMultNegMax = high;
c7e89ea3 449 fMultNegFlag = kTRUE;
450}
451
452
7e73fbbd 453//___________________________________________________________________________
915d9c13 454void AliEventTagCuts::SetNeutrMultiplicityRange(Int_t low, Int_t high) {
c7e89ea3 455 //Sets the neutral particle multiplicity range
456 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 457 fMultNeutrMin = low;
458 fMultNeutrMax = high;
c7e89ea3 459 fMultNeutrFlag = kTRUE;
460}
461
7e73fbbd 462//___________________________________________________________________________
915d9c13 463void AliEventTagCuts::SetNV0sRange(Int_t low, Int_t high) {
c7e89ea3 464 //Sets the v0s multiplicity range
465 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 466 fV0sMin = low;
467 fV0sMax = high;
c7e89ea3 468 fV0sFlag = kTRUE;
469}
470
7e73fbbd 471//___________________________________________________________________________
915d9c13 472void AliEventTagCuts::SetNCascadesRange(Int_t low, Int_t high) {
c7e89ea3 473 //Sets the cascades multiplicity range
474 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 475 fCascadesMin = low;
476 fCascadesMax = high;
c7e89ea3 477 fCascadesFlag = kTRUE;
478}
479
7e73fbbd 480//___________________________________________________________________________
915d9c13 481void AliEventTagCuts::SetNKinksRange(Int_t low, Int_t high) {
482 //Sets the kinks multiplicity range
c7e89ea3 483 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 484 fkinksMin = low;
485 fkinksMax = high;
c7e89ea3 486 fkinksFlag = kTRUE;
487}
488
7e73fbbd 489//___________________________________________________________________________
915d9c13 490void AliEventTagCuts::SetNPMDTracksRange(Int_t low, Int_t high) {
491 //Sets the number of PMD tracks range
492 //and the corresponding flag to kTRUE if the cut is used.
493 fPMDTracksMin = low;
494 fPMDTracksMax = high;
495 fPMDTracksFlag = kTRUE;
496}
497
498//___________________________________________________________________________
499void AliEventTagCuts::SetNFMDTracksRange(Int_t low, Int_t high) {
500 //Sets the number of FMD tracks range
501 //and the corresponding flag to kTRUE if the cut is used.
502 fFMDTracksMin = low;
503 fFMDTracksMax = high;
504 fFMDTracksFlag = kTRUE;
505}
506
507//___________________________________________________________________________
508void AliEventTagCuts::SetNPHOSClustersRange(Int_t low, Int_t high) {
509 //Sets the number of PHOS clusters range
510 //and the corresponding flag to kTRUE if the cut is used.
511 fPHOSClustersMin = low;
512 fPHOSClustersMax = high;
513 fPHOSClustersFlag = kTRUE;
514}
515
516//___________________________________________________________________________
517void AliEventTagCuts::SetNEMCALClustersRange(Int_t low, Int_t high) {
518 //Sets the number of EMCAL clusters range
519 //and the corresponding flag to kTRUE if the cut is used.
520 fEMCALClustersMin = low;
521 fEMCALClustersMax = high;
522 fEMCALClustersFlag = kTRUE;
523}
524
525//___________________________________________________________________________
526void AliEventTagCuts::SetNJetCandidatesRange(Int_t low, Int_t high) {
527 //Sets the number of jet candidates range
528 //and the corresponding flag to kTRUE if the cut is used.
529 fJetCandidatesMin = low;
530 fJetCandidatesMax = high;
531 fJetCandidatesFlag = kTRUE;
532}
533
534//___________________________________________________________________________
535void AliEventTagCuts::SetTopJetEnergyMin(Float_t low) {
c7e89ea3 536 //Sets the lower limit of the maximum jet energy
537 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 538 fMaxJetEnergy = low;
c7e89ea3 539 fMaxJetEnergyFlag = kTRUE;
540}
7e73fbbd 541//___________________________________________________________________________
915d9c13 542void AliEventTagCuts::SetTopNeutralEnergyMin(Float_t low) {
c7e89ea3 543 //Sets the lower limit of the maximum neutral jet energy
544 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 545 fMaxNeutralEnergy = low;
c7e89ea3 546 fMaxNeutralFlag = kTRUE;
547}
7e73fbbd 548//___________________________________________________________________________
915d9c13 549void AliEventTagCuts::SetNHardPhotonsRange(Int_t low, Int_t high) {
c7e89ea3 550 //Sets the hard photons multiplicity range
551 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 552 fNHardPhotonsCandidatesMin = low;
553 fNHardPhotonsCandidatesMax = high;
c7e89ea3 554 fNHardPhotonsCandidatesFlag = kTRUE;
555}
556
7e73fbbd 557//___________________________________________________________________________
915d9c13 558void AliEventTagCuts::SetNChargedAbove1GeVRange(Int_t low, Int_t high) {
c7e89ea3 559 //Sets the number of charged above 1GeV range
560 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 561 fChargedAbove1GeVMin = low;
562 fChargedAbove1GeVMax = high;
c7e89ea3 563 fChargedAbove1GeVFlag = kTRUE;
564}
565
7e73fbbd 566//___________________________________________________________________________
915d9c13 567 void AliEventTagCuts::SetNChargedAbove3GeVRange(Int_t low, Int_t high) {
c7e89ea3 568 //Sets the number of charged above 3GeV range
569 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 570 fChargedAbove3GeVMin = low;
571 fChargedAbove3GeVMax = high;
c7e89ea3 572 fChargedAbove3GeVFlag = kTRUE;
573}
574
575
7e73fbbd 576//___________________________________________________________________________
915d9c13 577void AliEventTagCuts::SetNChargedAbove10GeVRange(Int_t low, Int_t high) {
c7e89ea3 578 //Sets the number of charged above 10GeV range
579 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 580 fChargedAbove10GeVMin = low;
581 fChargedAbove10GeVMax = high;
c7e89ea3 582 fChargedAbove10GeVFlag = kTRUE;
583}
584
585
7e73fbbd 586//___________________________________________________________________________
915d9c13 587void AliEventTagCuts::SetNMuonsAbove1GeVRange(Int_t low, Int_t high) {
c7e89ea3 588 //Sets the number of muons above 1GeV range
589 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 590 fMuonsAbove1GeVMin = low;
591 fMuonsAbove1GeVMax = high;
c7e89ea3 592 fMuonsAbove1GeVFlag = kTRUE;
593}
594
595
7e73fbbd 596//___________________________________________________________________________
915d9c13 597void AliEventTagCuts::SetNMuonsAbove3GeVRange(Int_t low, Int_t high) {
c7e89ea3 598 //Sets the number of muons above 3GeV range
599 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 600 fMuonsAbove3GeVMin = low;
601 fMuonsAbove3GeVMax = high;
c7e89ea3 602 fMuonsAbove3GeVFlag = kTRUE;
603}
604
7e73fbbd 605//___________________________________________________________________________
915d9c13 606void AliEventTagCuts::SetNMuonsAbove10GeVRange(Int_t low, Int_t high) {
c7e89ea3 607 //Sets the number of muons above 10GeV range
608 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 609 fMuonsAbove10GeVMin = low;
610 fMuonsAbove10GeVMax = high;
c7e89ea3 611 fMuonsAbove10GeVFlag = kTRUE;
612}
613
614
7e73fbbd 615//___________________________________________________________________________
915d9c13 616void AliEventTagCuts::SetNElectronsAbove1GeVRange(Int_t low, Int_t high) {
c7e89ea3 617 //Sets the number of electrons above 1GeV range
618 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 619 fElectronsAbove1GeVMin = low;
620 fElectronsAbove1GeVMax = high;
c7e89ea3 621 fElectronsAbove1GeVFlag = kTRUE;
622}
623
7e73fbbd 624//___________________________________________________________________________
915d9c13 625void AliEventTagCuts::SetNElectronsAbove3GeVRange(Int_t low, Int_t high) {
c7e89ea3 626 //Sets the number of electrons above 3GeV range
627 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 628 fElectronsAbove3GeVMin = low;
629 fElectronsAbove3GeVMax = high;
c7e89ea3 630 fElectronsAbove3GeVFlag = kTRUE;
631}
632
7e73fbbd 633//___________________________________________________________________________
915d9c13 634void AliEventTagCuts::SetNElectronsAbove10GeVRange(Int_t low, Int_t high) {
c7e89ea3 635 //Sets the number of electrons above 10GeV range
636 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 637 fElectronsAbove10GeVMin = low;
638 fElectronsAbove10GeVMax = high;
c7e89ea3 639 fElectronsAbove10GeVFlag = kTRUE;
640}
7e73fbbd 641//___________________________________________________________________________
915d9c13 642void AliEventTagCuts::SetNElectronRange(Int_t low, Int_t high) {
c7e89ea3 643 //Sets the electron multiplicity range
644 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 645 fElectronsMin = low;
646 fElectronsMax = high;
c7e89ea3 647 fElectronsFlag = kTRUE;
648}
7e73fbbd 649//___________________________________________________________________________
915d9c13 650void AliEventTagCuts::SetNMuonRange(Int_t low, Int_t high) {
c7e89ea3 651 //Sets the muon multiplicity range
652 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 653 fMuonsMin = low;
654 fMuonsMax = high;
c7e89ea3 655 fMuonsFlag = kTRUE;
656}
657
7e73fbbd 658//___________________________________________________________________________
915d9c13 659void AliEventTagCuts::SetNPionRange(Int_t low, Int_t high) {
c7e89ea3 660 //Sets the pion multiplicity range
661 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 662 fPionsMin = low;
663 fPionsMax = high;
c7e89ea3 664 fPionsFlag = kTRUE;
665}
666
7e73fbbd 667//___________________________________________________________________________
915d9c13 668void AliEventTagCuts::SetNKaonRange(Int_t low, Int_t high) {
c7e89ea3 669 //Sets the kaon multiplicity range
670 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 671 fKaonsMin = low;
672 fKaonsMax = high;
c7e89ea3 673 fKaonsFlag = kTRUE;
674}
675
7e73fbbd 676//___________________________________________________________________________
915d9c13 677void AliEventTagCuts::SetNProtonRange(Int_t low, Int_t high) {
c7e89ea3 678 //Sets the proton multiplicity range
679 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 680 fProtonsMin = low;
681 fProtonsMax = high;
c7e89ea3 682 fProtonsFlag = kTRUE;
683}
684
7e73fbbd 685//___________________________________________________________________________
915d9c13 686void AliEventTagCuts::SetNLambdaRange(Int_t low, Int_t high) {
c7e89ea3 687 //Sets the lambda multiplicity range
688 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 689 fLambdasMin = low;
690 fLambdasMax = high;
c7e89ea3 691 fLambdasFlag = kTRUE;
692}
7e73fbbd 693//___________________________________________________________________________
915d9c13 694void AliEventTagCuts::SetNPhotonRange(Int_t low, Int_t high) {
c7e89ea3 695 //Sets the photon multiplicity range
696 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 697 fPhotonsMin = low;
698 fPhotonsMax = high;
c7e89ea3 699 fPhotonFlag = kTRUE;
700}
7e73fbbd 701//___________________________________________________________________________
915d9c13 702void AliEventTagCuts::SetNPi0Range(Int_t low, Int_t high) {
c7e89ea3 703 //Sets the pi0 multiplicity range
704 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 705 fPi0sMin = low;
706 fPi0sMax = high;
c7e89ea3 707 fPi0sFlag = kTRUE;
708}
709
7e73fbbd 710//___________________________________________________________________________
915d9c13 711void AliEventTagCuts::SetNNeutronRange(Int_t low, Int_t high) {
c7e89ea3 712 //Sets the neutron multiplicity range
713 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 714 fNeutronsMin = low;
715 fNeutronsMax = high;
c7e89ea3 716 fNeutronsFlag = kTRUE;
717}
718
7e73fbbd 719//___________________________________________________________________________
915d9c13 720void AliEventTagCuts::SetNKaon0Range(Int_t low, Int_t high) {
c7e89ea3 721 //Sets the K0s multiplicity range
722 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 723 fKaon0sMin = low;
724 fKaon0sMax = high;
c7e89ea3 725 fKaon0sFlag = kTRUE;
726}
727
7e73fbbd 728//___________________________________________________________________________
915d9c13 729void AliEventTagCuts::SetTotalPRange(Float_t low, Float_t high) {
c7e89ea3 730 //Sets the total momentum range
731 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 732 fTotalPMin = low;
733 fTotalPMax = high;
c7e89ea3 734 fTotalPFlag = kTRUE;
735}
736
7e73fbbd 737//___________________________________________________________________________
915d9c13 738void AliEventTagCuts::SetMeanPtRange(Float_t low, Float_t high) {
c7e89ea3 739 //Sets the mean Pt range
740 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 741 fMeanPtMin = low;
742 fMeanPtMax = high;
c7e89ea3 743 fMeanPtFlag = kTRUE;
744}
745
7e73fbbd 746//___________________________________________________________________________
915d9c13 747void AliEventTagCuts::SetTopPtMin(Float_t low) {
c7e89ea3 748 //Sets the lower limit of the max Pt value
749 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 750 fMaxPt = low;
c7e89ea3 751 fMaxPtFlag = kTRUE;
752}
753
7e73fbbd 754//___________________________________________________________________________
915d9c13 755void AliEventTagCuts::SetTotalNeutralPRange(Float_t low, Float_t high) {
c7e89ea3 756 //Sets the total momentum of neutral particles range
757 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 758 fTotalNeutralPMin =low ;
759 fTotalNeutralPMax = high;
c7e89ea3 760 fTotalNeutralPFlag = kTRUE;
761}
7e73fbbd 762//___________________________________________________________________________
915d9c13 763void AliEventTagCuts::SetMeanNeutralPtPRange(Float_t low, Float_t high) {
c7e89ea3 764 //Sets the mean Pt of neutral particles range
765 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 766 fMeanNeutralPtMin = low;
767 fMeanNeutralPtMax = high;
c7e89ea3 768 fMeanNeutralPtFlag = kTRUE;
769}
7e73fbbd 770//___________________________________________________________________________
915d9c13 771void AliEventTagCuts::SetTopNeutralPtMin(Float_t low) {
c7e89ea3 772 //Sets the lower limit of the maximum Pt of neutral particles
773 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 774 fMaxNeutralPt = low;
c7e89ea3 775 fMaxNeutralPtFlag = kTRUE;
776}
777
7e73fbbd 778//___________________________________________________________________________
915d9c13 779void AliEventTagCuts::SetEvPlaneAngleRange(Float_t low, Float_t high) {
c7e89ea3 780 //Sets the event plane range
781 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 782 fEventPlaneAngleMin = low;
783 fEventPlaneAngleMax = high;
c7e89ea3 784 fEventPlaneAngleFlag = kTRUE;
785}
786
7e73fbbd 787//___________________________________________________________________________
915d9c13 788void AliEventTagCuts::SetHBTRadiiRange(Float_t low, Float_t high) {
c7e89ea3 789 //Sets the HBT radii range
790 //and the corresponding flag to kTRUE if the cut is used.
915d9c13 791 fHBTRadiiMin = low;
792 fHBTRadiiMax = high;
c7e89ea3 793 fHBTRadiiFlag = kTRUE;
794}
795
7e73fbbd 796//___________________________________________________________________________
797Bool_t AliEventTagCuts::IsAccepted(AliEventTag *EvTag) const {
c7e89ea3 798 //Returns true if the event is accepted otherwise false.
c7e89ea3 799 if(fVzFlag)
800 if((EvTag->GetVertexZ() < fVzMin) || (EvTag->GetVertexZ() > fVzMax))
801 return kFALSE;
802
803 if(fVyFlag)
804 if((EvTag->GetVertexY() < fVyMin) || (EvTag->GetVertexY() > fVyMax))
805 return kFALSE;
806
807 if(fVxFlag)
808 if((EvTag->GetVertexX() < fVxMin) || (EvTag->GetVertexX() > fVxMax))
809 return kFALSE;
810
811 if(fParticipantsFlag)
812 if((EvTag->GetNumOfParticipants() < fParticipantsMin) || (EvTag->GetNumOfParticipants() > fParticipantMax))
813 return kFALSE;
814
815 if(fImpactParamFlag)
816 if((EvTag->GetImpactParameter() < fImpactParamMin) || (EvTag->GetImpactParameter() > fImpactParamMax))
817 return kFALSE;
818
819 if(fPVFlag)
820 if((EvTag->GetVertexFlag() != fPrimaryVertexFlag))
821 return kFALSE;
822
7e73fbbd 823 if(fPVzErrorFlag)
824 if((EvTag->GetVertexZError() < fPrimaryVertexZErrorMin) || (EvTag->GetVertexZError() > fPrimaryVertexZErrorMax))
825 return kFALSE;
826 if(fTriggerMaskFlag)
827 if((EvTag->GetTriggerMask() != fTriggerMask))
828 return kFALSE;
829 if(fTriggerClusterFlag)
830 if((EvTag->GetTriggerMask() != fTriggerMask))
831 return kFALSE;
832
32a5cab4 833 if(fZDCNeutron1EnergyFlag)
834 if((EvTag->GetZDCNeutron1Energy() < fZDCNeutron1EnergyMin) || (EvTag->GetZDCNeutron1Energy() > fZDCNeutron1EnergyMax))
835 return kFALSE;
836
837 if(fZDCProton1EnergyFlag)
838 if((EvTag->GetZDCProton1Energy() < fZDCProton1EnergyMin) || (EvTag->GetZDCProton1Energy() > fZDCProton1EnergyMax))
839 return kFALSE;
840
841 if(fZDCNeutron2EnergyFlag)
842 if((EvTag->GetZDCNeutron2Energy() < fZDCNeutron2EnergyMin) || (EvTag->GetZDCNeutron2Energy() > fZDCNeutron2EnergyMax))
c7e89ea3 843 return kFALSE;
844
32a5cab4 845 if(fZDCProton2EnergyFlag)
846 if((EvTag->GetZDCProton2Energy() < fZDCProton2EnergyMin) || (EvTag->GetZDCProton2Energy() > fZDCProton2EnergyMax))
c7e89ea3 847 return kFALSE;
848
849 if(fZDCEMEnergyFlag)
850 if((EvTag->GetZDCEMEnergy() < fZDCEMEnergyMin) || (EvTag->GetZDCEMEnergy() > fZDCEMEnergyMax))
851 return kFALSE;
852
853 if(fT0VertexZFlag)
854 if((EvTag->GetT0VertexZ() < fT0VertexZMin) || (EvTag->GetT0VertexZ() > fT0VertexZMax))
855 return kFALSE;
856
7e73fbbd 857 if(fMultFlag)
858 if((EvTag->GetNumOfTracks() < fMultMin) || (EvTag->GetNumOfTracks() > fMultMax))
859 return kFALSE;
c7e89ea3 860 if(fMultPosFlag)
861 if((EvTag->GetNumOfPosTracks() < fMultPosMin) || (EvTag->GetNumOfPosTracks() > fMultPosMax))
862 return kFALSE;
863
864 if(fMultNegFlag)
865 if((EvTag->GetNumOfNegTracks() < fMultNegMin) || (EvTag->GetNumOfNegTracks() > fMultNegMax))
866 return kFALSE;
867
868 if(fMultNeutrFlag)
869 if((EvTag->GetNumOfNeutrTracks() < fMultNeutrMin) || (EvTag->GetNumOfNeutrTracks() > fMultNeutrMax))
870 return kFALSE;
871
872 if(fV0sFlag)
873 if((EvTag->GetNumOfV0s() < fV0sMin) || (EvTag->GetNumOfV0s() > fV0sMax))
874 return kFALSE;
875
876 if(fCascadesFlag)
877 if((EvTag->GetNumOfCascades() < fCascadesMin) || (EvTag->GetNumOfCascades() > fCascadesMax))
878 return kFALSE;
879
880 if(fkinksFlag)
881 if((EvTag->GetNumOfKinks() < fkinksMin) || (EvTag->GetNumOfKinks() > fkinksMax))
882 return kFALSE;
7e73fbbd 883
884
885 if(fPMDTracksFlag)
886 if((EvTag->GetNumOfPMDTracks() < fPMDTracksMin) || (EvTag->GetNumOfPMDTracks() > fPMDTracksMax))
887 return kFALSE;
888 if(fFMDTracksFlag)
889 if((EvTag->GetNumOfFMDTracks() < fFMDTracksMin) || (EvTag->GetNumOfFMDTracks() > fFMDTracksMax))
890 return kFALSE;
891 if(fPHOSClustersFlag)
892 if((EvTag->GetNumOfPHOSClusters() < fPHOSClustersMin) || (EvTag->GetNumOfPHOSClusters() > fPHOSClustersMax))
893 return kFALSE;
894 if(fEMCALClustersFlag)
895 if((EvTag->GetNumOfEMCALClusters() < fEMCALClustersMin) || (EvTag->GetNumOfEMCALClusters() > fEMCALClustersMax))
896 return kFALSE;
897 if(fJetCandidatesFlag)
898 if((EvTag->GetNumOfJetCandidates() < fJetCandidatesMin) || (EvTag->GetNumOfJetCandidates() > fJetCandidatesMax))
899 return kFALSE;
900
901
c7e89ea3 902 if(fMaxJetEnergyFlag)
903 if((EvTag->GetMaxJetEnergy() < fMaxJetEnergy))
904 return kFALSE;
905
906 if(fNHardPhotonsCandidatesFlag)
907 if((EvTag->GetNumOfHardPhotonsCandidates() < fNHardPhotonsCandidatesMin) || (EvTag->GetNumOfHardPhotonsCandidates() > fNHardPhotonsCandidatesMax))
908 return kFALSE;
909
910 if(fMaxNeutralFlag)
911 if((EvTag->GetMaxNeutralEnergy() < fMaxNeutralEnergy))
912 return kFALSE;
913
914 if(fChargedAbove1GeVFlag)
915 if((EvTag->GetNumOfChargedAbove1GeV() < fChargedAbove1GeVMin) || (EvTag->GetNumOfChargedAbove1GeV() > fChargedAbove1GeVMax))
916 return kFALSE;
917
918 if(fChargedAbove3GeVFlag)
919 if((EvTag->GetNumOfChargedAbove3GeV() < fChargedAbove3GeVMin) || (EvTag->GetNumOfChargedAbove3GeV() > fChargedAbove3GeVMax))
920 return kFALSE;
921
922 if(fChargedAbove10GeVFlag)
923 if((EvTag->GetNumOfChargedAbove10GeV() < fChargedAbove10GeVMin) || (EvTag->GetNumOfChargedAbove10GeV() > fChargedAbove10GeVMax))
924 return kFALSE;
925
926 if(fMuonsAbove1GeVFlag)
927 if((EvTag->GetNumOfMuonsAbove1GeV() < fMuonsAbove1GeVMin) || (EvTag->GetNumOfMuonsAbove1GeV() > fMuonsAbove1GeVMax))
928 return kFALSE;
929
930 if(fMuonsAbove3GeVFlag)
931 if((EvTag->GetNumOfMuonsAbove3GeV() < fMuonsAbove3GeVMin) || (EvTag->GetNumOfMuonsAbove3GeV() > fMuonsAbove3GeVMax))
932 return kFALSE;
933
934 if(fMuonsAbove10GeVFlag)
935 if((EvTag->GetNumOfMuonsAbove10GeV() < fMuonsAbove10GeVMin) || (EvTag->GetNumOfMuonsAbove10GeV() > fMuonsAbove10GeVMax))
936 return kFALSE;
937
938 if(fElectronsAbove1GeVFlag)
939 if((EvTag->GetNumOfElectronsAbove1GeV() < fElectronsAbove1GeVMin) || (EvTag->GetNumOfElectronsAbove1GeV() > fElectronsAbove1GeVMax))
940 return kFALSE;
941
942 if(fElectronsAbove3GeVFlag)
943 if((EvTag->GetNumOfElectronsAbove3GeV() < fElectronsAbove3GeVMin) || (EvTag->GetNumOfElectronsAbove3GeV() > fElectronsAbove3GeVMax))
944 return kFALSE;
945
946 if(fElectronsAbove10GeVFlag)
947 if((EvTag->GetNumOfElectronsAbove10GeV() < fElectronsAbove10GeVMin) || (EvTag->GetNumOfElectronsAbove10GeV() > fElectronsAbove10GeVMax))
948 return kFALSE;
949
950 if(fElectronsFlag)
951 if((EvTag->GetNumOfElectrons() < fElectronsMin) || (EvTag->GetNumOfElectrons() > fElectronsMax))
952 return kFALSE;
953
954 if(fMuonsFlag)
955 if((EvTag->GetNumOfMuons() < fMuonsMin) || (EvTag->GetNumOfMuons() > fMuonsMax))
956 return kFALSE;
957
958 if(fPionsFlag)
959 if((EvTag->GetNumOfPions() < fPionsMin) || (EvTag->GetNumOfPions() > fPionsMax))
960 return kFALSE;
961
962 if(fKaonsFlag)
963 if((EvTag->GetNumOfKaons() < fKaonsMin) || (EvTag->GetNumOfKaons() > fKaonsMax))
964 return kFALSE;
965
966 if(fProtonsFlag)
967 if((EvTag->GetNumOfProtons() < fProtonsMin) || (EvTag->GetNumOfProtons() > fProtonsMax))
968 return kFALSE;
969
970 if(fLambdasFlag)
971 if((EvTag->GetNumOfLambdas() < fLambdasMin) || (EvTag->GetNumOfLambdas() > fLambdasMax))
972 return kFALSE;
973
974 if(fPhotonFlag)
975 if((EvTag->GetNumOfPhotons() < fPhotonsMin) || (EvTag->GetNumOfPhotons() > fPhotonsMax))
976 return kFALSE;
977
978 if(fPi0sFlag)
979 if((EvTag->GetNumOfPi0s() < fPi0sMin) || (EvTag->GetNumOfPi0s() > fPi0sMax))
980 return kFALSE;
981
982 if(fNeutronsFlag)
983 if((EvTag->GetNumOfNeutrons() < fNeutronsMin) || (EvTag->GetNumOfNeutrons() > fNeutronsMax))
984 return kFALSE;
985
986 if(fKaon0sFlag)
987 if((EvTag->GetNumOfKaon0s() < fKaon0sMin) || (EvTag->GetNumOfKaon0s() > fKaon0sMax))
988 return kFALSE;
989
990 if(fTotalPFlag)
991 if((EvTag->GetTotalMomentum() < fTotalPMin) || (EvTag->GetTotalMomentum() > fTotalPMax))
992 return kFALSE;
993
994 if(fMeanPtFlag)
995 if((EvTag->GetMeanPt() < fMeanPtMin) || (EvTag->GetMeanPt() > fMeanPtMax))
996 return kFALSE;
997
998 if(fMaxPtFlag)
999 if((EvTag->GetMaxPt() < fMaxPt))
1000 return kFALSE;
1001
1002 if(fTotalNeutralPFlag)
1003 if((EvTag->GetNeutralTotalMomentum() < fTotalNeutralPMin) || (EvTag->GetNeutralTotalMomentum() > fTotalNeutralPMax))
1004 return kFALSE;
1005
1006 if(fMeanNeutralPtFlag)
1007 if((EvTag->GetNeutralMeanPt() < fMeanNeutralPtMin) || (EvTag->GetNeutralMeanPt() >fMeanNeutralPtMax ))
1008 return kFALSE;
1009
1010 if(fMaxNeutralPtFlag)
1011 if((EvTag->GetNeutralMaxPt() < fMaxNeutralPt))
1012 return kFALSE;
1013
1014 if(fEventPlaneAngleFlag)
1015 if((EvTag->GetEventPlaneAngle() < fEventPlaneAngleMin) || (EvTag->GetEventPlaneAngle() > fEventPlaneAngleMax))
1016 return kFALSE;
1017
1018 if(fHBTRadiiFlag)
1019 if((EvTag->GetHBTRadii() < fHBTRadiiMin) || (EvTag->GetHBTRadii() > fHBTRadiiMax))
1020 return kFALSE;
1021
1022 return kTRUE;
1023}