CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions | Variables
interpolateCardsSimpleSMto4G.py File Reference

Go to the source code of this file.

Namespaces

 interpolateCardsSimpleSMto4G
 

Functions

def interpolateCardsSimpleSMto4G.file2map
 

Variables

tuple interpolateCardsSimpleSMto4G.br = file2map(path+"YR-BR3.txt")
 
string interpolateCardsSimpleSMto4G.cfmt = "%-"
 
tuple interpolateCardsSimpleSMto4G.chmax = max([max(len(p),len(c)) for p,c,x in shapeLines])
 
tuple interpolateCardsSimpleSMto4G.cmax = max([cmax]+[len(l) for l in obskeyline]+[len(x) for x in obsline])
 
tuple interpolateCardsSimpleSMto4G.DC1 = parseCard(open(file1,"r"), options)
 
list interpolateCardsSimpleSMto4G.eff = rate/xsbr1[p]
 
string interpolateCardsSimpleSMto4G.file1 = options.ddir+"/%d/%s.txt"
 
tuple interpolateCardsSimpleSMto4G.ggXS = file2map(path+"YR-XS-ggH.txt")
 
tuple interpolateCardsSimpleSMto4G.histo = ofile.Get("histo_%s" % p)
 
tuple interpolateCardsSimpleSMto4G.hmax = max([10] + [len("%-12s %s %s" % (l,p,a)) for l,(p,a,e,nf) in systlines.items()])
 
list interpolateCardsSimpleSMto4G.inflated = errline[b]
 
list interpolateCardsSimpleSMto4G.keyline = []
 
tuple interpolateCardsSimpleSMto4G.mass = float(args[0])
 
list interpolateCardsSimpleSMto4G.mass1 = refmasses[0]
 
list interpolateCardsSimpleSMto4G.obsline = [str(x) for x in DC1.obs.values()]
 
tuple interpolateCardsSimpleSMto4G.ofile = ROOT.TFile( "%s/%g/SM4_%s%s.input.root" % (options.ddir,mass,XS,options.postfix) , "UPDATE" )
 
dictionary interpolateCardsSimpleSMto4G.paramSysts = {}
 
tuple interpolateCardsSimpleSMto4G.parser = OptionParser(usage="usage: %prog [options] [refmass1] mass3 > datacard3.txt \nrun with --help to get list of options")
 
list interpolateCardsSimpleSMto4G.path = os.environ['CMSSW_BASE']
 
list interpolateCardsSimpleSMto4G.pidline = []
 
tuple interpolateCardsSimpleSMto4G.qqXS = file2map(path+"YR-XS-vbfH.txt")
 
list interpolateCardsSimpleSMto4G.rate = DC1.exp[b]
 
list interpolateCardsSimpleSMto4G.refmasses = [ int(line) for line in open(options.ddir+"/"+options.refmasses,"r") ]
 
list interpolateCardsSimpleSMto4G.signals = []
 
tuple interpolateCardsSimpleSMto4G.sm4 = file2map(path+"SM4-600GeV.txt")
 
tuple interpolateCardsSimpleSMto4G.sysnamesSorted = systlines.keys()
 
list interpolateCardsSimpleSMto4G.systline = []
 
tuple interpolateCardsSimpleSMto4G.xfile = open(options.ddir+"/%d/SM4_%s%s.txt" % (mass, X,options.postfix), "w")
 
tuple interpolateCardsSimpleSMto4G.XS = X.replace("_shape","")
 
dictionary interpolateCardsSimpleSMto4G.xsbr = { 'ggH':1.0, 'qqH':1.0 }
 
dictionary interpolateCardsSimpleSMto4G.xsbr1 = { 'ggH':1.0, 'qqH':1.0 }