3 ComponentAccumulator tool configuration for ISF_ActsTools
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaCommon.Logging
import logging
9 from ISF_Algorithms.CollectionMergerConfig
import CollectionMergerCfg
12 """Return ActsFatrasWriteHandler configured with ComponentAccumulator"""
14 mlog = logging.getLogger(name)
15 mlog.info(
'Start configuration ActsFatrasWriteHandler')
17 bare_collection_name =
"PixelHits"
18 mergeable_collection_suffix =
"_Fatras"
19 merger_input_property =
"PixelHits"
23 mergeable_collection_suffix,
24 merger_input_property,
28 bare_collection_name =
"SCT_Hits"
29 mergeable_collection_suffix =
"_Fatras"
30 merger_input_property =
"SCTHits"
34 mergeable_collection_suffix,
35 merger_input_property,
39 kwargs.setdefault(
"PixelCollectionName", pixel_hits_collection_name)
40 kwargs.setdefault(
"SCTCollectionName", sct_hits_collection_name)
42 acc.setPrivateTools(CompFactory.ActsFatrasWriteHandler(name=name, **kwargs))
46 """Return ISF_FatrasSimHitCreatorID configured with ComponentAccumulator"""
48 mlog = logging.getLogger(name)
49 mlog.info(
'Start configuration ISF_ActsFatrasSimTool')
50 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
53 kwargs.setdefault(
"MaxSteps", 2000)
56 from ISF_Services.ISF_ServicesConfig
import TruthServiceCfg
57 kwargs.setdefault(
"TruthRecordService", acc.getPrimaryAndMerge(
TruthServiceCfg(flags)).name)
58 from RngComps.RngCompsConfig
import AthRNGSvcCfg
59 kwargs.setdefault(
"RNGService", acc.getPrimaryAndMerge(
AthRNGSvcCfg(flags)).name)
63 acc.setPrivateTools(CompFactory.ISF.ActsFatrasSimTool(name, **kwargs))