From 0909d866589afb87ffc17da4407350b8b218796c Mon Sep 17 00:00:00 2001 From: SCHOTTER Romain <47983209+romainschotter@users.noreply.github.com> Date: Tue, 19 May 2026 17:43:18 +0200 Subject: [PATCH 1/2] Fix bug --- PWGLF/TableProducer/Common/mcCentrality.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Common/mcCentrality.cxx b/PWGLF/TableProducer/Common/mcCentrality.cxx index a55ac09ef44..2d0cca60229 100644 --- a/PWGLF/TableProducer/Common/mcCentrality.cxx +++ b/PWGLF/TableProducer/Common/mcCentrality.cxx @@ -143,8 +143,8 @@ struct McCentrality { } else { LOG(fatal) << "Could not open histogram " << name << " from TList"; } + hist->SetDirectory(0); } - hist->SetDirectory(0); return hist; }; if (fillFt0M) { From cbebc3bb8cc55f8d109a20cc25faa038589d68f1 Mon Sep 17 00:00:00 2001 From: SCHOTTER Romain <47983209+romainschotter@users.noreply.github.com> Date: Tue, 19 May 2026 18:06:19 +0200 Subject: [PATCH 2/2] Remove SetDirectory call on histogram Removed the call to SetDirectory(0) on the histogram object. --- PWGLF/TableProducer/Common/mcCentrality.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/PWGLF/TableProducer/Common/mcCentrality.cxx b/PWGLF/TableProducer/Common/mcCentrality.cxx index 2d0cca60229..3e017c5808b 100644 --- a/PWGLF/TableProducer/Common/mcCentrality.cxx +++ b/PWGLF/TableProducer/Common/mcCentrality.cxx @@ -143,7 +143,6 @@ struct McCentrality { } else { LOG(fatal) << "Could not open histogram " << name << " from TList"; } - hist->SetDirectory(0); } return hist; };