File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -486,8 +486,9 @@ struct FemtoPairEfficiency {
486486 {
487487 float mass1 = o2::analysis::femto::utils::getPdgMass (std::abs (TrackSel1.pdgCode .value ));
488488 float mass2 = o2::analysis::femto::utils::getPdgMass (std::abs (TrackSel2.pdgCode .value ));
489+ bool foundPair = false ;
489490
490- for (auto const & [p1, p2] : o2::soa::combinations (o2::soa::CombinationsUpperIndexPolicy (tracks, tracks))) {
491+ for (auto const & [p1, p2] : o2::soa::combinations (o2::soa::CombinationsStrictlyUpperIndexPolicy (tracks, tracks))) {
491492
492493 bool order1 = checkTrackMC (p1, TrackSel1) && checkTrackMC (p2, TrackSel2) &&
493494 std::abs (p1.pdgCode ()) == std::abs (TrackSel1.pdgCode .value ) &&
@@ -525,9 +526,9 @@ struct FemtoPairEfficiency {
525526 if (kstar > kStarMax .value ) {
526527 continue ;
527528 }
528- return true ;
529+ foundPair = true ;
529530 }
530- return false ;
531+ return foundPair ;
531532 }
532533
533534 template <typename CheckCol, typename CheckTracks>
You can’t perform that action at this time.
0 commit comments