Skip to content

bump narf (variable axis fix)#6

Merged
bendavid merged 1 commit into
WMass:mainfrom
bendavid:bumpnarf
Feb 7, 2022
Merged

bump narf (variable axis fix)#6
bendavid merged 1 commit into
WMass:mainfrom
bendavid:bumpnarf

Conversation

@bendavid

@bendavid bendavid commented Feb 7, 2022

Copy link
Copy Markdown
Collaborator

No description provided.

@bendavid bendavid merged commit 42a5bed into WMass:main Feb 7, 2022
davidwalter2 referenced this pull request in davidwalter2/WRemnants Mar 30, 2023
lucalavezzo added a commit to lucalavezzo/WRemnants that referenced this pull request Jun 23, 2026
Carry the reco x gen response matrix R (and the gen-total N_gen) through the
setupRabbit datacard instead of a separate file, so the fit is self-contained
and R is always consistent with the run that built the card (review comment WMass#6).

- setupRabbit: after the input loop, extract R + N_gen once from the unfolding
  histmaker output and embed them in the fit input via rabbit add_auxiliary
  (the "scetlib_np" group). Presence-based lenient guard
  (response_matrix.has_response): embed only when an input carries both the
  response hist and the prefsr gen-total; raise if more than one qualifies.
- response_matrix: add has_response() (cheap both-present check, never raises).
- param_model: read R only from indata.auxiliary["scetlib_np"]; drop the
  unfolding_hdf5_path argument and the sigma_gen(lambda_c) N_gen fallback (raise
  if N_gen is absent -- the proxy made the central closure circular).
- scetlib_np package __init__: import SCETlibNPParamModel lazily (PEP 562) so
  response_matrix can be imported by setupRabbit without pulling in TensorFlow.

Requires a rabbit with TensorWriter.add_auxiliary (WMass/rabbit#145); the
submodule bump is a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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