Skip to content

Commit c04f3c1

Browse files
committed
To remove the double check of genKinematicsChecks configurable
1 parent 529c0c9 commit c04f3c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎PWGLF/Tasks/Resonances/chargedkstaranalysis.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,14 +1467,14 @@ struct Chargedkstaranalysis {
14671467
for (const auto& d3 : d2.template daughters_as<aod::McParticles>()) {
14681468
if (d3.pdgCode() == +kPiPlus) {
14691469
if (helicityCfgs.genKinematicsChecks) {
1470-
if (!helicityCfgs.genKinematicsChecks || (d3.pt() > trackCutCfgs.cMinPtcut && std::abs(d3.eta()) < trackCutCfgs.cMaxEtacut)) {
1470+
if (d3.pt() <= trackCutCfgs.cMinPtcut || std::abs(d3.eta()) >= trackCutCfgs.cMaxEtacut) {
14711471
continue;
14721472
}
14731473
}
14741474
seenPip = true;
14751475
} else if (d3.pdgCode() == -kPiPlus) {
14761476
if (helicityCfgs.genKinematicsChecks) {
1477-
if (!helicityCfgs.genKinematicsChecks || (d3.pt() > trackCutCfgs.cMinPtcut && std::abs(d3.eta()) < trackCutCfgs.cMaxEtacut)) {
1477+
if (d3.pt() <= trackCutCfgs.cMinPtcut || std::abs(d3.eta()) >= trackCutCfgs.cMaxEtacut) {
14781478
continue;
14791479
}
14801480
}

0 commit comments

Comments
 (0)