3from JetMonitoring.JetMonitoringConf
import JetKinematicHistos, HistosForJetSelection, LeadingJetsRelations, EfficiencyResponseHistos
245 if isinstance(selectType, str):
247 tool = jhm.tool(selectType)
248 if issubclass( tool.__class__ , HistosForJetSelection):
255 attSel = attributeHistoManager.addSelector(selectType)
257 if histoNameSuffix==
"" : histoNameSuffix = attSel.getName()
259 JetSelectorTool = attSel ,
260 HistoTitleSuffix =
' ('+selectType+
')',
261 HistoNameSuffix = histoNameSuffix)
266 print (
"ERROR can't build histo tool for a jet selection. Uknown or wrong selection request :",selectType , selTool)
269 if selectionName !=
"":
270 selTool = selTool.clone(selectionName)
272 interpretedTools = []
274 if isinstance(h,str):
276 interpretedTools.append(h)
278 selTool.HistoTools = interpretedTools
281 for k,v
in otherArgs.items():
282 setattr(selTool, k, v)