3from JetMonitoring.JetMonitoringConf
import JetKinematicHistos, HistosForJetSelection, LeadingJetsRelations, HIEfficiencyResponseHistos, HIJetUEMonitoring
258 if isinstance(selectType, str):
260 tool = jhm.tool(selectType)
261 if issubclass( tool.__class__ , HistosForJetSelection):
268 attSel = attributeHistoManager.addSelector(selectType)
270 if histoNameSuffix==
"" : histoNameSuffix = attSel.getName()
272 JetSelectorTool = attSel ,
273 HistoTitleSuffix =
' ('+selectType+
')',
274 HistoNameSuffix = histoNameSuffix)
279 print (
"ERROR can't build histo tool for a jet selection. Uknown or wrong selection request :",selectType , selTool)
282 if selectionName !=
"":
283 selTool = selTool.clone(selectionName)
285 interpretedTools = []
287 if isinstance(h,str):
289 interpretedTools.append(h)
291 selTool.HistoTools = interpretedTools
294 for k,v
in otherArgs.items():
295 setattr(selTool, k, v)