ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
all_preds.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 ###### Script to find all the closure tables
4 import os, sys, subprocess
5 import glob
6 import string
7 
8 os.system("./compile.sh")
9 
10 ## -m Method to run on (if you just want one)
11 ## -d Debug: prints yields and cuts used
12 ## -o Only MC: does not print data and finds preds based on MC yields
13 ## -l Luminosity to normalize MC with (no data)
14 
15 ## -n Does not print signal columns
16 ## -b Does not print Other, tt1l, tt2l contributions
17 ## -p Does tables for e/mu/emu as well
18 ## -u Unblinds R4/D4
19 ## -f Uses all data (does not apply nonblind)
20 ## -2 Makes tables only for dilepton tests
21 ## -s Which skim to use: standard, met150, 2015 data
22 
23 
24 ## 815 ipb
25 os.system("./run/table_preds.exe -u -p")
26 os.system("./run/table_preds.exe -u -p -s met150")
27 ## Full lumi
28 os.system("./run/table_preds.exe -u -p -f -2")
29 os.system("./run/table_preds.exe -u -p -f -2 -s met150")
30 os.system("./run/table_preds.exe -u -p -f -2 -s 2015 ")
31 
32 ## Making pdfs and organizing them
33 os.system("./run/texify.py -o out -t full")
34 folders = ["lumi0p815", "lumi2p6", "2015"]
35 for folder in folders:
36  os.system("mkdir out/"+folder)
37  os.system("mv out/*"+folder+"*pdf out/"+folder)
38 
39 
40 sys.exit(0)