Skip to content

Commit 2d572a0

Browse files
committed
fix const& in loops
1 parent bc39fbc commit 2d572a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ALICE3/TableProducer/OTF/onTheFlyDecayer.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ struct OnTheFlyDecayer {
151151

152152
const float trackTimeNS = trackLength / trackVelocity * PicoToNano;
153153
particle.setIndicesDaughter(allParticles.size(), allParticles.size() + (decayStack.size() - 1));
154-
for (o2::upgrade::OTFParticle daughter : decayStack) {
154+
for (const o2::upgrade::OTFParticle& daughter : decayStack) {
155155
daughter.setIndicesMother(i, i);
156156
daughter.setCollisionId(particle.collisionId());
157157
daughter.setBitOn(o2::upgrade::DecayerBits::IsAlive);
@@ -190,7 +190,7 @@ struct OnTheFlyDecayer {
190190
decayParticles(0, allParticles.size());
191191

192192
// Fill output table
193-
for (auto& otfParticle : allParticles) {
193+
for (const o2::upgrade::OTFParticle& otfParticle : allParticles) {
194194
otfParticle.setIndexOffset(indexOffset);
195195
if (otfParticle.hasNaN()) {
196196
histos.fill(HIST("hNaNBookkeeping"), 1);

0 commit comments

Comments
 (0)