Skip to content

Commit 1f3d0a5

Browse files
committed
Fix electron PDG check
1 parent 66bfa80 commit 1f3d0a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGEM/PhotonMeson/Tasks/emcalMcTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ struct EmcalMcTask {
341341

342342
if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kGamma) {
343343
fillClusterHistos<o2::em::emcal::mc::ParticleType::kPhoton>(photonEMC, mcPhoton1, centOrMult);
344-
} else if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kElectron) {
344+
} else if (mcPhoton1.pdgCode() == PDG_t::kElectron) {
345345
fillClusterHistos<o2::em::emcal::mc::ParticleType::kElectron>(photonEMC, mcPhoton1, centOrMult);
346-
} else if (mcPhoton1.pdgCode() == -PDG_t::kElectron) {
346+
} else if (mcPhoton1.pdgCode() == PDG_t::kPositron) {
347347
fillClusterHistos<o2::em::emcal::mc::ParticleType::kPositron>(photonEMC, mcPhoton1, centOrMult);
348348
} else if (std::abs(mcPhoton1.pdgCode()) == PDG_t::kPi0) {
349349
fillClusterHistos<o2::em::emcal::mc::ParticleType::kPi0>(photonEMC, mcPhoton1, centOrMult);

0 commit comments

Comments
 (0)