Skip to content

Commit 984e22a

Browse files
addinng a THnSparse for signal loss correction
1 parent 10b44ec commit 984e22a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGHF/D2H/Tasks/taskDstarToD0Pi.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ struct HfTaskDstarToD0Pi {
254254
// Hists at Gen level usefull for efficiency calculation
255255
if (doprocessMcWoMl || doprocessMcWML) {
256256
if (isCentStudy) {
257+
registry.add("SignalLoss/hPtVsCentVsPvContribGenWRecEve", "Pt Vs Cent Vs PvContrib", {HistType::kTHnSparseF, axesPtVsCentVsPvContrib}, true);
257258
registry.add("Efficiency/hPtVsCentVsPvContribGen", "Pt Vs Cent Vs PvContrib", {HistType::kTHnSparseF, axesPtVsCentVsPvContrib}, true);
258259
registry.add("Efficiency/hPtPromptVsCentVsPvContribGen", "Pt Vs Cent Vs PvContrib", {HistType::kTHnSparseF, axesPtVsCentVsPvContrib}, true);
259260
registry.add("Efficiency/hPtNonPromptVsCentVsPvContribGen", "Pt Vs Cent Vs PvContrib", {HistType::kTHnSparseF, axesPtVsCentVsPvContrib}, true);
@@ -672,6 +673,9 @@ struct HfTaskDstarToD0Pi {
672673

673674
registry.fill(HIST("Efficiency/hPtVsYDstarGen"), ptGen, yGen, weightValue);
674675
if (isCentStudy) {
676+
if (recCollisions.size() != 0) {
677+
registry.fill(HIST("SignalLoss/hPtVsCentVsPvContribGenWRecEve"), ptGen, centFT0MGen, pvContributors, weightValue);
678+
}
675679
registry.fill(HIST("Efficiency/hPtVsCentVsPvContribGen"), ptGen, centFT0MGen, pvContributors, weightValue);
676680
} else {
677681
registry.fill(HIST("Efficiency/hPtGen"), ptGen, weightValue);

0 commit comments

Comments
 (0)