@@ -1080,7 +1080,7 @@ struct v0cascadesQA {
10801080 }
10811081 histos.fill (HIST (" histos_event/hEventCounter" ), 1.5 );
10821082
1083- for (auto & v0 : fullV0s) {
1083+ for (const auto & v0 : fullV0s) {
10841084 if (std::abs (v0.negativeeta ()) > v0Selections.daughterEtaCut ||
10851085 std::abs (v0.positiveeta ()) > v0Selections.daughterEtaCut )
10861086 continue ; // remove acceptance that's badly reproduced by MC / superfluous in future
@@ -1186,7 +1186,7 @@ struct v0cascadesQA {
11861186 }
11871187 }
11881188
1189- for (auto & casc : fullCascades) {
1189+ for (const auto & casc : fullCascades) {
11901190 if (std::abs (casc.negativeeta ()) > cascSelections.daughterEtaCut ||
11911191 std::abs (casc.positiveeta ()) > cascSelections.daughterEtaCut ||
11921192 std::abs (casc.bacheloreta ()) > cascSelections.daughterEtaCut )
@@ -1267,7 +1267,7 @@ struct v0cascadesQA {
12671267 return ;
12681268 }
12691269
1270- for (auto & v0 : fullV0s) {
1270+ for (const auto & v0 : fullV0s) {
12711271 if (std::abs (v0.negativeeta ()) > v0Selections.daughterEtaCut ||
12721272 std::abs (v0.positiveeta ()) > v0Selections.daughterEtaCut )
12731273 continue ; // remove acceptance that's badly reproduced by MC / superfluous in future
@@ -1294,7 +1294,7 @@ struct v0cascadesQA {
12941294 }
12951295 }
12961296
1297- for (auto & casc : fullCascades) {
1297+ for (const auto & casc : fullCascades) {
12981298 if (std::abs (casc.negativeeta ()) > cascSelections.daughterEtaCut ||
12991299 std::abs (casc.positiveeta ()) > cascSelections.daughterEtaCut ||
13001300 std::abs (casc.bacheloreta ()) > cascSelections.daughterEtaCut )
@@ -1373,15 +1373,15 @@ struct v0cascadesQA {
13731373
13741374 histos.fill (HIST (" histos_event/hEventCounterMC" ), 1.5 );
13751375
1376- for (auto & mcparticle : mcParticles) {
1376+ for (const auto & mcparticle : mcParticles) {
13771377
13781378 if (!mcparticle.has_daughters ()) {
13791379 continue ;
13801380 }
13811381
13821382 double vx = 0 ;
13831383 double vy = 0 ;
1384- for (auto & mcparticleDaughter0 : mcparticle.daughters_as <aod::McParticles>()) {
1384+ for (const auto & mcparticleDaughter0 : mcparticle.daughters_as <aod::McParticles>()) {
13851385 vx = mcparticleDaughter0.vx ();
13861386 vy = mcparticleDaughter0.vy ();
13871387 if (vx != 0 && vy != 0 )
0 commit comments