@@ -64,14 +64,14 @@ void fillMcMatchGen2Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
6464 if (finalState.size () == 3 ) { // Partly Reco 3-prong decays
6565 std::array<int , 3 > finalStateParts = std::array{finalState[0 ], finalState[1 ], finalState[2 ]};
6666 if (particle.pdgCode () < 0 ) {
67- for (auto & part : finalStateParts) {
67+ for (const auto & part : finalStateParts) {
6868 if (part == kPi0 ) {
6969 part = -part; // The Pi0 pdg code does not change between particle and antiparticle
7070 }
7171 }
7272 }
7373 matched = RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kD0 , finalStateParts, true , &sign, maxDepth);
74- } else if (finalState.size () == 2 ) { // Fully Reco 3 -prong decays
74+ } else if (finalState.size () == 2 ) { // Fully Reco 2 -prong decays
7575 std::array<int , 2 > finalStateParts = std::array{finalState[0 ], finalState[1 ]};
7676 matched = RecoDecay::isMatchedMCGen (mcParticles, particle, Pdg::kD0 , finalStateParts, true , &sign, maxDepth);
7777 } else {
@@ -173,7 +173,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
173173 if (finalState.size () == 5 ) { // Partly Reco 3-prong decays
174174 std::array<int , 5 > finalStateParts = std::array{finalState[0 ], finalState[1 ], finalState[2 ], finalState[3 ], finalState[4 ]};
175175 if (particle.pdgCode () < 0 ) {
176- for (auto & part : finalStateParts) {
176+ for (const auto & part : finalStateParts) {
177177 if (part == kPi0 ) {
178178 part = -part; // The Pi0 pdg code does not change between particle and antiparticle
179179 }
@@ -184,7 +184,7 @@ void fillMcMatchGen3Prong(T const& mcParticles, U const& mcParticlesPerMcColl, V
184184 } else if (finalState.size () == 4 ) { // Partly Reco 3-prong decays
185185 std::array<int , 4 > finalStateParts = std::array{finalState[0 ], finalState[1 ], finalState[2 ], finalState[3 ]};
186186 if (particle.pdgCode () < 0 ) {
187- for (auto & part : finalStateParts) {
187+ for (const auto & part : finalStateParts) {
188188 if (part == kPi0 ) {
189189 part = -part; // The Pi0 pdg code does not change between particle and antiparticle
190190 }
0 commit comments