Skip to content

Commit 7a7fd7c

Browse files
authored
[PWGJE] check to stop bug in powheg (#10626)
1 parent b62fd8d commit 7a7fd7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PWGJE/Core/JetCandidateUtilities.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ bool isDaughterTrack(T& track, U& candidate, V const& tracks)
166166
template <typename T>
167167
bool isDaughterParticle(const T& particle, int globalIndex)
168168
{
169+
if (!particle.has_daughters()) {
170+
return false;
171+
}
169172
for (auto daughter : particle.template daughters_as<typename std::decay_t<T>::parent_t>()) {
170173
if (daughter.globalIndex() == globalIndex) {
171174
return true;

0 commit comments

Comments
 (0)