ATLAS Offline Software
Loading...
Searching...
No Matches
DecisionHandlingConfig.py
Go to the documentation of this file.
2# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3#
4from AthenaConfiguration.ComponentFactory import CompFactory
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
7
8
9def setupFilterMonitoring( flags, filterAlg ):
10 if not hasattr(filterAlg, "Input"):
11 return
12
13 monTool = GenericMonitoringTool(flags, 'MonTool',
14 HistPath="HLTFramework/Filters")
15
16 inputKeys = [str(i) for i in filterAlg.Input]
17 monTool.defineHistogram( 'name,stat;'+filterAlg.getName(), path='EXPERT', type='TH2I',
18 title='Input activity fraction;;presence',
19 xbins=len(inputKeys), xmin=0, xmax=len(inputKeys)+2, xlabels=['exec', 'anyvalid']+inputKeys,
20 ybins=2, ymin=-0.5, ymax=1.5, ylabels=['no', 'yes'] )
21
22 filterAlg.MonTool = monTool
23
24
25def TriggerSummaryAlg( flags, name, **kwargs ):
26 monTool = GenericMonitoringTool(flags, 'MonTool', HistPath='HLTFramework/'+name)
27 monTool.defineHistogram('TIME_SinceEventStart', path='EXPERT', type='TH1F',
28 title='Time since beginning of event processing;time [ms]',
29 xbins=100, xmin=0, xmax=3.5e3 )
30
31 alg = CompFactory.TriggerSummaryAlg( name,
32 MonTool = monTool,
33 **kwargs )
34 return alg
35
36
37def ComboHypoCfg( name ):
38 acc = ComponentAccumulator()
39 acc.addEventAlgo( CompFactory.ComboHypo(name) )
40 return acc
TriggerSummaryAlg(flags, name, **kwargs)