Skip to content
Snippets Groups Projects
Commit c862a1d1 authored by Frank Winklmeier's avatar Frank Winklmeier Committed by Melissa Yexley
Browse files

AthExMonitored: delete legacy example job options

parent 5baa1094
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 20022020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( AthExMonitored )
......@@ -10,5 +10,4 @@ atlas_add_component( AthExMonitored
LINK_LIBRARIES GaudiKernel AthenaBaseComps AthenaMonitoringKernelLib)
# Install files from the package:
atlas_install_joboptions( share/*.py )
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
from AthenaCommon.AppMgr import theApp
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon.AlgSequence import AlgSequence
from AthenaConfiguration.AllConfigFlags import ConfigFlags
job = AlgSequence()
from AthExMonitored.AthExMonitoredConf import MonitoredAlg
job += MonitoredAlg('MonAlg')
from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
monTool = GenericMonitoringTool(ConfigFlags, 'MonTool')
#monTool.HistPath = 'MyGroup/MySubDir' # default is the parent name of MonTool
monTool.defineHistogram( 'nTracks', path='EXPERT', type='TH1F', title='Counts',
xbins=10, xmin=0, xmax=10 )
monTool.defineHistogram( 'eta', path='EXPERT', type='TH1F', title='#eta;;Entries',
xbins=30, xmin=-3, xmax=3 )
monTool.defineHistogram( 'AbsPhi', path='EXPERT', type='TH1F', title='|#phi|;;Entries',
xbins=10, xmin=0, xmax=3.15 )
monTool.defineHistogram( 'eta,AbsPhi', path='EXPERT', type='TH2F', title='#eta vs #phi',
xbins=15, xmin=-3, xmax=3, ybins=15, ymin=0, ymax=3.15 )
monTool.defineHistogram( 'TIME_execute', path='EXPERT', type='TH1F', title='Time for execute',
xbins=100, xmin=0, xmax=100 )
job.MonAlg.MonTool = monTool
from GaudiSvc.GaudiSvcConf import THistSvc
svcMgr += THistSvc(Output = ["EXPERT DATAFILE='expert-monitoring.root', OPT='RECREATE'"])
theApp.EvtMax = 10
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment