Skip to content
Snippets Groups Projects

Sweeping !53526 from master to 22.0. Component accumulator in DAODs - part 7: MET association

Merged Sweeping !53526 from master to 22.0. Component accumulator in DAODs - part 7: MET association
Merged Atlas Nightlybuild requested to merge cherry-pick-8015ddf7d99-22.0 into 22.0
2 files
+ 28
2
Compare changes
  • Side-by-side
  • Inline
Files
2
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
#********************************************************************
# METCommonConfig.py
# Configures DF MET content building and association tools
# Component accumulator version
#********************************************************************
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
def METAssociationAlgCfg(ConfigFlags, algname = 'METStandardAssociationAlg'):
"""Configure MET for the derivation framework"""
acc = ComponentAccumulator()
from METReconstruction.METAssocCfg import getMETAssocAlg
from METReconstruction.METRecoFlags import metFlags
standardConfigs = {k : v for k, v in metFlags.METAssocConfigs().items() if ("EMTopo" in k or "EMPFlow" in k)}
assocAlg = getMETAssocAlg(algname, standardConfigs)
acc.addEventAlgo(assocAlg)
return acc
Loading