From a8408e85dee8d0a8ed0d6e671dadf1028121cb11 Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Thu, 2 Jan 2025 14:23:54 +0100 Subject: [PATCH] rename pt and mass axes --- PWGHF/D2H/Tasks/taskDplus.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PWGHF/D2H/Tasks/taskDplus.cxx b/PWGHF/D2H/Tasks/taskDplus.cxx index c71e4e4bf76..625e12581cc 100644 --- a/PWGHF/D2H/Tasks/taskDplus.cxx +++ b/PWGHF/D2H/Tasks/taskDplus.cxx @@ -113,9 +113,9 @@ struct HfTaskDplus { if ((std::accumulate(doprocess.begin(), doprocess.end(), 0)) != 1) { LOGP(fatal, "Only one process function should be enabled! Please check your configuration!"); } - auto vbins = (std::vector)binsPt; - AxisSpec ptbins = {vbins, "#it{p}_{T} (GeV/#it{c})"}; - AxisSpec massbins = {600, 1.67, 2.27, "inv. mass (K#pi#pi) (GeV/#it{c}^{2})"}; + auto vbins = static_cast>(binsPt); + AxisSpec thnAxisPt = {vbins, "#it{p}_{T} (GeV/#it{c})"}; + AxisSpec thnAxisMass = {600, 1.67, 2.27, "inv. mass (K#pi#pi) (GeV/#it{c}^{2})"}; AxisSpec thnAxisY = {thnConfigAxisY, "y"}; AxisSpec thnAxisMlScore0 = {thnConfigAxisMlScore0, "Score 0"}; AxisSpec thnAxisMlScore1 = {thnConfigAxisMlScore1, "Score 1"}; @@ -164,7 +164,7 @@ struct HfTaskDplus { registry.add("hPtVsYGenNonPrompt", "MC particles (matched, non-prompt);#it{p}_{T}^{gen.}; #it{y}", {HistType::kTH2F, {{vbins, "#it{p}_{T} (GeV/#it{c})"}, {100, -5., 5.}}}); if (doprocessDataWithMl || doprocessData) { - std::vector axes = {massbins, ptbins}; + std::vector axes = {thnAxisMass, thnAxisPt}; if (doprocessDataWithMl) { axes.insert(axes.end(), {thnAxisMlScore0, thnAxisMlScore1, thnAxisMlScore2}); @@ -179,10 +179,10 @@ struct HfTaskDplus { registry.add("hSparseMass", "THn for Dplus", HistType::kTHnSparseF, axes); } if (doprocessMcWithMl || doprocessMc) { - std::vector axes = {massbins, ptbins}; - std::vector axesFD = {massbins, ptbins}; - std::vector axesGenPrompt = {ptbins, thnAxisY}; - std::vector axesGenFD = {ptbins, thnAxisY}; + std::vector axes = {thnAxisMass, thnAxisPt}; + std::vector axesFD = {thnAxisMass, thnAxisPt}; + std::vector axesGenPrompt = {thnAxisPt, thnAxisY}; + std::vector axesGenFD = {thnAxisPt, thnAxisY}; axesFD.insert(axesFD.end(), {thnAxisPtBHad}); axesFD.insert(axesFD.end(), {thnAxisFlagBHad});