279 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
281 EGAM9TriggerListsHelper = TriggerListsHelper(flags)
288 StreamName=
"StreamDAOD_EGAM9",
289 TriggerListsHelper=EGAM9TriggerListsHelper,
294 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
295 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
296 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
299 "EGAM9SlimmingHelper",
300 NamesAndTypes=flags.Input.TypedCollections,
309 EGAM9SlimmingHelper.AllVariables = [
318 if flags.Trigger.EDMVersion == 2:
320 elif flags.Trigger.EDMVersion == 3:
324 EGAM9SlimmingHelper.AllVariables += ExtraContainersTrigger[MenuType]
325 EGAM9SlimmingHelper.AllVariables += ExtraContainersPhotonTrigger[MenuType]
326 if not flags.Input.isMC:
327 EGAM9SlimmingHelper.AllVariables += ExtraContainersTriggerDataOnly[MenuType]
331 EGAM9SlimmingHelper.AllVariables += [
335 "egammaTruthParticles",
346 EGAM9SlimmingHelper.SmartCollections = [
349 "InDetTrackParticles",
353 EGAM9SlimmingHelper.SmartCollections += [
"AntiKt4EMPFlowJets"]
355 EGAM9SlimmingHelper.SmartCollections += [
357 "AntiKt4TruthDressedWZJets",
363 EGAM9SlimmingHelper.ExtraVariables += [
"Photons.DFCommonLoosePrime5"]
366 EGAM9SlimmingHelper.ExtraVariables += [
367 "GSFConversionVertices.x.y.z.px.py.pz.pt1.pt2.etaAtCalo.phiAtCalo",
368 "GSFConversionVertices.trackParticleLinks",
372 EGAM9SlimmingHelper.ExtraVariables += [
"PrimaryVertices.x.y.sumPt2"]
376 EGAM9SlimmingHelper.ExtraVariables += [
377 "AntiKt4PV0TrackJets.pt.eta.phi.e.m.btaggingLink.constituentLinks"
381 EGAM9SlimmingHelper.ExtraVariables += PhotonsCPDetailedContent
382 EGAM9SlimmingHelper.ExtraVariables += ElectronsCPDetailedContent
383 EGAM9SlimmingHelper.ExtraVariables += GSFTracksCPDetailedContent
386 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
388 getClusterEnergyPerLayerDecorations,
392 print(
"EGAM9 gain decorations: ", gainDecorations)
393 EGAM9SlimmingHelper.ExtraVariables.extend(gainDecorations)
395 print(
"EGAM9 cluster energy decorations: ", clusterEnergyDecorations)
396 EGAM9SlimmingHelper.ExtraVariables.extend(clusterEnergyDecorations)
399 EGAM9SlimmingHelper.ExtraVariables += [
400 "TopoClusterIsoCentralEventShape.Density",
401 "TopoClusterIsoForwardEventShape.Density",
402 "NeutralParticleFlowIsoCentralEventShape.Density",
403 "NeutralParticleFlowIsoForwardEventShape.Density",
408 EGAM9SlimmingHelper.ExtraVariables += [
409 "Photons.truthOrigin.truthType.truthParticleLink"
413 if flags.Derivation.Egamma.doEventInfoSlimming:
414 EGAM9SlimmingHelper.SmartCollections.append(
"EventInfo")
416 EGAM9SlimmingHelper.AllVariables += [
"EventInfo"]
419 EGAM9SlimmingHelper.IncludeEGammaTriggerContent =
True
423 if flags.Trigger.EDMVersion == 2:
424 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
426 OutputContainerPrefix =
"TrigMatch_",
427 TriggerList = EGAM9TriggerListsHelper.Run2TriggerNamesNoTau)
429 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
430 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
436 EGAM9SlimmingHelper.StaticContent = [
437 "CaloCellContainer#DFEGAMCellContainer",
438 "CaloClusterCellLinkContainer#egammaClusters_links",
441 EGAM9SlimmingHelper.StaticContent = [
442 "CaloCellContainer#AllCalo",
443 "CaloClusterCellLinkContainer#egammaClusters_links",
446 EGAM9ItemList = EGAM9SlimmingHelper.GetItemList()
451 ItemList=EGAM9ItemList,
452 AcceptAlgs=[
"EGAM9Kernel"],
459 AcceptAlgs=[
"EGAM9Kernel"],
461 MetadataCategory.CutFlowMetaData,
462 MetadataCategory.TruthMetaData,