ATLAS Offline Software
Loading...
Searching...
No Matches
MonitoredConfig Namespace Reference

Functions

 MonitoredCfg (flags)

Variables

 flags = initConfigFlags()
 MaxEvents
 cfg = MainServicesCfg(flags)

Function Documentation

◆ MonitoredCfg()

MonitoredConfig.MonitoredCfg ( flags)

Definition at line 6 of file MonitoredConfig.py.

6def MonitoredCfg(flags):
7 result = ComponentAccumulator()
8 monAlg = CompFactory.MonitoredAlg('MonAlg')
9
10 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
11 monTool = GenericMonitoringTool(flags, 'MonTool')
12
13 #monTool.HistPath = 'MyGroup/MySubDir' # default is the parent name of MonTool
14 monTool.defineHistogram( 'nTracks', path='EXPERT', type='TH1F', title='Counts',
15 xbins=10, xmin=0, xmax=10 )
16 monTool.defineHistogram( 'eta', path='EXPERT', type='TH1F', title='#eta;;Entries',
17 xbins=30, xmin=-3, xmax=3 )
18 monTool.defineHistogram( 'AbsPhi', path='EXPERT', type='TH1F', title='|#phi|;;Entries',
19 xbins=10, xmin=0, xmax=3.15 )
20 monTool.defineHistogram( 'eta,AbsPhi', path='EXPERT', type='TH2F', title='#eta vs #phi',
21 xbins=15, xmin=-3, xmax=3, ybins=15, ymin=0, ymax=3.15 )
22 monTool.defineHistogram( 'TIME_execute', path='EXPERT', type='TH1F', title='Time for execute',
23 xbins=100, xmin=0, xmax=100 )
24
25 monAlg.MonTool = monTool
26
27 histSvc = CompFactory.THistSvc(Output = ["EXPERT DATAFILE='expert-monitoring.root', OPT='RECREATE'"])
28
29 result.addEventAlgo(monAlg)
30 result.addService(histSvc)
31 return result
32
33

Variable Documentation

◆ cfg

MonitoredConfig.cfg = MainServicesCfg(flags)

Definition at line 39 of file MonitoredConfig.py.

◆ flags

MonitoredConfig.flags = initConfigFlags()

Definition at line 37 of file MonitoredConfig.py.

◆ MaxEvents

MonitoredConfig.MaxEvents

Definition at line 38 of file MonitoredConfig.py.