5 '''Function to configure LVL1 L1CaloL1Topo algorithm in the monitoring system.'''
9 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
14 from AthenaMonitoring
import AthMonitorCfgHelper
15 helper = AthMonitorCfgHelper(inputFlags,
'L1CaloL1TopoMonitoringCfg')
18 L1CaloL1TopoMonAlg = helper.addAlgorithm(CompFactory.L1CaloL1TopoMonitorAlgorithm,
'L1CaloL1TopoMonAlg')
21 groupName =
'L1CaloL1TopoMonitor'
22 L1CaloL1TopoMonAlg.PackageName = groupName
24 mainDir =
'LVL1_Interfaces'
34 etabins = [-4.9,-3.2,-2.9,-2.7,-2.4,-2.2,-2.0,-1.8,
35 -1.6,-1.4,-1.2,-1.0,-0.8,-0.6,-0.4,-0.2,
36 0.0,0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,1.8,
37 2.0,2.2,2.4,2.7,2.9,3.2,4.9]
40 myGroup = helper.addGroup(L1CaloL1TopoMonAlg, groupName , mainDir)
43 myGroup.defineHistogram(
44 'run',title=
'Run Number;run;Events',
45 path=trigPath,xbins=1000000,xmin=-0.5,xmax=999999.5)
48 error_labels = [
'Calo conv',
'No CMX',
'DAQ conv',
'No DAQ',
'ROI conv',
49 'Fibre CRC',
'Payload CRC',
'CMX-Topo match']
50 myGroup.defineHistogram(
51 'sumErrors;l1topo_1d_Errors',
52 path=trigPath, type=
'TH1F',
53 title=
'Counts of errors;;Entries',
55 xlabels=error_labels, xbins=len(error_labels),
56 xmin=0, xmax=len(error_labels))
59 myGroup.defineHistogram(
60 'lbErrors;l1topo_1d_ErrorsByLumiblock',
61 path=trigPath,type=
'TH1F',
63 title=
'Events with Errors by Lumiblock;Lumi Block;Number of Events',
64 xbins=2500,xmin=0,xmax=2500)
67 myGroup.defineHistogram(
68 'jetTobsEnergyL;l1topo_1d_JetTobs_EnergyLg', weight=
'wFPGA',
69 title=
'L1Topo-Jet TOB Energy Large Window Size;Energy;Events',
70 path=trigPath,xbins=256,xmin=0,xmax=1024)
72 myGroup.defineHistogram(
73 'nJetTobs;l1topo_1d_DAQJetTobs',
74 title=
'Number of L1Topo DAQ Jet TOBs;Tobs;Events',
75 path=trigPath,xbins=MAXTOBS,xmin=0,xmax=MAXTOBS)
77 myGroup.defineHistogram(
78 'nTauTobs;l1topo_1d_DAQTauTobs',
79 title=
'Number of L1Topo DAQ Tau TOBs;Tobs;Events',
80 path=trigPath,xbins=MAXTOBS,xmin=0,xmax=MAXTOBS)
82 myGroup.defineHistogram(
83 'nEMTobs;l1topo_1d_DAQEMTobs',
84 title=
'Number of L1Topo DAQ EM TOBs;Tobs;Events',
85 path=trigPath,xbins=MAXTOBS,xmin=0,xmax=MAXTOBS)
87 myGroup.defineHistogram(
88 'nMuonTobs;l1topo_1d_DAQMuonTobs',
89 title=
'Number of L1Topo DAQ Muon TOBs;Tobs;Events',
90 path=trigPath,xbins=MAXTOBS,xmin=0,xmax=MAXTOBS)
93 myGroup.defineHistogram(
'etaJetSTobs_match,phiJetSTobs_match;l1topo_2d_JetSTobs_etaPhi_match',
94 title=
'CMX-L1Topo matched small jet TOBs hit map;#eta;#phi', type=
'TH2F',
95 path=trigPath,opt=
'kAlwaysCreate',
96 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
98 myGroup.defineHistogram(
'etaJetLTobs_match,phiJetLTobs_match;l1topo_2d_JetLTobs_etaPhi_match',
99 title=
'CMX-L1Topo matched large jet TOBs hit map;#eta;#phi', type=
'TH2F',
100 path=trigPath,opt=
'kAlwaysCreate',
101 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
103 myGroup.defineHistogram(
'etaTauTobs_match,phiTauTobs_match;l1topo_2d_TauTobs_etaPhi_match',
104 title=
'CMX-L1Topo matched tau TOBs hit map;#eta;#phi', type=
'TH2F',
105 path=trigPath,opt=
'kAlwaysCreate',
106 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
108 myGroup.defineHistogram(
'etaEMTobs_match,phiEMTobs_match;l1topo_2d_EMTobs_etaPhi_match',
109 title=
'CMX-L1Topo matched EM TOBs hit map;#eta;#phi', type=
'TH2F',
110 path=trigPath,opt=
'kAlwaysCreate',
111 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
114 myGroup.defineHistogram(
'etaJetSTobs_mismatch,phiJetSTobs_mismatch;l1topo_2d_JetSTobs_etaPhi_mismatch',
115 title=
'CMX-L1Topo mismatched small jet TOBs hit map;#eta;#phi', type=
'TH2F',
116 path=trigPath,opt=
'kAlwaysCreate',
117 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
119 myGroup.defineHistogram(
'etaJetLTobs_mismatch,phiJetLTobs_mismatch;l1topo_2d_JetLTobs_etaPhi_mismatch',
120 title=
'CMX-L1Topo mismatched large jet TOBs hit map;#eta;#phi', type=
'TH2F',
121 path=trigPath,opt=
'kAlwaysCreate',
122 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
124 myGroup.defineHistogram(
'etaTauTobs_mismatch,phiTauTobs_mismatch;l1topo_2d_TauTobs_etaPhi_mismatch',
125 title=
'CMX-L1Topo mismatched tau TOBs hit map;#eta;#phi', type=
'TH2F',
126 path=trigPath,opt=
'kAlwaysCreate',
127 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
129 myGroup.defineHistogram(
'etaEMTobs_mismatch,phiEMTobs_mismatch;l1topo_2d_EMTobs_etaPhi_mismatch',
130 title=
'CMX-L1Topo mismatched EM TOBs hit map;#eta;#phi', type=
'TH2F',
131 path=trigPath,opt=
'kAlwaysCreate',
132 xbins=etabins, ybins=phibins, ymin=phimin, ymax=phimax)
135 myGroup.defineHistogram(
'xJetSTobs_match,yJetSTobs_match;l1topo_2d_JetSTobs_Hitmap_match',
136 title=
'CMX-L1Topo matched small jet TOBs hit map;Crate*Module;Frame*Local',
137 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
138 xbins=32,xmin=0.,xmax=32,ybins=32,ymin=0,ymax=32.)
140 myGroup.defineHistogram(
'xJetLTobs_match,yJetLTobs_match;l1topo_2d_JetLTobs_Hitmap_match',
141 title=
'CMX-L1Topo matched large jet TOBs hit map;Crate*Module;Frame*Local',
142 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
143 xbins=32,xmin=0.,xmax=32,ybins=32,ymin=0,ymax=32.)
145 myGroup.defineHistogram(
'xTauTobs_match,yTauTobs_match;l1topo_2d_TauTobs_Hitmap_match',
146 title=
'CMX-L1Topo matched tau TOBs hit map;Crate*Module;Chip*Local',
147 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
148 xbins=56,xmin=0.,xmax=56,ybins=64,ymin=0,ymax=64.)
150 myGroup.defineHistogram(
'xEMTobs_match,yEMTobs_match;l1topo_2d_EMTobs_Hitmap_match',
151 title=
'CMX-L1Topo matched EM TOBs hit map;Crate*Module;Chip*Local',
152 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
153 xbins=56,xmin=0.,xmax=56.0,ybins=64,ymin=0.,ymax=64.)
156 myGroup.defineHistogram(
'xJetSTobs_mismatch,yJetSTobs_mismatch;l1topo_2d_JetSTobs_Hitmap_mismatch',
157 title=
'CMX-L1Topo mismatched small jet TOBs hit map;Crate*Module;Frame*Local',
158 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
159 xbins=32,xmin=0.,xmax=32,ybins=32,ymin=0,ymax=32.)
161 myGroup.defineHistogram(
'xJetLTobs_mismatch,yJetLTobs_mismatch;l1topo_2d_JetLTobs_Hitmap_mismatch',
162 title=
'CMX-L1Topo mismatched large jet TOBs hit map;Crate*Module;Frame*Local',
163 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
164 xbins=32,xmin=0.,xmax=32,ybins=32,ymin=0,ymax=32.)
166 myGroup.defineHistogram(
'xTauTobs_mismatch,yTauTobs_mismatch;l1topo_2d_TauTobs_Hitmap_mismatch',
167 title=
'CMX-L1Topo mismatched tau TOBs hit map;Crate*Module;Chip*Local',
168 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
169 xbins=56,xmin=0.,xmax=56,ybins=64,ymin=0,ymax=64.)
171 myGroup.defineHistogram(
'xEMTobs_mismatch,yEMTobs_mismatch;l1topo_2d_EMTobs_Hitmap_mismatch',
172 title=
'CMX-L1Topo mismatched EM TOBs hit map;Crate*Module;Chip*Local',
173 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
174 xbins=56,xmin=0.,xmax=56.0,ybins=64,ymin=0.,ymax=64.)
177 myGroup.defineHistogram(
'item0,bc0;l1topo_2d_ItemsBC0',
178 title=
'BC Timing vs Algorithm Number L1Topo_00_U1',
179 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
180 xbins=32,xmin=0*32,xmax=(0+1)*32,ybins=5,ymin=-2.5,ymax=2.5)
181 myGroup.defineHistogram(
'item1,bc1;l1topo_2d_ItemsBC1',
182 title=
'BC Timing vs Algorithm Number L1Topo_00_U2',
183 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
184 xbins=32,xmin=1*32,xmax=(1+1)*32,ybins=5,ymin=-2.5,ymax=2.5)
185 myGroup.defineHistogram(
'item2,bc2;l1topo_2d_ItemsBC2',
186 title=
'BC Timing vs Algorithm Number L1Topo_01_U1',
187 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
188 xbins=32,xmin=2*32,xmax=(2+1)*32,ybins=5,ymin=-2.5,ymax=2.5)
189 myGroup.defineHistogram(
'item3,bc3;l1topo_2d_ItemsBC3',
190 title=
'BC Timing vs Algorithm Number L1Topo_01_U2',
191 type=
'TH2F',path=trigPath,opt=
'kAlwaysCreate',
192 xbins=32,xmin=3*32,xmax=(3+1)*32,ybins=5,ymin=-2.5,ymax=2.5)
194 acc = helper.result()