12def EMShowerBuilderCfg(flags, name='EMShowerBuilder', **kwargs):
13
14 mlog = logging.getLogger(name)
15 mlog.debug('Start configuration')
16
17 acc = ComponentAccumulator()
18 egammaIso, egammaShowerShape = CompFactory.getComps(
19 "egammaIso", "egammaShowerShape",)
20 kwargs.setdefault("CellsName", flags.Egamma.Keys.Input.CaloCells)
21 kwargs.setdefault(
22 "CaloNums", [SUBCALO.LAREM, SUBCALO.LARHEC, SUBCALO.TILE])
24 kwargs.setdefault(
"HadronicLeakageTool",
egammaIso())
25
26 tool = CompFactory.EMShowerBuilder(name, **kwargs)
27
28 acc.setPrivateTools(tool)
29 return acc
30
31
{Tool to estimate the hadronic energy behind the electromagnetic cluster, the