Skip to content

Define stitching processor variables before xs/denominator (FLAF #169) - #124

Merged
kandrosov merged 2 commits into
cms-flaf:mainfrom
kandrosov:issue-169-dataset-stitching
Aug 9, 2026
Merged

Define stitching processor variables before xs/denominator (FLAF #169)#124
kandrosov merged 2 commits into
cms-flaf:mainfrom
kandrosov:issue-169-dataset-stitching

Conversation

@kandrosov

@kandrosov kandrosov commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Companion to cms-flaf/FLAF#289 (dataset stitching, #169).

MCStitcher subclasses that select on a derived gen-level column (TT decay mode, LHE
dilepton flavor/mass, Z→ττ filter) crash at the anaTuple stage: getNormalisationCorrections
builds the cross-section / denominator expressions without first defining those columns. The
built-in DY Vpt/NpNLO stitch only worked because LHE_Vpt/LHE_NpNLO are native branches.

Adds prepareStitchingVariables(), which calls each stitching processor's
onAnaTuple_prepareDataFrame once before the xs/denominator loop. Verified by real anaTuple
runs of the new TT and DY→ττ stitchers (weight_xs now defines correctly and the event loop
completes). Merge together with the FLAF PR.

…sent at histogram stage (getNormalisationCorrections runs there too)
@kandrosov
kandrosov merged commit 19328df into cms-flaf:main Aug 9, 2026
3 checks passed
@kandrosov
kandrosov deleted the issue-169-dataset-stitching branch August 9, 2026 02:26
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