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