babymaker
e95a6a9342d4604277fe7cc6149b6b5b24447d89
|
Functions | |
def | table_header (cols=3) |
def | table_footer () |
Variables | |
string | mcdir = '/cms2r0/babymaker/babies/2016_08_10/mc/unskimmed' |
string | dadir = '/cms2r0/babymaker/babies/2016_11_08/data/unskimmed' |
tuple | mcset = set([i.split('_RunIISpring')[0].split('fullbaby_')[-1] for i in glob.glob(mcdir+"/*.root")]) |
tuple | daset = set([i.strip(i.split('_')[-1]).rstrip('_').split('fullbaby_')[-1] for i in glob.glob(dadir+"/*.root")]) |
list | darows = [] |
list | mcrows = [] |
tuple | c = TChain("tree") |
tuple | ntot = c.GetEntries() |
int | nneg = 0 |
tuple | f = TFile(glob.glob(mcdir+"/*"+ds+"*.root")[0],"READ") |
tuple | g = f.Get("treeglobal") |
int | xsec = -1 |
int | lumi = ntot/xsec/1000 |
string | texfile = "dataset_table.tex" |
tuple | tex = open(texfile,"w") |
def make_dataset_table.table_footer | ( | ) |
Definition at line 32 of file make_dataset_table.py.
def make_dataset_table.table_header | ( | cols = 3 | ) |
Definition at line 18 of file make_dataset_table.py.
tuple make_dataset_table.c = TChain("tree") |
Definition at line 46 of file make_dataset_table.py.
Referenced by mc_tools.isFromGSP(), and main().
string make_dataset_table.dadir = '/cms2r0/babymaker/babies/2016_11_08/data/unskimmed' |
Definition at line 13 of file make_dataset_table.py.
list make_dataset_table.darows = [] |
Definition at line 40 of file make_dataset_table.py.
tuple make_dataset_table.daset = set([i.strip(i.split('_')[-1]).rstrip('_').split('fullbaby_')[-1] for i in glob.glob(dadir+"/*.root")]) |
Definition at line 16 of file make_dataset_table.py.
tuple make_dataset_table.f = TFile(glob.glob(mcdir+"/*"+ds+"*.root")[0],"READ") |
Definition at line 52 of file make_dataset_table.py.
Referenced by anonymous_namespace{lepton_tools.cc}.GetSF().
tuple make_dataset_table.g = f.Get("treeglobal") |
Definition at line 53 of file make_dataset_table.py.
Definition at line 58 of file make_dataset_table.py.
Referenced by main().
string make_dataset_table.mcdir = '/cms2r0/babymaker/babies/2016_08_10/mc/unskimmed' |
Definition at line 12 of file make_dataset_table.py.
list make_dataset_table.mcrows = [] |
Definition at line 44 of file make_dataset_table.py.
tuple make_dataset_table.mcset = set([i.split('_RunIISpring')[0].split('fullbaby_')[-1] for i in glob.glob(mcdir+"/*.root")]) |
Definition at line 15 of file make_dataset_table.py.
tuple make_dataset_table.nneg = 0 |
Definition at line 49 of file make_dataset_table.py.
tuple make_dataset_table.ntot = c.GetEntries() |
Definition at line 48 of file make_dataset_table.py.
tuple make_dataset_table.tex = open(texfile,"w") |
Definition at line 63 of file make_dataset_table.py.
string make_dataset_table.texfile = "dataset_table.tex" |
Definition at line 62 of file make_dataset_table.py.
make_dataset_table.xsec = -1 |
Definition at line 54 of file make_dataset_table.py.
Referenced by change_branch_one(), xsec.crossSection(), and main().