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