Skip to content

Add event list export with signal metadata, manifest, and comparison utility#332

Open
dprim7 wants to merge 4 commits intoLPC-HH:mainfrom
dprim7:eventlist-clean
Open

Add event list export with signal metadata, manifest, and comparison utility#332
dprim7 wants to merge 4 commits intoLPC-HH:mainfrom
dprim7:eventlist-clean

Conversation

@dprim7
Copy link
Copy Markdown
Collaborator

@dprim7 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.

@dprim7 dprim7 requested review from cmantill and jmduarte April 2, 2026 22:20
dprim7 added 4 commits April 2, 2026 17:00
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)
@dprim7 dprim7 force-pushed the eventlist-clean branch from 8e3fbb0 to 5d3614f Compare April 3, 2026 06:39
@dprim7 dprim7 marked this pull request as ready for review April 7, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant