-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from TopEFT/jet-cleaning-without-taus
Jet cleaning without taus
- Loading branch information
Showing
4 changed files
with
145 additions
and
126 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains 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
Oops, something went wrong.