From 6e2963256368858a28bd20ba7a7219f3605992a4 Mon Sep 17 00:00:00 2001 From: Kelci Mohrman Date: Mon, 23 Aug 2021 18:30:10 -0400 Subject: [PATCH] Add script for remaking ci ref yields file, and update ci ref yields file --- analysis/topEFT/remake_ci_ref_yields.sh | 20 ++++++++++++ .../test/UL17_private_ttH_for_CI_yields.json | 32 +++++++++---------- 2 files changed, 36 insertions(+), 16 deletions(-) create mode 100644 analysis/topEFT/remake_ci_ref_yields.sh diff --git a/analysis/topEFT/remake_ci_ref_yields.sh b/analysis/topEFT/remake_ci_ref_yields.sh new file mode 100644 index 000000000..4a13a9382 --- /dev/null +++ b/analysis/topEFT/remake_ci_ref_yields.sh @@ -0,0 +1,20 @@ +# This script reproduces the reference yields file that the CI compares agains +# Run this script when you want to update the reference file + +# Get the file the CI uses, and move it to the directory the JSON expects +printf "\nDownloading root file...\n" +wget http://www.crc.nd.edu/~ywan2/root_files/NAOD-00000_18449.root +mv NAOD-00000_18449.root ../../NAOD-00000_18449.root + +# Run the processor +printf "\nRunning the processor...\n" +time python run.py ../../topcoffea/json/test_samples/UL17_private_ttH_for_CI.json -o new_ref_histos + +# Make the JSON file of the yields +printf "\nMaking the yields JSON file...\n" +python get_yield_json.py -f histos/new_ref_histos.pkl.gz -n new_ref_yields + +# Replace the reference yields with the new reference yields +printf "\nReplacing ref yields JSON with new file...\n" +mv new_ref_yields.json test/UL17_private_ttH_for_CI_yields.json +printf "\n\nDone.\n\n" diff --git a/analysis/topEFT/test/UL17_private_ttH_for_CI_yields.json b/analysis/topEFT/test/UL17_private_ttH_for_CI_yields.json index 20f2adaba..b696f2258 100644 --- a/analysis/topEFT/test/UL17_private_ttH_for_CI_yields.json +++ b/analysis/topEFT/test/UL17_private_ttH_for_CI_yields.json @@ -1,36 +1,36 @@ { "ttH": { "2lss_m": [ - 20.677004545468762, - 4.1828132785350285e-15 + 23.391304725093818, + 4.4488922733299325e-15 ], "2lss_p": [ - 19.870077477553295, - 4.1003832114823895e-15 + 22.5133505229178, + 4.364602861060397e-15 ], "3l_m_offZ_1b": [ - 3.964872301886027, - 1.8316364125419964e-15 + 4.012271854861266, + 1.842552376950432e-15 ], "3l_m_offZ_2b": [ - 4.53462424039309, - 1.95882356067898e-15 + 4.729040186898001, + 2.0003738507488667e-15 ], "3l_onZ_1b": [ - 1.766004732614043, - 1.222420425560399e-15 + 1.8100936561046415, + 1.2375854350353434e-15 ], "3l_onZ_2b": [ - 1.9007979982164087, - 1.2682143103404668e-15 + 1.9006819584409087, + 1.2681755988229705e-15 ], "3l_p_offZ_1b": [ - 4.72934896615817, - 2.000439156165079e-15 + 4.674642862184853, + 1.98883559834224e-15 ], "3l_p_offZ_2b": [ - 5.609943207055785, - 2.1787324345487895e-15 + 5.784638780146453, + 2.2123956139062505e-15 ], "4l": [ 0.7206380524728832,