@@ -136,7 +136,7 @@ struct LambdaJetpolarization {
136136 Configurable<bool > doArmenterosCut{" doArmenterosCut" , 0 , " do Armenteros Cut" };
137137 Configurable<bool > noSameBunchPileUp{" noSameBunchPileUp" , true , " reject SameBunchPileUp" };
138138 Configurable<int > v0TypeSelection{" v0TypeSelection" , 1 , " select on a certain V0 type (leave negative if no selection desired)" };
139- Configurable<bool > NotITSAfterburner{ " NotITSAfterburner " , 0 , " NotITSAfterburner " };
139+ Configurable<bool > notITSAfterburner{ " notITSAfterburner " , 0 , " notITSAfterburner " };
140140 Configurable<bool > doQA{" doQA" , 1 , " fill QA histograms" };
141141 Configurable<bool > evSel{" evSel" , 1 , " evSel" };
142142 Configurable<bool > hasTOF2Leg{" hasTOF2Leg" , 0 , " hasTOF2Leg" };
@@ -1758,7 +1758,7 @@ struct LambdaJetpolarization {
17581758 const auto & pos = v0.posTrack_as <StrHadronDaughterTracks>();
17591759 const auto & neg = v0.negTrack_as <StrHadronDaughterTracks>();
17601760
1761- if (NotITSAfterburner && (v0.negTrack_as <StrHadronDaughterTracks>().isITSAfterburner () || v0.posTrack_as <StrHadronDaughterTracks>().isITSAfterburner ())) {
1761+ if (notITSAfterburner && (v0.negTrack_as <StrHadronDaughterTracks>().isITSAfterburner () || v0.posTrack_as <StrHadronDaughterTracks>().isITSAfterburner ())) {
17621762 continue ;
17631763 }
17641764
@@ -2294,7 +2294,7 @@ struct LambdaJetpolarization {
22942294 int AntiV0Numbers = 0 ;
22952295
22962296 // loop over V0s
2297- for (auto & v0 : v0sThisCollision) {
2297+ for (const auto & v0 : v0sThisCollision) {
22982298 if (!v0.has_mcParticle ()) {
22992299 continue ;
23002300 }
@@ -2305,7 +2305,7 @@ struct LambdaJetpolarization {
23052305 if (v0.v0Type () != v0TypeSelection) {
23062306 continue ;
23072307 }
2308- if (NotITSAfterburner && (v0.negTrack_as <DauTracksMC>().isITSAfterburner () || v0.posTrack_as <DauTracksMC>().isITSAfterburner ())) {
2308+ if (notITSAfterburner && (v0.negTrack_as <DauTracksMC>().isITSAfterburner () || v0.posTrack_as <DauTracksMC>().isITSAfterburner ())) {
23092309 continue ;
23102310 }
23112311 if (v0mcparticle.isPhysicalPrimary ()) {
@@ -2329,8 +2329,8 @@ struct LambdaJetpolarization {
23292329 lPDG = v0mcparticle.pdgCode ();
23302330 isprimary = v0mcparticle.isPhysicalPrimary ();
23312331 }
2332- for (auto & mcparticleDaughter0 : v0mcparticle.daughters_as <aod::McParticles>()) {
2333- for (auto & mcparticleDaughter1 : v0mcparticle.daughters_as <aod::McParticles>()) {
2332+ for (const auto & mcparticleDaughter0 : v0mcparticle.daughters_as <aod::McParticles>()) {
2333+ for (const auto & mcparticleDaughter1 : v0mcparticle.daughters_as <aod::McParticles>()) {
23342334 if (mcparticleDaughter0.pdgCode () == -211 && mcparticleDaughter1.pdgCode () == 2212 ) { // proton + pion^{-}
23352335 isDauLambda = true ;
23362336 }
@@ -2343,7 +2343,7 @@ struct LambdaJetpolarization {
23432343 float pdgMother = 0 .;
23442344
23452345 if (std::abs (v0mcparticle.pdgCode ()) == 3122 && v0mcparticle.has_mothers ()) {
2346- for (auto & mcparticleMother0 : v0mcparticle.mothers_as <aod::McParticles>()) {
2346+ for (const auto & mcparticleMother0 : v0mcparticle.mothers_as <aod::McParticles>()) {
23472347 if (std::abs (mcparticleMother0.pdgCode ()) == 3312 || std::abs (mcparticleMother0.pdgCode ()) == 3322 ) {
23482348 ptMotherMC = mcparticleMother0.pt ();
23492349 pdgMother = mcparticleMother0.pdgCode ();
@@ -2386,7 +2386,7 @@ struct LambdaJetpolarization {
23862386 }
23872387
23882388 // second loop over V0s
2389- for (auto & v0 : v0sThisCollision) {
2389+ for (const auto & v0 : v0sThisCollision) {
23902390 if (!v0.has_mcParticle ()) {
23912391 continue ;
23922392 }
@@ -2397,7 +2397,7 @@ struct LambdaJetpolarization {
23972397 if (v0.v0Type () != v0TypeSelection) {
23982398 continue ;
23992399 }
2400- if (NotITSAfterburner && (v0.negTrack_as <DauTracksMC>().isITSAfterburner () || v0.posTrack_as <DauTracksMC>().isITSAfterburner ())) {
2400+ if (notITSAfterburner && (v0.negTrack_as <DauTracksMC>().isITSAfterburner () || v0.posTrack_as <DauTracksMC>().isITSAfterburner ())) {
24012401 continue ;
24022402 }
24032403
@@ -2408,8 +2408,8 @@ struct LambdaJetpolarization {
24082408 lPDG = v0mcparticle.pdgCode ();
24092409 isprimary = v0mcparticle.isPhysicalPrimary ();
24102410 }
2411- for (auto & mcparticleDaughter0 : v0mcparticle.daughters_as <aod::McParticles>()) {
2412- for (auto & mcparticleDaughter1 : v0mcparticle.daughters_as <aod::McParticles>()) {
2411+ for (const auto & mcparticleDaughter0 : v0mcparticle.daughters_as <aod::McParticles>()) {
2412+ for (const auto & mcparticleDaughter1 : v0mcparticle.daughters_as <aod::McParticles>()) {
24132413 if (mcparticleDaughter0.pdgCode () == -211 && mcparticleDaughter1.pdgCode () == 2212 ) { // proton + pion^{-}
24142414 isDauLambda = true ;
24152415 }
@@ -2421,7 +2421,7 @@ struct LambdaJetpolarization {
24212421 // float ptMotherMC = 0.;
24222422 float pdgMother = 0 .;
24232423 if (std::abs (v0mcparticle.pdgCode ()) == 3122 && v0mcparticle.has_mothers ()) {
2424- for (auto & mcparticleMother0 : v0mcparticle.mothers_as <aod::McParticles>()) {
2424+ for (const auto & mcparticleMother0 : v0mcparticle.mothers_as <aod::McParticles>()) {
24252425 if (std::abs (mcparticleMother0.pdgCode ()) == 3312 || std::abs (mcparticleMother0.pdgCode ()) == 3322 ) {
24262426 // ptMotherMC = mcparticleMother0.pt();
24272427 pdgMother = mcparticleMother0.pdgCode ();
@@ -2481,12 +2481,15 @@ struct LambdaJetpolarization {
24812481 }
24822482 } else if (isMC && lPDG == -3122 ) {
24832483 if (isprimary == 1 && isDauAntiLambda) {
2484+ continue ;
24842485 }
24852486
24862487 } else if (std::abs (v0.mLambda () - o2::constants::physics::MassLambda0) < 0.01 ) {
24872488 if (pdgMother == 3312 ) {
2489+ continue ;
24882490 }
24892491 if (pdgMother == 3312 || pdgMother == 3322 ) {
2492+ continue ;
24902493 }
24912494 }
24922495 }
0 commit comments