Skip to content

Commit d209249

Browse files
SuJeong-Jialibuild
andauthored
[PWGLF] Fix rapidity cut to use asymmetric range (#16353)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 20c2770 commit d209249

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGLF/Tasks/Resonances/chk892LI.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ struct Chk892LI {
963963
continue;
964964
if (std::abs(part.pdgCode()) != kKstarPlus)
965965
continue;
966-
if (std::abs(part.y()) > KstarCuts.cfgKstarMaxRap)
966+
if (part.y() < KstarCuts.cfgKstarMinRap || part.y() > KstarCuts.cfgKstarMaxRap)
967967
continue;
968968

969969
const int pionWanted = (part.pdgCode() > 0) ? +kPiPlus : -kPiPlus;
@@ -1079,7 +1079,7 @@ struct Chk892LI {
10791079
const double ptreco = lResoKstar.Pt();
10801080
const double yreco = lResoKstar.Rapidity();
10811081

1082-
if (std::abs(yreco) > KstarCuts.cfgKstarMaxRap)
1082+
if (yreco < KstarCuts.cfgKstarMinRap || yreco > KstarCuts.cfgKstarMaxRap)
10831083
continue;
10841084

10851085
double ptgen = 0, ygen = 0;
@@ -1102,7 +1102,7 @@ struct Chk892LI {
11021102
continue;
11031103
if (std::abs(part.pdgCode()) != kKstarPlus)
11041104
continue;
1105-
if (std::abs(part.y()) > KstarCuts.cfgKstarMaxRap)
1105+
if (part.y() < KstarCuts.cfgKstarMinRap || part.y() > KstarCuts.cfgKstarMaxRap)
11061106
continue;
11071107

11081108
const auto mcid = part.mcCollisionId();
@@ -1141,7 +1141,7 @@ struct Chk892LI {
11411141
continue;
11421142
if (std::abs(part.pdgCode()) != kKstarPlus)
11431143
continue;
1144-
if (std::abs(part.y()) > KstarCuts.cfgKstarMaxRap)
1144+
if (part.y() < KstarCuts.cfgKstarMinRap || part.y() > KstarCuts.cfgKstarMaxRap)
11451145
continue;
11461146

11471147
const auto mcid = part.mcCollisionId();

0 commit comments

Comments
 (0)