Public Member Functions | |
def | __init__ (self, cfg_ana, cfg_comp, looperName) |
def | beginLoop (self, setup) |
def | declareHandles (self) |
def | process (self, event) |
Read the WeightsInfo objects of the LHE branch and store them in event.LHE_weights list. If the WeightsInfo.id is a string, replace it with an integer. So far the only allowed string format is "mg_reweight_X", which gets stored as str(10000+int(X)) If w.id is an unknown string or anything but a string or int, a RuntimeError is raised.
Definition at line 7 of file LHEWeightAnalyzer.py.
def gen.LHEWeightAnalyzer.LHEWeightAnalyzer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 19 of file LHEWeightAnalyzer.py.
def gen.LHEWeightAnalyzer.LHEWeightAnalyzer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 30 of file LHEWeightAnalyzer.py.
def gen.LHEWeightAnalyzer.LHEWeightAnalyzer.declareHandles | ( | self | ) |
def gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process | ( | self, | |
event | |||
) |
Definition at line 33 of file LHEWeightAnalyzer.py.
References analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, createfilelist.int, core.Analyzer.Analyzer.mchandles, core.Analyzer.Analyzer.readCollections(), str, and HLT_2018_cff.weights.