From 196c2529d601e5eede17327fe8ae9d98344bdd09 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Mon, 28 Apr 2025 14:58:46 +0200 Subject: [PATCH] Add timing information about algorihtm execution to config --- StandardConfig/production/ILDReconstruction.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/StandardConfig/production/ILDReconstruction.py b/StandardConfig/production/ILDReconstruction.py index 828dc22b..af76a5e5 100644 --- a/StandardConfig/production/ILDReconstruction.py +++ b/StandardConfig/production/ILDReconstruction.py @@ -12,6 +12,8 @@ PodioInput, PodioOutput, k4DataSvc, + AuditorSvc, + AlgTimingAuditor, ) from Gaudi.Configuration import INFO from k4FWCore.parseArgs import parser @@ -162,7 +164,6 @@ def get_compact_file_path(detector_model: str): geoSvc.EnableGeant4Geo = False svcList.append(geoSvc) - CONSTANTS = { "CMSEnergy": str(reco_args.cmsEnergy), "BeamCalCalibrationFactor": str(reco_args.beamCalCalibFactor), @@ -388,6 +389,16 @@ def create_reader(input_files): algList.append(MyLCIOOutputProcessor) algList.append(DSTOutput) -ApplicationMgr( + +# Use Gaudi Auditor service to get timing information on algorithm execution +auditorSvc = AuditorSvc() +svcList.append(auditorSvc) +auditorSvc.Auditors = [AlgTimingAuditor()] + +app_mgr = ApplicationMgr( TopAlg=algList, EvtSel="NONE", EvtMax=3, ExtSvc=svcList, OutputLevel=INFO ) + +app_mgr.AuditAlgorithms = True +app_mgr.AuditTools = True +app_mgr.AuditServices = True