5 for key, value
in weights.iteritems():
10 '''make names uniform wrt Component. 12 COLIN: messy... should I have several types of weight (base, data, mc)? 13 COLIN: need to add other weighting factors''' 17 def __init__(self, genNEvents, xSection, genEff,
18 intLumi = FBINV, addWeight=1):
20 if xSection
is not None:
25 if intLumi
is not None:
32 '''Return the weight''' 41 '''Set integrated luminosity.''' 42 self.dict[
'intLumi'] = lumi
46 return ' intLumi = %5.2f, addWeight = %3.2f' \
50 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)