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 | ) |
Definition at line 22 of file LHEWeightAnalyzer.py.
References core.Analyzer.Analyzer.mchandles.
def gen.LHEWeightAnalyzer.LHEWeightAnalyzer.process | ( | self, | |
event | |||
) |
Definition at line 33 of file LHEWeightAnalyzer.py.
References createfilelist.int, core.Analyzer.Analyzer.mchandles, core.Analyzer.Analyzer.readCollections(), harvestTrackValidationPlots.str, and create_public_lumi_plots.weights.
Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().