From 0955914ffeb3dbd9aa2235f50342b2feba023be7 Mon Sep 17 00:00:00 2001 From: Benedikt Volkel Date: Wed, 7 Feb 2024 16:51:21 +0100 Subject: [PATCH] EMCALCorrection, Fix fetched McParticles type for correct dereference --- PWGJE/TableProducer/emcalCorrectionTask.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGJE/TableProducer/emcalCorrectionTask.cxx b/PWGJE/TableProducer/emcalCorrectionTask.cxx index ae0353c7b2c..f214134c6b9 100644 --- a/PWGJE/TableProducer/emcalCorrectionTask.cxx +++ b/PWGJE/TableProducer/emcalCorrectionTask.cxx @@ -353,7 +353,7 @@ struct EmcalCorrectionTask { std::vector cellsBC; std::vector cellIndicesBC; for (auto& cell : cellsInBC) { - mHistManager.fill(HIST("hContributors"), cell.mcParticle().size()); + mHistManager.fill(HIST("hContributors"), cell.mcParticle_as().size()); auto cellParticles = cell.mcParticle_as(); for (auto& cellparticle : cellParticles) { mHistManager.fill(HIST("hMCParticleEnergy"), cellparticle.e());