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