Skip to content

Commit 2da1841

Browse files
abmodakalibuild
andauthored
[PWGLF] Fix INEL>0 condition (#11119)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent a92a8e1 commit 2da1841

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

PWGLF/Tasks/GlobalEventProperties/heavyionMultiplicity.cxx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -756,20 +756,7 @@ struct HeavyionMultiplicity {
756756
histos.fill(HIST("hmcrecdndetapp"), RecCol.posZ(), RecCol.centFT0M(), Rectrack.eta(), Rectrack.phi(), static_cast<double>(kBkg), kGlobalplusITS);
757757
}
758758
} // track (mcrec) loop
759-
} // nTrks>0
760759

761-
// INEL>0 sample
762-
auto npart = 0;
763-
for (const auto& particle : GenParticles) {
764-
if (!isGenTrackSelected(particle)) {
765-
continue;
766-
}
767-
if (particle.eta() < kEtaInelgt0) {
768-
npart++;
769-
}
770-
} // particle loop
771-
772-
if (npart > 0) {
773760
for (const auto& particle : GenParticles) {
774761
if (!isGenTrackSelected(particle)) {
775762
continue;
@@ -800,7 +787,7 @@ struct HeavyionMultiplicity {
800787
}
801788
histos.fill(HIST("hmcgendndetapp"), RecCol.posZ(), RecCol.centFT0M(), particle.eta(), particle.phi(), static_cast<double>(pid), kNoGenpTVar);
802789
} // track (mcgen) loop
803-
} // npart>0
790+
} // nTrks>0
804791
} // collision loop
805792
}
806793
PROCESS_SWITCH(HeavyionMultiplicity, processppMonteCarlo, "process pp MC", false);

0 commit comments

Comments
 (0)