Пример #1
0
rec.doFileMetaData = True

# Output log setting
OutputLevel = INFO

# main jobOption - must always be included
include("RecExCommon/RecExCommon_topOptions.py")

# Must do tool configuration here for DB access to be autoconfigured from RecExCommon
from LumiBlockComps.LuminosityToolDefault import LuminosityToolDefault
lumiTool = LuminosityToolDefault()
lumiTool.OutputLevel = DEBUG
ToolSvc += lumiTool

from LumiBlockComps.TrigLivefractionToolDefault import TrigLivefractionToolDefault
liveTool = TrigLivefractionToolDefault()
liveTool.OutputLevel = DEBUG
ToolSvc += liveTool

from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

## add an AthenaMonManager algorithm to the list of algorithms to be ran
from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
topSequence += AthenaMonManager("AthMonTestMan")

from AthenaCommon.AppMgr import ServiceMgr as svcMgr
svcMgr.MessageSvc.OutputLevel = INFO
#svcMgr.MessageSvc.OutputLevel = WARNING
#svcMgr.MessageSvc.OutputLevel = DEBUG
Пример #2
0
        if not hasattr(ToolSvc, "LuminosityTool"):
            if athenaCommonFlags.isOnline:
                local_logger.debug(
                    "luminosity tool not found, importing online version")
                from LumiBlockComps.LuminosityToolDefault import LuminosityToolOnline
                ToolSvc += LuminosityToolOnline()
            else:
                local_logger.debug(
                    "luminosity tool not found, importing offline version")
                from LumiBlockComps.LuminosityToolDefault import LuminosityToolDefault
                ToolSvc += LuminosityToolDefault()

        if not hasattr(ToolSvc, "TrigLivefractionTool"):
            local_logger.debug("live fraction tool not found, importing")
            from LumiBlockComps.TrigLivefractionToolDefault import TrigLivefractionToolDefault
            ToolSvc += TrigLivefractionToolDefault()

    include("AthenaMonitoring/AtlasReadyFilterTool_jobOptions.py")
    include("AthenaMonitoring/FilledBunchFilterTool_jobOptions.py")

    # Ugly hack to get list of tools in job at this point
    # We will compare the list at the end of the script to get the monitoring
    # tools
    monToolSet_before = set(ToolSvc.getChildren())

    #---------------------------#
    # Inner detector monitoring #
    #---------------------------#
    if DQMonFlags.doPixelMon() or DQMonFlags.doSCTMon() or DQMonFlags.doTRTMon() or \
          DQMonFlags.doInDetGlobalMon() or DQMonFlags.doInDetAlignMon():
        try:
rec.doFileMetaData = True

# Output log setting
OutputLevel = INFO

# main jobOption - must always be included
include ("RecExCommon/RecExCommon_topOptions.py")

# Must do tool configuration here for DB access to be autoconfigured from RecExCommon
from LumiBlockComps.LuminosityToolDefault import LuminosityToolDefault
lumiTool = LuminosityToolDefault()
lumiTool.OutputLevel = DEBUG
ToolSvc += lumiTool

from LumiBlockComps.TrigLivefractionToolDefault import TrigLivefractionToolDefault
liveTool = TrigLivefractionToolDefault()
liveTool.OutputLevel = DEBUG
ToolSvc += liveTool
        
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

## add an AthenaMonManager algorithm to the list of algorithms to be ran
from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
topSequence += AthenaMonManager( "AthMonTestMan" )

from AthenaCommon.AppMgr import ServiceMgr as svcMgr
svcMgr.MessageSvc.OutputLevel = INFO
#svcMgr.MessageSvc.OutputLevel = WARNING
#svcMgr.MessageSvc.OutputLevel = DEBUG