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