Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions PWGCF/Femto/Tasks/femtoPairEfficiency.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,9 @@ struct FemtoPairEfficiency {
{
float mass1 = o2::analysis::femto::utils::getPdgMass(std::abs(TrackSel1.pdgCode.value));
float mass2 = o2::analysis::femto::utils::getPdgMass(std::abs(TrackSel2.pdgCode.value));
bool foundPair = false;

for (auto const& [p1, p2] : o2::soa::combinations(o2::soa::CombinationsUpperIndexPolicy(tracks, tracks))) {
for (auto const& [p1, p2] : o2::soa::combinations(o2::soa::CombinationsStrictlyUpperIndexPolicy(tracks, tracks))) {

bool order1 = checkTrackMC(p1, TrackSel1) && checkTrackMC(p2, TrackSel2) &&
std::abs(p1.pdgCode()) == std::abs(TrackSel1.pdgCode.value) &&
Expand Down Expand Up @@ -525,9 +526,9 @@ struct FemtoPairEfficiency {
if (kstar > kStarMax.value) {
continue;
}
return true;
foundPair = true;
}
return false;
return foundPair;
}

template <typename CheckCol, typename CheckTracks>
Expand Down
Loading