Skip to content

Commit c20e574

Browse files
committed
taskCharmPolarisation.cxx: Fix redundant condition
1 parent b8da914 commit c20e574

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,9 +2138,7 @@ struct HfTaskCharmPolarisation {
21382138
RecoDecay::getDaughters(mcParticle, &listDaughtersD0, dauPdgsD0, 1);
21392139
for (const auto& dauIdxD0 : listDaughtersD0) {
21402140
auto dauPartD0 = mcParticles.rawIteratorAt(dauIdxD0 - mcParticles.offset());
2141-
if (areDauInAcc) {
2142-
areDauInAcc = isDaughterInAcceptance(dauPartD0, 0.3, 0.8);
2143-
}
2141+
areDauInAcc = isDaughterInAcceptance(dauPartD0, 0.3, 0.8);
21442142
}
21452143
}
21462144
} else if constexpr (channel == charm_polarisation::DecayChannel::LcToPKPi) {

0 commit comments

Comments
 (0)