8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
10 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
12 from AthenaConfiguration.ComponentFactory
import CompFactory
13 from AthenaConfiguration.Enums
import Format, MetadataCategory
18 Core fragment for L1CALO derivations
20 from AthenaCommon.Logging
import logging
21 log = logging.getLogger(
'L1CALO')
22 log.info(
'Called L1CaloCore config for derivation %s',deriv)
24 streamNameStem =
"DAOD_" + deriv
25 streamName =
"Stream" + streamNameStem
31 isNotPool = flags.Input.Format
is not Format.POOL
37 from TrigT1CaloByteStream.LVL1CaloRun2ByteStreamConfig
import LVL1CaloRun2ReadBSCfg
45 if 'L1CALO1' in deriv
and isNotPool:
46 from TrigT1CaloCalibTools.L1CaloCalibToolsConfig
import LegacyTriggerTowerThinningCfg
49 name =
"L1CALOCaloThinningTool",
50 StreamName = streamName,
51 TriggerTowerLocation =
"xAODTriggerTowers",
56 thinningTools.append(LegacyTowerThinningTool)
61 from TrigT1CaloCalibTools.L1CaloCalibToolsConfig
import LegacyTriggerTowerDecoratorCfg
66 if not isNotPool
and not flags.Input.isMC:
68 skimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"L1CALOSkimmingTool1",
69 TriggerListOR = [
"HLT_noalg_L1XE.*"] )
70 acc.addPublicTool(skimmingTool, primary =
True)
71 skimmingTools.append(skimmingTool)
74 augmentationTools = []
77 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
79 name =
"DFL1CALO_KERN",
80 AugmentationTools = augmentationTools,
81 ThinningTools = thinningTools,
82 SkimmingTools = skimmingTools,
83 RunSkimmingFirst =
not isNotPool,
84 doChronoStat=(flags.Concurrency.NumThreads <= 1),
91 from L1CaloFEXSim.L1CaloFEXSimCfg
import ReadSCellFromByteStreamCfg
95 emulatedDataTowersKey =
"L1_jFexEmulatedTowers"
96 if flags.Trigger.L1.dojFex
and isNotPool:
97 from L1CaloFEXAlgos.FexEmulatedTowersConfig
import jFexEmulatedTowersCfg
101 extraJfexInfo =
False
102 if flags.Trigger.L1.dojFex
and isNotPool:
103 from L1CaloFEXAlgos.L1CaloFEXAlgosConfig
import L1CalojFEXDecoratorCfg
107 if flags.Trigger.L1.dojFex
and isNotPool:
108 acc.merge(
L1CalojFEXDecoratorCfg(flags,name=
'jFexTower2SCellEmulatedDecorator',jTowersReadKey=emulatedDataTowersKey,ExtraInfo=extraJfexInfo))
111 if flags.Trigger.L1.doeFex
and isNotPool:
112 from L1CaloFEXAlgos.FexEmulatedTowersConfig
import eFexEmulatedTowersCfg
114 acc.merge(eFexEmulatedTool)
117 from L1CaloFEXSim.L1CaloFEXSimCfg
import L1CaloFEXSimCfg
121 SCellType = flags.Trigger.L1.L1CaloSuperCellContainerName
122 if SCellType
in flags.Input.Collections:
126 if flags.Trigger.L1.doeFex
and isNotPool:
127 from L1CaloFEXAlgos.L1CaloFEXAlgosConfig
import eFexTOBDecoratorCfg
129 from TrigDecisionTool.TrigDecisionToolConfig
import getRun3NavigationContainerFromInput
131 DecoratorAlgo =
eFexTOBDecoratorCfg(flags,
'eFexTOBDecorator',
'L1_eEMRoI',
'L1_eTauRoI',ExtraInputs)
132 acc.merge(DecoratorAlgo)
133 DecoratorAlgoSim =
eFexTOBDecoratorCfg(flags,
'eFexTOBDecoratorSim',
'L1_eEMRoISim',
'L1_eTauRoIAltSim')
134 acc.merge(DecoratorAlgoSim)
137 from L1CaloFEXAlgos.L1CaloFEXAlgosConfig
import eFexTOBSuperCellDecoratorCfg
141 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
143 L1CaloSlimmingHelper =
SlimmingHelper(
"L1CaloSlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
147 SmartCollections = []
150 L1CaloSlimmingHelper.IncludeTriggerNavigation =
True
151 L1CaloSlimmingHelper.IncludeAdditionalTriggerContent =
False
153 L1CaloSlimmingHelper.IncludeEGammaTriggerContent =
True
154 L1CaloSlimmingHelper.IncludeJetTriggerContent =
True
155 L1CaloSlimmingHelper.IncludeBJetTriggerContent =
True
156 L1CaloSlimmingHelper.IncludeTauTriggerContent =
True
163 if isNotPool
and L1CaloSlimmingHelper.IncludeEGammaTriggerContent:
166 L1CaloSlimmingHelper.IncludeEGammaTriggerContent =
False
167 ElToKeep = [
'ptcone20',
'ptvarcone20',
'ptcone30',
'ptvarcone30',
'trk_d0',
'cl_eta2',
'cl_phi2',
'deltaEta1PearDistortion']
168 ElVars =
'.'.
join(ElToKeep)
169 StaticContent += [
"xAOD::ElectronContainer#HLT_egamma_Electrons"]
170 StaticContent += [
"xAOD::ElectronAuxContainer#HLT_egamma_ElectronsAux."+ElVars]
171 StaticContent += [
"xAOD::ElectronContainer#HLT_egamma_Electrons_GSF"]
172 StaticContent += [
"xAOD::ElectronAuxContainer#HLT_egamma_Electrons_GSFAux."+ElVars]
174 L1CaloSlimmingHelper.AppendToDictionary.update({
"HLT_CaloEMClusters_Electron":
"xAOD::CaloClusterContainer",
175 "HLT_CaloEMClusters_ElectronAux":
"xAOD::CaloClusterAuxContainer"})
176 AllVariables += [
"HLT_CaloEMClusters_Electron"]
177 L1CaloSlimmingHelper.AppendToDictionary.update({
"HLT_IDTrack_Electron_IDTrig":
"xAOD::TrackParticleContainer",
178 "HLT_IDTrack_Electron_IDTrigAux":
"xAOD::TrackParticleAuxContainer"})
179 AllVariables += [
"HLT_IDTrack_Electron_IDTrig"]
180 L1CaloSlimmingHelper.AppendToDictionary.update({
"HLT_IDTrack_Electron_GSF":
"xAOD::TrackParticleContainer",
181 "HLT_IDTrack_Electron_GSFAux":
"xAOD::TrackParticleAuxContainer"})
182 AllVariables += [
"HLT_IDTrack_Electron_GSF"]
184 if isNotPool
and L1CaloSlimmingHelper.IncludeJetTriggerContent:
187 L1CaloSlimmingHelper.AppendToDictionary.update ({
"HLT_AntiKt4EMTopoJets_nojcalib":
"xAOD::JetContainer",
188 "HLT_AntiKt4EMTopoJets_nojcalibAux":
"xAOD::JetAuxContainer",
189 "HLT_AntiKt4EMTopoJets_nojcalib_ftf":
"xAOD::JetContainer",
190 "HLT_AntiKt4EMTopoJets_nojcalib_ftfAux":
"xAOD::JetAuxContainer",
191 "HLT_AntiKt4EMTopoJets_subjesIS":
"xAOD::JetContainer",
192 "HLT_AntiKt4EMTopoJets_subjesISAux":
"xAOD::ShallowAuxContainer",
193 "HLT_AntiKt4EMPFlowJets_nojcalib_ftf":
"xAOD::JetContainer",
194 "HLT_AntiKt4EMPFlowJets_nojcalib_ftfAux":
"xAOD::JetAuxContainer",
195 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf":
"xAOD::JetContainer",
196 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftfAux":
"xAOD::ShallowAuxContainer",
197 "HLT_AntiKt4EMPFlowJets_subjesgscIS_ftf":
"xAOD::JetContainer",
198 "HLT_AntiKt4EMPFlowJets_subjesgscIS_ftfAux":
"xAOD::ShallowAuxContainer",
199 "HLT_AntiKt10EMPFlowCSSKSoftDropBeta100Zcut10Jets_jes_ftf":
"xAOD::JetContainer",
200 "HLT_AntiKt10EMPFlowCSSKSoftDropBeta100Zcut10Jets_jes_ftfAux":
"xAOD::JetAuxContainer",
201 "HLT_IDVertex_FS":
"xAOD::VertexContainer",
202 "HLT_IDVertex_FSAux":
"xAOD::VertexAuxContainer",
203 "HLT_TCEventInfo_jet":
"xAOD::TrigCompositeContainer",
204 "HLT_TCEventInfo_jetAux":
"xAOD::TrigCompositeAuxContainer",
205 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging":
"xAOD::BTaggingContainer",
206 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTaggingAux":
"xAOD::BTaggingAuxContainer",
207 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets":
"xAOD::JetContainer",
208 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux":
"xAOD::JetAuxContainer"})
210 AllVariables += [
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging",
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets"]
212 if L1CaloSlimmingHelper.IncludeTauTriggerContent:
213 L1CaloSlimmingHelper.AppendToDictionary.update ({
"HLT_TrigTauRecMerged_MVA":
"xAOD::TauJetContainer",
214 "HLT_TrigTauRecMerged_MVAAux":
"xAOD::TauJetAuxContainer",
215 "HLT_TrigTauRecMerged_LLP":
"xAOD::TauJetContainer",
216 "HLT_TrigTauRecMerged_LLPAux":
"xAOD::TauJetAuxContainer",
217 "HLT_TrigTauRecMerged_LRT":
"xAOD::TauJetContainer",
218 "HLT_TrigTauRecMerged_LRTAux":
"xAOD::TauJetAuxContainer",
219 "HLT_TrigTauRecMerged_CaloMVAOnly":
"xAOD::TauJetContainer",
220 "HLT_TrigTauRecMerged_CaloMVAOnlyAux":
"xAOD::TauJetAuxContainer"})
221 AllVariables += [
"HLT_TrigTauRecMerged_MVA",
"HLT_TrigTauRecMerged_LLP",
"HLT_TrigTauRecMerged_LRT",
"HLT_TrigTauRecMerged_CaloMVAOnly"]
224 L1CaloSlimmingHelper.AppendToDictionary.update({
"EventInfo":
"xAOD::EventInfo",
"EventInfoAux":
"xAOD::EventAuxInfo"})
227 AllVariables += [
"EventInfo",
"Kt4EMPFlowEventShape"]
231 L1CaloSlimmingHelper.AppendToDictionary.update (
232 {
"Muons":
"xAOD::MuonContainer",
"MuonsAux":
"xAOD::MuonAuxContainer",
233 "Photons":
"xAOD::PhotonContainer",
"PhotonsAux":
"xAOD::PhotonAuxContainer",
234 "TauJets":
"xAOD::TauJetContainer",
"TauJetsAux":
"xAOD::TauJetAuxContainer"}
236 AllVariables += [
"AntiKt4EMPFlowJets",
"AntiKt10LCTopoJets",
"Muons",
"Photons"]
237 AllVariables += [
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"]
239 SmartCollections += [
"TauJets"]
242 L1CaloSlimmingHelper.AppendToDictionary.update (
243 {
"Electrons":
"xAOD::ElectronContainer",
"ElectronsAux":
"xAOD::ElectronAuxContainer"} )
244 AllVariables += [
"Electrons"]
246 L1CaloSlimmingHelper.AppendToDictionary.update (
247 {
"ForwardElectrons":
"xAOD::ElectronContainer",
"ForwardElectronsAux":
"xAOD::ElectronAuxContainer"} )
248 AllVariables += [
"ForwardElectrons"]
251 AllVariables += [
"METAssoc_AntiKt4EMPFlow"]
255 StaticContent += [
"xAOD::MissingETContainer#MET_Reference_AntiKt4EMPFlow"]
256 StaticContent += [
"xAOD::MissingETAuxContainer#MET_Reference_AntiKt4EMPFlowAux.-ConstitObjectLinks.-ConstitObjectWeights"]
258 StaticContent += [
"xAOD::MissingETContainer#MET_Core_AntiKt4EMPFlow"]
259 StaticContent += [
"xAOD::MissingETAuxContainer#MET_Core_AntiKt4EMPFlowAux.name.mpx.mpy.sumet.source"]
261 StaticContent += [
"xAOD::MissingETContainer#MET_Track"]
262 StaticContent += [
"xAOD::MissingETAuxContainer#MET_TrackAux.name.mpx.mpy"]
264 AllVariables += [
"MET_Reference_AntiKt4EMPFlow"]
265 AllVariables += [
"MET_Core_AntiKt4EMPFlow"]
266 L1CaloSlimmingHelper.AppendToDictionary.update (
267 {
"MET_Track":
"xAOD::MissingETContainer",
"MET_TrackAux":
"xAOD::MissingETAuxContainer"} )
268 AllVariables += [
"MET_Track"]
272 StaticContent += [
"xAOD::VertexContainer#PrimaryVertices"]
273 StaticContent += [
"xAOD::VertexAuxContainer#PrimaryVerticesAux.-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"]
275 L1CaloSlimmingHelper.AppendToDictionary.update(
276 {
"PrimaryVertices":
"xAOD::VertexContainer",
"PrimaryVerticesAux":
"xAOD::VertexAuxContainer"}
278 AllVariables += [
"PrimaryVertices"]
282 L1CaloSlimmingHelper.AppendToDictionary.update (
283 {
"egammaTopoSeededClusters":
"xAOD::CaloClusterContainer",
"egammaTopoSeededClustersAux":
"xAOD::CaloClusterAuxContainer"}
285 AllVariables += [
"egammaTopoSeededClusters"]
289 StaticContent += [
"xAOD::VertexContainer#GSFConversionVertices"]
291 StaticContent += [
"xAOD::VertexAuxContainer#GSFConversionVerticesAux.-vxTrackAtVertex"]
293 trackParticleAuxExclusions=
"-caloExtension.-cellAssociation.-clusterAssociation.-trackParameterCovarianceMatrices.-parameterX.-parameterY.-parameterZ.-parameterPX.-parameterPY.-parameterPZ.-parameterPosition"
294 StaticContent += [
"xAOD::TrackParticleContainer#GSFTrackParticles"]
295 StaticContent += [
"xAOD::TrackParticleAuxContainer#GSFTrackParticlesAux."+trackParticleAuxExclusions]
297 L1CaloSlimmingHelper.AppendToDictionary.update (
298 {
"GSFConversionVertices":
"xAOD::VertexContainer",
299 "GSFConversionVerticesAux":
"xAOD::VertexAuxContainer",
300 "GSFTrackParticles":
"xAOD::TrackParticleContainer",
301 "GSFTrackParticlesAux":
"xAOD::TrackParticleAuxContainer"}
303 AllVariables += [
"GSFConversionVertices",
"GSFTrackParticles"]
305 L1CaloSlimmingHelper.AppendToDictionary.update (
306 {
"egammaClusters":
"xAOD::CaloClusterContainer",
307 "egammaClustersAux":
"xAOD::CaloClusterAuxContainer",
308 "TauPi0Clusters":
"xAOD::CaloClusterContainer",
309 "TauPi0ClustersAux":
"xAOD::CaloClusterAuxContainer",
310 "CaloCalTopoClusters":
"xAOD::CaloClusterContainer",
311 "CaloCalTopoClustersAux":
"xAOD::CaloClusterAuxContainer",
312 "MuonSegments":
"xAOD::MuonSegmentContainer",
313 "MuonSegmentsAux":
"xAOD::MuonSegmentAuxContainer"}
315 AllVariables += [
"egammaClusters",
"TauPi0Clusters",
"CaloCalTopoClusters",
"MuonSegments"]
319 'BTagging_AntiKt4EMPFlow.DL1dv01_pu.DL1dv01_pc.DL1dv01_pb.GN2v00_pu.GN2v00_pc.GN2v00_pb'
324 L1CaloSlimmingHelper.AppendToDictionary.update (
325 {
"LVL1EmTauRoIs":
"xAOD::EmTauRoIContainer",
326 "LVL1EmTauRoIsAux":
"xAOD::EmTauRoIAuxContainer",
327 "LVL1EnergySumRoI":
"xAOD::EnergySumRoI",
328 "LVL1EnergySumRoIAux":
"xAOD::EnergySumRoIAuxInfo",
329 "LVL1JetEtRoI":
"xAOD::JetEtRoI",
330 "LVL1JetEtRoIAux":
"xAOD::JetEtRoIAuxInfo",
331 "LVL1JetRoIs":
"xAOD::JetRoIContainer",
332 "LVL1JetRoIsAux":
"xAOD::JetRoIAuxContainer",
333 "LVL1MuonRoIs":
"xAOD::MuonRoIContainer",
334 "LVL1MuonRoIsAux":
"xAOD::MuonRoIAuxContainer"}
336 AllVariables += [
"LVL1EmTauRoIs",
"LVL1EnergySumRoI",
"LVL1JetEtRoI",
"LVL1JetRoIs",
"LVL1MuonRoIs"]
339 L1CaloSlimmingHelper.AppendToDictionary.update (
340 {
"JEMTobRoIsRoIB":
"xAOD::JEMTobRoIContainer",
341 "JEMTobRoIsRoIBAux":
"xAOD::JEMTobRoIAuxContainer",
342 "JEMTobRoIs":
"xAOD::JEMTobRoIContainer",
343 "JEMTobRoIsAux":
"xAOD::JEMTobRoIAuxContainer",
344 "JEMEtSums":
"xAOD::JEMEtSumsContainer",
345 "JEMEtSumsAux":
"xAOD::JEMEtSumsAuxContainer"}
347 AllVariables += [
"JEMTobRoIsRoIB",
351 L1CaloSlimmingHelper.AppendToDictionary.update (
352 {
"CMXCPHits":
"xAOD::CMXCPHitsContainer",
353 "CMXCPHitsAux":
"xAOD::CMXCPHitsAuxContainer",
354 "CMXCPTobs":
"xAOD::CMXCPTobContainer",
355 "CMXCPTobsAux":
"xAOD::CMXCPTobAuxContainer",
356 "CMXEtSums":
"xAOD::CMXEtSumsContainer",
357 "CMXEtSumsAux":
"xAOD::CMXEtSumsAuxContainer",
358 "CMXJetHits":
"xAOD::CMXJetHitsContainer",
359 "CMXJetHitsAux":
"xAOD::CMXJetHitsAuxContainer",
360 "CMXJetTobs":
"xAOD::CMXJetTobContainer",
361 "CMXJetTobsAux":
"xAOD::CMXJetTobAuxContainer",
362 "CMXRoIs":
"xAOD::CMXRoIContainer",
363 "CMXRoIsAux":
"xAOD::CMXRoIAuxContainer"}
365 AllVariables += [
"CMXCPHits",
373 L1CaloSlimmingHelper.AppendToDictionary.update (
374 {
"CPMTobRoIs":
"xAOD::CPMTobRoIContainer",
375 "CPMTobRoIsAux":
"xAOD::CPMTobRoIAuxContainer",
376 "CPMTobRoIsRoIB":
"xAOD::CPMTobRoIContainer",
377 "CPMTobRoIsRoIBAux":
"xAOD::CPMTobRoIAuxContainer",
378 "CPMTowers":
"xAOD::CPMTowerContainer",
379 "CPMTowersAux":
"xAOD::CPMTowerAuxContainer",
380 "CPMTowersOverlap":
"xAOD::CPMTowerContainer",
381 "CPMTowersOverlapAux":
"xAOD::CPMTowerAuxContainer",
382 "RODHeaders":
"xAOD::RODHeaderContainer",
383 "RODHeadersAux":
"xAOD::RODHeaderAuxContainer",
384 "xAODTriggerTowers":
"xAOD::TriggerTowerContainer",
385 "xAODTriggerTowersAux":
"xAOD::TriggerTowerAuxContainer",
386 "JetElements":
"xAOD::JetElementContainer",
387 "JetElementsAux":
"xAOD::JetElementAuxContainer",
388 "JetElementsOverlap":
"xAOD::JetElementContainer",
389 "JetElementsOverlapAux":
"xAOD::JetElementAuxContainer",
390 "L1TopoRawData":
"xAOD::L1TopoRawDataContainer",
391 "L1TopoRawDataAux":
"xAOD::L1TopoRawDataAuxContainer",
392 "L1_Phase1L1TopoRAWData":
"xAOD::L1TopoRawDataContainer",
393 "L1_Phase1L1TopoRAWDataAux":
"xAOD::L1TopoRawDataAuxContainer"}
395 AllVariables += [
"CPMTobRoIs",
402 "JetElementsOverlap",
404 "L1_Phase1L1TopoRAWData"]
409 L1CaloSlimmingHelper,AllVariables =
addEfexTOBs(L1CaloSlimmingHelper, AllVariables)
410 L1CaloSlimmingHelper,AllVariables =
addJfexTOBs(L1CaloSlimmingHelper, AllVariables)
411 L1CaloSlimmingHelper,AllVariables =
addGfexTOBs(L1CaloSlimmingHelper, AllVariables)
414 L1CaloSlimmingHelper,AllVariables =
addEfexTOBs(L1CaloSlimmingHelper, AllVariables,
"Sim")
415 L1CaloSlimmingHelper,AllVariables =
addJfexTOBs(L1CaloSlimmingHelper, AllVariables,
"Sim")
416 L1CaloSlimmingHelper,AllVariables =
addGfexTOBs(L1CaloSlimmingHelper, AllVariables,
"Sim")
420 L1CaloSlimmingHelper.AppendToDictionary.update (
421 {
"L1_eFexDataTowers":
"xAOD::eFexTowerContainer",
422 "L1_eFexDataTowersAux":
"xAOD::eFexTowerAuxContainer",
423 "L1_jFexDataTowers":
"xAOD::jFexTowerContainer",
424 "L1_jFexDataTowersAux":
"xAOD::jFexTowerAuxContainer",
425 "L1_gFexDataTowers":
"xAOD::gFexTowerContainer",
426 "L1_gFexDataTowersAux":
"xAOD::gFexTowerAuxContainer",
427 "L1_gFexDataTowers50":
"xAOD::gFexTowerContainer",
428 "L1_gFexDataTowers50Aux":
"xAOD::gFexTowerAuxContainer"}
430 AllVariables += [
"L1_eFexDataTowers",
"L1_jFexDataTowers",
"L1_gFexDataTowers",
"L1_gFexDataTowers50"]
433 L1CaloSlimmingHelper.AppendToDictionary.update (
434 {
"L1_eFexEmulatedTowers":
"xAOD::eFexTowerContainer",
435 "L1_eFexEmulatedTowersAux":
"xAOD::eFexTowerAuxContainer"}
437 AllVariables += [
"L1_eFexEmulatedTowers"]
440 L1CaloSlimmingHelper.AppendToDictionary.update (
441 {
"L1_jFexEmulatedTowers":
"xAOD::jFexTowerContainer",
442 "L1_jFexEmulatedTowersAux":
"xAOD::jFexTowerAuxContainer"}
444 AllVariables += [
"L1_jFexEmulatedTowers"]
448 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import PreJetMCTruthAugmentationsCfg,AddTruthJetsCfg
449 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTruthCollectionNavigationDecorationsCfg,AddBornLeptonCollectionCfg
450 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTruthMETCfg,PostJetMCTruthAugmentationsCfg
456 acc.addEventAlgo(CompFactory.DerivationFramework.LockDecorations(name =
"L1CALOTruthContentsLockDecoration", Decorations = [
'TruthParticles.dressedPhoton']))
461 L1CaloSlimmingHelper.AppendToDictionary.update (
462 {
'TruthElectrons':
'xAOD::TruthParticleContainer',
'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
463 'TruthMuons':
'xAOD::TruthParticleContainer',
'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
464 'TruthPhotons':
'xAOD::TruthParticleContainer',
'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
465 'TruthTaus':
'xAOD::TruthParticleContainer',
'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
466 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
467 'BornLeptons':
'xAOD::TruthParticleContainer',
'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
468 'MET_Truth':
'xAOD::MissingETContainer',
'MET_TruthAux':
'xAOD::MissingETAuxContainer'}
480 L1CaloSlimmingHelper.AllVariables = AllVariables
481 L1CaloSlimmingHelper.StaticContent = StaticContent
482 L1CaloSlimmingHelper.SmartCollections = SmartCollections
483 L1CaloSlimmingHelper.ExtraVariables = ExtraVariables
486 L1CaloItemList = L1CaloSlimmingHelper.GetItemList()
487 acc.merge(
OutputStreamCfg(flags, streamNameStem, ItemList=L1CaloItemList, AcceptAlgs=[
"DFL1CALO_KERN"]))
488 acc.merge(
SetupMetaDataForStreamCfg(flags, streamNameStem, AcceptAlgs=[
"DFL1CALO_KERN"], createMetadata=[MetadataCategory.CutFlowMetaData,MetadataCategory.TriggerMenuMetaData]))
495 add the list of eFEX containers for given postFix string
497 slimminghelper.AppendToDictionary.update (
498 {
"L1_eEMRoI"+postFix :
"xAOD::eFexEMRoIContainer",
499 "L1_eEMRoI"+postFix+
"Aux" :
"xAOD::eFexEMRoIAuxContainer",
500 "L1_eTauRoI"+postFix :
"xAOD::eFexTauRoIContainer",
501 "L1_eTauRoI"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
502 "L1_eTauRoIAlt"+postFix :
"xAOD::eFexTauRoIContainer",
503 "L1_eTauRoIAlt"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
504 "L1_cTauRoI"+postFix :
"xAOD::eFexTauRoIContainer",
505 "L1_cTauRoI"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
506 "L1_eEMxRoI"+postFix :
"xAOD::eFexEMRoIContainer",
507 "L1_eEMxRoI"+postFix+
"Aux" :
"xAOD::eFexEMRoIAuxContainer",
508 "L1_eTauxRoI"+postFix :
"xAOD::eFexTauRoIContainer",
509 "L1_eTauxRoI"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
510 "L1_eTauxRoIAlt"+postFix :
"xAOD::eFexTauRoIContainer",
511 "L1_eTauxRoIAlt"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer"} )
513 allVariables += [
"L1_eEMRoI" + postFix,
514 "L1_eTauRoI" + postFix,
515 "L1_eTauRoIAlt" + postFix,
516 "L1_cTauRoI" + postFix,
517 "L1_eEMxRoI" + postFix,
518 "L1_eTauxRoI" + postFix,
519 "L1_eTauxRoIAlt" + postFix]
521 return slimminghelper, allVariables
526 add the list of jFEX containers for given postFix string
528 slimminghelper.AppendToDictionary.update (
529 {
"L1_jFexMETRoI"+postFix :
"xAOD::jFexMETRoIContainer",
530 "L1_jFexMETRoI"+postFix+
"Aux" :
"xAOD::jFexMETRoIAuxContainer",
531 "L1_jFexTauRoI"+postFix :
"xAOD::jFexTauRoIContainer",
532 "L1_jFexTauRoI"+postFix+
"Aux" :
"xAOD::jFexTauRoIAuxContainer",
533 "L1_jFexFwdElRoI"+postFix :
"xAOD::jFexFwdElRoIContainer",
534 "L1_jFexFwdElRoI"+postFix+
"Aux" :
"xAOD::jFexFwdElRoIAuxContainer",
535 "L1_jFexSRJetRoI"+postFix :
"xAOD::jFexSRJetRoIContainer",
536 "L1_jFexSRJetRoI"+postFix+
"Aux" :
"xAOD::jFexSRJetRoIAuxContainer",
537 "L1_jFexLRJetRoI"+postFix :
"xAOD::jFexLRJetRoIContainer",
538 "L1_jFexLRJetRoI"+postFix+
"Aux" :
"xAOD::jFexLRJetRoIAuxContainer",
539 "L1_jFexSumETRoI"+postFix :
"xAOD::jFexSumETRoIContainer",
540 "L1_jFexSumETRoI"+postFix+
"Aux" :
"xAOD::jFexSumETRoIAuxContainer",
541 "L1_jFexMETxRoI"+postFix :
"xAOD::jFexMETRoIContainer",
542 "L1_jFexMETxRoI"+postFix+
"Aux" :
"xAOD::jFexMETRoIAuxContainer",
543 "L1_jFexTauxRoI"+postFix :
"xAOD::jFexTauRoIContainer",
544 "L1_jFexTauxRoI"+postFix+
"Aux" :
"xAOD::jFexTauRoIAuxContainer",
545 "L1_jFexFwdElxRoI"+postFix :
"xAOD::jFexFwdElRoIContainer",
546 "L1_jFexFwdElxRoI"+postFix+
"Aux" :
"xAOD::jFexFwdElRoIAuxContainer",
547 "L1_jFexSRJetxRoI"+postFix :
"xAOD::jFexSRJetRoIContainer",
548 "L1_jFexSRJetxRoI"+postFix+
"Aux" :
"xAOD::jFexSRJetRoIAuxContainer",
549 "L1_jFexLRJetxRoI"+postFix :
"xAOD::jFexLRJetRoIContainer",
550 "L1_jFexLRJetxRoI"+postFix+
"Aux" :
"xAOD::jFexLRJetRoIAuxContainer",
551 "L1_jFexSumETxRoI"+postFix :
"xAOD::jFexSumETRoIContainer",
552 "L1_jFexSumETxRoI"+postFix+
"Aux" :
"xAOD::jFexSumETRoIAuxContainer"})
554 allVariables += [
"L1_jFexMETRoI" + postFix,
555 "L1_jFexTauRoI" + postFix,
556 "L1_jFexFwdElRoI" + postFix,
557 "L1_jFexSRJetRoI" + postFix,
558 "L1_jFexLRJetRoI" + postFix,
559 "L1_jFexSumETRoI" + postFix,
560 "L1_jFexMETxRoI" + postFix,
561 "L1_jFexTauxRoI" + postFix,
562 "L1_jFexFwdElxRoI" + postFix,
563 "L1_jFexSRJetxRoI" + postFix,
564 "L1_jFexLRJetxRoI" + postFix,
565 "L1_jFexSumETxRoI" + postFix]
567 return slimminghelper, allVariables
572 add the list of gFEX containers for given postFix string
574 slimminghelper.AppendToDictionary.update (
575 {
"L1_gFexRhoRoI"+postFix :
"xAOD::gFexJetRoIContainer",
576 "L1_gFexRhoRoI"+postFix+
"Aux" :
"xAOD::gFexJetRoIAuxContainer",
577 "L1_gFexSRJetRoI"+postFix :
"xAOD::gFexJetRoIContainer",
578 "L1_gFexSRJetRoI"+postFix+
"Aux" :
"xAOD::gFexJetRoIAuxContainer",
579 "L1_gScalarEJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
580 "L1_gScalarEJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer",
581 "L1_gFexLRJetRoI"+postFix :
"xAOD::gFexJetRoIContainer",
582 "L1_gFexLRJetRoI"+postFix+
"Aux" :
"xAOD::gFexJetRoIAuxContainer",
583 "L1_gMETComponentsJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
584 "L1_gMETComponentsJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer",
585 "L1_gMHTComponentsJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
586 "L1_gMHTComponentsJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer",
587 "L1_gMSTComponentsJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
588 "L1_gMSTComponentsJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer"})
590 allVariables += [
"L1_gFexRhoRoI" + postFix,
591 "L1_gFexSRJetRoI" + postFix,
592 "L1_gScalarEJwoj" + postFix,
593 "L1_gFexLRJetRoI" + postFix,
594 "L1_gMETComponentsJwoj" + postFix,
595 "L1_gMHTComponentsJwoj" + postFix,
596 "L1_gMSTComponentsJwoj" + postFix]
598 return slimminghelper, allVariables