From 09bca1e12890d39569a769ef24c0262fd2b6cce2 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Wed, 12 Aug 2026 10:54:46 -0400 Subject: [PATCH] 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. --- PWGJE/Core/JetDerivedDataUtilities.h | 1 + 1 file changed, 1 insertion(+) diff --git a/PWGJE/Core/JetDerivedDataUtilities.h b/PWGJE/Core/JetDerivedDataUtilities.h index 113e240bc2b..a859adc3530 100644 --- a/PWGJE/Core/JetDerivedDataUtilities.h +++ b/PWGJE/Core/JetDerivedDataUtilities.h @@ -716,6 +716,7 @@ uint8_t setSingleTrackSelectionBit(int trackSelection) if (trackSelection != -1) { SETBIT(bit, trackSelection); } + SETBIT(bit, JTrackSel::notBadMcTrack); return bit; }