Skip to content

Commit 1f2ad38

Browse files
committed
Improve event mixing condition
1 parent 74424e4 commit 1f2ad38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PWGLF/Tasks/Strangeness/lambdaspincorrderived.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ struct lambdaspincorrderived {
127127
template <typename T1, typename T2>
128128
bool checkKinematics(T1 const& candidate1, T2 const& candidate2)
129129
{
130+
if (candidate1.v0Status() != candidate2.v0Status()) {
131+
return false;
132+
}
130133
if (std::abs(candidate1.lambdaPt() - candidate2.lambdaPt()) > ptMix) {
131134
return false;
132135
}

0 commit comments

Comments
 (0)