Skip to content

Commit 91918cf

Browse files
deependra170598MattOckleton
authored andcommitted
[PWGHF/D2H] addinng a THnSparse for signal loss correction (AliceO2Group#13824)
1 parent 59f6f26 commit 91918cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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);
@@ -677,6 +678,9 @@ struct HfTaskDstarToD0Pi {
677678

678679
registry.fill(HIST("Efficiency/hPtVsYDstarGen"), ptGen, yGen, weightValue);
679680
if (isCentStudy) {
681+
if (recCollisions.size() != 0) {
682+
registry.fill(HIST("SignalLoss/hPtVsCentVsPvContribGenWRecEve"), ptGen, centFT0MGen, pvContributors, weightValue);
683+
}
680684
registry.fill(HIST("Efficiency/hPtVsCentVsPvContribGen"), ptGen, centFT0MGen, pvContributors, weightValue);
681685
} else {
682686
registry.fill(HIST("Efficiency/hPtGen"), ptGen, weightValue);

0 commit comments

Comments
 (0)