8 Component Accumulator based configuration of Trigger Cost Service and associated Auditor
10 from AthenaConfiguration.ComponentFactory
import CompFactory
11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from AthenaCommon.Logging
import logging
13 log = logging.getLogger(
'TrigCostMonitorSetup')
17 if flags.Trigger.CostMonitoring.doCostMonitoring:
18 costSvc = CompFactory.TrigCostSvc(
19 MonitorAllEvents = flags.Trigger.CostMonitoring.monitorAllEvents,
22 acc.addService(costSvc)
23 acc.addAuditor(CompFactory.TrigCostAuditor())
24 acc.setAppProperty(
"AuditAlgorithms",
True)
26 costSupervisorAlg = CompFactory.TrigCostSupervisorAlg()
27 costSupervisorAlg.TrigCostSvc = costSvc
28 acc.addEventAlgo(costSupervisorAlg)
30 log.info(
'Enabling online trigger cost monitoring')
32 log.info(
'Will NOT schedule online trigger cost monitoring')