38def L1CorrelationMonitoringCfg(flags):
39 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
41
42 maxBC = 6
43 nbin = 2*maxBC + 1
44
45 mon.defineHistogram(
46 'BeforeAfterFlag',
47 path = 'EXPERT',
48 type = 'TH1F',
49 title = 'L1 correlation; delta BC (relative to L1A); Events',
50 xbins = nbin,
51 xmin = -maxBC-0.5,
52 xmax = maxBC+0.5)
53
54 mon.defineHistogram(
55 'BeforeAfterFlag,otherType',
56 path = 'EXPERT',
57 type = 'TH2F',
58 title = 'delta BC vs Other-BC type; delta BC (relative to L1A); Other-BC type',
59 xbins = nbin, xmin = -maxBC-0.5, xmax = maxBC+0.5,
60 ybins = 8, ymin = -0.5, ymax = 7.5)
61
62
63 mon.defineHistogram(
64 'l1Accept,otherType',
65 path = 'EXPERT',
66 type = 'TH2F',
67 title = 'Type matrix ; L1A type ; Other-BC type',
68 xbins = 8, xmin = -0.5, xmax = 7.5,
69 ybins = 8, ymin = -0.5, ymax = 7.5)
70
71 mon.defineHistogram(
72 'BeforeAfterFlag,l1Accept',
73 path = 'EXPERT',
74 type = 'TH2F',
75 title = 'delta BC vs L1A type; delta BC (relative); L1A type',
76 xbins = nbin, xmin = -maxBC-0.5, xmax = maxBC+0.5,
77 ybins = 8, ymin = -0.5, ymax = 7.5)
78
79
80 mon.defineHistogram(
81 'BeforeOffset',
82 path = 'EXPERT',
83 type = 'TH1F',
84 title = 'Offset of earlier BC trigger relative to L1A; delta BC before; Events',
85 xbins = maxBC,
86 xmin = -0.5,
87 xmax = maxBC + 0.5
88 )
89
90
91 mon.defineHistogram(
92 'AfterOffset',
93 path = 'EXPERT',
94 type = 'TH1F',
95 title = 'Offset of later BC trigger relative to L1A; delta BC after; Events',
96 xbins = maxBC,
97 xmin = -0.5,
98 xmax = maxBC + 0.5
99 )
100
101
102 mon.defineHistogram(
103 'OtherTypeBefore',
104 path = 'EXPERT',
105 type = 'TH1F',
106 title = 'Trigger type of the earlier neighbor BC; Type code; Events',
107 xbins = 8,
108 xmin = -0.5,
109 xmax = 7.5
110 )
111
112
113 mon.defineHistogram(
114 'OtherTypeAfter',
115 path = 'EXPERT',
116 type = 'TH1F',
117 title = 'Trigger type of the later neighbor BC; Type code; Events',
118 xbins = 8,
119 xmin = -0.5,
120 xmax = 7.5
121 )
122
123
124 mon.defineHistogram(
125 'OtherTypeBefore,OtherTypeAfter',
126 path = 'EXPERT',
127 type = 'TH2F',
128 title = 'Trigger type before vs after; Earlier BC type; Later BC type',
129 xbins = 8, xmin = -0.5, xmax = 7.5,
130 ybins = 8, ymin = -0.5, ymax = 7.5
131 )
132
133
134 mon.defineHistogram(
135 'BeforeOffset,AfterOffset',
136 path = 'EXPERT',
137 type = 'TH2F',
138 title = 'Offset before vs after; delta BC before; delta BC after',
139 xbins = maxBC, xmin = -0.5, xmax = maxBC + 0.5,
140 ybins = maxBC, ymin = -0.5, ymax = maxBC + 0.5
141 )
142
143
144 mon.defineHistogram(
145 'DeltaBCAll,CTPIDAll;MistimeMap_TBP',
146 path='EXPERT', type='TH2F',
147 title='TBP occupancy vs delta BC and CTPID;delta BC (relative to L1A);CTPID',
148 xbins=2*maxBC+1, xmin=-maxBC-0.5, xmax=maxBC+0.5,
149 ybins=512, ymin=-0.5, ymax=511.5
150 )
151
152
153 mon.defineHistogram(
154 'DeltaBCAll_TAP,CTPIDAll_TAP;MistimeMap_TAP',
155 path='EXPERT', type='TH2F',
156 title='TAP occupancy vs delta BC and CTPID;delta BC (relative to L1A);CTPID',
157 xbins=2*maxBC+1, xmin=-maxBC-0.5, xmax=maxBC+0.5,
158 ybins=512, ymin=-0.5, ymax=511.5
159 )
160
161
162 mon.defineHistogram(
163 'CTPID0tbp_m2,CTPIDtbp_m2;PairMap_TBP_DeltaBCm2',
164 path='EXPERT', type='TH2F',
165 title='TBP: CTPID at BC 0 vs CTPID at BC=-2;CTPID at BC=0;CTPID at BC=-2',
166 xbins=512, xmin=-0.5, xmax=511.5,
167 ybins=512, ymin=-0.5, ymax=511.5
168 )
169 mon.defineHistogram(
170 'CTPID0tbp_m1,CTPIDtbp_m1;PairMap_TBP_DeltaBCm1',
171 path='EXPERT', type='TH2F',
172 title='TBP: CTPID at BC 0 vs CTPID at BC=-1;CTPID at BC=0;CTPID at BC=-1',
173 xbins=512, xmin=-0.5, xmax=511.5,
174 ybins=512, ymin=-0.5, ymax=511.5
175 )
176 mon.defineHistogram(
177 'CTPID0tbp_p1,CTPIDtbp_p1;PairMap_TBP_DeltaBCp1',
178 path='EXPERT', type='TH2F',
179 title='TBP: CTPID at BC 0 vs CTPID at BC=+1;CTPID at BC=0;CTPID at BC=+1',
180 xbins=512, xmin=-0.5, xmax=511.5,
181 ybins=512, ymin=-0.5, ymax=511.5
182 )
183 mon.defineHistogram(
184 'CTPID0tbp_p2,CTPIDtbp_p2;PairMap_TBP_DeltaBCp2',
185 path='EXPERT', type='TH2F',
186 title='TBP: CTPID at BC 0 vs CTPID at BC=+2;CTPID at BC=0;CTPID at BC=+2',
187 xbins=512, xmin=-0.5, xmax=511.5,
188 ybins=512, ymin=-0.5, ymax=511.5
189 )
190
191 mon.defineHistogram(
192 'CTPID0tap_m2,CTPIDtap_m2;PairMap_TAP_DeltaBCm2',
193 path='EXPERT', type='TH2F',
194 title='TAP: CTPID at BC 0 vs CTPID at BC=-2;CTPID at BC=0;CTPID at BC=-2',
195 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
196 )
197 mon.defineHistogram(
198 'CTPID0tap_m1,CTPIDtap_m1;PairMap_TAP_DeltaBCm1',
199 path='EXPERT', type='TH2F',
200 title='TAP: CTPID at BC 0 vs CTPID at BC=-1;CTPID at BC=0;CTPID at BC=-1',
201 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
202 )
203 mon.defineHistogram(
204 'CTPID0tap_p1,CTPIDtap_p1;PairMap_TAP_DeltaBCp1',
205 path='EXPERT', type='TH2F',
206 title='TAP: CTPID at BC 0 vs CTPID at BC=+1;CTPID at BC=0;CTPID at BC=+1',
207 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
208 )
209 mon.defineHistogram(
210 'CTPID0tap_p2,CTPIDtap_p2;PairMap_TAP_DeltaBCp2',
211 path='EXPERT', type='TH2F',
212 title='TAP: CTPID at BC 0 vs CTPID at BC=+2;CTPID at BC=0;CTPID at BC=+2',
213 xbins=512, xmin=-0.5, xmax=511.5, ybins=512, ymin=-0.5, ymax=511.5
214 )
215
216
217 return mon
218