Example #1
0
#-----------------------
# And some final options
#-----------------------

if 'doPerfMon' in dir():
    if doPerfMon:

        from GaudiSvc.GaudiSvcConf import AuditorSvc
        theAuditorSvc = svcMgr.AuditorSvc
        theApp.AuditAlgorithms = True
        theApp.AuditServices = True
        theApp.AuditTools = True

        from AthenaCommon import CfgMgr
        theAuditorSvc += CfgMgr.AlgErrorAuditor()
        theAuditorSvc += CfgMgr.ChronoAuditor()
        theAuditorSvc += CfgMgr.NameAuditor()
        theAuditorSvc += CfgMgr.MemStatAuditor()
        from PerfMonComps.PerfMonFlags import jobproperties
        jobproperties.PerfMonFlags.OutputFile = "perfmon_ntuple.root"
        jobproperties.PerfMonFlags.doMonitoring = True
        jobproperties.PerfMonFlags.doFastMon = False
        include("PerfMonComps/PerfMonSvc_jobOptions.py")

ByteStreamInputSvc.MaxBadEvents = 10000
# ByteStreamInputSvc.DumpFlag = TRUE
# from AthenaCommon.AppMgr import ToolSvc
# ToolSvc.TileROD_Decoder.VerboseOutput = TRUE

#---  Output printout level -----------------------------------
Example #2
0
# make IOV calls in reproducible order
Service("AthenaSealSvc").OutputLevel = WARNING
Service('IOVSvc').sortKeys = True

############
# Auditors

theAuditorSvc = svcMgr.AuditorSvc
theApp.AuditAlgorithms = True
theApp.AuditServices = True
theApp.AuditTools = True

from AthenaCommon import CfgMgr

# change to true to abort on ER ROR
theAuditorSvc += CfgMgr.AlgErrorAuditor(Throw=False)
try:
    if rec.abortOnErrorMessage():
        CfgMgr.AlgErrorAuditor(Throw=True)
except Exception:
    logRecoUtils.warning('Could not set abort on Error Message')
    pass

theAuditorSvc += CfgMgr.ChronoAuditor()

if rec.doNameAuditor():
    # CfgMgr is the recommended accessor to configurable
    from AthenaCommon import CfgMgr
    theAuditorSvc += CfgMgr.NameAuditor()

if rec.doDetailedAuditor():