3 from AthenaCommon.Logging
import logging
5 logging.getLogger().
info(
"Importing %s", __name__)
6 log = logging.getLogger(__name__)
8 from ..Config.ChainConfigurationBase
import ChainConfigurationBase
9 from .ConfigHelpers
import recoKeys, AlgConfig
10 from ..Menu.SignatureDicts
import METChainParts_Default
14 """ Extract the keys relevant to reconstruction from a provided dictionary
16 If fillDefaults is True then any missing keys will be taken from the
17 METChainParts_Default dictionary.
20 return {k: chainDict.get(k, METChainParts_Default[k])
for k
in recoKeys}
22 return {k: chainDict[k]
for k
in recoKeys
if k
in chainDict}
30 ChainConfigurationBase.__init__(self, chainDict)
40 log.debug(
"Assembling chain for %s", self.chainName)
41 conf = AlgConfig.fromRecoDict(**self.
recoDict)
42 steps = conf.make_accumulator_steps(flags, self.dict)
44 return self.buildChain(steps)