4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
8 EnableFilterMonitoring =
False
11 if not EnableFilterMonitoring
or not hasattr(filterAlg,
"Input"):
16 inputKeys = [
str(i)
for i
in filterAlg.Input]
18 monTool.HistPath=
"HLTFramework/Filters"
19 monTool.defineHistogram(
'name,stat;'+filterAlg.getName(), path=
'EXPERT', type=
'TH2I',
20 title=
'Input activity fraction;;presence',
21 xbins=len(inputKeys), xmin=0, xmax=len(inputKeys)+2, xlabels=[
'exec',
'anyvalid']+inputKeys,
22 ybins=2, ymin=-0.5, ymax=1.5, ylabels=[
'no',
'yes'] )
24 filterAlg.MonTool = monTool
29 monTool.defineHistogram(
'TIME_SinceEventStart', path=
'EXPERT', type=
'TH1F',
30 title=
'Time since beginning of event processing;time [ms]',
31 xbins=100, xmin=0, xmax=3.5e3 )
33 alg = CompFactory.TriggerSummaryAlg( name,
40 acc.addEventAlgo( CompFactory.ComboHypo(name) )