Skip to content

Commit ea50843

Browse files
authored
Refactor ParticleInfo struct member access
1 parent b5075e0 commit ea50843

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ struct OnTheFlyTofPid {
166166
std::array<std::array<std::shared_ptr<TH2>, NParticles>, NParticles> h2dOuterDeltaTrue;
167167

168168
struct ParticleInfo {
169-
std::string_view texName{};
170-
std::string_view name{};
169+
std::string_view texName;
170+
std::string_view name;
171171
ParticleId type{};
172172
int pdgCode{};
173173
double mass{};
@@ -347,7 +347,7 @@ struct OnTheFlyTofPid {
347347
if (!doQaForParticle(Particles[iHyp].pdgCode)) {
348348
continue;
349349
}
350-
const auto& pNameHypo = Particles[iHyp].texName;
350+
const auto& pNameHypo = Particles[iHyp].name;
351351

352352
const std::string nameTitleInner = std::format("h2dInnerNsigmaTrue{}Vs{}", pNameTrue, pNameHypo);
353353
const std::string nameTitleOuter = std::format("h2dOuterNsigmaTrue{}Vs{}", pNameTrue, pNameHypo);

0 commit comments

Comments
 (0)