diff --git a/Trigger/TrigValidation/TrigUpgradeTest/CMakeLists.txt b/Trigger/TrigValidation/TrigUpgradeTest/CMakeLists.txt index 5124dc70f06a7332bb6bb64c66f45de08ce3851c..44f63c86ed92edc140c68115956b86d29038a8e6 100644 --- a/Trigger/TrigValidation/TrigUpgradeTest/CMakeLists.txt +++ b/Trigger/TrigValidation/TrigUpgradeTest/CMakeLists.txt @@ -143,3 +143,4 @@ atlas_add_test( l1sim atlas_install_joboptions( share/*.py ) atlas_install_python_modules( python/*.py ) +atlas_install_scripts( test/test* ) diff --git a/Trigger/TrigValidation/TrigUpgradeTest/share/egamma.withViews.py b/Trigger/TrigValidation/TrigUpgradeTest/share/egamma.withViews.py index d88312ec05add31239005872372b7db2e29b358a..c23a00502647ae2ff3a329801fd66f07b2042aad 100644 --- a/Trigger/TrigValidation/TrigUpgradeTest/share/egamma.withViews.py +++ b/Trigger/TrigValidation/TrigUpgradeTest/share/egamma.withViews.py @@ -294,6 +294,36 @@ print StreamESD.ItemList hltTop = seqOR( "hltTop", [ steps, mon, summary, StreamESD ] ) topSequence += hltTop +###### Begin Cost Monitoring block +## TODO: Express this as a ComponentAccumulator + +from AthenaCommon.AppMgr import ServiceMgr +from GaudiSvc.GaudiSvcConf import AuditorSvc +from TrigCostMonitorMT.TrigCostMonitorMTConf import TrigCostMTAuditor, TrigCostMTSvc + +# This collects and summarises all cost data from all threads +trigCostService = TrigCostMTSvc() +trigCostService.MonitorAll = True # During testing only +trigCostService.PrintTimes = True # During testing only +ServiceMgr += trigCostService + +# This causes Gaudi to ping the trigCostService before & after all algorithms +trigCostAuditor = TrigCostMTAuditor() +theAuditorSvc = ServiceMgr.AuditorSvc +theAuditorSvc += trigCostAuditor +theApp.AuditAlgorithms=True +ServiceMgr += AuditorSvc() + +# This triggers the L1 decoder to signal the start of processing, +# and the HLT summary alg to signal end of processing and handle the writing of data. +topSequence.L1DecoderTest.EnableCostMonitoring = True +summary.EnableCostMonitoring = True + +# Write out the data at the end +addTC("TrigCostContainer") + +###### End Cost Monitoring block + from AthenaCommon.AlgSequence import dumpSequence dumpSequence(topSequence)