Skip to content

Commit 463858e

Browse files
authored
[PWGLF] nuclei-proton angular correlation: add DCA plots for secondary estimation (#11786)
1 parent 6faba4c commit 463858e

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

PWGLF/Tasks/Nuspex/hadronnucleicorrelation.cxx

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ struct hadronnucleicorrelation {
298298
}
299299
}
300300

301+
registry.add("hPrDCAxy", "DCAxy p", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
302+
registry.add("hAntiPrDCAxy", "DCAxy #bar{p}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
303+
registry.add("hDeDCAxy", "DCAxy d", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
304+
registry.add("hAntiDeDCAxy", "DCAxy #bar{d}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
305+
301306
if (doQA) {
302307
// Track QA
303308
QA.add("QA/hVtxZ_trk", "#it{z}_{vtx}", {HistType::kTH1D, {{150, -15.f, 15.f, "#it{z}_{vtx} (cm)"}}});
@@ -332,6 +337,19 @@ struct hadronnucleicorrelation {
332337
}
333338

334339
if (isMC) {
340+
registry.add("hPrimPrDCAxy", "DCAxy p", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
341+
registry.add("hPrimAntiPrDCAxy", "DCAxy #bar{p}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
342+
registry.add("hPrimDeDCAxy", "DCAxy d", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
343+
registry.add("hPrimAntiDeDCAxy", "DCAxy #bar{d}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
344+
registry.add("hSecMatPrDCAxy", "DCAxy p", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
345+
registry.add("hSecMatAntiPrDCAxy", "DCAxy #bar{p}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
346+
registry.add("hSecMatDeDCAxy", "DCAxy d", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
347+
registry.add("hSecMatAntiDeDCAxy", "DCAxy #bar{d}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
348+
registry.add("hSecWeakPrDCAxy", "DCAxy p", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
349+
registry.add("hSecWeakAntiPrDCAxy", "DCAxy #bar{p}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
350+
registry.add("hSecWeakDeDCAxy", "DCAxy d", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
351+
registry.add("hSecWeakAntiDeDCAxy", "DCAxy #bar{d}", {HistType::kTH2D, {{600, -3.f, 3.f, "DCA xy (cm)"}, {100, 0.f, 10.f, "p_{T} GeV/c"}}});
352+
335353
registry.add("hReco_EtaPhiPt_Proton", "Gen (anti)protons in reco collisions", {HistType::kTH3F, {etaAxis, phiAxis, pTAxis_small}});
336354
registry.add("hReco_EtaPhiPt_Deuteron", "Gen (anti)deuteron in reco collisions", {HistType::kTH3F, {etaAxis, phiAxis, pTAxis_small}});
337355
registry.add("hReco_PID_EtaPhiPt_Proton", "Gen (anti)protons + PID in reco collisions", {HistType::kTH3F, {etaAxis, phiAxis, pTAxis_small}});
@@ -744,6 +762,16 @@ struct hadronnucleicorrelation {
744762
continue;
745763
if (track.itsNCls() < min_itsNCls)
746764
continue;
765+
766+
if (IsProton(track, +1))
767+
registry.fill(HIST("hPrDCAxy"), track.dcaXY(), track.pt());
768+
if (IsProton(track, -1))
769+
registry.fill(HIST("hAntiPrDCAxy"), track.dcaXY(), track.pt());
770+
if (IsDeuteron(track, +1))
771+
registry.fill(HIST("hDeDCAxy"), track.dcaXY(), track.pt());
772+
if (IsDeuteron(track, -1))
773+
registry.fill(HIST("hAntiDeDCAxy"), track.dcaXY(), track.pt());
774+
747775
if (!applyDCAcut(track))
748776
continue;
749777

@@ -1130,6 +1158,44 @@ struct hadronnucleicorrelation {
11301158
continue;
11311159
if (track.itsNCls() < min_itsNCls)
11321160
continue;
1161+
1162+
if (IsProton(track, +1) && track.pdgCode() == pdgProton) {
1163+
registry.fill(HIST("hPrDCAxy"), track.dcaXY(), track.pt());
1164+
if (track.origin() == 0)
1165+
registry.fill(HIST("hPrimPrDCAxy"), track.dcaXY(), track.pt());
1166+
if (track.origin() == 1)
1167+
registry.fill(HIST("hSecWeakPrDCAxy"), track.dcaXY(), track.pt());
1168+
if (track.origin() == 2)
1169+
registry.fill(HIST("hSecMatPrDCAxy"), track.dcaXY(), track.pt());
1170+
}
1171+
if (IsProton(track, -1) && track.pdgCode() == -pdgProton) {
1172+
registry.fill(HIST("hAntiPrDCAxy"), track.dcaXY(), track.pt());
1173+
if (track.origin() == 0)
1174+
registry.fill(HIST("hPrimAntiPrDCAxy"), track.dcaXY(), track.pt());
1175+
if (track.origin() == 1)
1176+
registry.fill(HIST("hSecWeakAntiPrDCAxy"), track.dcaXY(), track.pt());
1177+
if (track.origin() == 2)
1178+
registry.fill(HIST("hSecMatAntiPrDCAxy"), track.dcaXY(), track.pt());
1179+
}
1180+
if (IsDeuteron(track, +1) && track.pdgCode() == pdgDeuteron) {
1181+
registry.fill(HIST("hDeDCAxy"), track.dcaXY(), track.pt());
1182+
if (track.origin() == 0)
1183+
registry.fill(HIST("hPrimDeDCAxy"), track.dcaXY(), track.pt());
1184+
if (track.origin() == 1)
1185+
registry.fill(HIST("hSecWeakDeDCAxy"), track.dcaXY(), track.pt());
1186+
if (track.origin() == 2)
1187+
registry.fill(HIST("hSecMatDeDCAxy"), track.dcaXY(), track.pt());
1188+
}
1189+
if (IsDeuteron(track, -1) && track.pdgCode() == -pdgDeuteron) {
1190+
registry.fill(HIST("hAntiDeDCAxy"), track.dcaXY(), track.pt());
1191+
if (track.origin() == 0)
1192+
registry.fill(HIST("hPrimAntiDeDCAxy"), track.dcaXY(), track.pt());
1193+
if (track.origin() == 1)
1194+
registry.fill(HIST("hSecWeakAntiDeDCAxy"), track.dcaXY(), track.pt());
1195+
if (track.origin() == 2)
1196+
registry.fill(HIST("hSecMatAntiDeDCAxy"), track.dcaXY(), track.pt());
1197+
}
1198+
11331199
if (!applyDCAcut(track))
11341200
continue;
11351201

0 commit comments

Comments
 (0)