3030#include " Framework/HistogramRegistry.h"
3131#include " Framework/runDataProcessing.h"
3232
33+ #include < TPDGCode.h>
34+
3335#include < cmath>
3436#include < string>
3537#include < vector>
@@ -406,7 +408,7 @@ struct JetShapeTask {
406408 if (mcParticle.isPhysicalPrimary () && std::fabs (mcParticle.y ()) < mcRapidityMax) { // do this in the context of the track ! (context matters!!!)
407409 if (std::abs (mcParticle.pdgCode ()) == PDG_t::kPiPlus )
408410 registry.fill (HIST (" ptHistogramPion" ), mcParticle.pt ());
409- if (std::abs (mcParticle.pdgCode ()) == PDG_t::kkPlus )
411+ if (std::abs (mcParticle.pdgCode ()) == PDG_t::kKPlus )
410412 registry.fill (HIST (" ptHistogramKaon" ), mcParticle.pt ());
411413 if (std::abs (mcParticle.pdgCode ()) == PDG_t::kProton )
412414 registry.fill (HIST (" ptHistogramProton" ), mcParticle.pt ());
@@ -422,7 +424,7 @@ struct JetShapeTask {
422424 if (mcParticle.isPhysicalPrimary () && std::fabs (mcParticle.y ()) < mcRapidityMax) {
423425 if (std::abs (mcParticle.pdgCode ()) == PDG_t::kPiPlus )
424426 registry.fill (HIST (" ptGeneratedPion" ), mcParticle.pt ());
425- if (std::abs (mcParticle.pdgCode ()) == PDG_t::kkPlus )
427+ if (std::abs (mcParticle.pdgCode ()) == PDG_t::kKPlus )
426428 registry.fill (HIST (" ptGeneratedKaon" ), mcParticle.pt ());
427429 if (std::abs (mcParticle.pdgCode ()) == PDG_t::kProton )
428430 registry.fill (HIST (" ptGeneratedProton" ), mcParticle.pt ());
0 commit comments