Skip to content

Commit 09bca1e

Browse files
committed
Fix setSingleTrackSelectionBit not setting notBadMcTrack bit
setTrackSelectionBit defaults setNotBadMcTrack=true, but setSingleTrackSelectionBit (the only bit-builder used for JTrackSub, in eventwiseConstituentSubtractor.cxx) never sets it. Since selectTrack() gates unconditionally on notBadMcTrack, every event-wise constituent-subtracted track fails selection regardless of configured trackSelections, silently zeroing all downstream subtracted-jet finding. This brings setSingleTrackSelectionBit in line with the existing default behavior of setTrackSelectionBit.
1 parent e08d74f commit 09bca1e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

PWGJE/Core/JetDerivedDataUtilities.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ uint8_t setSingleTrackSelectionBit(int trackSelection)
716716
if (trackSelection != -1) {
717717
SETBIT(bit, trackSelection);
718718
}
719+
SETBIT(bit, JTrackSel::notBadMcTrack);
719720
return bit;
720721
}
721722

0 commit comments

Comments
 (0)