Skip to content

Commit 2ed8131

Browse files
committed
Address reviewer's comments
1 parent cd96dc0 commit 2ed8131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,8 @@ struct HfCandidateCreatorXicToXiPiPiExpressions {
11371137
origin = RecoDecay::getCharmHadronOrigin(mcParticles, particle, false, &idxBhadMothers);
11381138
// Calculate the decay length of the generated particle
11391139
auto dau0 = particle.template daughters_as<aod::McParticles>().begin();
1140-
std::array<double, 3> vtxDau = {dau0.vx(), dau0.vy(), dau0.vz()};
1141-
std::array<double, 3> vtxPV = {mcCollision.posX(), mcCollision.posY(), mcCollision.posZ()};
1140+
const std::array vtxDau{dau0.vx(), dau0.vy(), dau0.vz()};
1141+
const std::array vtxPV{mcCollision.posX(), mcCollision.posY(), mcCollision.posZ()};
11421142
decayLengthGen = RecoDecay::distance(vtxPV, vtxDau);
11431143
}
11441144
// Fill table

0 commit comments

Comments
 (0)