6 for key, value
in six.iteritems(weights):
11 '''make names uniform wrt Component. 13 COLIN: messy... should I have several types of weight (base, data, mc)? 14 COLIN: need to add other weighting factors''' 18 def __init__(self, genNEvents, xSection, genEff,
19 intLumi = FBINV, addWeight=1):
21 if xSection
is not None:
26 if intLumi
is not None:
33 '''Return the weight''' 42 '''Set integrated luminosity.''' 43 self.dict[
'intLumi'] = lumi
47 return ' intLumi = %5.2f, addWeight = %3.2f' \
51 return ' genN = %d, xsec = %5.5f pb, genEff = %2.2f, intLumi = %5.2f, addWeight = %3.2f -> weight = %3.5f' \
def SetIntLumi(self, lumi)
def __init__(self, genNEvents, xSection, genEff, intLumi=FBINV, addWeight=1)
def printWeights(weights)