From d26de77dfa1961d3160dabdde06fbc84642c4b05 Mon Sep 17 00:00:00 2001 From: fpvolpe Date: Thu, 10 Sep 2026 14:36:21 +0200 Subject: [PATCH 1/2] Update MC Centrality --- PWGLF/Tasks/Nuspex/spectraTOFLight.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx b/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx index a38211c95cb..9d132858f6b 100644 --- a/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx +++ b/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx @@ -372,7 +372,7 @@ struct SpectraTOFLight { histos.add(hpt_numtof_str[i].data(), pTCharge[i], kTHnSparseD, {ptAxis, multAxis, dcaXyAxis}); histos.add(hpt_numtof_mat[i].data(), pTCharge[i], kTHnSparseD, {ptAxis, multAxis, dcaXyAxis}); - histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH3D, {ptAxis, multAxis, etaAxis}); + histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH2D, {ptAxis, multAxis}); } else { histos.add(hpt_num_prm[i].data(), pTCharge[i], kTH2D, {ptAxis, dcaXyAxis}); @@ -387,7 +387,7 @@ struct SpectraTOFLight { histos.add(hpt_den_str[i].data(), pTCharge[i], kTH1D, {ptAxis}); histos.add(hpt_den_mat[i].data(), pTCharge[i], kTH1D, {ptAxis}); - histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH2D, {ptAxis, etaAxis}); + histos.add(hpt_den_prm_goodev[i].data(), pTCharge[i], kTH1D, {ptAxis}); } histos.add(hpt_den_prm_mcgoodev[i].data(), pTCharge[i], kTH2D, {ptAxis, multAxis}); if (enableDCAxyzHistograms) { @@ -860,7 +860,8 @@ struct SpectraTOFLight { return; // Skips processing if no corresponding MC collision is found (rare case!) } - const float multiplicity = getMultiplicity(collision); + const auto& mcCollision = collision.mcCollision_as(); + const float multiplicity = getMultiplicity(mcCollision); if (mcParticle.pdgCode() != PDGs[i]) { return; @@ -1032,9 +1033,9 @@ struct SpectraTOFLight { if (mcParticle.isPhysicalPrimary()) { if (isEventSelected(collision)) { if (includeCentralityMC) { - histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt(), multiplicity, mcParticle.eta()); + histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt(), multiplicity); } else { - histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt(), mcParticle.eta()); + histos.fill(HIST(hpt_den_prm_goodev[i]), mcParticle.pt()); } } } From 076c378ed1d3d04c99044db3034d75b7971f75e4 Mon Sep 17 00:00:00 2001 From: fpvolpe Date: Sun, 13 Sep 2026 11:43:54 +0200 Subject: [PATCH 2/2] multiplicityMC modified --- PWGLF/Tasks/Nuspex/spectraTOFLight.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx b/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx index 9d132858f6b..2a5af6736d6 100644 --- a/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx +++ b/PWGLF/Tasks/Nuspex/spectraTOFLight.cxx @@ -861,7 +861,7 @@ struct SpectraTOFLight { } const auto& mcCollision = collision.mcCollision_as(); - const float multiplicity = getMultiplicity(mcCollision); + const float multiplicity = getMultiplicityMC(mcCollision); if (mcParticle.pdgCode() != PDGs[i]) { return;