Add event list export with signal metadata, manifest, and comparison utility#332
Open
dprim7 wants to merge 4 commits intoLPC-HH:mainfrom
Open
Add event list export with signal metadata, manifest, and comparison utility#332dprim7 wants to merge 4 commits intoLPC-HH:mainfrom
dprim7 wants to merge 4 commits intoLPC-HH:mainfrom
Conversation
Collaborator
dprim7
commented
Apr 2, 2026
- Add --event-list flag to PostProcess.py that exports per-year ROOT files (eventlist_boostedHH4b_.root) containing selected events for overlap removal with resolved analysis. For signal samples, includes coupling parameters (kl, k2v), generator-level Higgs kinematics (pT-ordered), and per-event weights.
- Add eventlist_manifest.py — JSON provenance file written alongside ROOT outputs, recording analysis settings (tagger, BDT model/WPs, mass window, etc.). Supports merging across sequential single-year runs.
- Add compare_eventlists.py utility to diff two event-list ROOT files by (run, luminosityBlock, event) keys, for verifying selection consistency across code changes.
- Refactor template production to process one sample at a time, reducing peak memory usage.
- Fix load_run3_samples mutating global column lists across calls.
- Fix BDT dataframe (v13_glopartv2.py) to use numpy slicing instead of tuple-indexed column access.
- Disable duplicate VBF sample (CV-2p12 vs CV-m2p12) and enable correct xsec entry.
Add event list generation to PostProcess that writes per-year ROOT files containing selected events with BDT scores, categories, and for signal samples: coupling parameters (kl, k2v), weights, and pT-ordered gen Higgs kinematics. Includes JSON manifest for provenance tracking. Also refactors template production to process one sample at a time for reduced peak memory, and fixes global list mutation in load_run3_samples.
Script to diff two event-list ROOT files by (run, lumi, event) keys, useful for verifying that selection changes preserve the same events.
- Disable duplicate VBF sample (CV-2p12 vs CV-m2p12) across all eras - Enable xsec for CV-m2p12 variant - Fix BDT training dataframe to use numpy slicing instead of tuple keys
68 tests covering: - Coupling value decoding and signal parameter parsing - Column array accessors (flat, tuple-indexed, integer-suffix) - Gen Higgs pT ordering logic - Event list frame construction (base/signal/data paths) - Histogram sample axis computation - Manifest build, write, merge, validation, and year parsing - Event list ROOT file comparison (identical, diff, missing)
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.