@@ -1552,15 +1552,15 @@ struct cascadeFlow {
15521552 histos.fill (HIST (" hLambdaCandidate" ), 2 );
15531553 if (v0.mLambda () > V0Configs.MinMassLambda && v0.mLambda () < V0Configs.MaxMassLambda && v0.mAntiLambda () > V0Configs.MinMassLambda && v0.mAntiLambda () < V0Configs.MaxMassLambda ) {
15541554 histos.fill (HIST (" hLambdaCandidate" ), 3 );
1555- continue ; // in case of ambiguity between Lambda and AntiLambda, I skip the particle
1555+ continue ; // in case of ambiguity between Lambda and AntiLambda, I skip the particle; checked to be zero in range 1.105 - 1.125
15561556 }
15571557 if (v0.mLambda () > V0Configs.MinMassLambda && v0.mLambda () < V0Configs.MaxMassLambda )
15581558 chargeIndex = 0 ;
15591559 else if (v0.mAntiLambda () > V0Configs.MinMassLambda && v0.mAntiLambda () < V0Configs.MaxMassLambda )
15601560 chargeIndex = 1 ;
15611561 else {
1562+ chargeIndex = 2 ; // these are bkg candidates
15621563 histos.fill (HIST (" hLambdaCandidate" ), 4 );
1563- continue ; // in case of ambiguity between Lambda and AntiLambda, I skip the particle
15641564 }
15651565 }
15661566 if (!isSelectedV0[0 ] && !isSelectedV0[1 ])
@@ -1601,10 +1601,14 @@ struct cascadeFlow {
16011601 pzs2Lambda = cosThetaStarProton[0 ] * std::sin (2 * (v0.phi () - psiT0C)) / lambdav2::AlphaLambda[0 ] / meanCos2ThetaProtonFromLambda;
16021602 cos2ThetaLambda = cosThetaStarProton[0 ] * cosThetaStarProton[0 ];
16031603 cosThetaLambda = cosThetaStarProton[0 ] / cascadev2::AlphaLambda[0 ] / meanCos2ThetaProtonFromLambda;
1604- } else {
1604+ } else if (chargeIndex == 1 ) {
16051605 pzs2Lambda = cosThetaStarProton[1 ] * std::sin (2 * (v0.phi () - psiT0C)) / lambdav2::AlphaLambda[1 ] / meanCos2ThetaProtonFromLambda;
16061606 cos2ThetaLambda = cosThetaStarProton[1 ] * cosThetaStarProton[1 ];
16071607 cosThetaLambda = cosThetaStarProton[1 ] / cascadev2::AlphaLambda[1 ] / meanCos2ThetaProtonFromLambda;
1608+ } else { // I treat these bkg candidates as Lambdas for the purpose of calculating Pz
1609+ pzs2Lambda = cosThetaStarProton[0 ] * std::sin (2 * (v0.phi () - psiT0C)) / lambdav2::AlphaLambda[0 ] / meanCos2ThetaProtonFromLambda;
1610+ cos2ThetaLambda = cosThetaStarProton[0 ] * cosThetaStarProton[0 ];
1611+ cosThetaLambda = cosThetaStarProton[0 ] / cascadev2::AlphaLambda[0 ] / meanCos2ThetaProtonFromLambda;
16081612 }
16091613
16101614 histos.fill (HIST (" hv2CEPvsFT0C" ), coll.centFT0C (), v2CEP);
0 commit comments