Skip to content

Commit 2ca9aad

Browse files
committed
Added control histogram
1 parent 861c296 commit 2ca9aad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ struct HfCorrelatorDsHadrons {
330330
if (pidTrkApplied) {
331331
registry.add("hCorrKaonsLSPairs", "Ds-kaon correlations LS MC Gen", {HistType::kTH3F, {{axisPhi}, {axisPtD}, {axisPtHadron}}});
332332
registry.add("hCorrKaonsULSPairs", "Ds-kaon correlations ULS MC Gen", {HistType::kTH3F, {{axisPhi}, {axisPtD}, {axisPtHadron}}});
333+
registry.add("hDsWoKaons", "Collisions with Ds mesons without kaons", {HistType::kTH1F, {{1, -0.5, 0.5, "n coll w/o kaons"}}});
333334
}
334335
}
335336
}
@@ -733,6 +734,9 @@ struct HfCorrelatorDsHadrons {
733734
prongsId[counterDaughters - 1] = daughI.globalIndex();
734735
}
735736
}
737+
738+
int numberOfCorrKaons = 0;
739+
736740
// Ds Hadron correlation dedicated section
737741
for (const auto& particleAssoc : groupedMcParticles) {
738742
if (std::abs(particleAssoc.eta()) > etaTrackMax || particleAssoc.pt() < ptTrackMin || particleAssoc.pt() > ptTrackMax) {
@@ -763,9 +767,11 @@ struct HfCorrelatorDsHadrons {
763767
if (pidTrkApplied) {
764768
if (((chargeDs == 1) && (particleAssoc.pdgCode() == kKPlus)) || ((chargeDs == -1) && (particleAssoc.pdgCode() == kKMinus))) { // LS pairs
765769
registry.fill(HIST("hCorrKaonsLSPairs"), getDeltaPhi(particleAssoc.phi(), particle.phi()), particle.pt(), particleAssoc.pt());
770+
numberOfCorrKaons++;
766771
}
767772
if (((chargeDs == 1) && (particleAssoc.pdgCode() == kKMinus)) || ((chargeDs == -1) && (particleAssoc.pdgCode() == kKPlus))) { // ULS pairs
768773
registry.fill(HIST("hCorrKaonsULSPairs"), getDeltaPhi(particleAssoc.phi(), particle.phi()), particle.pt(), particleAssoc.pt());
774+
numberOfCorrKaons++;
769775
}
770776
}
771777
}
@@ -783,6 +789,9 @@ struct HfCorrelatorDsHadrons {
783789
entryDsHadronGenInfo(isDsPrompt, particleAssoc.isPhysicalPrimary(), trackOrigin);
784790
}
785791
} // end loop generated particles
792+
if (numberOfCorrKaons == 0) {
793+
registry.fill(HIST("hDsWoKaons"), numberOfCorrKaons);
794+
}
786795
} // end loop generated Ds
787796
} // end loop reconstructed collision
788797
} // end loop generated collision

0 commit comments

Comments
 (0)