Skip to content

Commit ea25eb1

Browse files
[PWGHF] Fix the bug of the thnsparse axis number in Lc task (#9712)
1 parent 7cbd89f commit ea25eb1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

PWGHF/D2H/Tasks/taskLc.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,19 @@ struct HfTaskLc {
308308

309309
std::vector<AxisSpec> axesStd, axesWithBdt, axesGen;
310310

311-
if (isDataStd || isMcStd) {
311+
if (isDataStd) {
312+
axesStd = {thnAxisMass, thnAxisPt, thnAxisCentrality, thnAxisPtProng0, thnAxisPtProng1, thnAxisPtProng2, thnAxisChi2PCA, thnAxisDecLength, thnAxisCPA, thnAxisTracklets};
313+
}
314+
if (isMcStd) {
312315
axesStd = {thnAxisMass, thnAxisPt, thnAxisCentrality, thnAxisPtProng0, thnAxisPtProng1, thnAxisPtProng2, thnAxisChi2PCA, thnAxisDecLength, thnAxisCPA, thnAxisTracklets, thnAxisPtB, thnAxisCanType};
313316
}
314317
if (isMcStd || isMcWithMl) {
315318
axesGen = {thnAxisPt, thnAxisCentrality, thnAxisY, thnAxisTracklets, thnAxisPtB, thnAxisCanType};
316319
}
317-
if (isDataWithMl || isMcWithMl) {
320+
if (isDataWithMl) {
321+
axesWithBdt = {thnAxisMass, thnAxisPt, thnAxisCentrality, thnAxisBdtScoreLcBkg, thnAxisBdtScoreLcPrompt, thnAxisBdtScoreLcNonPrompt, thnAxisTracklets};
322+
}
323+
if (isMcWithMl) {
318324
axesWithBdt = {thnAxisMass, thnAxisPt, thnAxisCentrality, thnAxisBdtScoreLcBkg, thnAxisBdtScoreLcPrompt, thnAxisBdtScoreLcNonPrompt, thnAxisTracklets, thnAxisPtB, thnAxisCanType};
319325
}
320326

0 commit comments

Comments
 (0)