4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
8 kwargs.setdefault(
"WriteKey",
"")
9 kwargs.setdefault(
"SignalInputKey",
"{prefix}{sdoKey}".
format(prefix=flags.Overlay.SigPrefix,
10 sdoKey= kwargs[
"WriteKey"]))
11 kwargs.setdefault(
"BkgInputKey",
"{prefix}{sdoKey}".
format(prefix=flags.Overlay.BkgPrefix,
12 sdoKey=kwargs[
"WriteKey"]))
14 if kwargs[
"BkgInputKey"]:
15 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
16 result.merge(
SGInputLoaderCfg(flags, [
"xAOD::MuonSimHitContainer#{sdoKey}".
format(sdoKey= kwargs[
"BkgInputKey"]),
17 "xAOD::MuonSimHitAuxContainer#{sdoKey}Aux.".
format(sdoKey= kwargs[
"BkgInputKey"])]))
21 if flags.Output.doWriteRDO:
22 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
23 result.merge(
OutputStreamCfg(flags,
"RDO", ItemList=[
"xAOD::MuonSimHitContainer#{sdoKey}".
format(sdoKey= kwargs[
"WriteKey"]),
24 "xAOD::MuonSimHitAuxContainer#{sdoKey}Aux.".
format(sdoKey= kwargs[
"WriteKey"])]))
27 the_alg = CompFactory.MuonR4.TruthOverlay(name, **kwargs)
28 result.addEventAlgo(the_alg, primary =
True)