ATLAS Offline Software
Loading...
Searching...
No Matches
checkFileTrigSize.py
Go to the documentation of this file.
1#!/usr/bin/env python
2
3# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4
10
11import sys
12import os
13import re
14
15from optparse import OptionParser
16
17import TrigEDMConfig.TriggerEDM as edm
18
19# 'Counter' just contains the list of classes you want to include and the size
20class Counter:
21 size = 0
22 def __init__(self,myname,mylist):
23 self.name = myname
24 self.itemList = mylist
25
26
28 """
29 Class to calculate total trigger AOD size
30 """
31
32 def __init__(self, paramDict={}):
33
34 try:
35 from Logger import Logger
36 self.logger = Logger()
37 except Exception:
38 print("Can't import logger in test mode")
39
40 self.success = 0
41 self.error = -1
42
43 self.checkFile = paramDict.get('checkFile', 'AOD.pool.root.checkFile')
48 self.totalAlgSize = 0.0
49
51 self.total = 0.0
52
53 def run(self):
54
55 #sort all classes into 'Counters'
56 atlfastList = [
57 'ElectronContainer_p1_AtlfastElectronCollection',
58 'INav4MomAssocs_p2_AtlfastMcAodAssocs',
59 'MuonContainer_p3_AtlfastMuonCollection',
60 'MuonContainer_p3_AtlfastNonIsoMuonCollection',
61 'ParticleJetContainer_p1_AtlfastParticleJetContainer',
62 'PhotonContainer_p1_AtlfastPhotonCollection',
63 'Rec::TrackParticleContainer_tlp1_AtlfastTrackParticles',
64 'TauJetContainer_p1_AtlfastTauJet1p3pContainer',
65 'TauJetContainer_p1_AtlfastTauJetContainer',
66 'JetCollection_p2_AtlfastJetContainer',
67 'JetCollection_tlp5_AtlfastJetContainer',
68 'TauJetContainer_p2_AtlfastTauJetContainer',
69 'TauJetContainer_p2_AtlfastTauJet1p3pContainer',
70 'TauJetContainer_p3_AtlfastTauJet1p3pContainer',
71 'TauJetContainer_p3_AtlfastTauJetContainer',
72 'JetCollection_tlp2_AtlfastJetContainer',
73 'MuonContainer_p4_AtlfastNonIsoMuonCollection',
74 'MuonContainer_p4_AtlfastMuonCollection',
75 'egDetailContainer_p1_AtlfastIsoEleShowerContainer',
76 'egDetailContainer_p1_AtlfastEleShowerContainer',
77 'ElectronContainer_p1_AtlfastIsoElectronCollection',
78 'MuonContainer_p4_AtlfastIsoMuonCollection',
79 'egDetailContainer_p1_AtlfastIsoPhoShowerContainer',
80 'PhotonContainer_p1_AtlfastIsoPhotonCollection',
81 'egDetailContainer_p1_AtlfastPhoShowerContainer',
82 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreationCombined_Electron_EFID',
83 ]
84 atlfastCounter = Counter('atlfast',atlfastList)
85
86 caloList = [
87 'CaloClusterContainer_p2_CaloCalTopoCluster',
88 'CaloClusterContainer_p2_CombinedCluster',
89 'CaloClusterContainer_p2_EMTopoCluster',
90 'CaloClusterContainer_p2_LArClusterEMSofte',
91 'CaloClusterContainer_p3_CaloCalTopoCluster',
92 'CaloClusterContainer_p3_EMTopoCluster',
93 'CaloClusterContainer_p3_LArClusterEMSofte',
94 'CaloClusterContainer_p3_MuonClusterCollection',
95 'CaloClusterContainer_p4_CaloCalTopoCluster',
96 'CaloClusterContainer_p4_EMTopoCluster',
97 'CaloClusterContainer_p4_LArClusterEMSofte',
98 'CaloClusterContainer_p5_Tau1P3PCellEM012ClusterContainer',
99 'CaloClusterContainer_p5_Tau1P3PCellCluster',
100 'CaloClusterContainer_p5_LArClusterEMFrwd',
101 'CaloClusterContainer_p5_Tau1P3PPi0ClusterContainer',
102 'CaloClusterContainer_p5_MuonClusterCollection',
103 'CaloClusterContainer_p5_egClusterCollection',
104 'CaloClusterContainer_p5_LArClusterEMSofte',
105 'CaloClusterContainer_p5_EMTopoCluster430',
106 'CaloClusterContainer_p5_CaloCalTopoCluster',
107 'CaloClusterContainer_p7_LArClusterEMFrwd',
108 'CaloClusterContainer_p7_LArClusterEMSofte',
109 'CaloClusterContainer_p7_egClusterCollection',
110 'CaloClusterContainer_p7_LArClusterEMSofte',
111 'CaloClusterContainer_p7_egClusterCollection',
112 'CaloClusterContainer_p7_EMTopoCluster430',
113 'LArNoisyROSummary_p1_LArNoisyROSummary',
114 'CaloClusterContainer_p7_CaloCalTopoCluster',
115 'TileCellVec_MBTSContainer',
116 'TileContainer<TileMu>_TileMuObj',
117 ]
118 caloCounter = Counter('calo',caloList)
119
120 egammaList = [
121 'CaloCellLinkContainer_p2_egClusterCollection_Link',
122 'CaloClusterContainer_p2_egClusterCollection',
123 'CaloClusterContainer_p3_egClusterCollection',
124 'CaloClusterContainer_p4_egClusterCollection',
125 'egDetailContainer_p1_egDetailAOD',
126 'egDetailContainer_p2_egDetailAOD',
127 'ElectronContainer_p1_ElectronAODCollection',
128 'PhotonContainer_p1_PhotonAODCollection',
129 'PhotonContainer_p4_PhotonAODCollection',
130 'CaloClusterContainer_p4_EMTopoCluster430',
131 'CaloClusterContainer_p4_LArClusterEMFrwd',
132 'ElectronContainer_p4_ElectronAODCollection',
133 'TrigPassFlagsCollection_p1_HLT_isEM',
134 'TrigPassFlagsCollection_p1_HLT_passflags',
135 ]
136 egammaCounter = Counter('egamma',egammaList)
137
138 eventinfoList = [
139 'DataHeader',
140 'EventInfo_p2_ByteStreamEventInfo',
141 'EventInfo_p2_McEventInfo',
142 'EventStreamInfo_p1_StreamAOD',
143 'IOVMetaDataContainer_p1__GLOBAL_DETSTATUS_LBSUMM',
144 'LumiBlockCollection_p1_LumiBlocks',
145 'MetaData',
146 'MetaDataHdrDataHeader',
147 'PileUpEventInfo_p2_OverlayEvent',
148 'EventInfo_p2_MyEvent',
149 'IOVMetaDataContainer_p1__Simulation_Parameters',
150 'IOVMetaDataContainer_p1__Digitization_Parameters',
151 'BCM_RDO_Container_p0_BCM_CompactDOs',
152 'MetaDataHdrDataHeaderForm',
153 'EventBookkeeperCollection_p1_EventSelector.Counter',
154 'IOVMetaDataContainer_p1__LAR_LArAffectedRegionInfo',
155 'EventStreamInfo_p2_StreamAOD',
156 'RawInfoSummaryForTag_p1_RawInfoSummaryForTag',
157 'EventInfo_p3_McEventInfo',
158 'POOLContainer_DataHeaderForm',
159 'IOVMetaDataContainer_p1__EXT_DCS_MAGNETS_SENSORDATA',
160 'IOVMetaDataContainer_p1__GLOBAL_BField_Map',
161 'IOVMetaDataContainer_p1__TagInfo',
162
163 ]
164 eventinfoCounter = Counter('eventinfo',eventinfoList)
165
166 emtList = [
167 'CaloCompactCellContainer_AODCellContainer',
168 'CaloCompactCellContainer_AllCalo',
169 'InDet::Track_tlp1',
170 'TPCnv::MuonMeasurements_tlp1',
171 'Trk::TrackCollection_tlp1_egammaSlimmedTrackCollection',
172 'Trk::TrackCollection_tlp1_MuonSlimmedTrackCollection',
173 'Trk::TrackCollection_tlp2_Tracks',
174 'Trk::TrackCollection_tlp3_Tracks',
175 ]
176 emtCounter = Counter('emt',emtList)
177
178 indetList = [
179 'Rec::TrackParticleContainer_tlp1_TrackParticleCandidate',
180 'Trk::MVFVxContainer_tlp1',
181 'Trk::V0Container_tlp1_V0Candidates',
182 'Trk::VxContainer_tlp1_ConversionCandidate',
183 'Trk::VxContainer_tlp1_Conversions',
184 'Trk::VxContainer_tlp1_VxPrimaryCandidate',
185 'Trk::VxContainer_tlp1_SecVertices',
186 'Trk::VxContainer_tlp1_AllPhotonsVxCandidates',
187 'InDetLowBetaContainer_tlp1_InDetLowBetaCandidates',
188 ]
189 indetCounter = Counter('indet',indetList)
190
191 jetList = [
192 'ParticleJetContainer_p1_Cone4H1TopoParticleJets',
193 'ParticleJetContainer_p1_Cone4H1TowerParticleJets',
194 'ParticleJetContainer_p1_Cone7H1TopoParticleJets',
195 'ParticleJetContainer_p1_Cone7H1TowerParticleJets',
196 'ParticleJetContainer_p1_Kt4H1TopoParticleJets',
197 'ParticleJetContainer_p1_Kt4H1TowerParticleJets',
198 'ParticleJetContainer_p1_Kt6H1TopoParticleJets',
199 'ParticleJetContainer_p1_Kt6H1TowerParticleJets',
200 'JetCollection_p2_Cone4H1TopoJets',
201 'JetCollection_p2_Cone4H1TowerJets',
202 'JetCollection_p2_Cone7H1TopoJets',
203 'JetCollection_p2_Cone7H1TowerJets',
204 'JetCollection_p2_Kt4H1TopoJets',
205 'JetCollection_p2_Kt4H1TowerJets',
206 'JetCollection_p2_Kt6H1TopoJets',
207 'JetCollection_p2_Kt6H1TowerJets',
208 'JetKeyDescriptor_p1_JetKeyMap',
209 'JetCollection_tlp2_Cone4H1TopoJets',
210 'JetCollection_tlp2_Cone7H1TopoJets',
211 'JetCollection_tlp2_Cone4H1TowerJets',
212 'JetCollection_tlp2_Cone7H1TowerJets',
213 'JetCollection_tlp2_Kt4H1TopoJets',
214 'JetCollection_tlp2_Kt4H1TowerJets',
215 'JetCollection_tlp2_Kt6H1TopoJets',
216 'JetCollection_tlp2_Kt6H1TowerJets',
217 'Analysis::JetTagInfo_tlp1',
218 'JetCollection_tlp5_Cone4TruthJets',
219 'JetCollection_tlp5_Cone4H1TopoJets',
220 'JetCollection_tlp5_Cone4H1TowerJets',
221 'JetCollection_tlp5_Cone7H1TowerJets',
222
223 'JetCollection_tlp5_AntiKt6H1TopoJets',
224 'JetCollection_tlp5_AntiKt6LCTopoJets',
225 'JetCollection_tlp5_AntiKt4H1TopoJets',
226 'JetCollection_tlp5_AntiKt4H1TowerJets',
227 'JetCollection_tlp5_AntiKt6H1TowerJets',
228
229 'JetMomentMap_p6_TrigJetRecMomentMap',
230 ]
231 jetCounter = Counter('jet',jetList)
232
233 jtList = [
234 'ParticleJetContainer_p1_Cone4TruthParticleJets',
235 'ParticleJetContainer_p1_Cone7TruthParticleJets',
236 'ParticleJetContainer_p1_Kt4TruthParticleJets',
237 'ParticleJetContainer_p1_Kt6TruthParticleJets',
238 'JetCollection_p2_JetTruthParticles',
239 'JetCollection_p2_JetTruthPileupParticles',
240 'JetCollection_p2_Cone4TruthJets',
241 'JetCollection_p2_Cone7TruthJets',
242 'JetCollection_p2_Cone4TruthPileupJets',
243 'JetCollection_p2_Cone7TruthPileupJets',
244 'JetCollection_p2_Kt4TruthJets',
245 'JetCollection_p2_Kt6TruthJets',
246 'JetCollection_p2_Kt4TruthPileupJets',
247 'JetCollection_p2_Kt6TruthPileupJets',
248 'JetCollection_tlp2_Cone4TruthJets',
249 'JetCollection_tlp2_Cone7TruthJets',
250 'JetCollection_tlp2_Kt4TruthJets',
251 'JetCollection_tlp2_Kt6TruthJets',
252 ]
253 jtCounter = Counter('jt',jtList)
254
255 metList = [
256 'MissingET_p1_MET_CellOut_MiniJet',
257 'MissingET_p1_AtlfastMissingEt',
258 'MissingET_p1_MET_CellOut',
259 'MissingET_p1_MET_Cryo',
260 'MissingET_p1_MET_CryoCone',
261 'MissingET_p1_MET_DM_All',
262 'MissingET_p1_MET_DM_Crack1',
263 'MissingET_p1_MET_DM_Crack2',
264 'MissingET_p1_MET_DM_Cryo',
265 'MissingET_p1_MET_Final',
266 'MissingET_p1_MET_LocHadTopoObj',
267 'MissingET_p1_MET_Muon',
268 'MissingET_p1_MET_MuonBoy',
269 'MissingET_p1_MET_RefEle',
270 'MissingET_p1_MET_RefFinal',
271 'MissingET_p1_MET_RefGamma',
272 'MissingET_p1_MET_RefJet',
273 'MissingET_p1_MET_RefMuon',
274 'MissingET_p1_MET_RefTau',
275 'MissingET_p1_MET_TopoObj',
276 'MissingET_p1_ObjMET_Elec',
277 'MissingET_p1_ObjMET_Final',
278 'MissingET_p1_ObjMET_IdTrk',
279 'MissingET_p1_ObjMET_Jet',
280 'MissingET_p1_ObjMET_MiniJet',
281 'MissingET_p1_ObjMET_Muon',
282 'MissingET_p1_ObjMET_Rest',
283 'MissingET_p1_ObjMET_TauJet',
284 'MissingEtCalo_p1_MET_Base',
285 'MissingEtCalo_p1_MET_Calib',
286 'MissingEtCalo_p1_MET_CorrTopo',
287 'MissingEtCalo_p1_MET_LocHadTopo',
288 'MissingEtCalo_p1_MET_Topo',
289 'MissingETSig_p1_METSig',
290 'MissingETSigObjContainer_p1_EtMissObjCollection',
291 'MissingEtTruth_MET_Truth',
292 'MissingET_p1_MET_RefMuon_Track',
293 'MissingET_p1_MET_MuonBoy_Spectro',
294 'MissingET_p1_MET_MuonBoy_Track',
295 'MissingETSigHypoContainer_p1_EtMissHypoCollection',
296 'MissingEtCalo_p1_MET_Base0',
297 'MissingET_p2_MET_RefTau',
298 'MissingET_p2_MET_RefGamma',
299 'MissingET_p2_MET_MuonBoy',
300 'MissingET_p2_MET_MuonBoy_Track',
301 'MissingET_p2_MET_MuonBoy_Spectro',
302 'MissingET_p2_MET_RefEle',
303 'MissingET_p2_MET_CryoCone',
304 'MissingET_p2_MET_Cryo',
305 'MissingET_p2_MET_Muon',
306 'MissingET_p2_MET_DM_Cryo',
307 'MissingET_p2_MET_TopoObj',
308 'MissingET_p2_MET_DM_All',
309 'MissingET_p2_MET_LocHadTopoObj',
310 'MissingET_p2_MET_RefJet',
311 'MissingET_p2_MET_RefFinal',
312 'MissingET_p2_MET_Final',
313 'MissingET_p2_MET_DM_Crack2',
314 'MissingET_p2_AtlfastMissingEt',
315 'MissingET_p2_MET_CellOut',
316 'MissingET_p2_MET_DM_Crack1',
317 'MissingEtCalo_p2_MET_Base0',
318 'MissingEtCalo_p2_MET_Base',
319 'MissingEtCalo_p2_MET_Calib',
320 'MissingEtCalo_p2_MET_LocHadTopo',
321 'MissingEtCalo_p2_MET_Topo',
322 'MissingEtCalo_p2_MET_CorrTopo',
323 'MissingET_p3_MET_RefGamma'
324 'MissingET_p3_MET_RefMuon',
325 'MissingET_p3_MET_RefEle',
326 'MissingET_p3_MET_RefMuon_Track',
327 'MissingET_p3_MET_CryoCone',
328 'MissingET_p3_MET_Muid_Track',
329 'MissingET_p3_MET_MuonBoy_Track',
330 'MissingET_p3_MET_Cryo',
331 'MissingET_p3_MET_TopoObj',
332 'MissingET_p3_MET_DM_All',
333 'MissingET_p3_MET_DM_Crack2',
334 'MissingET_p3_MET_Track',
335 'MissingET_p3_MET_DM_Cryo',
336 'MissingET_p3_MET_LocHadTopoObj',
337 'MissingET_p3_MET_DM_Crack1',
338 'MissingET_p3_MET_MuonBoy_Spectro',
339 'MissingET_p3_MET_RefTau',
340 'MissingET_p3_MET_MuonBoy',
341 'MissingET_p3_MET_Muid',
342 'MissingET_p3_MET_Muid_Spectro',
343 'MissingET_p3_MET_Muon',
344 'MissingET_p3_MET_MuonMuid',
345 'MissingET_p3_MET_Final',
346 'MissingET_p3_MET_RefJet',
347 'MissingET_p3_MET_CellOut_Eflow',
348 'MissingET_p3_MET_CellOut',
349 'MissingET_p3_MET_RefFinal',
350 'MissingET_p3_MET_RefGamma',
351 'MissingET_p3_MET_RefMuon',
352 'MissingEtCalo_p3_MET_Base0',
353 'MissingEtCalo_p3_MET_Calib',
354 'MissingEtCalo_p3_MET_Base',
355 'MissingEtCalo_p3_MET_Topo',
356 'MissingEtCalo_p3_MET_LocHadTopo',
357 'MissingEtCalo_p3_MET_CorrTopo',
358 'MissingETComposition_p1_MET_RefComposition',
359 ]
360 metCounter = Counter('met',metList)
361
362 muonList = [
363 'CaloCellLinkContainer_p2_MuonClusterCollection_Link',
364 'CaloClusterContainer_p2_MuonClusterCollection',
365 'CaloClusterContainer_p4_MuonClusterCollection',
366 'MuonCaloEnergyContainer_p1_MuonCaloEnergyCollection',
367 'MuonContainer_p1_CaloMuonCollection',
368 'MuonContainer_p1_MuidMuonCollection',
369 'MuonContainer_p1_StacoMuonCollection',
370 'MuonContainer_p3_CaloMuonCollection',
371 'MuonContainer_p3_MuidMuonCollection',
372 'MuonContainer_p3_StacoMuonCollection',
373 'MuonContainer_p4_CaloMuonCollection',
374 'MuonContainer_p4_MuidMuonCollection',
375 'MuonContainer_p4_StacoMuonCollection',
376 'MuonContainer_p6_CaloMuonCollection',
377 'MuonContainer_p6_StacoMuonCollection',
378 'MuonContainer_p6_MuidMuonCollection',
379 'MuonContainer_p6_MuGirlLowBetaCollection',
380 'MuonSpShowerContainer_p1_MuonSpShowers',
381 'POOLContainer_MuonFeature_p1',
382 'Rec::TrackParticleContainer_tlp1_MooreTrackParticles',
383 'Rec::TrackParticleContainer_tlp1_MuidCombTrackParticles',
384 'Rec::TrackParticleContainer_tlp1_MuidExtrTrackParticles',
385 'Rec::TrackParticleContainer_tlp1_MuonboyMuonSpectroOnlyTrackParticles',
386 'Rec::TrackParticleContainer_tlp1_MuonboyTrackParticles',
387 'Rec::TrackParticleContainer_tlp1_MuTagTrackParticles',
388 'Rec::TrackParticleContainer_tlp1_StacoTrackParticles',
389 'Trk::SegmentCollection_tlp1_ConvertedMBoySegments',
390 'Trk::SegmentCollection_tlp1_MooreSegments',
391 'Trk::SegmentCollection_tlp1_MooreSegments_',
392 'Trk::SegmentCollection_tlp1_MuGirlSegments',
393 'Trk::TrackCollection_tlp2_MuonSlimmedTrackCollection',
394 'Rec::TrackParticleContainer_tlp1_MuGirlRefittedTrackParticles',
395 'Rec::TrackParticleContainer_tlp1_MuTagIMOTrackParticles',
396 'TileMuContainer_p1_TileMuObj',
397 'MuonContainer_p4_MuGirlLowBetaCollection',
398 'Trk::TrackCollection_tlp3_MuonSlimmedTrackCollection',
399 'MuonCaloEnergyContainer_tlp1_MuonCaloEnergyCollection',
400 'Muon::ChamberT0s_p1_MboyMuonChamberT0s',
401 'Muon::ChamberT0s_p1_MooreMuonChamberT0s',
402 'CaloClusterContainer_p7_MuonClusterCollection',
403 ]
404 muonCounter = Counter('muon',muonList)
405
406 tauList = [
407 'CaloClusterContainer_p2_Tau1P3PPi0ClusterContainer',
408 'CaloClusterContainer_p3_Tau1P3PPi0ClusterContainer',
409 'CaloClusterContainer_p4_Tau1P3PPi0ClusterContainer',
410 'TauDetailsContainer_tlp1_Tau1P3PDetailsContainer',
411 'TauDetailsContainer_tlp1_TauRecDetailsContainer',
412 'TauDetailsContainer_tlp2_TauRecDetailsContainer',
413 'TauJetContainer_p1_Tau1P3PContainer',
414 'TauJetContainer_p1_TauRecContainer',
415 'TauJetContainer_p2_TauRecContainer',
416 'TauJetContainer_p3_TauRecContainer',
417 'TauJetContainer_p4_TauRecContainer',
418 'CaloClusterContainer_p4_Tau1P3PCellCluster',
419 'CaloClusterContainer_p4_Tau1P3PCellEM012ClusterContainer',
420 'CaloClusterContainer_p7_Tau1P3PCellEM012ClusterContainer',
421 'CaloClusterContainer_p7_Tau1P3PCellCluster',
422 'CaloClusterContainer_p7_Tau1P3PPi0ClusterContainer',
423 ]
424 tauCounter = Counter('tau',tauList)
425
426
427# trigger lists
428
429 triggerListBjet = [
430 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Bjet_EFID',
431 'TrigEFBjetContainer_tlp2_HLT_EFBjetFex',
432 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Jet',
433 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Jet',
434 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Jet',
435 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Jet',
436 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Jet',
437 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Jet',
438 'TrigInDetTrackCollection_tlp3_HLT_TrigL2SiTrackFinder',
439 'TrigL2BjetContainer_tlp2_HLT_L2BjetFex',
440 'TrigL2BjetContainer_p3_HLT_L2BjetFex',
441 'TrigVertexCollection_tlp1_HLT_T2HistoPrmVtx',
442 'TrigVertexCollection_tlp1_HLT_TrigBeamSpotVertex',
443 'TrigVertexCollection_tlp1_HLT_TrigBeamSpotVertex_SiTrack',
444 'TrigVertexCollection_tlp2_HLT_T2HistoPrmVtx',
445 'TrigVertexCollection_tlp2_HLT_TrigBeamSpotVertex',
446 'TrigVertexCollection_tlp2_HLT_EFHistoPrmVtx',
447 'Trk::VxContainer_tlp1_HLT_PrimVx',
448 'Trk::VxContainer_tlp1_HLT_ConversionVx',
449 'Trk::VxContainer_tlp2_HLT_ConversionVx',
450 'Trk::VxContainer_tlp2_HLT_PrimVx',
451 'TrigVertexCollection_tlp2_HLT_TrigBeamSpotVertex_SiTrack',
452 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_Bjet_EFID',
453 # Only in ESDs
454 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_Bjet_EFID',
455 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_Bjet_EFID',
456
457 ]
458 triggerCounterBjet = Counter('triggerBjet',triggerListBjet)
459
460 triggerListBphys = [
461 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Bphysics_EFID',
462 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_FullScan_EFID',
463 'TrigEFBphysContainer_tlp1_HLT_EFBMuMuFex',
464 'TrigEFBphysContainer_tlp1_HLT_EFDsPhiPiFex',
465 'TrigEFBphysContainer_tlp1_HLT_EFMuPairs',
466 'TrigEFBphysContainer_tlp1_HLT_EFTrackMass',
467 'TrigEFBphysContainer_tlp2_HLT_EFMuPairs',
468 'TrigEFBphysContainer_tlp2_HLT_EFTrackMass',
469 'TrigEFBphysContainer_tlp2_HLT_EFDsPhiPiFex',
470 'TrigEFBphysContainer_tlp2_HLT_EFBMuMuFex',
471 'TrigEFBphysContainer_tlp2_HLT_EFMultiMuFex',
472 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Bphysics',
473 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Bphysics',
474 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Bphysics',
475 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_FullScan',
476 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_FullScan',
477 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_FullScan',
478 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Bphysics',
479 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Bphysics',
480 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Bphysics',
481 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_FullScan',
482 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_FullScan',
483 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_FullScan',
484 'TrigL2BphysContainer_tlp1_HLT',
485 'TrigL2BphysContainer_tlp1_HLT_L2BMuMuFex',
486 'TrigL2BphysContainer_tlp1_HLT_L2BMuMuXFex',
487 'TrigL2BphysContainer_tlp1_HLT_L2DiMuXFex',
488 'TrigL2BphysContainer_tlp1_HLT_L2DsPhiPiFexDs',
489 'TrigL2BphysContainer_tlp1_HLT_L2DsPhiPiFexPhi',
490 'TrigL2BphysContainer_tlp1_HLT_L2JpsieeFex',
491 'TrigL2BphysContainer_tlp1_HLT_L2TrackMass',
492 'TrigL2BphysContainer_tlp2_HLT',
493 'TrigL2BphysContainer_tlp2_HLT_L2BMuMuXFex',
494 'TrigL2BphysContainer_tlp2_HLT_L2DsPhiPiFexDs',
495 'TrigL2BphysContainer_tlp2_HLT_L2DsPhiPiFexPhi',
496 'TrigL2BphysContainer_tlp2_HLT_L2MultiMuFex',
497 'TrigL2BphysContainer_tlp2_HLT_L2BMuMuFex',
498 'TrigL2BphysContainer_tlp2_HLT_L2JpsieeFex',
499 'TrigL2BphysContainer_tlp2_HLT_L2TrackMass',
500 'TrigL2BphysContainer_tlp2_HLT_L2DiMuXFex',
501 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_Bphysics_EFID',
502 # Only in ESDs
503 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_Bphysics_EFID',
504 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_Bphysics_EFID',
505 ]
506 triggerCounterBphys = Counter('triggerBphys',triggerListBphys)
507
508 triggerListConfigID = [
509 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_FullScan_EFID',
510 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreationTRTOnly_FullScan_EFID',
511
512 'HLT_xAOD__RoiDescriptorStore_forID',
513 'HLT_xAOD__RoiDescriptorStore_forIDAux.',
514 'HLT_xAOD__RoiDescriptorStore_forID1',
515 'HLT_xAOD__RoiDescriptorStore_forID1Aux.',
516 'HLT_xAOD__RoiDescriptorStore_forID2',
517 'HLT_xAOD__RoiDescriptorStore_forID2Aux.',
518 'HLT_xAOD__RoiDescriptorStore_forID3',
519 'HLT_xAOD__RoiDescriptorStore_forID3Aux.',
520 ]
521 triggerCounterID = Counter('triggerID',triggerListConfigID)
522
523 triggerListConfig = [
524 'IOVMetaDataContainer_p1__TRIGGER_HLT_Menu',
525 'IOVMetaDataContainer_p1__TRIGGER_LVL1_Lvl1ConfigKey',
526 'IOVMetaDataContainer_p1__TRIGGER_LVL1_Menu',
527 'IOVMetaDataContainer_p1__TRIGGER_LVL1_Prescales',
528 'IOVMetaDataContainer_p1__TRIGGER_HLT_PrescaleKey',
529 'IOVMetaDataContainer_p1__TRIGGER_HLT_ConfigKeys',
530 '_TRIGGER_HLT_Menu',
531 '_TRIGGER_HLT_Prescales',
532 '_TRIGGER_HLT_PrescaleKey',
533 '_TRIGGER_HLT_HltConfigKeys',
534 '_TRIGGER_LVL1_Menu',
535 '_TRIGGER_LVL1_Lvl1ConfigKey',
536 '_TRIGGER_LVL1_Prescales',
537 '_TRIGGER_LVL1_ItemDef',
538 '_TRIGGER_LVL1_Thresholds',
539 'TriggerMenu',
540 'TriggerMenuAux.',
541 'TriggerMenuJson_BG',
542 'TriggerMenuJson_L1',
543 'TriggerMenuJson_HLT',
544 'TriggerMenuJson_L1PS',
545 'TriggerMenuJson_HLTPS',
546 'TriggerMenuJson_HLTMonitoring',
547 'TriggerMenuJson_BGAux.',
548 'TriggerMenuJson_L1PSAux.',
549 'TriggerMenuJson_HLTMonitoringAux.',
550 'TriggerMenuJson_HLTPSAux.',
551 'TriggerMenuJson_L1Aux.',
552 'TriggerMenuJson_HLTAux.',
553 ]
554 triggerCounterConfig = Counter('triggerConfig',triggerListConfig)
555
556 triggerListCosmics = [
557 'CosmicMuonCollection_tlp1_HLT_CosmicMuons',
558 'MdtTrackSegmentCollection_tlp1_HLT_MDTsegments',
559 'MdtTrackSegmentCollection_p2_HLT_MDTsegments',
560 'TrigEMClusterContainer_tlp1_HLT_TrigT2CaloCosmic',
561 'TrigEMClusterContainer_p3_HLT_TrigT2CaloCosmic',
562 'TrigEMClusterContainer_p4_HLT_TrigT2CaloCosmic',
563 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Cosmics',
564 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Cosmics',
565 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Cosmics',
566 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Cosmics',
567 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Cosmics',
568 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Cosmics',
569 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_CosmicsN_EFID',
570 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreationIOTRT_CosmicsN_EFID',
571 'TrigT2JetContainer_tlp1_HLT_TrigT2CosmicJet',
572 'TrigT2JetContainer_p3_HLT_TrigT2CosmicJet',
573 'TrigRoiDescriptorCollection_tlp1_HLT_TrigT2CosmicJet',
574 'TrigRoiDescriptorCollection_p2_HLT_TrigT2CosmicJet',
575 'JetCollection_tlp5_HLT_TrigCosmicJetRec',
576 'JetCollection_tlp6_HLT_TrigCosmicJetRec',
577 # Only in ESDs
578 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_CosmicsN_EFID',
579 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_CosmicsN_EFID',
580 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreationIOTRT_CosmicsN_EFID',
581 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_CosmicsN_EFID'
582 ]
583 triggerCounterCosmics = Counter('triggerCosmics',triggerListCosmics)
584
585 triggerListEgamma = [
586 'egammaContainer_p1_HLT_egamma',
587 'egammaContainer_p2_HLT_egamma',
588 'egammaContainer_p5_HLT_egamma',
589 'egammaContainer_p2_HLT_egamma_Photons',
590 'egDetailContainer_p1_HLT_egamma',
591 'egDetailContainer_p2_HLT_egamma',
592 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Electron_EFID',
593 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Photon_EFID',
594 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreationCombined_Electron_EFID',
595 'TrigElectronContainer_tlp2_HLT_L2IDCaloFex',
596 'TrigElectronContainer_p3_HLT_L2IDCaloFex',
597 'TrigEMClusterContainer_tlp1_HLT',
598 'TrigEMClusterContainer_tlp1_HLT_TrigT2CaloEgamma',
599 'TrigEMClusterContainer_p3_HLT',
600 'TrigEMClusterContainer_p4_HLT',
601 'TrigEMClusterContainer_p3_HLT_TrigT2CaloEgamma',
602 'TrigEMClusterContainer_p4_HLT_TrigT2CaloEgamma',
603 'TrigEMClusterContainer_p4_HLT_T2CaloSwCluster',
604
605 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_eGamma',
606 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_eGamma',
607 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_eGamma',
608 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_eGamma_Brem',
609 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_eGamma_Brem',
610 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_eGamma_Brem',
611 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_eGamma',
612 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_eGamma',
613 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_eGamma',
614 'TrigPhotonContainer_tlp2_HLT_L2PhotonFex',
615 'TrigPhotonContainer_p3_HLT_L2PhotonFex',
616 'egammaContainer_p1_HLT_egamma_Electrons',
617 'egammaContainer_p1_HLT_egamma_Photons',
618 'egammaContainer_p2_HLT_egamma_Electrons',
619 'egammaContainer_p5_HLT_egamma_Photons',
620 'egammaContainer_p5_HLT_egamma_Electrons',
621 'egDetailContainer_p1_HLT_egamma_Electrons',
622 'egDetailContainer_p2_HLT_egamma_Electrons',
623 'egDetailContainer_p1_HLT_egamma_Photons',
624 'egDetailContainer_p2_HLT_egamma_Photons',
625 'RingerRingsContainer_tlp1_HLT_TrigT2CaloEgamma',
626 'RingerRingsContainer_p2_HLT_TrigT2CaloEgamma',
627 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_eGamma_robust',
628 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_eGamma_robust',
629 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_eGamma_robust',
630 'TrigEMClusterContainer_tlp1_HLT_TrigcaloSwCluster',
631 'TrigEMClusterContainer_p3_HLT_TrigcaloSwCluster',
632 'TrigEMClusterContainer_p4_HLT_TrigcaloSwCluster',
633 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreationTRTOnly_Electron_EFID',
634 'CaloClusterContainer_p6_HLT_TrigCaloClusterMaker_topo',
635 'TrigRNNOutputContainer_HLT_TrigRingerNeuralFex',
636 'TrigRNNOutputContainer_p2_HLT_TrigRingerNeuralFex',
637 'TrigElectronContainer_tlp2_HLT_L2ElectronFex',
638 'TrigElectronContainer_p3_HLT_L2ElectronFex',
639 'CaloClusterContainer_p6_HLT_TrigCaloClusterMaker_slw',
640 'CaloClusterContainer_p7_HLT_TrigCaloClusterMaker_slw',
641 'TrigEMClusterContainer_tlp1_HLT_T2CaloSwCluster',
642 'TrigEMClusterContainer_p3_HLT_T2CaloSwCluster',
643 'TrigCaloClusterContainer_p3_HLT_TrigT2Calo',
644 'egammaContainer_p3_HLT_egamma',
645 'egammaContainer_p4_HLT_egamma',
646 'egammaContainer_p3_HLT_egamma_Photons',
647 'egammaContainer_p4_HLT_egamma_Photons',
648 'egammaContainer_p3_HLT_egamma_Electrons',
649 'egammaContainer_p4_HLT_egamma_Electrons',
650 'TrigRNNOutputContainer_tlp1_HLT_TrigRingerNeuralFex',
651 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreationTRTOnly_Electron_EFID',
652 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_Electron_EFID',
653
654 # Only in ESDs
655 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_Photon_EFID',
656 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_Electron_EFID',
657 'CaloCompactCellContainer_HLT_TrigT2CaloEgammaCells',
658 'TrigEMClusterContainer_tlp1_HLT_TrigCaloRinger',
659 'TrigEMClusterContainer_p3_HLT_TrigCaloRinger',
660 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_Photon_EFID',
661 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_Electron_EFID',
662 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_Photon_EFID',
663 ]
664 triggerCounterEgamma = Counter('triggerEgamma',triggerListEgamma)
665
666 triggerListJet = [
667 'JetCollection_tlp2_HLT',
668 'JetCollection_tlp2_HLT_TrigJetRec',
669 'JetCollection_tlp5_HLT_TrigJetRec',
670 'JetCollection_tlp6_HLT_TrigJetRec',
671 'TrigT2JetContainer_tlp1_HLT_TrigT2CaloJet',
672 'TrigT2JetContainer_p3_HLT_TrigT2CaloJet',
673 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Jet_robust',
674 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Jet_robust',
675 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Jet_robust',
676 ]
677 triggerCounterJet = Counter('triggerJet',triggerListJet)
678
679 triggerListMET = [
680 'TrigMissingETContainer_tlp1_HLT_T2MissingET',
681 'TrigMissingETContainer_tlp1_HLT_TrigEFMissingET',
682 'TrigMissingETContainer_tlp1_HLT_TrigEFMissingET_FEB',
683 'TrigMissingETContainer_tlp1_HLT_TrigEFMissingET_noiseSupp',
684 'TrigMissingETContainer_tlp1_HLT_TrigEFMissingET_allCells',
685 'TrigMissingETContainer_tlp1_HLT_L2JetEtSum',
686 'TrigMissingETContainer_tlp1_HLT_EFJetEtSum',
687 'TrigMissingETContainer_p3_HLT_T2MissingET',
688 'TrigMissingETContainer_p3_HLT_TrigEFMissingET',
689 'TrigMissingETContainer_p3_HLT_TrigEFMissingET_FEB',
690 'TrigMissingETContainer_p3_HLT_TrigEFMissingET_noiseSupp',
691 'TrigMissingETContainer_p3_HLT_TrigEFMissingET_allCells',
692 'TrigMissingETContainer_p3_HLT_L2JetEtSum',
693 'TrigMissingETContainer_p3_HLT_EFJetEtSum',
694 'TrigMissingETContainer_p3_HLT_L2MissingET_FEB',
695 'TrigMissingETContainer_p3_HLT_TrigEFMissingET_topocl',
696 ]
697 triggerCounterMET = Counter('triggerMET',triggerListMET)
698
699 triggerListMinBias = [
700 'TrigSpacePointCountsCollection_p4_HLT_spacepoints',
701 'TrigSpacePointCountsCollection_tlp1_HLT_spacepoints',
702 'TrigTrackCountsCollection_tlp1_HLT',
703 'TrigT2MbtsBitsContainer_tlp1_HLT_T2Mbts',
704 'TrigT2MbtsBitsContainer_p3_HLT_T2Mbts',
705 'TrigTrackCountsCollection_tlp1_HLT_trackcounts',
706 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_minBias_EFID',
707 'TrigVertexCountsCollection_tlp1_HLT_vertexcounts',
708 ]
709 triggerCounterMinBias = Counter('triggerMinBias',triggerListMinBias)
710
711 triggerListMuon = [
712 'HLT_MuonFeatureContainer',
713 'HLT_MuonFeatureDetailsContainer',
714 'HLT_CombinedMuonFeatureContainer',
715 'CombinedMuonFeatureContainer_tlp1_HLT',
716 'IsoMuonFeatureContainer_tlp1_HLT',
717 'CombinedMuonFeatureContainer_p2_HLT',
718 'CombinedMuonFeatureContainer_p3_HLT',
719 'CombinedMuonFeatureContainer_p4_HLT',
720 'MuonFeatureContainer_p3_HLT',
721 'MuonFeatureContainer_tlp1_HLT',
722 'MuonFeatureContainer_tlp2_HLT',
723 'MuonFeatureDetailsContainer_p2_HLT',
724 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Muon_EFID',
725 'TileMuFeatureContainer_p2_HLT',
726 'TileMuFeatureContainer_tlp1_HLT',
727 'TileTrackMuFeatureContainer_tlp1_HLT',
728 'TileTrackMuFeatureContainer_p3_HLT',
729 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Muon',
730 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Muon',
731 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Muon',
732 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_muonIso',
733 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_muonIso',
734 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_muonIso',
735 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Tile',
736 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Tile',
737 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Tile',
738 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Muon',
739 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Muon',
740 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Muon',
741 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_muonIso',
742 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_muonIso',
743 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_muonIso',
744 'TrigMuonEFIsolationContainer_p1_HLT_MuonEFIsolation',
745 'TrigMuonEFIsolationContainer_p2_HLT_MuonEFIsolation',
746 'TrigMuonEFContainer_tlp1_HLT_MuonEF',
747 'TrigMuonEFInfoContainer_tlp1_HLT_MuonEFInfo',
748 'TrigMuonEFInfoContainer_tlp2_HLT_MuonEFInfo',
749 'TrigMuonEFInfoContainer_tlp1_HLT_MuonEF',
750 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Muon_robust',
751 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Muon_robust',
752 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Muon_robust',
753 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Tile',
754 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Tile',
755 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Tile',
756 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Tile_robust',
757 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Tile_robust',
758 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Tile_robust',
759 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_muonIso_robust',
760 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_muonIso_robust',
761 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_muonIso_robust',
762 'MuonFeatureDetailsContainer_tlp1_HLT',
763 'TrigMuonEFInfoContainer_tlp1_HLT_MuTagIMO_EF',
764 'TrigMuonEFInfoContainer_tlp2_HLT_MuTagIMO_EF',
765 'TrigMuonEFInfoContainer_tlp1_HLT_eMuonEFInfo',
766 'TrigMuonEFInfoContainer_tlp2_HLT_eMuonEFInfo',
767 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreationTRTOnly_Muon_EFID',
768 'TrigMuonClusterFeatureContainer_tlp1_HLT_MuonCluster',
769 'IsoMuonFeatureContainer_p2_HLT',
770 'IsoMuonFeatureContainer_p3_HLT',
771 'ElectronMuonTopoInfoContainer_p1_HLT_EF_EgMuTopoFEX',
772 'ElectronMuonTopoInfoContainer_p1_HLT_EgMuTopoFEX',
773 'ElectronMuonTopoInfoContainer_p1_HLT_EF_PhotonMuonTopoFEX',
774 'ElectronMuonTopoInfoContainer_p1_HLT_L2_PhotonMuonTopoFEX',
775 # Only in ESDs
776 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_Muon_EFID',
777 'Muon::TgcCoinDataContainer_tlp1_TrigT1CoinDataCollectionNextBC',
778 'Muon::TgcCoinDataContainer_tlp1_TrigT1CoinDataCollectionPriorBC',
779 'Muon::TgcCoinDataContainer_tlp1_TrigT1CoinDataCollection',
780 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_Muon_EFID',
781 'Muon::TgcCoinDataContainer_tlp2_TrigT1CoinDataCollectionNextBC',
782 'Muon::TgcCoinDataContainer_tlp2_TrigT1CoinDataCollectionPriorBC',
783 'Muon::MuonPRD_Container_p2<Muon::RpcCoinData_p1>_RPC_triggerHits',
784 'Muon::TgcCoinDataContainer_tlp2_TrigT1CoinDataCollection',
785 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreationTRTOnly_Muon_EFID',
786 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_Muon_EFID',
787 'HLT_xAOD__RoiDescriptorStore_forMS',
788 'HLT_xAOD__RoiDescriptorStore_forMSAux.',
789 ]
790 triggerCounterMuon = Counter('triggerMuon',triggerListMuon)
791
792 triggerListSteer = [
793 'HLT::HLTResult_p1_HLTResult_EF',
794 'HLT::HLTResult_p1_HLTResult_L2',
795 'TrigDec::TrigDecision_p1_TrigDecision',
796 'TrigDec::TrigDecision_p2_TrigDecision',
797 'TrigDec::TrigDecision_p3_TrigDecision',
798 'TrigDec::TrigDecision_p4_TrigDecision',
799 'TrigDec::TrigDecision_p5_TrigDecision',
800 'TrigRoiDescriptorCollection_p2_HLT',
801 'TrigRoiDescriptorCollection_p2_HLT_forID',
802 'TrigRoiDescriptorCollection_p2_HLT_forMS',
803 'TrigRoiDescriptorCollection_p2_HLT_initialRoI',
804 'TrigRoiDescriptorCollection_p2_HLT_secondaryRoI_EF',
805 'TrigRoiDescriptorCollection_p2_HLT_secondaryRoI_L2',
806 'TrigRoiDescriptorCollection_p2_HLT_T2TauFinal',
807 'TrigRoiDescriptorCollection_p2_HLT_TrigCaloRinger',
808 'TrigRoiDescriptorCollection_p2_HLT_TrigT2CaloEgamma',
809 'TrigRoiDescriptorCollection_p2_HLT_TrigT2CaloJet',
810 'TrigRoiDescriptorCollection_p2_HLT_TrigT2CaloTau',
811 'TrigRoiDescriptorCollection_tlp1_HLT',
812 'TrigRoiDescriptorCollection_tlp1_HLT_forID',
813 'TrigRoiDescriptorCollection_tlp1_HLT_forMS',
814 'TrigRoiDescriptorCollection_tlp1_HLT_initialRoI',
815 'TrigRoiDescriptorCollection_tlp1_HLT_secondaryRoI_EF',
816 'TrigRoiDescriptorCollection_tlp1_HLT_secondaryRoI_L2',
817 'TrigRoiDescriptorCollection_tlp1_HLT_T2TauFinal',
818 'TrigRoiDescriptorCollection_tlp1_HLT_TrigCaloRinger',
819 'TrigRoiDescriptorCollection_tlp1_HLT_TrigT2CaloEgamma',
820 'TrigRoiDescriptorCollection_tlp1_HLT_TrigT2CaloJet',
821 'TrigRoiDescriptorCollection_tlp1_HLT_TrigT2CaloTau',
822 'HLT_xAOD__RoiDescriptorStore_secondaryRoI_L2',
823 'HLT_xAOD__RoiDescriptorStore_secondaryRoI_L2Aux.',
824 'HLT_xAOD__RoiDescriptorStore_secondaryRoI_EF',
825 'HLT_xAOD__RoiDescriptorStore_secondaryRoI_EFAux.',
826 'HLT_xAOD__RoiDescriptorStore_secondaryRoI_HLT',
827 'HLT_xAOD__RoiDescriptorStore_secondaryRoI_HLTAux.',
828 'HLT_xAOD__RoiDescriptorStore_initialRoI',
829 'HLT_xAOD__RoiDescriptorStore_initialRoIAux.',
830 # Only in ESDs
831 'TrigOperationalInfoCollection_tlp1_HLT_OPI_EF',
832 'TrigOperationalInfoCollection_tlp1_HLT_OPI_L2',
833 'CTP_RDO_p2_CTP_RDO',
834 'RoIBResult_p1_RoIBResult',
835 'RingerRingsContainer_tlp1_HLT_TrigCaloRinger',
836 #new
837 'TrigPassBitsCollection_p1_HLT_passbits',
838 'IOVMetaDataContainer_p1__TRIGGER_HLT_Prescales',
839 ]
840 triggerCounterSteer = Counter('triggerSteer',triggerListSteer)
841
842 triggerListTau = [
843 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Tau_EFID',
844 'TauDetailsContainer_tlp1_HLT_TrigTauDetailsCalo',
845 'TauDetailsContainer_tlp1_HLT_TrigTauDetailsMerged',
846 'TauDetailsContainer_tlp1_HLT_TrigTauExtraDetailsMerged',
847 'TauJetContainer_p3_HLT_TrigTauRecCalo',
848 'TauJetContainer_p3_HLT_TrigTauRecMerged',
849 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Tau',
850 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Tau',
851 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Tau',
852 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Tau',
853 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Tau',
854 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Tau',
855 'TrigTauClusterContainer_tlp1_HLT_TrigT2CaloTau',
856 'TrigTauClusterContainer_p4_HLT_TrigT2CaloTau',
857 'TrigTauContainer_tlp1_HLT',
858 'TrigTauContainer_p3_HLT',
859 'TrigTauClusterContainer_p3_HLT_TrigT2CaloTau',
860 'TrigTauClusterContainer_p5_HLT_TrigT2CaloTau',
861 'TrigTauClusterDetailsContainer_p2_HLT_TrigT2CaloTauDetails',
862 'TrigTauTracksInfoCollection_tlp1_HLT',
863 'TrigTauTracksInfoCollection_p2_HLT',
864 'TrigTauClusterDetailsContainer_tlp1_HLT_TrigT2CaloTau',
865 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreationTRTOnly_Tau_EFID',
866 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Tau_SiTrk_EFID',
867 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreation_Tau_IDOnly_EFID',
868 'TrigInDetTrackCollection_tlp1_HLT_TrigSiTrack_Tau_robust',
869 'TrigInDetTrackCollection_tlp2_HLT_TrigSiTrack_Tau_robust',
870 'TrigInDetTrackCollection_tlp3_HLT_TrigSiTrack_Tau_robust',
871 'TrigInDetTrackCollection_tlp1_HLT_TrigIDSCAN_Tau_IDOnly',
872 'TrigInDetTrackCollection_tlp2_HLT_TrigIDSCAN_Tau_IDOnly',
873 'TrigInDetTrackCollection_tlp3_HLT_TrigIDSCAN_Tau_IDOnly',
874 'TrigTauClusterDetailsContainer_tlp1_HLT_TrigT2CaloTauDetails',
875 'TauDetailsContainer_tlp2_HLT_TrigTauDetailsCalo',
876 'TauDetailsContainer_tlp3_HLT_TrigTauDetailsCalo',
877 'TauDetailsContainer_tlp2_HLT_TrigTauDetailsMerged',
878 'TauDetailsContainer_tlp3_HLT_TrigTauDetailsMerged',
879 'TauDetailsContainer_tlp2_HLT_TrigTauExtraDetailsMerged',
880 'TauJetContainer_p4_HLT_TrigTauRecCalo',
881 'TauJetContainer_p4_HLT_TrigTauRecMerged',
882 'JetCollection_tlp6_HLT_TrigTauJet',
883 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreation_Tau_EFID',
884 # Only in ESDs
885 'Trk::TrackCollection_tlp2_HLT_InDetTrigTrackSlimmer_Tau_EFID',
886 'CaloCompactCellContainer_HLT_TrigT2CaloTauCells',
887 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_Tau_EFID',
888 'Rec::TrackParticleContainer_tlp2_HLT_InDetTrigParticleCreationTRTOnly_Tau_EFID',
889 ]
890 triggerCounterTau = Counter('triggerTau',triggerListTau)
891
892 triggerListL1 = [
893 'CPMHitsCollection_tlp1_CPMHits',
894 'JetElementCollection_tlp1_JetElements',
895 'CaloTowerContainer_p1_HLT_TrigCaloTowerMaker',
896 'CMMCPHitsCollection_tlp1_CMMCPHits',
897 'CMMEtSumsCollection_tlp1_CMMEtSums',
898 'CMMJetHitsCollection_tlp1_CMMJetHits',
899 'CMMRoI_p1_CMMRoIs',
900 'CPMRoICollection_tlp1_CPMRoIs',
901 'CPMTowerCollection_tlp1_CPMTowers',
902 'CTP_Decision_p2_CTP_Decision',
903 'JEMEtSumsCollection_tlp1_JEMEtSums',
904 'JEMHitsCollection_tlp1_JEMHits',
905 'JEMRoICollection_tlp1_JEMRoIs',
906 'LVL1_ROI_p1_LVL1_ROI',
907 'TriggerTowerCollection_tlp1_TriggerTowers',
908 'IOVMetaDataContainer_p1__TRIGGER_LVL1_ItemDef',
909 ]
910 triggerCounterL1 = Counter('triggerL1',triggerListL1)
911
912 triggerListCommon = [
913 'CaloClusterContainer_p4_HLT',
914 'CaloClusterContainer_p5_HLT',
915 'CaloClusterContainer_p4_HLT_TrigCaloClusterMaker',
916 'CaloClusterContainer_p5_HLT_TrigCaloClusterMaker',
917 'CaloShowerContainer_p2_HLT',
918 'TrigInDetTrackCollection_tlp1_HLT',
919 'TrigInDetTrackCollection_tlp2_HLT',
920 'TrigInDetTrackCollection_tlp3_HLT',
921 'TrigInDetTrackCollection_tlp1_HLT_TRTSegmentFinder',
922 'TrigInDetTrackCollection_tlp2_HLT_TRTSegmentFinder',
923 'TrigInDetTrackCollection_tlp3_HLT_TRTSegmentFinder',
924 'TrigInDetTrackCollection_tlp1_HLT_TRTxK',
925 'TrigInDetTrackCollection_tlp2_HLT_TRTxK',
926 'TrigInDetTrackCollection_tlp3_HLT_TRTxK',
927 'Trk::TrackCollection_tlp3_HLT_InDetTrigTrackSlimmer_FullScan_EFID',
928 'Rec::TrackParticleContainer_tlp1_HLT_InDetTrigParticleCreationTRTOnly_FullScan_EFID',
929 'CaloClusterContainer_p6_HLT',
930 'CaloClusterContainer_p7_HLT',
931 'CaloClusterContainer_p6_HLT_TrigCaloClusterMaker',
932 'CaloClusterContainer_p7_HLT_TrigCaloClusterMaker',
933 'TrigTrtHitCountsCollection_tlp1_HLT_TrtHitCount',
934 'TrigTrtHitCountsCollection_p2_HLT_TrtHitCount',
935
936 ]
937 triggerCounterCommon = Counter('triggerCommon',triggerListCommon)
938
939 triggerListHLTNav = []
940 triggerCounterHLTNav = Counter('triggerHLTNav',triggerListHLTNav)
941
942 triggerListUTT = []
943 triggerCounterUTT = Counter('UTT', triggerListUTT)
944
945
946 truthList = [
947 'McEventCollection_p4_GEN_AOD',
948 'MissingEtTruth_p1_MET_Truth',
949 'MissingEtTruth_p1_MET_Truth_PileUp',
950 'MissingEtTruth_p3_MET_Truth_PileUp',
951 'MissingEtTruth_p3_MET_Truth',
952 'Rec::TrackParticleTruthCollection_p1_TrackParticleTruthCollection',
953 'TrackRecordCollection_p2_MuonEntryLayerFilter',
954 'TruthParticleContainer_p5_SpclMC',
955 'TruthParticleContainer_p5_INav4MomTruthEvent',
956 'JetCollection_tlp5_AntiKt4TruthJets',
957 ]
958 truthCounter = Counter('truth',truthList)
959
960
961 listofTriggerCounters = [
962 triggerCounterBjet,
963 triggerCounterBphys,
964 triggerCounterConfig,
965 triggerCounterCosmics,
966 triggerCounterEgamma,
967 triggerCounterID,
968 triggerCounterJet,
969 triggerCounterMET,
970 triggerCounterMinBias,
971 triggerCounterMuon,
972 triggerCounterTau,
973 triggerCounterCommon,
974 triggerCounterSteer,
975 triggerCounterL1,
976 triggerCounterHLTNav,
977 triggerCounterUTT,
978
979 ]
980
981 listofNonTrigCounters = [
982 atlfastCounter,
983 caloCounter,
984 egammaCounter,
985 eventinfoCounter,
986 emtCounter,
987 indetCounter,
988 jetCounter,
989 jtCounter,
990 metCounter,
991 muonCounter,
992 tauCounter,
993 truthCounter,
994 ]
995
996 listofCounters = listofTriggerCounters+listofNonTrigCounters
997
998
999 # when running from command line, it expects the output of running checkFile on an AOD.
1000 # if this isn't passed, it strips the .checkFile of the name from the file and runs checkFile on it
1001 print("file:", self.checkFile)
1002 if '.checkFile' in self.checkFile:
1003 try:
1004 file = open(self.checkFile,'r')
1005 except Exception:
1006 parentFile = self.checkFile.replace(".checkFile","")
1007 print("WARNING: generating %s from %s", self.checkFile, parentFile)
1008 os.system("checkFile.py " + parentFile + " >"+self.checkFile+"0")
1009 file = open(self.checkFile+"0",'r')
1010 if file == 0:
1011 return self.error
1012 else:
1013 print("Passed a root file, running check file on it")
1014 os.system("checkFile.py " + self.checkFile + " >"+self.checkFile+"0")
1015 print("Finished running checkFile, now opening output and analysing the TrigSize")
1016 file = open(self.checkFile+"0",'r')
1017
1018
1019 self.total = 0
1020 doublesList = {} #if an entry in the checkFile output matches >=2 Counter items
1021
1022 sumNU = 0 #sum of non used containers
1023
1024
1025 self.triggerAlgList = []
1026 triggerAlgListNotIncluded = []
1027 nontriggerAlgList = []
1028 self.totalAlgSize = 0.0
1029
1030 while 1:
1031
1032 line = file.readline()
1033 if not line:
1034 break
1035
1036 splitline = line.split()
1037
1038 #get the total from the last line of the file
1039 if re.search("TOTAL",line):
1040 self.total = float(splitline[4])
1041
1042 #for new xAOD
1043 if re.search("Total",line):
1044 if (str(splitline[4])).isnumeric():
1045 self.total = float(splitline[4])
1046
1047 #only count the good lines (ie. not "=====", etc.)
1048 if len(splitline)!=10:
1049 continue
1050
1051 #the name of the class
1052 name = splitline[9]
1053
1054 #size per events
1055 sizePerEvent = splitline[4]
1056
1057 isLineCounted = False
1058
1059 # sum of all algorithm sizes in checkFile
1060 self.totalAlgSize += float(sizePerEvent)
1061
1062 # Variable for testing if algorithm might be trigger related
1063 # Used in the last elif statement
1064 TrigInName = name.find("Trig") + name.find("HLT") + name.find("LVL1")
1065
1066
1069 if edm.getCategory(name) != 'NOTFOUND':
1070 self.triggerAlgList.append([name, edm.getCategory(name), float(sizePerEvent)])
1071
1072
1073 elif edm.getCategory(name) == 'NOTFOUND' and name.count('IOVMetaDataContainer'):
1074 self.triggerAlgList.append([name, 'Config', float(sizePerEvent)])
1075
1076 elif edm.getCategory(name) == 'NOTFOUND' and name in triggerListConfig:
1077 self.triggerAlgList.append([name, 'Config', float(sizePerEvent)])
1078
1079 elif edm.getCategory(name) == 'NOTFOUND' and name in triggerListMuon:
1080 self.triggerAlgList.append([name, 'Muon', float(sizePerEvent)])
1081
1082 elif edm.getCategory(name) == 'NOTFOUND' and name in triggerListSteer:
1083 self.triggerAlgList.append([name, 'Steer', float(sizePerEvent)])
1084
1085 elif edm.getCategory(name) == 'NOTFOUND' and name in triggerListConfigID:
1086 self.triggerAlgList.append([name, 'Tracking', float(sizePerEvent)])
1087
1088 elif edm.getCategory(name) == 'NOTFOUND' and name.startswith("HLTNav_"):
1089 self.triggerAlgList.append([name, 'HLTNav', float(sizePerEvent)])
1090
1091 elif edm.getCategory(name) == 'NOTFOUND' and name.startswith("TrigMatch_"):
1092 self.triggerAlgList.append([name, 'TrigMatching', float(sizePerEvent)])
1093
1094
1095
1098 elif edm.getCategory(name) == 'NOTFOUND' and TrigInName != -3:
1099 triggerAlgListNotIncluded.append([name, edm.getCategory(name), float(sizePerEvent)])
1100
1101
1102
1103 else:
1104 nontriggerAlgList.append([name, 'NonTrigger', float(sizePerEvent)])
1105
1106
1107 #loop over each counter
1108 for counter in listofCounters:
1109
1110 #loop over each item in each counter
1111 for item in counter.itemList:
1112
1113 #check that item has not already been counted
1114 if item==name and isLineCounted:
1115 doublesList[name]=item
1116 #if not already counted, increment the size of the Counter
1117 if item==name and not isLineCounted:
1118 counter.size += float(splitline[4])
1119 isLineCounted = True
1120
1121 if not isLineCounted:
1122 try:
1123 sumNU += float(splitline[4])
1124 except Exception:
1125 pass
1126 TrigInName = name.find("Trig") + name.find("HLT") + name.find("LVL1")
1127
1128 sum = 0 #the sum of all counters (should be equal to 'total')
1129 sumTrig = 0 #the sum of trigger component
1130 sumNonTrig = 0 #the sum of non trigger component
1131
1132
1134
1135 self.triggerAlgSize = {}
1136 self.triggerAlgSize[ 'Total' ] = 0.0
1137 for triggerAlg in self.triggerAlgList:
1138 if not triggerAlg[1] in self.triggerAlgSize: self.triggerAlgSize[ triggerAlg[1] ] = triggerAlg[2]
1139 else: self.triggerAlgSize[ triggerAlg[1] ] += triggerAlg[2]
1140 self.triggerAlgSize[ 'Total' ] += triggerAlg[2]
1141
1142
1144
1145 self.totalAlgSizeInLists = 0.0
1146 allAlgList = self.triggerAlgList + triggerAlgListNotIncluded + nontriggerAlgList
1147 for item in allAlgList:
1148 self.totalAlgSizeInLists += item[2]
1149
1150
1152
1153 fileNameAddition = ""
1154 if "checkFile" in self.checkFile:
1155 fileNameAddition = "trigSize.txt"
1156 else:
1157 fileNameAddition = "checkFiletrigSize.txt"
1158
1159 fout =open(self.checkFile+fileNameAddition,'w')
1160 print()
1161 print("Summary of categories:")
1162 fout.write( "\n Summary of categories:\n")
1163
1164 #print the size of each counter (and calculate the sum)
1165 for counter in listofCounters:
1166 sum += counter.size
1167
1168 #Compute the total size of trigger component
1169 for counter in listofTriggerCounters:
1170 sumTrig += counter.size
1171 # print counter.name.ljust(24), "%6.3f" % counter.size
1172 # fout.write( counter.name.ljust(24) + "%6.3f" % counter.size + "\n")
1173 for key in sorted(self.triggerAlgSize):
1174 if not key == 'Total':
1175 print("trigger"+key.ljust(24), "%6.3f" % self.triggerAlgSize[key])
1176 fout.write( "trigger"+key.ljust(24) + "%6.3f" % self.triggerAlgSize[key] + "\n")
1177
1178 #Compute the total size of non trigger component
1179 for counter in listofNonTrigCounters:
1180 sumNonTrig += counter.size
1181
1182 fout.write("\n=====================\n")
1183 print()
1184 print("=====================")
1185 print("Total Trigger Size".ljust(23), "%6.3f" % self.triggerAlgSize[ 'Total' ])
1186 fout.write("Total Trigger Size".ljust(23) + "%6.3f" % self.triggerAlgSize[ 'Total' ] + "\n")
1187 print("Total file size".ljust(23), self.totalAlgSize)
1188 fout.write("Total file size".ljust(23) + "%6.3f" % self.totalAlgSize + "\n")
1189 print()
1190 fout.write("\n ")
1191 print("Total file size (list)".ljust(23), self.totalAlgSizeInLists)
1192 fout.write("Total file size (list)".ljust(23) + "%6.3f" % self.totalAlgSizeInLists + "\n")
1193 print("Total (from checkFile)".ljust(23), self.total)
1194 fout.write("Total (from checkFile)".ljust(23)+"%6.3f" % self.total + "\n")
1195 print()
1196 print()
1197 print("*******************************************************************")
1198 fout.write( "\n********************************************************************\n")
1199 print("")
1200 print()
1201 if len(self.triggerAlgList) > 0:
1202 fout.write( "\nThe following were found in TriggerEDM and counted but have a classification 'Unknown': \n")
1203 for item in self.triggerAlgList:
1204 if item[1] == 'Unknown':
1205 fout.write( "INFO: "+item[0]+"\n" )
1206
1207 if len(triggerAlgListNotIncluded) > 0:
1208 fout.write( "\nThe following were not found in TriggerEDM and were not counted. \n")
1209 fout.write( "Check if they are included in TriggerEDM. They must be if they are here! \n")
1210 fout.write( "The problem must be with the search method in TriggerEDM.getCategory(). Please debug. \n")
1211 for item in triggerAlgListNotIncluded:
1212 fout.write( "WARNING: Unknown item "+item[0]+"\n")
1213 return self.error
1214 return self.success
1215
1216
1217
1218
1219# This is just for testing outside of the RTT
1220if __name__ == "__main__":
1221
1222 # if the my.AOD.file.pool.root.checkFile is not found, the .checkFile part is stripped and checkFile is run over the file
1223
1224 parser = OptionParser( usage = "usage: %prog [-f] my.AOD.file.pool.root.checkFile" )
1225 p = parser.add_option
1226 p( "-f",
1227 "--file",
1228 dest = "fileName",
1229 help = "The path to the checkFile output of an AOD file to analyse" )
1230
1231 (options, args) = parser.parse_args()
1232
1233 fileNames = []
1234 if len(args) > 0:
1235 fileNames = [arg for arg in args if arg[0] != "-"]
1236 pass
1237
1238 if options.fileName is None and len(fileNames) == 0:
1239 str(parser.print_help() or "")
1240 sys.exit(1)
1241
1242 if options.fileName is not None:
1243 fileName = os.path.expandvars(os.path.expanduser(options.fileName))
1244 fileNames.append(fileName)
1245 pass
1246
1247 params = {'checkFile': fileNames[0]}
1249 status = r.run()
1250
1251 sys.exit(status)
void print(char *figname, TCanvas *c1)
__init__(self, myname, mylist)
float totalAlgSizeInLists
======================================================== Calculate total size of all algs / cont in l...
dict triggerAlgSize
======================================================== Calculate trigger category sizes and store i...
list triggerAlgList
list of trigger algorithms found in AOD, their category, and their size in the AOD
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition hcg.cxx:312