From ea50843f59645e40892dd34bfd12c9fa1ea0c3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Jacazio?= Date: Tue, 6 Oct 2026 09:52:33 +0200 Subject: [PATCH] Refactor ParticleInfo struct member access --- ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx b/ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx index e50656494fc..9bfc03a70a2 100644 --- a/ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx +++ b/ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx @@ -166,8 +166,8 @@ struct OnTheFlyTofPid { std::array, NParticles>, NParticles> h2dOuterDeltaTrue; struct ParticleInfo { - std::string_view texName{}; - std::string_view name{}; + std::string_view texName; + std::string_view name; ParticleId type{}; int pdgCode{}; double mass{}; @@ -347,7 +347,7 @@ struct OnTheFlyTofPid { if (!doQaForParticle(Particles[iHyp].pdgCode)) { continue; } - const auto& pNameHypo = Particles[iHyp].texName; + const auto& pNameHypo = Particles[iHyp].name; const std::string nameTitleInner = std::format("h2dInnerNsigmaTrue{}Vs{}", pNameTrue, pNameHypo); const std::string nameTitleOuter = std::format("h2dOuterNsigmaTrue{}Vs{}", pNameTrue, pNameHypo);