3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import ProductionStep
6 from DigitizationConfig.PileUpMergeSvcConfig
import PileUpMergeSvcCfg, PileUpXingFolderCfg
26 kwargs.setdefault(
'CacheRefreshFrequency', 1.0 )
27 kwargs.setdefault(
'ItemList', [
"ALFA_HitCollection#ALFA_HitCollection",
28 "ALFA_ODHitCollection#ALFA_ODHitCollection"] )
34 """Return ComponentAccumulator with ALFA digitization tool."""
38 if flags.Digitization.PileUp:
40 if flags.Digitization.DoXingByXingPileUp:
45 kwargs.setdefault(
"mergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
48 kwargs.setdefault(
"mergeSvc",
'')
51 from RngComps.RngCompsConfig
import AthRNGSvcCfg
52 kwargs.setdefault(
"RndmSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
54 acc.setPrivateTools(CompFactory.ALFA_PileUpTool(name, **kwargs))
59 """Return ComponentAccumulator with ALFA_PileUpTool for Overlay"""
61 kwargs.setdefault(
"mergeSvc",
'')
64 acc.setPrivateTools(tool)
69 """Return ComponentAccumulator with Output for ALFA. Not standalone."""
71 if flags.Output.doWriteRDO:
72 ItemList = [
"ALFA_DigitCollection#ALFA_DigitCollection",
73 "ALFA_ODDigitCollection#ALFA_ODDigitCollection"]
74 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
80 """Return ComponentAccumulator for ALFA digitization"""
82 if "PileUpTools" not in kwargs:
84 kwargs[
"PileUpTools"] = PileUpTools
85 from DigitizationConfig.PileUpToolsConfig
import PileUpToolsCfg
91 """Return ComponentAccumulator with ALFA_DigiAlg."""
93 if flags.Common.ProductionStep != ProductionStep.FastChain:
94 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
95 acc.merge(
SGInputLoaderCfg(flags,Load={(
'ALFA_HitCollection',
'ALFA_HitCollection'),
96 (
'ALFA_ODHitCollection',
'ALFA_ODHitCollection')} ) )
97 if "DigitizationTool" not in kwargs:
100 if flags.Concurrency.NumThreads > 0:
101 kwargs.setdefault(
"Cardinality", flags.Concurrency.NumThreads)
104 kwargs.setdefault(
"ExtraInputs", flags.Overlay.ExtraInputs)
106 acc.addEventAlgo(CompFactory.ALFA_DigiAlg(
"ALFA_DigiAlg", **kwargs))
111 """Return ComponentAccumulator for ALFA digitization and Output"""
120 """Return ComponentAccumulator for ALFA digitization and Output"""