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 | inflated = errline[b] |
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/SM4_%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/SM4_%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 interpolateCardsSimpleSMto4G.file2map | ( | x | ) |
Definition at line 43 of file interpolateCardsSimpleSMto4G.py.
References python.multivaluedict.dict.
Definition at line 57 of file interpolateCardsSimpleSMto4G.py.
string interpolateCardsSimpleSMto4G.cfmt = "%-" |
Definition at line 125 of file interpolateCardsSimpleSMto4G.py.
Definition at line 124 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.cmax = max([cmax]+[len(l) for l in obskeyline]+[len(x) for x in obsline]) |
Definition at line 131 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.DC1 = parseCard(open(file1,"r"), options) |
Definition at line 86 of file interpolateCardsSimpleSMto4G.py.
Definition at line 105 of file interpolateCardsSimpleSMto4G.py.
string interpolateCardsSimpleSMto4G.file1 = options.ddir+"/%d/%s.txt" |
Definition at line 84 of file interpolateCardsSimpleSMto4G.py.
Definition at line 55 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.histo = ofile.Get("histo_%s" % p) |
Definition at line 108 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.hmax = max([10] + [len("%-12s %s %s" % (l,p,a)) for l,(p,a,e,nf) in systlines.items()]) |
Definition at line 147 of file interpolateCardsSimpleSMto4G.py.
Definition at line 98 of file interpolateCardsSimpleSMto4G.py.
list interpolateCardsSimpleSMto4G.keyline = [] |
Definition at line 90 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.mass = float(args[0]) |
Definition at line 32 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.mass1 = refmasses[0] |
Definition at line 33 of file interpolateCardsSimpleSMto4G.py.
Definition at line 89 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.ofile = ROOT.TFile( "%s/%g/SM4_%s%s.input.root" % (options.ddir,mass,XS,options.postfix) , "UPDATE" ) |
Definition at line 82 of file interpolateCardsSimpleSMto4G.py.
dictionary interpolateCardsSimpleSMto4G.paramSysts = {} |
Definition at line 92 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.parser = OptionParser(usage="usage: %prog [options] [refmass1] mass3 > datacard3.txt \nrun with --help to get list of options") |
Definition at line 12 of file interpolateCardsSimpleSMto4G.py.
list interpolateCardsSimpleSMto4G.path = os.environ['CMSSW_BASE'] |
Definition at line 54 of file interpolateCardsSimpleSMto4G.py.
list interpolateCardsSimpleSMto4G.pidline = [] |
Definition at line 138 of file interpolateCardsSimpleSMto4G.py.
Definition at line 56 of file interpolateCardsSimpleSMto4G.py.
Definition at line 103 of file interpolateCardsSimpleSMto4G.py.
list interpolateCardsSimpleSMto4G.refmasses = [ int(line) for line in open(options.ddir+"/"+options.refmasses,"r") ] |
Definition at line 29 of file interpolateCardsSimpleSMto4G.py.
list interpolateCardsSimpleSMto4G.signals = [] |
Definition at line 91 of file interpolateCardsSimpleSMto4G.py.
Definition at line 58 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.sysnamesSorted = systlines.keys() |
Definition at line 154 of file interpolateCardsSimpleSMto4G.py.
list interpolateCardsSimpleSMto4G.systline = [] |
Definition at line 158 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.xfile = open(options.ddir+"/%d/SM4_%s%s.txt" % (mass, X,options.postfix), "w") |
Definition at line 118 of file interpolateCardsSimpleSMto4G.py.
tuple interpolateCardsSimpleSMto4G.XS = X.replace("_shape","") |
Definition at line 80 of file interpolateCardsSimpleSMto4G.py.
dictionary interpolateCardsSimpleSMto4G.xsbr = { 'ggH':1.0, 'qqH':1.0 } |
Definition at line 42 of file interpolateCardsSimpleSMto4G.py.
dictionary interpolateCardsSimpleSMto4G.xsbr1 = { 'ggH':1.0, 'qqH':1.0 } |
Definition at line 41 of file interpolateCardsSimpleSMto4G.py.