34 """Return component accumulator with configured private Tile hit vector to container tool
37 flags -- Athena configuration flags
40 kwargs.setdefault(
'name',
'TileHitVecToCntTool')
41 kwargs.setdefault(
'RndmEvtOverlay', flags.Common.isOverlay)
42 if flags.Common.isOverlay:
43 kwargs.setdefault(
'OnlyUseContainerName',
False)
45 kwargs.setdefault(
'OnlyUseContainerName', flags.Digitization.PileUp)
49 from TileConditions.TileInfoLoaderConfig
import TileInfoLoaderCfg
52 from TileConditions.TileSamplingFractionConfig
import TileSamplingFractionCondAlgCfg
55 from TileConditions.TileCablingSvcConfig
import TileCablingSvcCfg
58 if flags.Detector.EnableMBTS:
59 kwargs.setdefault(
'TileHitVectors', [
'TileHitVec',
'MBTSHits'])
61 kwargs.setdefault(
'TileHitVectors', [
'TileHitVec'])
62 kwargs.setdefault(
'TileHitContainer',
'TileHitCnt')
64 if flags.Common.isOverlay
and not flags.Sim.DoFullChain:
65 from SGComps.SGInputLoaderConfig
import SGInputLoaderCfg
66 acc.merge(
SGInputLoaderCfg(flags, [f
'TileHitVector#{vec}' for vec
in kwargs[
'TileHitVectors']]))
68 kwargs.setdefault(
'DoHSTruthReconstruction', flags.Digitization.EnableCaloHSTruthRecoInputs)
69 if kwargs[
'DoHSTruthReconstruction']:
70 kwargs.setdefault(
'TileHitContainer_DigiHSTruth',
'TileHitCnt_DigiHSTruth')
72 kwargs.setdefault(
'TileHitContainer_DigiHSTruth',
'')
74 if 'RndmSvc' not in kwargs:
75 from RngComps.RngCompsConfig
import AthRNGSvcCfg
76 kwargs[
'RndmSvc'] = acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name
78 if kwargs[
'RndmEvtOverlay']:
79 kwargs.setdefault(
'PileUp',
False)
81 kwargs.setdefault(
'PileUp', flags.Digitization.PileUp)
83 if flags.Beam.Type
is BeamType.Cosmics:
84 CosmicTriggerTimeTool=CompFactory.CosmicTriggerTimeTool
86 kwargs.setdefault(
'HitTimeFlag', 2)
87 kwargs.setdefault(
'UseTriggerTime',
True)
89 if flags.Digitization.PileUp:
91 if flags.Digitization.DoXingByXingPileUp:
96 kwargs.setdefault(
"PileUpMergeSvc", acc.getPrimaryAndMerge(
PileUpMergeSvcCfg(flags, Intervals=intervals)).name)
98 kwargs.setdefault(
"PileUpMergeSvc",
'')
100 acc.setPrivateTools(CompFactory.TileHitVecToCntTool(**kwargs))