Skip to content

Commit 02fe2f5

Browse files
committed
remove isPhysicalPrimary() check
1 parent 878fb4b commit 02fe2f5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

PWGEM/Dilepton/Tasks/mcParticlePredictionsOTF.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ struct otfParticlePrediction {
3232
Configurable<float> maxEtaParticle{"maxEtaParticle", 5.f, "Max eta of particles considered"};
3333

3434
// init function
35-
void
36-
init()
35+
void init(InitContext&)
3736
{
3837

3938
const AxisSpec axisEta{binsEta, "#eta"};
@@ -56,12 +55,12 @@ struct otfParticlePrediction {
5655

5756
for (const auto& particle : mcParticles) {
5857
auto pdg = std::abs(particle.pdgCode());
59-
if (particle.eta() < maxEtaParticle) {
60-
continue;
61-
}
62-
if (!particle.isPhysicalPrimary()) {
58+
if (std::abs(particle.eta()) > maxEtaParticle) {
6359
continue;
6460
}
61+
// if (!(particle.isPhysicalPrimary())) {
62+
// continue;
63+
// }
6564
if (pdg < 100) {
6665
continue;
6766
}

0 commit comments

Comments
 (0)