@@ -370,8 +370,10 @@ struct LfLambdaTwoPartPolarization {
370370 aLambdaTag = 1 ;
371371 }
372372
373- if (postrack_v01.globalIndex () == trk.globalIndex () || negtrack_v01.globalIndex () == trk.globalIndex ()) {
374- continue ;
373+ if (doprocessDataSame) {
374+ if (postrack_v01.globalIndex () == trk.globalIndex () || negtrack_v01.globalIndex () == trk.globalIndex ()) {
375+ continue ;
376+ }
375377 }
376378
377379 if (LambdaTag == aLambdaTag) {
@@ -536,12 +538,11 @@ struct LfLambdaTwoPartPolarization {
536538 TrackCandidates const & tracks, aod::V0Datas const & V0s,
537539 aod::BCsWithTimestamps const &)
538540 {
541+ centrality = collision.centFT0M ();
539542 if (cfgCentEst == kFT0C ) {
540543 centrality = collision.centFT0C ();
541544 } else if (cfgCentEst == kFT0M ) {
542545 centrality = collision.centFT0M ();
543- } else {
544- centrality = collision.centFT0M ();
545546 }
546547 if (!eventSelected (collision) && cfgEvtSel) {
547548 return ;
@@ -568,12 +569,11 @@ struct LfLambdaTwoPartPolarization {
568569 TrackCandidates const & /* tracks*/ , aod::V0Datas const & V0s,
569570 aod::BCsWithTimestamps const &)
570571 {
572+ centrality = collision.centFT0M ();
571573 if (cfgCentEst == kFT0C ) {
572574 centrality = collision.centFT0C ();
573575 } else if (cfgCentEst == kFT0M ) {
574576 centrality = collision.centFT0M ();
575- } else {
576- centrality = collision.centFT0M ();
577577 }
578578 if (!eventSelected (collision) && cfgEvtSel) {
579579 return ;
0 commit comments