1 from __future__
import print_function
7 for key, value
in six.iteritems(weights):
12 '''make names uniform wrt Component. 14 COLIN: messy... should I have several types of weight (base, data, mc)? 15 COLIN: need to add other weighting factors''' 19 def __init__(self, genNEvents, xSection, genEff,
20 intLumi = FBINV, addWeight=1):
22 if xSection
is not None:
27 if intLumi
is not None:
34 '''Return the weight''' 43 '''Set integrated luminosity.''' 44 self.dict[
'intLumi'] = lumi
48 return ' intLumi = %5.2f, addWeight = %3.2f' \
52 return ' genN = %d, xsec = %5.5f pb, genEff = %2.2f, intLumi = %5.2f, addWeight = %3.2f -> weight = %3.5f' \
S & print(S &os, JobReport::InputFile const &f)
def SetIntLumi(self, lumi)
def __init__(self, genNEvents, xSection, genEff, intLumi=FBINV, addWeight=1)
def printWeights(weights)