@@ -1974,15 +1974,15 @@ struct forwardlambdakzeroanalysis {
19741974 // propagate track to vertex including MCS effects if material budget included, simple propagation to Z otherwise
19751975 float x2x0 = 0 ;
19761976 auto mb = lut->getMatBudget (t.getX (), t.getY (), t.getZ (), PV [0 ], PV [1 ], PV [2 ]);
1977- x2x0 = ( float ) mb.meanX2X0 ;
1977+ x2x0 = static_cast < float >( mb.meanX2X0 ) ;
19781978 return t.propagateToVtxhelixWithMCS (PV [2 ], {PV [0 ], PV [1 ]}, PVcov, magField, x2x0);
19791979 }
19801980
19811981 template <typename TCollision, typename TTracks, typename TMFTTracks, typename TMCParticles>
19821982 std::vector<PairTopoInfo> buildV0s (TCollision const & collision, TMFTTracks const & /* mftTracks*/ , TTracks const & besttracks, TMCParticles const & mcParticles)
19831983 {
19841984 std::vector<PairTopoInfo> v0;
1985- for (auto & [amft1, amft2] : combinations (besttracks, besttracks)) {
1985+ for (const auto & [amft1, amft2] : combinations (besttracks, besttracks)) {
19861986 auto mftPositive = amft1.template mfttrack_as <TMFTTracks>();
19871987 auto mftNegative = amft2.template mfttrack_as <TMFTTracks>();
19881988
@@ -2239,7 +2239,7 @@ struct forwardlambdakzeroanalysis {
22392239 int nD0s = 0 ;
22402240 int nAntiD0s = 0 ;
22412241 std::vector<PairTopoInfo> V0s = buildV0s (collision, mftTracks, besttracks, static_cast <TObject*>(nullptr ));
2242- for (auto & v0 : V0s) {
2242+ for (const auto & v0 : V0s) {
22432243 // fill AP plot for all V0s
22442244 histos.fill (HIST (" GeneralQA/h2dArmenterosAll" ), v0.AlphaArm , v0.QtArm );
22452245
@@ -2310,7 +2310,7 @@ struct forwardlambdakzeroanalysis {
23102310 int nD0s = 0 ;
23112311 int nAntiD0s = 0 ;
23122312 std::vector<PairTopoInfo> V0s = buildV0s (collision, mftTracks, besttracks, mcParticles);
2313- for (auto & v0 : V0s) {
2313+ for (const auto & v0 : V0s) {
23142314 if (v0.label < 0 ) {
23152315 continue ;
23162316 }
0 commit comments