File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments