Skip to content

Commit 01ac4ff

Browse files
authored
[PWGLF] fix trigger efficiency (AliceO2Group#8839)
1 parent ac76a27 commit 01ac4ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGLF/Tasks/Nuspex/ebyeMult.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ struct EbyeMult {
495495

496496
int partType = getPartType(particle.pdgCode());
497497
if (partType < PartTypes::kOther) {
498-
++nParticles;
498+
if (std::abs(particle.eta()) < etaMax)
499+
++nParticles;
499500
if (std::abs(particle.eta()) < 1.f) {
500501
++partInAcc;
501502
}
@@ -567,7 +568,7 @@ struct EbyeMult {
567568

568569
// search generated INEL > 0 (one charged particle in |eta| < 1)
569570
for (const auto& mcCollision : mcCollisions) {
570-
int mult = genMultINELgtZERO(mcCollision, mcParticles) > 0;
571+
int mult = genMultINELgtZERO(mcCollision, mcParticles);
571572
if (mult > 0) {
572573
histos.fill(HIST("GenINELgtZERO"), mult);
573574
}

0 commit comments

Comments
 (0)