7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
9 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaConfiguration.Enums
import Format, MetadataCategory
17 Core fragment for L1CALO derivations
19 from AthenaCommon.Logging
import logging
20 log = logging.getLogger(
'L1CALO')
21 log.info(
'Called L1CaloCore config for derivation %s',deriv)
23 streamNameStem =
"DAOD_" + deriv
24 streamName =
"Stream" + streamNameStem
30 isNotPool = flags.Input.Format
is not Format.POOL
36 from TrigT1CaloByteStream.LVL1CaloRun2ByteStreamConfig
import LVL1CaloRun2ReadBSCfg
44 if 'L1CALO1' in deriv
and isNotPool:
45 from TrigT1CaloCalibTools.L1CaloCalibToolsConfig
import LegacyTriggerTowerThinningCfg
48 name =
"L1CALOCaloThinningTool",
49 StreamName = streamName,
50 TriggerTowerLocation =
"xAODTriggerTowers",
55 thinningTools.append(LegacyTowerThinningTool)
60 from TrigT1CaloCalibTools.L1CaloCalibToolsConfig
import LegacyTriggerTowerDecoratorCfg
65 if not isNotPool
and not flags.Input.isMC:
67 skimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"L1CALOSkimmingTool1",
68 TriggerListOR = [
"HLT_noalg_L1XE.*"] )
69 acc.addPublicTool(skimmingTool, primary =
True)
70 skimmingTools.append(skimmingTool)
73 augmentationTools = []
76 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
78 name =
"DFL1CALO_KERN",
79 AugmentationTools = augmentationTools,
80 ThinningTools = thinningTools,
81 SkimmingTools = skimmingTools,
82 RunSkimmingFirst =
not isNotPool,
83 doChronoStat=(flags.Concurrency.NumThreads <= 1),
90 from L1CaloFEXSim.L1CaloFEXSimCfg
import ReadSCellFromByteStreamCfg
94 emulatedDataTowersKey =
"L1_jFexEmulatedTowers"
95 if flags.Trigger.L1.dojFex
and isNotPool:
96 from L1CaloFEXAlgos.FexEmulatedTowersConfig
import jFexEmulatedTowersCfg
100 extraJfexInfo =
False
101 if flags.Trigger.L1.dojFex
and isNotPool:
102 from L1CaloFEXAlgos.L1CaloFEXAlgosConfig
import L1CalojFEXDecoratorCfg
106 if flags.Trigger.L1.dojFex
and isNotPool:
107 acc.merge(
L1CalojFEXDecoratorCfg(flags,name=
'jFexTower2SCellEmulatedDecorator',jTowersReadKey=emulatedDataTowersKey,ExtraInfo=extraJfexInfo))
110 if flags.Trigger.L1.doeFex
and isNotPool:
111 from L1CaloFEXAlgos.FexEmulatedTowersConfig
import eFexEmulatedTowersCfg
113 acc.merge(eFexEmulatedTool)
116 from L1CaloFEXSim.L1CaloFEXSimCfg
import L1CaloFEXSimCfg
120 SCellType = flags.Trigger.L1.L1CaloSuperCellContainerName
121 if SCellType
in flags.Input.Collections:
125 if flags.Trigger.L1.doeFex
and isNotPool:
127 from TrigDecisionTool.TrigDecisionToolConfig
import getRun3NavigationContainerFromInput
129 acc.addEventAlgo( CompFactory.LVL1.eFexTOBDecorator(
'eFexTOBDecorator',
130 eFexEMRoIContainer =
'L1_eEMRoI',
131 eFexTauRoIContainer =
'L1_eTauRoI',
132 ExtraInputs=ExtraInputs) )
133 acc.addEventAlgo( CompFactory.LVL1.eFexTOBDecorator(
'eFexTOBDecoratorSim',
134 eFexEMRoIContainer =
'L1_eEMRoISim',
135 eFexTauRoIContainer =
'L1_eTauRoIAltSim',
139 acc.addEventAlgo( CompFactory.LVL1.eFexTOBSuperCellDecorator(
'eFexTOBSuperCellDecoratorSim',
140 eFexEMRoIContainer =
'L1_eEMRoISim',
141 eFexTauRoIContainer =
'L1_eTauxRoISim') )
144 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
146 L1CaloSlimmingHelper =
SlimmingHelper(
"L1CaloSlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
150 SmartCollections = []
153 L1CaloSlimmingHelper.IncludeTriggerNavigation =
True
154 L1CaloSlimmingHelper.IncludeAdditionalTriggerContent =
False
156 L1CaloSlimmingHelper.IncludeEGammaTriggerContent =
True
157 L1CaloSlimmingHelper.IncludeJetTriggerContent =
True
158 L1CaloSlimmingHelper.IncludeBJetTriggerContent =
True
159 L1CaloSlimmingHelper.IncludeTauTriggerContent =
True
166 if isNotPool
and L1CaloSlimmingHelper.IncludeEGammaTriggerContent:
169 L1CaloSlimmingHelper.IncludeEGammaTriggerContent =
False
170 ElToKeep = [
'ptcone20',
'ptvarcone20',
'ptcone30',
'ptvarcone30',
'trk_d0',
'cl_eta2',
'cl_phi2',
'deltaEta1PearDistortion']
171 ElVars =
'.'.
join(ElToKeep)
172 StaticContent += [
"xAOD::ElectronContainer#HLT_egamma_Electrons"]
173 StaticContent += [
"xAOD::ElectronAuxContainer#HLT_egamma_ElectronsAux."+ElVars]
174 StaticContent += [
"xAOD::ElectronContainer#HLT_egamma_Electrons_GSF"]
175 StaticContent += [
"xAOD::ElectronAuxContainer#HLT_egamma_Electrons_GSFAux."+ElVars]
177 L1CaloSlimmingHelper.AppendToDictionary.update({
"HLT_CaloEMClusters_Electron":
"xAOD::CaloClusterContainer",
178 "HLT_CaloEMClusters_ElectronAux":
"xAOD::CaloClusterAuxContainer"})
179 AllVariables += [
"HLT_CaloEMClusters_Electron"]
180 L1CaloSlimmingHelper.AppendToDictionary.update({
"HLT_IDTrack_Electron_IDTrig":
"xAOD::TrackParticleContainer",
181 "HLT_IDTrack_Electron_IDTrigAux":
"xAOD::TrackParticleAuxContainer"})
182 AllVariables += [
"HLT_IDTrack_Electron_IDTrig"]
183 L1CaloSlimmingHelper.AppendToDictionary.update({
"HLT_IDTrack_Electron_GSF":
"xAOD::TrackParticleContainer",
184 "HLT_IDTrack_Electron_GSFAux":
"xAOD::TrackParticleAuxContainer"})
185 AllVariables += [
"HLT_IDTrack_Electron_GSF"]
187 if isNotPool
and L1CaloSlimmingHelper.IncludeJetTriggerContent:
190 L1CaloSlimmingHelper.AppendToDictionary.update ({
"HLT_AntiKt4EMTopoJets_nojcalib":
"xAOD::JetContainer",
191 "HLT_AntiKt4EMTopoJets_nojcalibAux":
"xAOD::JetAuxContainer",
192 "HLT_AntiKt4EMTopoJets_nojcalib_ftf":
"xAOD::JetContainer",
193 "HLT_AntiKt4EMTopoJets_nojcalib_ftfAux":
"xAOD::JetAuxContainer",
194 "HLT_AntiKt4EMTopoJets_subjesIS":
"xAOD::JetContainer",
195 "HLT_AntiKt4EMTopoJets_subjesISAux":
"xAOD::ShallowAuxContainer",
196 "HLT_AntiKt4EMPFlowJets_nojcalib_ftf":
"xAOD::JetContainer",
197 "HLT_AntiKt4EMPFlowJets_nojcalib_ftfAux":
"xAOD::JetAuxContainer",
198 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf":
"xAOD::JetContainer",
199 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftfAux":
"xAOD::ShallowAuxContainer",
200 "HLT_AntiKt4EMPFlowJets_subjesgscIS_ftf":
"xAOD::JetContainer",
201 "HLT_AntiKt4EMPFlowJets_subjesgscIS_ftfAux":
"xAOD::ShallowAuxContainer",
202 "HLT_AntiKt10EMPFlowCSSKSoftDropBeta100Zcut10Jets_jes_ftf":
"xAOD::JetContainer",
203 "HLT_AntiKt10EMPFlowCSSKSoftDropBeta100Zcut10Jets_jes_ftfAux":
"xAOD::JetAuxContainer",
204 "HLT_IDVertex_FS":
"xAOD::VertexContainer",
205 "HLT_IDVertex_FSAux":
"xAOD::VertexAuxContainer",
206 "HLT_TCEventInfo_jet":
"xAOD::TrigCompositeContainer",
207 "HLT_TCEventInfo_jetAux":
"xAOD::TrigCompositeAuxContainer",
208 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging":
"xAOD::BTaggingContainer",
209 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTaggingAux":
"xAOD::BTaggingAuxContainer",
210 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets":
"xAOD::JetContainer",
211 "HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJetsAux":
"xAOD::JetAuxContainer"})
213 AllVariables += [
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_BTagging",
"HLT_AntiKt4EMPFlowJets_subresjesgscIS_ftf_bJets"]
215 if L1CaloSlimmingHelper.IncludeTauTriggerContent:
216 L1CaloSlimmingHelper.AppendToDictionary.update ({
"HLT_TrigTauRecMerged_MVA":
"xAOD::TauJetContainer",
217 "HLT_TrigTauRecMerged_MVAAux":
"xAOD::TauJetAuxContainer",
218 "HLT_TrigTauRecMerged_LLP":
"xAOD::TauJetContainer",
219 "HLT_TrigTauRecMerged_LLPAux":
"xAOD::TauJetAuxContainer",
220 "HLT_TrigTauRecMerged_LRT":
"xAOD::TauJetContainer",
221 "HLT_TrigTauRecMerged_LRTAux":
"xAOD::TauJetAuxContainer",
222 "HLT_TrigTauRecMerged_CaloMVAOnly":
"xAOD::TauJetContainer",
223 "HLT_TrigTauRecMerged_CaloMVAOnlyAux":
"xAOD::TauJetAuxContainer"})
224 AllVariables += [
"HLT_TrigTauRecMerged_MVA",
"HLT_TrigTauRecMerged_LLP",
"HLT_TrigTauRecMerged_LRT",
"HLT_TrigTauRecMerged_CaloMVAOnly"]
227 L1CaloSlimmingHelper.AppendToDictionary.update({
"EventInfo":
"xAOD::EventInfo",
"EventInfoAux":
"xAOD::EventAuxInfo"})
230 AllVariables += [
"EventInfo",
"Kt4EMPFlowEventShape"]
234 L1CaloSlimmingHelper.AppendToDictionary.update (
235 {
"Muons":
"xAOD::MuonContainer",
"MuonsAux":
"xAOD::MuonAuxContainer",
236 "Photons":
"xAOD::PhotonContainer",
"PhotonsAux":
"xAOD::PhotonAuxContainer",
237 "TauJets":
"xAOD::TauJetContainer",
"TauJetsAux":
"xAOD::TauJetAuxContainer"}
239 AllVariables += [
"AntiKt4EMPFlowJets",
"AntiKt10LCTopoJets",
"Muons",
"Photons"]
240 AllVariables += [
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"]
242 SmartCollections += [
"TauJets"]
245 L1CaloSlimmingHelper.AppendToDictionary.update (
246 {
"Electrons":
"xAOD::ElectronContainer",
"ElectronsAux":
"xAOD::ElectronAuxContainer"} )
247 AllVariables += [
"Electrons"]
249 L1CaloSlimmingHelper.AppendToDictionary.update (
250 {
"ForwardElectrons":
"xAOD::ElectronContainer",
"ForwardElectronsAux":
"xAOD::ElectronAuxContainer"} )
251 AllVariables += [
"ForwardElectrons"]
254 AllVariables += [
"METAssoc_AntiKt4EMPFlow"]
258 StaticContent += [
"xAOD::MissingETContainer#MET_Reference_AntiKt4EMPFlow"]
259 StaticContent += [
"xAOD::MissingETAuxContainer#MET_Reference_AntiKt4EMPFlowAux.-ConstitObjectLinks.-ConstitObjectWeights"]
261 StaticContent += [
"xAOD::MissingETContainer#MET_Core_AntiKt4EMPFlow"]
262 StaticContent += [
"xAOD::MissingETAuxContainer#MET_Core_AntiKt4EMPFlowAux.name.mpx.mpy.sumet.source"]
264 StaticContent += [
"xAOD::MissingETContainer#MET_Track"]
265 StaticContent += [
"xAOD::MissingETAuxContainer#MET_TrackAux.name.mpx.mpy"]
267 AllVariables += [
"MET_Reference_AntiKt4EMPFlow"]
268 AllVariables += [
"MET_Core_AntiKt4EMPFlow"]
269 L1CaloSlimmingHelper.AppendToDictionary.update (
270 {
"MET_Track":
"xAOD::MissingETContainer",
"MET_TrackAux":
"xAOD::MissingETAuxContainer"} )
271 AllVariables += [
"MET_Track"]
275 StaticContent += [
"xAOD::VertexContainer#PrimaryVertices"]
276 StaticContent += [
"xAOD::VertexAuxContainer#PrimaryVerticesAux.-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"]
278 L1CaloSlimmingHelper.AppendToDictionary.update(
279 {
"PrimaryVertices":
"xAOD::VertexContainer",
"PrimaryVerticesAux":
"xAOD::VertexAuxContainer"}
281 AllVariables += [
"PrimaryVertices"]
285 L1CaloSlimmingHelper.AppendToDictionary.update (
286 {
"egammaTopoSeededClusters":
"xAOD::CaloClusterContainer",
"egammaTopoSeededClustersAux":
"xAOD::CaloClusterAuxContainer"}
288 AllVariables += [
"egammaTopoSeededClusters"]
292 StaticContent += [
"xAOD::VertexContainer#GSFConversionVertices"]
294 StaticContent += [
"xAOD::VertexAuxContainer#GSFConversionVerticesAux.-vxTrackAtVertex"]
296 trackParticleAuxExclusions=
"-caloExtension.-cellAssociation.-clusterAssociation.-trackParameterCovarianceMatrices.-parameterX.-parameterY.-parameterZ.-parameterPX.-parameterPY.-parameterPZ.-parameterPosition"
297 StaticContent += [
"xAOD::TrackParticleContainer#GSFTrackParticles"]
298 StaticContent += [
"xAOD::TrackParticleAuxContainer#GSFTrackParticlesAux."+trackParticleAuxExclusions]
300 L1CaloSlimmingHelper.AppendToDictionary.update (
301 {
"GSFConversionVertices":
"xAOD::VertexContainer",
302 "GSFConversionVerticesAux":
"xAOD::VertexAuxContainer",
303 "GSFTrackParticles":
"xAOD::TrackParticleContainer",
304 "GSFTrackParticlesAux":
"xAOD::TrackParticleAuxContainer"}
306 AllVariables += [
"GSFConversionVertices",
"GSFTrackParticles"]
308 L1CaloSlimmingHelper.AppendToDictionary.update (
309 {
"egammaClusters":
"xAOD::CaloClusterContainer",
310 "egammaClustersAux":
"xAOD::CaloClusterAuxContainer",
311 "TauPi0Clusters":
"xAOD::CaloClusterContainer",
312 "TauPi0ClustersAux":
"xAOD::CaloClusterAuxContainer",
313 "CaloCalTopoClusters":
"xAOD::CaloClusterContainer",
314 "CaloCalTopoClustersAux":
"xAOD::CaloClusterAuxContainer",
315 "MuonSegments":
"xAOD::MuonSegmentContainer",
316 "MuonSegmentsAux":
"xAOD::MuonSegmentAuxContainer"}
318 AllVariables += [
"egammaClusters",
"TauPi0Clusters",
"CaloCalTopoClusters",
"MuonSegments"]
322 'BTagging_AntiKt4EMPFlow.DL1dv01_pu.DL1dv01_pc.DL1dv01_pb.GN2v00_pu.GN2v00_pc.GN2v00_pb'
327 L1CaloSlimmingHelper.AppendToDictionary.update (
328 {
"LVL1EmTauRoIs":
"xAOD::EmTauRoIContainer",
329 "LVL1EmTauRoIsAux":
"xAOD::EmTauRoIAuxContainer",
330 "LVL1EnergySumRoI":
"xAOD::EnergySumRoI",
331 "LVL1EnergySumRoIAux":
"xAOD::EnergySumRoIAuxInfo",
332 "LVL1JetEtRoI":
"xAOD::JetEtRoI",
333 "LVL1JetEtRoIAux":
"xAOD::JetEtRoIAuxInfo",
334 "LVL1JetRoIs":
"xAOD::JetRoIContainer",
335 "LVL1JetRoIsAux":
"xAOD::JetRoIAuxContainer",
336 "LVL1MuonRoIs":
"xAOD::MuonRoIContainer",
337 "LVL1MuonRoIsAux":
"xAOD::MuonRoIAuxContainer"}
339 AllVariables += [
"LVL1EmTauRoIs",
"LVL1EnergySumRoI",
"LVL1JetEtRoI",
"LVL1JetRoIs",
"LVL1MuonRoIs"]
342 L1CaloSlimmingHelper.AppendToDictionary.update (
343 {
"JEMTobRoIsRoIB":
"xAOD::JEMTobRoIContainer",
344 "JEMTobRoIsRoIBAux":
"xAOD::JEMTobRoIAuxContainer",
345 "JEMTobRoIs":
"xAOD::JEMTobRoIContainer",
346 "JEMTobRoIsAux":
"xAOD::JEMTobRoIAuxContainer",
347 "JEMEtSums":
"xAOD::JEMEtSumsContainer",
348 "JEMEtSumsAux":
"xAOD::JEMEtSumsAuxContainer"}
350 AllVariables += [
"JEMTobRoIsRoIB",
354 L1CaloSlimmingHelper.AppendToDictionary.update (
355 {
"CMXCPHits":
"xAOD::CMXCPHitsContainer",
356 "CMXCPHitsAux":
"xAOD::CMXCPHitsAuxContainer",
357 "CMXCPTobs":
"xAOD::CMXCPTobContainer",
358 "CMXCPTobsAux":
"xAOD::CMXCPTobAuxContainer",
359 "CMXEtSums":
"xAOD::CMXEtSumsContainer",
360 "CMXEtSumsAux":
"xAOD::CMXEtSumsAuxContainer",
361 "CMXJetHits":
"xAOD::CMXJetHitsContainer",
362 "CMXJetHitsAux":
"xAOD::CMXJetHitsAuxContainer",
363 "CMXJetTobs":
"xAOD::CMXJetTobContainer",
364 "CMXJetTobsAux":
"xAOD::CMXJetTobAuxContainer",
365 "CMXRoIs":
"xAOD::CMXRoIContainer",
366 "CMXRoIsAux":
"xAOD::CMXRoIAuxContainer"}
368 AllVariables += [
"CMXCPHits",
376 L1CaloSlimmingHelper.AppendToDictionary.update (
377 {
"CPMTobRoIs":
"xAOD::CPMTobRoIContainer",
378 "CPMTobRoIsAux":
"xAOD::CPMTobRoIAuxContainer",
379 "CPMTobRoIsRoIB":
"xAOD::CPMTobRoIContainer",
380 "CPMTobRoIsRoIBAux":
"xAOD::CPMTobRoIAuxContainer",
381 "CPMTowers":
"xAOD::CPMTowerContainer",
382 "CPMTowersAux":
"xAOD::CPMTowerAuxContainer",
383 "CPMTowersOverlap":
"xAOD::CPMTowerContainer",
384 "CPMTowersOverlapAux":
"xAOD::CPMTowerAuxContainer",
385 "RODHeaders":
"xAOD::RODHeaderContainer",
386 "RODHeadersAux":
"xAOD::RODHeaderAuxContainer",
387 "xAODTriggerTowers":
"xAOD::TriggerTowerContainer",
388 "xAODTriggerTowersAux":
"xAOD::TriggerTowerAuxContainer",
389 "JetElements":
"xAOD::JetElementContainer",
390 "JetElementsAux":
"xAOD::JetElementAuxContainer",
391 "JetElementsOverlap":
"xAOD::JetElementContainer",
392 "JetElementsOverlapAux":
"xAOD::JetElementAuxContainer",
393 "L1TopoRawData":
"xAOD::L1TopoRawDataContainer",
394 "L1TopoRawDataAux":
"xAOD::L1TopoRawDataAuxContainer",
395 "L1_Phase1L1TopoRAWData":
"xAOD::L1TopoRawDataContainer",
396 "L1_Phase1L1TopoRAWDataAux":
"xAOD::L1TopoRawDataAuxContainer"}
398 AllVariables += [
"CPMTobRoIs",
405 "JetElementsOverlap",
407 "L1_Phase1L1TopoRAWData"]
412 L1CaloSlimmingHelper,AllVariables =
addEfexTOBs(L1CaloSlimmingHelper, AllVariables)
413 L1CaloSlimmingHelper,AllVariables =
addJfexTOBs(L1CaloSlimmingHelper, AllVariables)
414 L1CaloSlimmingHelper,AllVariables =
addGfexTOBs(L1CaloSlimmingHelper, AllVariables)
417 L1CaloSlimmingHelper,AllVariables =
addEfexTOBs(L1CaloSlimmingHelper, AllVariables,
"Sim")
418 L1CaloSlimmingHelper,AllVariables =
addJfexTOBs(L1CaloSlimmingHelper, AllVariables,
"Sim")
419 L1CaloSlimmingHelper,AllVariables =
addGfexTOBs(L1CaloSlimmingHelper, AllVariables,
"Sim")
423 L1CaloSlimmingHelper.AppendToDictionary.update (
424 {
"L1_eFexDataTowers":
"xAOD::eFexTowerContainer",
425 "L1_eFexDataTowersAux":
"xAOD::eFexTowerAuxContainer",
426 "L1_jFexDataTowers":
"xAOD::jFexTowerContainer",
427 "L1_jFexDataTowersAux":
"xAOD::jFexTowerAuxContainer",
428 "L1_gFexDataTowers":
"xAOD::gFexTowerContainer",
429 "L1_gFexDataTowersAux":
"xAOD::gFexTowerAuxContainer",
430 "L1_gFexDataTowers50":
"xAOD::gFexTowerContainer",
431 "L1_gFexDataTowers50Aux":
"xAOD::gFexTowerAuxContainer"}
433 AllVariables += [
"L1_eFexDataTowers",
"L1_jFexDataTowers",
"L1_gFexDataTowers",
"L1_gFexDataTowers50"]
436 L1CaloSlimmingHelper.AppendToDictionary.update (
437 {
"L1_eFexEmulatedTowers":
"xAOD::eFexTowerContainer",
438 "L1_eFexEmulatedTowersAux":
"xAOD::eFexTowerAuxContainer"}
440 AllVariables += [
"L1_eFexEmulatedTowers"]
443 L1CaloSlimmingHelper.AppendToDictionary.update (
444 {
"L1_jFexEmulatedTowers":
"xAOD::jFexTowerContainer",
445 "L1_jFexEmulatedTowersAux":
"xAOD::jFexTowerAuxContainer"}
447 AllVariables += [
"L1_jFexEmulatedTowers"]
451 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import PreJetMCTruthAugmentationsCfg,AddTruthJetsCfg
452 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTruthCollectionNavigationDecorationsCfg,AddBornLeptonCollectionCfg
453 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import AddTruthMETCfg,PostJetMCTruthAugmentationsCfg
459 acc.addEventAlgo(CompFactory.DerivationFramework.LockDecorations(name =
"L1CALOTruthContentsLockDecoration", Decorations = [
'TruthParticles.dressedPhoton']))
464 L1CaloSlimmingHelper.AppendToDictionary.update (
465 {
'TruthElectrons':
'xAOD::TruthParticleContainer',
'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
466 'TruthMuons':
'xAOD::TruthParticleContainer',
'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
467 'TruthPhotons':
'xAOD::TruthParticleContainer',
'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
468 'TruthTaus':
'xAOD::TruthParticleContainer',
'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
469 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
470 'BornLeptons':
'xAOD::TruthParticleContainer',
'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
471 'MET_Truth':
'xAOD::MissingETContainer',
'MET_TruthAux':
'xAOD::MissingETAuxContainer'}
483 L1CaloSlimmingHelper.AllVariables = AllVariables
484 L1CaloSlimmingHelper.StaticContent = StaticContent
485 L1CaloSlimmingHelper.SmartCollections = SmartCollections
486 L1CaloSlimmingHelper.ExtraVariables = ExtraVariables
489 L1CaloItemList = L1CaloSlimmingHelper.GetItemList()
490 acc.merge(
OutputStreamCfg(flags, streamNameStem, ItemList=L1CaloItemList, AcceptAlgs=[
"DFL1CALO_KERN"]))
491 acc.merge(
SetupMetaDataForStreamCfg(flags, streamNameStem, AcceptAlgs=[
"DFL1CALO_KERN"], createMetadata=[MetadataCategory.CutFlowMetaData,MetadataCategory.TriggerMenuMetaData]))
498 add the list of eFEX containers for given postFix string
500 slimminghelper.AppendToDictionary.update (
501 {
"L1_eEMRoI"+postFix :
"xAOD::eFexEMRoIContainer",
502 "L1_eEMRoI"+postFix+
"Aux" :
"xAOD::eFexEMRoIAuxContainer",
503 "L1_eTauRoI"+postFix :
"xAOD::eFexTauRoIContainer",
504 "L1_eTauRoI"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
505 "L1_eTauRoIAlt"+postFix :
"xAOD::eFexTauRoIContainer",
506 "L1_eTauRoIAlt"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
507 "L1_cTauRoI"+postFix :
"xAOD::eFexTauRoIContainer",
508 "L1_cTauRoI"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
509 "L1_eEMxRoI"+postFix :
"xAOD::eFexEMRoIContainer",
510 "L1_eEMxRoI"+postFix+
"Aux" :
"xAOD::eFexEMRoIAuxContainer",
511 "L1_eTauxRoI"+postFix :
"xAOD::eFexTauRoIContainer",
512 "L1_eTauxRoI"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer",
513 "L1_eTauxRoIAlt"+postFix :
"xAOD::eFexTauRoIContainer",
514 "L1_eTauxRoIAlt"+postFix+
"Aux" :
"xAOD::eFexTauRoIAuxContainer"} )
516 allVariables += [
"L1_eEMRoI" + postFix,
517 "L1_eTauRoI" + postFix,
518 "L1_eTauRoIAlt" + postFix,
519 "L1_cTauRoI" + postFix,
520 "L1_eEMxRoI" + postFix,
521 "L1_eTauxRoI" + postFix,
522 "L1_eTauxRoIAlt" + postFix]
524 return slimminghelper, allVariables
529 add the list of jFEX containers for given postFix string
531 slimminghelper.AppendToDictionary.update (
532 {
"L1_jFexMETRoI"+postFix :
"xAOD::jFexMETRoIContainer",
533 "L1_jFexMETRoI"+postFix+
"Aux" :
"xAOD::jFexMETRoIAuxContainer",
534 "L1_jFexTauRoI"+postFix :
"xAOD::jFexTauRoIContainer",
535 "L1_jFexTauRoI"+postFix+
"Aux" :
"xAOD::jFexTauRoIAuxContainer",
536 "L1_jFexFwdElRoI"+postFix :
"xAOD::jFexFwdElRoIContainer",
537 "L1_jFexFwdElRoI"+postFix+
"Aux" :
"xAOD::jFexFwdElRoIAuxContainer",
538 "L1_jFexSRJetRoI"+postFix :
"xAOD::jFexSRJetRoIContainer",
539 "L1_jFexSRJetRoI"+postFix+
"Aux" :
"xAOD::jFexSRJetRoIAuxContainer",
540 "L1_jFexLRJetRoI"+postFix :
"xAOD::jFexLRJetRoIContainer",
541 "L1_jFexLRJetRoI"+postFix+
"Aux" :
"xAOD::jFexLRJetRoIAuxContainer",
542 "L1_jFexSumETRoI"+postFix :
"xAOD::jFexSumETRoIContainer",
543 "L1_jFexSumETRoI"+postFix+
"Aux" :
"xAOD::jFexSumETRoIAuxContainer",
544 "L1_jFexMETxRoI"+postFix :
"xAOD::jFexMETRoIContainer",
545 "L1_jFexMETxRoI"+postFix+
"Aux" :
"xAOD::jFexMETRoIAuxContainer",
546 "L1_jFexTauxRoI"+postFix :
"xAOD::jFexTauRoIContainer",
547 "L1_jFexTauxRoI"+postFix+
"Aux" :
"xAOD::jFexTauRoIAuxContainer",
548 "L1_jFexFwdElxRoI"+postFix :
"xAOD::jFexFwdElRoIContainer",
549 "L1_jFexFwdElxRoI"+postFix+
"Aux" :
"xAOD::jFexFwdElRoIAuxContainer",
550 "L1_jFexSRJetxRoI"+postFix :
"xAOD::jFexSRJetRoIContainer",
551 "L1_jFexSRJetxRoI"+postFix+
"Aux" :
"xAOD::jFexSRJetRoIAuxContainer",
552 "L1_jFexLRJetxRoI"+postFix :
"xAOD::jFexLRJetRoIContainer",
553 "L1_jFexLRJetxRoI"+postFix+
"Aux" :
"xAOD::jFexLRJetRoIAuxContainer",
554 "L1_jFexSumETxRoI"+postFix :
"xAOD::jFexSumETRoIContainer",
555 "L1_jFexSumETxRoI"+postFix+
"Aux" :
"xAOD::jFexSumETRoIAuxContainer"})
557 allVariables += [
"L1_jFexMETRoI" + postFix,
558 "L1_jFexTauRoI" + postFix,
559 "L1_jFexFwdElRoI" + postFix,
560 "L1_jFexSRJetRoI" + postFix,
561 "L1_jFexLRJetRoI" + postFix,
562 "L1_jFexSumETRoI" + postFix,
563 "L1_jFexMETxRoI" + postFix,
564 "L1_jFexTauxRoI" + postFix,
565 "L1_jFexFwdElxRoI" + postFix,
566 "L1_jFexSRJetxRoI" + postFix,
567 "L1_jFexLRJetxRoI" + postFix,
568 "L1_jFexSumETxRoI" + postFix]
570 return slimminghelper, allVariables
575 add the list of gFEX containers for given postFix string
577 slimminghelper.AppendToDictionary.update (
578 {
"L1_gFexRhoRoI"+postFix :
"xAOD::gFexJetRoIContainer",
579 "L1_gFexRhoRoI"+postFix+
"Aux" :
"xAOD::gFexJetRoIAuxContainer",
580 "L1_gFexSRJetRoI"+postFix :
"xAOD::gFexJetRoIContainer",
581 "L1_gFexSRJetRoI"+postFix+
"Aux" :
"xAOD::gFexJetRoIAuxContainer",
582 "L1_gScalarEJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
583 "L1_gScalarEJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer",
584 "L1_gFexLRJetRoI"+postFix :
"xAOD::gFexJetRoIContainer",
585 "L1_gFexLRJetRoI"+postFix+
"Aux" :
"xAOD::gFexJetRoIAuxContainer",
586 "L1_gMETComponentsJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
587 "L1_gMETComponentsJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer",
588 "L1_gMHTComponentsJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
589 "L1_gMHTComponentsJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer",
590 "L1_gMSTComponentsJwoj"+postFix :
"xAOD::gFexGlobalRoIContainer",
591 "L1_gMSTComponentsJwoj"+postFix+
"Aux" :
"xAOD::gFexGlobalRoIAuxContainer"})
593 allVariables += [
"L1_gFexRhoRoI" + postFix,
594 "L1_gFexSRJetRoI" + postFix,
595 "L1_gScalarEJwoj" + postFix,
596 "L1_gFexLRJetRoI" + postFix,
597 "L1_gMETComponentsJwoj" + postFix,
598 "L1_gMHTComponentsJwoj" + postFix,
599 "L1_gMSTComponentsJwoj" + postFix]
601 return slimminghelper, allVariables