Skip to content

Commit 3e2bf4c

Browse files
authored
fix conditional statement
1 parent 26889fa commit 3e2bf4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ struct EbyeMaker {
855855
auto pdgCode = mcPart.pdgCode();
856856
auto genPt = std::hypot(mcPart.px(), mcPart.py());
857857
if ((std::abs(pdgCode) == PDG_t::kPiPlus || std::abs(pdgCode) == PDG_t::kElectron || std::abs(pdgCode) == PDG_t::kMuonMinus || std::abs(pdgCode) == PDG_t::kKPlus || std::abs(pdgCode) == PDG_t::kProton) && mcPart.isPhysicalPrimary() && genPt > ptMin[0] && genPt < ptMax[0]) {
858-
int ch = (pdgCode == PDG_t::kPiPlus || pdgCode == -PDG_t::kElectron || pdgCode == -PDG_t::kMuonMinus || pdgCode == PDG_t::kKPlus || PDG_t::kProton) ? 1 : -1;
858+
int ch = (pdgCode == PDG_t::kPiPlus || pdgCode == -PDG_t::kElectron || pdgCode == -PDG_t::kMuonMinus || pdgCode == PDG_t::kKPlus || pdgCode == PDG_t::kProton) ? 1 : -1;
859859
if ((ch < 0 && countOnlyNegTrk) || !countOnlyNegTrk)
860860
nChPartGen++;
861861
}

0 commit comments

Comments
 (0)