Skip to content

Commit 82bd122

Browse files
author
Mattia Faggin
committed
Simplify.
1 parent a532022 commit 82bd122

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,11 +1126,7 @@ struct HfCandidateCreator3ProngExpressions {
11261126
flagChannelMain = sign * channelMain;
11271127

11281128
/// swapping for D+, Ds->Kpipi and Lc->pKpi
1129-
if (std::abs(flagChannelMain) == DecayChannelMain::DplusToPiKK || std::abs(flagChannelMain) == DecayChannelMain::DsToPiKK) {
1130-
if (arrayDaughters[0].has_mcParticle()) {
1131-
swapping = static_cast<int8_t>(std::abs(arrayDaughters[0].mcParticle().pdgCode()) == kPiPlus);
1132-
}
1133-
} else if (std::abs(flagChannelMain) == DecayChannelMain::LcToPKPi) {
1129+
if (std::abs(flagChannelMain) == DecayChannelMain::DplusToPiKK || std::abs(flagChannelMain) == DecayChannelMain::DsToPiKK || std::abs(flagChannelMain) == DecayChannelMain::LcToPKPi) {
11341130
if (arrayDaughters[0].has_mcParticle()) {
11351131
swapping = static_cast<int8_t>(std::abs(arrayDaughters[0].mcParticle().pdgCode()) == kPiPlus);
11361132
}

0 commit comments

Comments
 (0)