3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from DigitizationConfig.PileUpMergeSvcConfig
import PileUpMergeSvcCfg, PileUpXingFolderCfg
34 from InDetConfig.SiClusterizationToolConfig
import ClusterMakerToolCfg
37 from RngComps.RngCompsConfig
import AthRNGSvcCfg
38 kwargs.setdefault(
"RndmSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
39 kwargs.setdefault(
"RndmEngine",
"FastPixelDigitization")
41 if flags.Digitization.DoXingByXingPileUp:
45 from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelConfigCondAlgCfg
48 from SiLorentzAngleTool.PixelLorentzAngleConfig
import PixelLorentzAngleToolCfg
51 acc.setPrivateTools(CompFactory.PixelFastDigitizationTool(name,**kwargs))
57 from InDetConfig.SiClusterizationToolConfig
import ClusterMakerToolCfg
60 from RngComps.RngCompsConfig
import AthRNGSvcCfg
61 kwargs.setdefault(
"RndmSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
62 kwargs.setdefault(
"RndmEngine",
"FastSCT_Digitization")
64 if flags.Digitization.DoXingByXingPileUp:
68 from SiLorentzAngleTool.SCT_LorentzAngleConfig
import SCT_LorentzAngleToolCfg
71 acc.setPrivateTools(CompFactory.SCT_FastDigitizationTool(name,**kwargs))
79 if not flags.Digitization.DoXingByXingPileUp:
81 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
82 kwargs.setdefault(
"HardScatterSplittingMode", 0)
91 if not flags.Digitization.DoXingByXingPileUp:
93 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
94 kwargs.setdefault(
"HardScatterSplittingMode", 1)
103 if not flags.Digitization.DoXingByXingPileUp:
105 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
106 kwargs.setdefault(
"PixelClusterContainerName",
"Pixel_PU_Clusters")
107 kwargs.setdefault(
"TruthNamePixel",
"PRD_MultiTruthPixel_PU")
108 kwargs.setdefault(
"HardScatterSplittingMode", 2)
117 if not flags.Digitization.DoXingByXingPileUp:
119 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
120 kwargs.setdefault(
"InputObjectName",
"PileupPixelHits")
121 kwargs.setdefault(
"PixelClusterContainerName",
"PixelFast_PU_Clusters")
122 kwargs.setdefault(
"TruthNamePixel",
"PRD_MultiTruthPixel_PU")
123 kwargs.setdefault(
"HardScatterSplittingMode", 0)
124 kwargs.setdefault(
"PixelClusterAmbiguitiesMapName",
"PixelClusterAmbiguitiesMapPU")
133 if not flags.Digitization.DoXingByXingPileUp:
135 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
136 kwargs.setdefault(
"HardScatterSplittingMode", 0)
146 if not flags.Digitization.DoXingByXingPileUp:
148 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
149 kwargs.setdefault(
"HardScatterSplittingMode", 1)
158 if not flags.Digitization.DoXingByXingPileUp:
160 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
161 kwargs.setdefault(
"SCT_ClusterContainerName",
"SCT_PU_Clusters")
162 kwargs.setdefault(
"TruthNameSCT",
"PRD_MultiTruthSCT_PU")
163 kwargs.setdefault(
"HardScatterSplittingMode", 2)
172 if not flags.Digitization.DoXingByXingPileUp:
174 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
175 kwargs.setdefault(
"InputObjectName",
"PileupSCT_Hits")
176 kwargs.setdefault(
"SCT_ClusterContainerName",
"SCT_PU_Clusters")
177 kwargs.setdefault(
"TruthNameSCT",
"PRD_MultiTruthSCT_PU")
178 kwargs.setdefault(
"HardScatterSplittingMode", 0)
187 kwargs.setdefault(
'CacheRefreshFrequency', 1.0 )
188 kwargs.setdefault(
'ItemList', [
"SiHitCollection#PixelHits"] )
197 kwargs.setdefault(
'CacheRefreshFrequency', 1.0 )
198 kwargs.setdefault(
'ItemList', [
"SiHitCollection#SCT_Hits"] )