@@ -585,13 +585,13 @@ struct OnTheFlyTracker {
585585 }
586586
587587 histos.fill (HIST (" hPtGenerated" ), mcParticle.pt ());
588- if (std::abs (mcParticle.pdgCode ()) == 11 )
588+ if (std::abs (mcParticle.pdgCode ()) == kElectron )
589589 histos.fill (HIST (" hPtGeneratedEl" ), mcParticle.pt ());
590- if (std::abs (mcParticle.pdgCode ()) == 211 )
590+ if (std::abs (mcParticle.pdgCode ()) == kPiPlus )
591591 histos.fill (HIST (" hPtGeneratedPi" ), mcParticle.pt ());
592- if (std::abs (mcParticle.pdgCode ()) == 321 )
592+ if (std::abs (mcParticle.pdgCode ()) == kKPlus )
593593 histos.fill (HIST (" hPtGeneratedKa" ), mcParticle.pt ());
594- if (std::abs (mcParticle.pdgCode ()) == 2212 )
594+ if (std::abs (mcParticle.pdgCode ()) == kProton )
595595 histos.fill (HIST (" hPtGeneratedPr" ), mcParticle.pt ());
596596
597597 if (cascadeDecaySettings.doXiQA && mcParticle.pdgCode () == kXiMinus ) {
@@ -900,13 +900,13 @@ struct OnTheFlyTracker {
900900
901901 // Base QA (note: reco pT here)
902902 histos.fill (HIST (" hPtReconstructed" ), trackParCov.getPt ());
903- if (std::abs (mcParticle.pdgCode ()) == 11 )
903+ if (std::abs (mcParticle.pdgCode ()) == kElectron )
904904 histos.fill (HIST (" hPtReconstructedEl" ), mcParticle.pt ());
905- if (std::abs (mcParticle.pdgCode ()) == 211 )
905+ if (std::abs (mcParticle.pdgCode ()) == kPiPlus )
906906 histos.fill (HIST (" hPtReconstructedPi" ), mcParticle.pt ());
907- if (std::abs (mcParticle.pdgCode ()) == 321 )
907+ if (std::abs (mcParticle.pdgCode ()) == kKPlus )
908908 histos.fill (HIST (" hPtReconstructedKa" ), mcParticle.pt ());
909- if (std::abs (mcParticle.pdgCode ()) == 2212 )
909+ if (std::abs (mcParticle.pdgCode ()) == kProton )
910910 histos.fill (HIST (" hPtReconstructedPr" ), mcParticle.pt ());
911911
912912 if (doExtraQA) {
0 commit comments