Skip to content

Fake factor using ML #34

Open
prabhatsolanki wants to merge 5 commits intocms-flaf:mainfrom
prabhatsolanki:FF_ML_v2510
Open

Fake factor using ML #34
prabhatsolanki wants to merge 5 commits intocms-flaf:mainfrom
prabhatsolanki:FF_ML_v2510

Conversation

@prabhatsolanki
Copy link
Contributor

@prabhatsolanki prabhatsolanki commented Nov 3, 2025

  1. Modified hh_bbtatautau.py to calculate the FF combined weight (ff_comb_weight) using the output from the ONNX model (two files required: ONNX model file and JSON file where feature order is written for robustness). Model file is for the one discussed in my last presentation (MoE6)
  2. This weight is saved in HistTuples as weight_MLshape_Central (data: ff_comb_weight, for MC: ff_comb_weight * final_weight ) along with weight_central.
image
  1. Modified HistProducerFromNTuple.py to save two hists in OS_Iso, one nominal and one ML weighted OS_AntiIso (e.g., $var$_MLshape_Central) to be used as a template during QCD estimation.
image
  1. HistMergerFromHists.py produces two sample-wise merged histograms (nominal and *_ML_shape).
image
  1. QCD_estimation_MLFF.py uses nominal and _ML_shape for ML, ML+ABCD, and ABCD (based on args in CLI) methods of BG estimation.

@prabhatsolanki prabhatsolanki marked this pull request as ready for review November 3, 2025 15:15
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