Repository navigation
Conversation
Keeps the complement of the training sample (collisionId % N != 0).
Added matched particle-level jet ID to bjetparamsextra table in bjetTreeCreator.
Added global-track flag and MC ID (for track matching later) to bjetTracksParamsExtra. Also declared truth-level tables.
Created new function processMCTruthJetsForEEC. Filling truth-level jet and track tables there (no conflict with previous truth jet function).
nambrath
requested review from
alibuild,
fjonasALICE,
jaimenorman,
mhemmer-cern and
nzardosh
as code owners
December 4, 2026 18:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR extends
bjetTreeCreatorto produce the inputs for a b-jet EEC analysis. In addition to the GNN training input, this code now also produces: detector-level trees on the rest of the MC sample, truth-level trees (for detector effects and unfolding), and matching information between the two. All pre-existing workflows continue to work as before.Specifically, the changes introduced are:
useEvaluationSamplehas been introduced. IftrainingDatasetRatioParamis N, this keeps events withcollisionId % N != 0so that the complement of the training dataset (which usescollisionId % N == 0) can be processed.processMCJetsForGNNnow also reads in the jet matching tables. The matched truth-level jet ID is saved to the tablebjetParamsExtrain the columnMatchedMCPJetID(-1if no match).bjetTracksParamsExtrahas two new columns,IsGlobalTrackandMCParticleID. The first flags whether a track passes the global track selection cuts, so that we can compare using all quality-track jet constituents with using only global-track constituents (the jets themselves are unchanged). The second allows us to do track-level matching between detector- and truth-level (usingJMcTrackLbs), which will be important for the EEC analysis.processMCTruthJetsForEEChas been introduced, to write two new tables. First isbjetTruthJets, which saves the jet ID (for matching), pT, eta, phi, jet radius, flavor (fromjet-hf-definition), # of tracks, event weight, event pt-hat, and vz. It also saves whether the truth-level event has a corresponding detector-level event that passes selection cuts, or an outlier detector-level event, and whether that event is in the training sample. The other table isbjetTruthTracks, which saves the jet index inbjetTruthJets, MC particle ID (for track matching), pT, eta, phi, and PDG code. All truth-level events with |vz|<vertexZCutare kept, but MB gap events and truth-level outliers are omitted. The existingprocessMCTruthJetsis unchanged.