Skip to content

Commit ada7cad

Browse files
authored
[PWGHF] Add MC Gen plots to correlatorDMesonPairs (#9511)
1 parent cf0099e commit ada7cad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ struct HfCorrelatorDMesonPairs {
129129
{"hEtaMcGen", "D meson candidates MC Gen;candidate #it{#eta};entries", hTH1Y},
130130
{"hPhiMcGen", "D meson candidates MC Gen;candidate #it{#varphi};entries", hTH1Phi},
131131
{"hPtVsYVsNContribMcGen", "D meson candidates MC Gen;candidate #it{p}_{T} (GeV/#it{c});#it{y};Number of contributors", hTH3PtVsYVsNContrib},
132+
{"hPtVsYVsNContribMcGenPrompt", "D meson candidates MC Gen Prompt;candidate #it{p}_{T} (GeV/#it{c});#it{y};Number of contributors", hTH3PtVsYVsNContrib},
133+
{"hPtVsYVsNContribMcGenNonPrompt", "D meson candidates MC Gen Prompt;candidate #it{p}_{T} (GeV/#it{c});#it{y};Number of contributors", hTH3PtVsYVsNContrib},
132134
{"hNContribMcGen", "D meson candidates MC Gen;Number of contributors", hTH1NContrib},
133135
// MC Rec plots
134136
{"hPtVsYVsNContribMcRec", "D meson candidates MC Rec;candidate #it{p}_{T} (GeV/#it{c});#it{y};Number of contributors", hTH3PtVsYVsNContrib},
@@ -933,6 +935,12 @@ struct HfCorrelatorDMesonPairs {
933935
}
934936

935937
registry.fill(HIST("hPtVsYVsNContribMcGen"), particle1.pt(), particle1.y(), numPvContributorsGen);
938+
if (originGen1 == 1) {
939+
registry.fill(HIST("hPtVsYVsNContribMcGenPrompt"), particle1.pt(), particle1.y(), numPvContributorsGen);
940+
}
941+
if (originGen1 == 2) {
942+
registry.fill(HIST("hPtVsYVsNContribMcGenNonPrompt"), particle1.pt(), particle1.y(), numPvContributorsGen);
943+
}
936944
registry.fill(HIST("hNContribMcGen"), numPvContributorsGen);
937945

938946
for (auto particle2 = particle1 + 1; particle2 != mcParticles.end(); ++particle2) {

0 commit comments

Comments
 (0)