ATLAS Offline Software
DecisionHandlingConfig.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 #
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
7 
8 
9 def 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 
25 def 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 
37 def ComboHypoCfg( name ):
38  acc = ComponentAccumulator()
39  acc.addEventAlgo( CompFactory.ComboHypo(name) )
40  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.DecisionHandlingConfig.TriggerSummaryAlg
def TriggerSummaryAlg(flags, name, **kwargs)
Definition: DecisionHandlingConfig.py:25
python.DecisionHandlingConfig.setupFilterMonitoring
def setupFilterMonitoring(flags, filterAlg)
Definition: DecisionHandlingConfig.py:9
GenericMonitoringTool
Definition: GenericMonitoringTool.py:1
str
Definition: BTagTrackIpAccessor.cxx:11
python.DecisionHandlingConfig.ComboHypoCfg
def ComboHypoCfg(name)
Definition: DecisionHandlingConfig.py:37