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', [
"ZDC_SimFiberHit_Collection#ZDC_SimFiberHit_Collection" ] )
33 """Return ComponentAccumulator with ZDC digitization tool."""
37 if flags.Digitization.PileUp:
39 if flags.Digitization.DoXingByXingPileUp:
44 kwargs.setdefault(
"mergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
47 kwargs.setdefault(
"mergeSvc",
'')
50 from RngComps.RngCompsConfig
import AthRNGSvcCfg
51 kwargs.setdefault(
"RndmSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
54 from AthenaConfiguration.Enums
import LHCPeriod
55 if flags.GeoModel.Run
in [LHCPeriod.Run1, LHCPeriod.Run2]:
58 acc.setPrivateTools(CompFactory.ZDC_PileUpTool(name, configuration = config, **kwargs))
63 """Return ComponentAccumulator with ZDC_PileUpTool for Overlay"""
65 kwargs.setdefault(
"mergeSvc",
'')
68 acc.setPrivateTools(tool)
73 """Return ComponentAccumulator with Output for ZDC. Not standalone."""
75 if flags.Output.doWriteRDO:
76 ItemList = [
"xAOD::ZdcModuleContainer#*",
"xAOD::ZdcModuleAuxContainer#*.",
"CaloCalibrationHitContainer#*"]
77 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
83 """Return ComponentAccumulator for ZDC digitization"""
85 if "PileUpTools" not in kwargs:
87 kwargs[
"PileUpTools"] = PileUpTools
88 from DigitizationConfig.PileUpToolsConfig
import PileUpToolsCfg
90 from DetDescrCnvSvc.DetDescrCnvSvcConfig
import DetDescrCnvSvcCfg
92 from ZDC_GeoM.ZdcGeoModelConfig
import ZDC_DetToolCfg
98 """Return ComponentAccumulator with ZDC_DigiAlg."""
100 if flags.Common.ProductionStep != ProductionStep.FastChain:
101 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
103 (
'ZDC_SimFiberHit_Collection',
'ZDC_SimFiberHit_Collection')} ) )
104 if "DigitizationTool" not in kwargs:
107 if flags.Concurrency.NumThreads > 0:
108 kwargs.setdefault(
"Cardinality", flags.Concurrency.NumThreads)
111 kwargs.setdefault(
"ExtraInputs", flags.Overlay.ExtraInputs)
113 acc.addEventAlgo(CompFactory.ZDC_DigiAlg(
"ZDC_DigiAlg", **kwargs))
118 """Return ComponentAccumulator for ZDC digitization and Output"""
127 """Return ComponentAccumulator for ZDC digitization and Output"""