Skip to content

Commit 28bb6f0

Browse files
author
Laura Gansbartl
committed
Fix pdg codes
1 parent bd3bac3 commit 28bb6f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

PWGEM/PhotonMeson/Core/Pi0EtaToGammaGammaMC.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <Math/Vector4Dfwd.h>
5757
#include <TF1.h>
5858
#include <TH2.h>
59+
#include <TPDGCode.h>
5960
#include <TString.h>
6061

6162
#include <cmath>
@@ -808,10 +809,10 @@ struct Pi0EtaToGammaGammaMC {
808809
auto photon2moth = mcparticles.iteratorAt(photon2mothid);
809810
if (photon2pdg == 22 && (o2::aod::pwgem::photonmeson::utils::mcutil::isGammaGammaDecay(photon2moth, mcparticles))) {
810811
int mothID = o2::aod::pwgem::dilepton::utils::mcutil::getMotherPDGCode(photon2, mcparticles);
811-
if (mothID == 221) {
812+
if (mothID == o2::constants::physics::Pdg::kEta) {
812813
fRegistry.fill(HIST("Event/hNGGContamEta"), photon2moth.pt());
813814
}
814-
if (mothID == 111) {
815+
if (mothID == PDG_t::kPi0) {
815816
fRegistry.fill(HIST("Event/hNGGContamPion"), photon2moth.pt());
816817
}
817818
}

0 commit comments

Comments
 (0)