Skip to content

Commit 8420111

Browse files
author
Prottay Das
committed
added an additional argument in function
1 parent 18f50a1 commit 8420111

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ struct lambdapolsp {
437437
}
438438

439439
template <typename V0, typename T>
440-
bool isSelectedV0Daughter(V0 const& candidate, T const& track, int pid)
440+
bool isSelectedV0Daughter(V0 const& candidate, T const& track, int pid, int pid2)
441441
{
442442
// const auto eta = track.eta();
443443
// const auto pt = track.pt();
@@ -471,10 +471,10 @@ struct lambdapolsp {
471471
return false;
472472
}
473473

474-
if (pid == 0 && (TMath::Abs(candidate.dcapostopv()) < cMinV0DCAPr || TMath::Abs(candidate.dcanegtopv()) < cMinV0DCAPi)) {
474+
if (pid2 == 0 && (TMath::Abs(candidate.dcapostopv()) < cMinV0DCAPr || TMath::Abs(candidate.dcanegtopv()) < cMinV0DCAPi)) {
475475
return false;
476476
}
477-
if (pid == 1 && (TMath::Abs(candidate.dcapostopv()) < cMinV0DCAPi || TMath::Abs(candidate.dcanegtopv()) < cMinV0DCAPr)) {
477+
if (pid2 == 1 && (TMath::Abs(candidate.dcapostopv()) < cMinV0DCAPi || TMath::Abs(candidate.dcanegtopv()) < cMinV0DCAPr)) {
478478
return false;
479479
}
480480

@@ -994,10 +994,10 @@ struct lambdapolsp {
994994
continue;
995995
}
996996

997-
if (isSelectedV0Daughter(v0, postrack, 0) && isSelectedV0Daughter(v0, negtrack, 1)) {
997+
if (isSelectedV0Daughter(v0, postrack, 0, 0) && isSelectedV0Daughter(v0, negtrack, 1, 0)) {
998998
LambdaTag = 1;
999999
}
1000-
if (isSelectedV0Daughter(v0, negtrack, 0) && isSelectedV0Daughter(v0, postrack, 1)) {
1000+
if (isSelectedV0Daughter(v0, negtrack, 0, 1) && isSelectedV0Daughter(v0, postrack, 1, 1)) {
10011001
aLambdaTag = 1;
10021002
}
10031003

0 commit comments

Comments
 (0)