Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
HiggsAnalysis
CombinedLimit
data
hww
Namespaces
|
Functions
|
Variables
errorMatrix2Lands_multiChannel.py File Reference
Go to the source code of this file.
Namespaces
errorMatrix2Lands_multiChannel
Functions
def
errorMatrix2Lands_multiChannel.iddify
Variables
list
errorMatrix2Lands_multiChannel.alphas
= [ (D['exp'][
i
]/(realN)
if
X
else 0) for
i
,
X
in enumerate(
N
) ]
dictionary
errorMatrix2Lands_multiChannel.data
= {}
tuple
errorMatrix2Lands_multiChannel.file
= open(args[0], "r")
string
errorMatrix2Lands_multiChannel.filename
= "%s-mH%s.txt"
tuple
errorMatrix2Lands_multiChannel.fout
= open(filename, "w")
list
errorMatrix2Lands_multiChannel.hasrate
= [0 for p in range(nproc)]
tuple
errorMatrix2Lands_multiChannel.header
= file.readline()
tuple
errorMatrix2Lands_multiChannel.id
= iddify(D['nuisname'][inuis])
tuple
errorMatrix2Lands_multiChannel.isStat
= (D['nuisname'][inuis] == "Statistics in MC
or
control sample")
tuple
errorMatrix2Lands_multiChannel.l
= re.sub("--+","0",l)
list
errorMatrix2Lands_multiChannel.line
= []
tuple
errorMatrix2Lands_multiChannel.m
=
re.match
(r"(\d+) Yield\s+((\d+\.?\d*(E[+\-]\d+)?\s+)+)", l)
tuple
errorMatrix2Lands_multiChannel.mh
= m.group(1)
tuple
errorMatrix2Lands_multiChannel.mhs
= data.keys()
string
errorMatrix2Lands_multiChannel.name
= "%-3d"
tuple
errorMatrix2Lands_multiChannel.nN
= sum([1 for
X
in
N
if
X
> 0])
people filling error matrix uses the naive 1/sqrt(N) errors
More...
tuple
errorMatrix2Lands_multiChannel.nproc
= len(processnames)
list
errorMatrix2Lands_multiChannel.nuisline
= []
string
errorMatrix2Lands_multiChannel.pad
= " "
tuple
errorMatrix2Lands_multiChannel.parser
= OptionParser()
tuple
errorMatrix2Lands_multiChannel.processnames
=
header.split
()
tuple
errorMatrix2Lands_multiChannel.realN
= int(floor(sumN/nN+1.5))
tuple
errorMatrix2Lands_multiChannel.start
=
i
*(nproc+1)
tuple
errorMatrix2Lands_multiChannel.sumN
= sum([1.0/(
X
*
X
) for
X
in
N
if
X
> 0])
list
errorMatrix2Lands_multiChannel.syseff
= [float(
x
) for
x
in m.group(2).
split
()]
tuple
errorMatrix2Lands_multiChannel.sysname
= m.group(1)
dictionary
errorMatrix2Lands_multiChannel.used_syst_labels
= {}
list
errorMatrix2Lands_multiChannel.yields
= [float(
x
) for
x
in m.group(2).
split
()]
Generated for CMSSW Reference Manual by
1.8.5