8 monAlg = CompFactory.MonitoredAlg(
'MonAlg')
10 from AthenaMonitoringKernel.GenericMonitoringTool
import GenericMonitoringTool
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 )
25 monAlg.MonTool = monTool
27 histSvc = CompFactory.THistSvc(Output = [
"EXPERT DATAFILE='expert-monitoring.root', OPT='RECREATE'"])
29 result.addEventAlgo(monAlg)
30 result.addService(histSvc)