3 __doc__ =
"Configuration for EMShowerBuilder"
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaCommon.Logging
import logging
9 from CaloIdentifier
import SUBCALO
14 mlog = logging.getLogger(name)
15 mlog.debug(
'Start configuration')
18 egammaIso, egammaShowerShape = CompFactory.getComps(
19 "egammaIso",
"egammaShowerShape",)
20 kwargs.setdefault(
"CellsName", flags.Egamma.Keys.Input.CaloCells)
22 "CaloNums", [SUBCALO.LAREM, SUBCALO.LARHEC, SUBCALO.TILE])
24 kwargs.setdefault(
"HadronicLeakageTool",
egammaIso())
26 tool = CompFactory.EMShowerBuilder(name, **kwargs)
28 acc.setPrivateTools(tool)
32 if __name__ ==
"__main__":
34 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
35 from AthenaConfiguration.ComponentAccumulator
import printProperties
36 from AthenaConfiguration.TestDefaults
import defaultTestFiles
38 flags.Input.Files = defaultTestFiles.RDO_RUN2
44 mlog = logging.getLogger(
"EMShowerBuilderConfigTest")
45 mlog.info(
"Configuring EMShowerBuilder: ")
51 f =
open(
"emshowerbuilder.pkl",
"wb")