3from JetMonitoring.JetMonitoringConf
import JetKinematicHistos, HistosForJetSelection, LeadingJetsRelations, EfficiencyResponseHistos
242 if isinstance(selectType, str):
244 tool = jhm.tool(selectType)
245 if issubclass( tool.__class__ , HistosForJetSelection):
252 attSel = attributeHistoManager.addSelector(selectType)
254 if histoNameSuffix==
"" : histoNameSuffix = attSel.getName()
256 JetSelectorTool = attSel ,
257 HistoTitleSuffix =
' ('+selectType+
')',
258 HistoNameSuffix = histoNameSuffix)
263 print (
"ERROR can't build histo tool for a jet selection. Uknown or wrong selection request :",selectType , selTool)
266 if selectionName !=
"":
267 selTool = selTool.clone(selectionName)
269 interpretedTools = []
271 if isinstance(h,str):
273 interpretedTools.append(h)
275 selTool.HistoTools = interpretedTools
278 for k,v
in otherArgs.items():
279 setattr(selTool, k, v)