Functions | |
def | file2map |
Variables | |
tuple | br = file2map(path+"YR-BR3.txt") |
string | cfmt = "%-" |
tuple | chmax = max([max(len(p),len(c)) for p,c,x in shapeLines]) |
tuple | cmax = max([cmax]+[len(l) for l in obskeyline]+[len(x) for x in obsline]) |
tuple | DC1 = parseCard(open(file1,"r"), options) |
list | eff = rate/xsbr1[p] |
string | file1 = options.ddir+"/%d/%s.txt" |
tuple | ggXS = file2map(path+"YR-XS-ggH.txt") |
tuple | histo = ofile.Get("histo_%s" % p) |
tuple | hmax = max([10] + [len("%-12s %s %s" % (l,p,a)) for l,(p,a,e,nf) in systlines.items()]) |
list | keyline = [] |
tuple | mass = float(args[0]) |
list | mass1 = refmasses[0] |
list | obsline = [str(x) for x in DC1.obs.values()] |
tuple | ofile = ROOT.TFile( "%s/%g/%s%s.input.root" % (options.ddir,mass,XS,options.postfix) , "UPDATE" ) |
dictionary | paramSysts = {} |
tuple | parser = OptionParser(usage="usage: %prog [options] [refmass1] mass3 > datacard3.txt \nrun with --help to get list of options") |
list | path = os.environ['CMSSW_BASE'] |
list | pidline = [] |
tuple | qqXS = file2map(path+"YR-XS-vbfH.txt") |
list | rate = DC1.exp[b] |
list | refmasses = [ int(line) for line in open(options.ddir+"/"+options.refmasses,"r") ] |
list | signals = [] |
tuple | sm4 = file2map(path+"SM4-600GeV.txt") |
tuple | sysnamesSorted = systlines.keys() |
list | systline = [] |
tuple | xfile = open(options.ddir+"/%d/%s%s.txt" % (mass, X,options.postfix), "w") |
tuple | XS = X.replace("_shape","") |
dictionary | xsbr = { 'ggH':1.0, 'qqH':1.0 } |
dictionary | xsbr1 = { 'ggH':1.0, 'qqH':1.0 } |
def interpolateCardsSimple4G.file2map | ( | x | ) |
Definition at line 45 of file interpolateCardsSimple4G.py.
References python.multivaluedict.dict.
Definition at line 59 of file interpolateCardsSimple4G.py.
string interpolateCardsSimple4G.cfmt = "%-" |
Definition at line 114 of file interpolateCardsSimple4G.py.
Definition at line 113 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.cmax = max([cmax]+[len(l) for l in obskeyline]+[len(x) for x in obsline]) |
Definition at line 120 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.DC1 = parseCard(open(file1,"r"), options) |
Definition at line 83 of file interpolateCardsSimple4G.py.
Definition at line 95 of file interpolateCardsSimple4G.py.
string interpolateCardsSimple4G.file1 = options.ddir+"/%d/%s.txt" |
Definition at line 81 of file interpolateCardsSimple4G.py.
Definition at line 57 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.histo = ofile.Get("histo_%s" % p) |
Definition at line 98 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.hmax = max([10] + [len("%-12s %s %s" % (l,p,a)) for l,(p,a,e,nf) in systlines.items()]) |
Definition at line 136 of file interpolateCardsSimple4G.py.
list interpolateCardsSimple4G.keyline = [] |
Definition at line 87 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.mass = float(args[0]) |
Definition at line 31 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.mass1 = refmasses[0] |
Definition at line 32 of file interpolateCardsSimple4G.py.
Definition at line 86 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.ofile = ROOT.TFile( "%s/%g/%s%s.input.root" % (options.ddir,mass,XS,options.postfix) , "UPDATE" ) |
Definition at line 79 of file interpolateCardsSimple4G.py.
dictionary interpolateCardsSimple4G.paramSysts = {} |
Definition at line 89 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.parser = OptionParser(usage="usage: %prog [options] [refmass1] mass3 > datacard3.txt \nrun with --help to get list of options") |
Definition at line 12 of file interpolateCardsSimple4G.py.
list interpolateCardsSimple4G.path = os.environ['CMSSW_BASE'] |
Definition at line 56 of file interpolateCardsSimple4G.py.
list interpolateCardsSimple4G.pidline = [] |
Definition at line 127 of file interpolateCardsSimple4G.py.
Definition at line 58 of file interpolateCardsSimple4G.py.
Definition at line 93 of file interpolateCardsSimple4G.py.
list interpolateCardsSimple4G.refmasses = [ int(line) for line in open(options.ddir+"/"+options.refmasses,"r") ] |
Definition at line 28 of file interpolateCardsSimple4G.py.
list interpolateCardsSimple4G.signals = [] |
Definition at line 88 of file interpolateCardsSimple4G.py.
Definition at line 60 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.sysnamesSorted = systlines.keys() |
Definition at line 143 of file interpolateCardsSimple4G.py.
list interpolateCardsSimple4G.systline = [] |
Definition at line 147 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.xfile = open(options.ddir+"/%d/%s%s.txt" % (mass, X,options.postfix), "w") |
Definition at line 107 of file interpolateCardsSimple4G.py.
tuple interpolateCardsSimple4G.XS = X.replace("_shape","") |
Definition at line 77 of file interpolateCardsSimple4G.py.
dictionary interpolateCardsSimple4G.xsbr = { 'ggH':1.0, 'qqH':1.0 } |
Definition at line 43 of file interpolateCardsSimple4G.py.
dictionary interpolateCardsSimple4G.xsbr1 = { 'ggH':1.0, 'qqH':1.0 } |
Definition at line 42 of file interpolateCardsSimple4G.py.