@@ -714,16 +714,18 @@ struct HfCorrelatorDsHadrons {
714714 continue ;
715715 }
716716
717- registry.fill (HIST (" hCorrAllPrimaryParticles" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
718- if (std::abs (particleAssoc.pdgCode ()) == kPiPlus ) {
719- registry.fill (HIST (" hCorrAllPrimaryHadrons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
720- registry.fill (HIST (" hCorrAllPrimaryPions" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
721- } else if (std::abs (particleAssoc.pdgCode ()) == kKPlus ) {
722- registry.fill (HIST (" hCorrAllPrimaryHadrons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
723- registry.fill (HIST (" hCorrAllPrimaryKaons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
724- } else if (std::abs (particleAssoc.pdgCode ()) == kProton ) {
725- registry.fill (HIST (" hCorrAllPrimaryHadrons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
726- registry.fill (HIST (" hCorrAllPrimaryProtons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
717+ if (isDsPrompt) {
718+ registry.fill (HIST (" hCorrAllPrimaryParticles" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
719+ if (std::abs (particleAssoc.pdgCode ()) == kPiPlus ) {
720+ registry.fill (HIST (" hCorrAllPrimaryHadrons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
721+ registry.fill (HIST (" hCorrAllPrimaryPions" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
722+ } else if (std::abs (particleAssoc.pdgCode ()) == kKPlus ) {
723+ registry.fill (HIST (" hCorrAllPrimaryHadrons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
724+ registry.fill (HIST (" hCorrAllPrimaryKaons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
725+ } else if (std::abs (particleAssoc.pdgCode ()) == kProton ) {
726+ registry.fill (HIST (" hCorrAllPrimaryHadrons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
727+ registry.fill (HIST (" hCorrAllPrimaryProtons" ), getDeltaPhi (particleAssoc.phi (), particle.phi ()), particle.pt (), particleAssoc.pt ());
728+ }
727729 }
728730
729731 // trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true);
0 commit comments