Skip to content

Commit d522d2d

Browse files
authored
Add timing information about algorihtm execution to config (#163)
1 parent c9e22ae commit d522d2d

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

StandardConfig/production/ILDReconstruction.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
PodioInput,
1313
PodioOutput,
1414
k4DataSvc,
15+
AuditorSvc,
16+
AlgTimingAuditor,
1517
)
1618
from Gaudi.Configuration import INFO
1719
from k4FWCore.parseArgs import parser
@@ -162,7 +164,6 @@ def get_compact_file_path(detector_model: str):
162164
geoSvc.EnableGeant4Geo = False
163165
svcList.append(geoSvc)
164166

165-
166167
CONSTANTS = {
167168
"CMSEnergy": str(reco_args.cmsEnergy),
168169
"BeamCalCalibrationFactor": str(reco_args.beamCalCalibFactor),
@@ -388,6 +389,16 @@ def create_reader(input_files):
388389
algList.append(MyLCIOOutputProcessor)
389390
algList.append(DSTOutput)
390391

391-
ApplicationMgr(
392+
393+
# Use Gaudi Auditor service to get timing information on algorithm execution
394+
auditorSvc = AuditorSvc()
395+
svcList.append(auditorSvc)
396+
auditorSvc.Auditors = [AlgTimingAuditor()]
397+
398+
app_mgr = ApplicationMgr(
392399
TopAlg=algList, EvtSel="NONE", EvtMax=3, ExtSvc=svcList, OutputLevel=INFO
393400
)
401+
402+
app_mgr.AuditAlgorithms = True
403+
app_mgr.AuditTools = True
404+
app_mgr.AuditServices = True

0 commit comments

Comments
 (0)