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