Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 2.06 KB

README.md

File metadata and controls

34 lines (23 loc) · 2.06 KB

Analysis (STau 2018 UL setup) - Manual

Main steps of fake rate estimation (MC-based):

  1. For producing the histograms for WJets enriched region:
> python -m pepper.runproc stau_fake_rate.py ./configs/stau2018_fake_rate.json -o ./output_fakes/fake_rate_v1/ --statedata ./output_fakes/pepper_condor_fake_rate.coffea -i ./configs/setup_env.sh --condor 2000 --retries 10
  1. To plot control plots
DIR_PATH=./output_fakes/fake_rate_v1/; python ./stau_plotter.py ./configs/stau2018_fake_rate_plotter.json ${DIR_PATH}/hists/hists.json --outdir ${DIR_PATH}/hists/plots_signal --cutflow ${DIR_PATH}/cutflows.json --mode 1D
  1. For the ratio calculation (the binning is hardcoded inside the script)
python ./stau_rate_calculate.py ./configs/stau2018_fake_rate_plotter.json ./output_fakes/fake_rate_v1/hists/hists.json --outdir ./output_fakes/fake_rate_v1/fake_sf --cutflow ./output_fakes/fake_rate_v1/cutflows.json

The list of related config files:

  • stau2018_fake_rate_hist.json - histograms definition for fake rate estimate
  • stau2018_fake_rate_plotter.json - config file for plotting script
  • stau2018_fake_rate.json - config file for main stau_fake_rate processor

CMDs

DIR_PATH=./output_fakes/fake_rate_v1/; python ./stau_plotter.py ./configs/stau2018_fake_rate_plotter.json ${DIR_PATH}/hists/hists.json --outdir ${DIR_PATH}/hists/plots_signal --cutflow ${DIR_PATH}/cutflows.json --mode 1D

DIR_PATH=./output_prompt/prompt_rate_v2/; python ./stau_plotter.py ./configs/stau2018_prompt_rate_plotter.json ${DIR_PATH}/hists/hists.json --outdir ${DIR_PATH}/hists/plots_signal --cutflow ${DIR_PATH}/cutflows.json --mode 1D

python ./stau_rate_calculate.py ./configs/stau2018_fake_rate_plotter.json ./output_fakes/fake_rate_v1/hists/hists.json --outdir ./output_fakes/fake_rate_v1/fake_sf --cutflow ./output_fakes/fake_rate_v1/cutflows.json

python ./stau_rate_calculate.py ./configs/stau2018_prompt_rate_plotter.json ./output_prompt/prompt_rate_v2/hists/hists.json --outdir ./output_prompt/prompt_rate_v2/fake_sf --cutflow ./output_prompt/prompt_rate_v2/cutflows.json