3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from DigitizationConfig.PileUpMergeSvcConfig
import PileUpMergeSvcCfg, PileUpXingFolderCfg
24 kwargs.setdefault(
'CacheRefreshFrequency', 1.0 )
25 kwargs.setdefault(
'ItemList', [
"TRTUncompressedHitCollection#TRTUncompressedHits"] )
31 from IOVDbSvc.IOVDbSvcConfig
import addFolders, addFoldersSplitOnline
34 acc.merge(
addFolders(flags,
"TRT_OFL",
"/TRT/Calib/ToT/ToTVectors"))
35 acc.merge(
addFolders(flags,
"TRT_OFL",
"/TRT/Calib/ToT/ToTValue"))
36 if flags.Digitization.DoXingByXingPileUp:
39 from RngComps.RngCompsConfig
import AthRNGSvcCfg
40 kwargs.setdefault(
"RndmSvc", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
41 kwargs.setdefault(
"RandomStreamName",
"FastTRTDigitization")
43 if "TRT_DriftFunctionTool" not in kwargs:
44 from InDetConfig.TRT_DriftFunctionToolConfig
import (
45 TRT_DriftFunctionToolCfg)
46 kwargs.setdefault(
"TRT_DriftFunctionTool", acc.popToolsAndMerge(
49 tool = CompFactory.TRTFastDigitizationTool(name,**kwargs)
50 acc.setPrivateTools(tool)
57 if not flags.Digitization.DoXingByXingPileUp:
59 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
60 kwargs.setdefault(
"trtDriftCircleContainer",
"TRT_DriftCircles")
61 kwargs.setdefault(
"trtPrdMultiTruthCollection",
"PRD_MultiTruthTRT")
62 kwargs.setdefault(
"HardScatterSplittingMode", 0)
70 if not flags.Digitization.DoXingByXingPileUp:
72 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
73 kwargs.setdefault(
"OnlyUseContainerName",
True)
74 kwargs.setdefault(
"trtDriftCircleContainer",
"TRT_DriftCircles")
75 kwargs.setdefault(
"trtPrdMultiTruthCollection",
"PRD_MultiTruthTRT")
76 kwargs.setdefault(
"HardScatterSplittingMode", 1)
84 if not flags.Digitization.DoXingByXingPileUp:
86 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
87 kwargs.setdefault(
"trtDriftCircleContainer",
"TRT_PU_DriftCircles")
88 kwargs.setdefault(
"trtPrdMultiTruthCollection",
"PRD_MultiTruthTRT_PU")
89 kwargs.setdefault(
"HardScatterSplittingMode", 2)
97 if not flags.Digitization.DoXingByXingPileUp:
99 kwargs.setdefault(
"MergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
100 kwargs.setdefault(
"trtHitCollectionName",
"PileupTRTUncompressedHits")
101 kwargs.setdefault(
"trtDriftCircleContainer",
"TRT_PU_DriftCircles")
102 kwargs.setdefault(
"trtPrdMultiTruthCollection",
"PRD_MultiTruthTRT_PU")
103 kwargs.setdefault(
"HardScatterSplittingMode", 0)