Control-region closure + control-plot transforms, SR cut - #94
Merged
Conversation
…ckend fix Postprocessing / control plots: - singleVarHist: optional `transform` callable applied to raw values before filling (axis must already span the transformed range). - control_plots: display flagged discriminator-score vars under x -> -log(1 - x + eps) (TRANSFORM_VARS / TRANSFORM_EPS), stretching the pile-up near 1. ratioHistPlot just renders the hist's axis, so the transform is done at fill time. - --sr flag for the --control-plots pipeline: apply the signal-region pass cut (resolved from --bmin / --sensitivity-dir via Regions.get_selection_regions) before plotting. Control-region closure (new control_region_closure.py): - Closure test for the data-driven QCD+DY estimate using the --control-region templates; now renders each MC background as its own stacked sample (reusing plotting.ratioHistPlot) plus the data-driven QCD+DY and a data/pred ratio. - Includes the --control-region template plumbing it depends on (control_region kwarg through main/get_templates/parse_args, "control" template subdir). Notebook fix: - bdt_utils only forces the Agg backend when an interactive (module://...) backend is not already active, so importing it from a notebook no longer silently breaks plt.show(). Cleanup: - Move personal scratch (notes/, paper helpers, inspector.ipynb, etc.) into untracked_utils/ and gitignore it.
Merged
Collaborator
Author
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.
Postprocessing / control plots:
transformcallable applied to raw values before filling (axis must already span the transformed range).