3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
8 """Sets up a BTagTrackToVertexTool tool and returns it.
10 input: name: The name of the tool (should be unique).
11 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
12 Note however that this tool has no BTaggingFlags defaults; the option is
13 here only for consistency.
15 **options: Python dictionary with options for the tool.
16 output: The actual tool."""
19 if useBTagFlagsDefaults:
21 atlasExtrapolator = accExtrapolator.popPrivateTools()
22 acc.merge(accExtrapolator)
23 options.setdefault(
'Extrapolator', atlasExtrapolator)
24 options[
'name'] = name
25 acc.setPrivateTools(CompFactory.Reco.TrackToVertex( **options))