ATLAS Offline Software
Loading...
Searching...
No Matches
HLTSeedingMonitoring.py
Go to the documentation of this file.
2# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3#
4from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
5import math
6
7
8def CTPUnpackingMonitoring(flags, maxItems, maxChains):
9 tool = GenericMonitoringTool(flags, 'MonTool')
10 tool.HistPath="HLTFramework/HLTSeeding"
11 tool.defineHistogram('TAVItems', path='EXPERT', type='TH1F', title='Number of active L1 TAV items;N Items;N Events',
12 xbins=maxItems, xmin=0, xmax=maxItems)
13 tool.defineHistogram('Chains', path='EXPERT', type='TH1F', title='Number of activated Chains;N Chains;N Events',
14 xbins=(maxChains//4 if maxChains>100 else maxChains), xmin=0, xmax=maxChains)
15 return tool
16
17
18def RoIsUnpackingMonitoring(flags, prefix, maxCount, maxEta=3., phiOffset=0.,etaOffset=0.):
19 tool = GenericMonitoringTool(flags, 'MonTool')
20 tool.HistPath = f'HLTFramework/HLTSeeding/RoIs_{prefix}'
21 tool.defineHistogram('count', path='EXPERT', type='TH1F', title=f'Number of {prefix} RoIs;N RoIs;N Events',
22 xbins=maxCount, xmin=0, xmax=maxCount)
23 tool.defineHistogram('eta', path='EXPERT', type='TH1F', title=f'{prefix} RoIs eta;eta;N RoIs',
24 xbins=int(20*maxEta), xmin=-(maxEta-etaOffset), xmax=(maxEta+etaOffset))
25 tool.defineHistogram('phi', path='EXPERT', type='TH1F', title=f'{prefix} RoIs phi;phi;N RoIs',
26 xbins=64, xmin=-(math.pi-phiOffset), xmax=(math.pi+phiOffset))
27 tool.defineHistogram('eta,phi', path='EXPERT', type='TH2F', title=f'{prefix} RoIs eta-phi;eta;phi;N RoIs',
28 xbins=int(20*maxEta), xmin=-(maxEta-etaOffset), xmax=(maxEta+etaOffset),
29 ybins=64, ymin=-(math.pi-phiOffset), ymax=(math.pi+phiOffset))
30
31 return tool
32
33
35 tool = GenericMonitoringTool(flags, 'MonTool')
36 tool.HistPath="HLTFramework/HLTSeeding"
37 tool.defineHistogram('LB,HLTPSK', path='EXPERT', type='TH2I', opt='kAddBinsDynamically',
38 title='HLT prescale key used in LB;Lumiblock;HLTPSK',
39 xbins=100, xmin=0, xmax=100, ybins=5, ymin=0, ymax=5)
40 tool.defineHistogram('Random', path='EXPERT', type='TH1F',
41 title='Random number distribution;random number',
42 xbins=100, xmin=0, xmax=1)
43 return tool
44
45
47 tool = GenericMonitoringTool(flags, 'MonTool')
48 tool.HistPath="HLTFramework/HLTSeeding/L1DataConsistencyChecker"
49
50 tool.defineHistogram('TIME_consistencyCheck', path='EXPERT', type='TH1F',
51 title='Time of consistencyCheck() calls;Time [ms];N calls',
52 xbins=100, xmin=0, xmax=50)
53 tool.defineHistogram('MissingTOBs', path='EXPERT', type='TH1F',
54 title='L1 thresholds with missing TOBs;Threshold name;Events with missing TOBs',
55 xbins=10, xmin=0, xmax=10)
56 tool.defineHistogram('MissingTOBsIncludingOverflow', path='EXPERT', type='TH1F',
57 title='L1 thresholds with missing TOBs (incl. overflow);Threshold name;Events with missing TOBs',
58 xbins=10, xmin=0, xmax=10)
59 tool.defineHistogram('ThrName,CtpCount', path='EXPERT', type='TH2F',
60 title='Max threshold multiplicity accepted by CTP;Threshold name;Multiplicity',
61 xbins=50, xmin=0, xmax=50, ybins=20, ymin=0, ymax=20)
62 tool.defineHistogram('ThrName,TobCount', path='EXPERT', type='TH2F',
63 title='Number of TOBs passing thresholds;Threshold name;Number of TOBs',
64 xbins=50, xmin=0, xmax=50, ybins=200, ymin=0, ymax=200)
65 tool.defineHistogram('ThrName,TobMinusCtpCount', path='EXPERT', type='TH2F',
66 title='Diff. between N TOBs and CTP multiplicity;Threshold name;N TOBs - CTP multiplicity',
67 xbins=50, xmin=0, xmax=50, ybins=250, ymin=-50, ymax=200)
68 return tool
CTPUnpackingMonitoring(flags, maxItems, maxChains)
RoIsUnpackingMonitoring(flags, prefix, maxCount, maxEta=3., phiOffset=0., etaOffset=0.)