202 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
204 EGAM10TriggerListsHelper = TriggerListsHelper(flags)
211 StreamName=
"StreamDAOD_EGAM10",
212 TriggerListsHelper=EGAM10TriggerListsHelper,
217 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
218 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
219 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
222 "EGAM10SlimmingHelper",
223 NamesAndTypes=flags.Input.TypedCollections,
232 EGAM10SlimmingHelper.AllVariables = [
"CaloCalTopoClusters"]
236 EGAM10SlimmingHelper.AppendToDictionary.update(
238 "TruthIsoCentralEventShape":
"xAOD::EventShape",
239 "TruthIsoCentralEventShapeAux":
"xAOD::EventShapeAuxInfo",
240 "TruthIsoForwardEventShape":
"xAOD::EventShape",
241 "TruthIsoForwardEventShapeAux":
"xAOD::EventShapeAuxInfo",
244 EGAM10SlimmingHelper.AllVariables += [
254 "AntiKt4TruthDressedWZJets",
255 "egammaTruthParticles",
256 "TruthIsoCentralEventShape",
257 "TruthIsoForwardEventShape",
270 EGAM10SlimmingHelper.SmartCollections = [
273 "InDetTrackParticles",
275 "AntiKt4EMPFlowJets",
279 EGAM10SlimmingHelper.SmartCollections += [
281 "AntiKt4TruthDressedWZJets",
287 EGAM10SlimmingHelper.ExtraVariables += [
288 "egammaClusters.PHI2CALOFRAME.ETA2CALOFRAME.phi_sampl"
292 EGAM10SlimmingHelper.ExtraVariables += [
293 "Photons.ptcone30.ptcone40.f3.f3core",
294 "Photons.maxEcell_time.maxEcell_energy.maxEcell_gain.maxEcell_onlId",
295 "Photons.maxEcell_x.maxEcell_y.maxEcell_z",
296 "Photons.ptcone40_Nonprompt_All_MaxWeightTTVA_pt1000",
297 "Photons.ptcone40_Nonprompt_All_MaxWeightTTVA_pt500",
298 "Photons.ptcone20_Nonprompt_All_MaxWeightTTVA_pt500",
299 "Photons.ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt1000",
300 "Photons.ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt500",
304 EGAM10SlimmingHelper.ExtraVariables += [
305 "Electrons.topoetcone30.topoetcone40.ptcone20.ptcone30",
306 "Electrons.ptcone40.maxEcell_time.maxEcell_energy.maxEcell_gain",
307 "Electrons.maxEcell_onlId.maxEcell_x.maxEcell_y.maxEcell_z",
311 EGAM10SlimmingHelper.ExtraVariables += [
312 "PrimaryVertices.covariance.trackWeights.sumPt2.sumPt",
313 "PrimaryVertices.pt.eta.phi",
317 EGAM10SlimmingHelper.ExtraVariables += [
318 "InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights"
322 EGAM10SlimmingHelper.ExtraVariables += PhotonsCPDetailedContent
325 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
327 getClusterEnergyPerLayerDecorations,
331 print(
"EGAM10 gain decorations: ", gainDecorations)
332 EGAM10SlimmingHelper.ExtraVariables.extend(gainDecorations)
334 print(
"EGAM10 cluster energy decorations: ", clusterEnergyDecorations)
335 EGAM10SlimmingHelper.ExtraVariables.extend(clusterEnergyDecorations)
338 EGAM10SlimmingHelper.ExtraVariables += [
339 "TopoClusterIsoCentralEventShape.Density",
340 "TopoClusterIsoForwardEventShape.Density",
343 from DerivationFrameworkEGamma
import EGammaIsoConfig
350 ) = EGammaIsoConfig.makeEGammaCommonIsoCfg(flags)
352 EGAM10SlimmingHelper.AppendToDictionary.update(densityDict)
353 EGAM10SlimmingHelper.ExtraVariables += densityList + [f
"Photons{pflowIsoVar}"]
356 from IsolationAlgs.DerivationTrackIsoConfig
import DerivationTrackIsoCfg
360 flags, object_types=(
"Photons",), ptCuts=(500, 1000), postfix=
"Extra"
366 EGAM10SlimmingHelper.ExtraVariables += [
367 "Electrons.truthOrigin.truthType.truthParticleLink.truthPdgId",
368 "Electrons.lastEgMotherTruthType.lastEgMotherTruthOrigin",
369 "Electrons.lastEgMotherTruthParticleLink.lastEgMotherPdgId",
370 "Electrons.firstEgMotherTruthType.firstEgMotherTruthOrigin",
371 "Electrons.firstEgMotherTruthParticleLink.firstEgMotherPdgId",
374 EGAM10SlimmingHelper.ExtraVariables += [
375 "Photons.truthOrigin.truthType.truthParticleLink"
378 EGAM10SlimmingHelper.ExtraVariables += [
379 "TruthIsoCentralEventShape.DensitySigma.Density.DensityArea",
380 "TruthIsoForwardEventShape.DensitySigma.Density.DensityArea",
384 if flags.Derivation.Egamma.doEventInfoSlimming:
385 EGAM10SlimmingHelper.SmartCollections.append(
"EventInfo")
387 EGAM10SlimmingHelper.AllVariables += [
"EventInfo"]
390 EGAM10SlimmingHelper.IncludeEGammaTriggerContent =
True
394 if flags.Trigger.EDMVersion == 2:
395 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
397 OutputContainerPrefix =
"TrigMatch_",
398 TriggerList = EGAM10TriggerListsHelper.Run2TriggerNamesNoTau)
400 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
401 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
404 EGAM10ItemList = EGAM10SlimmingHelper.GetItemList()
409 ItemList=EGAM10ItemList,
410 AcceptAlgs=[
"EGAM10Kernel"],
417 AcceptAlgs=[
"EGAM10Kernel"],
419 MetadataCategory.CutFlowMetaData,
420 MetadataCategory.TruthMetaData,