9def InDetJetFitterUtilsCfg(flags, name = 'InDetJFUtils', useBTagFlagsDefaults = True, options = {}):
10 """Sets up a InDetJetFitterUtils tool and returns it.
11
12 The following options have BTaggingFlags defaults:
13
14 input: name: The name of the tool (should be unique).
15 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
16 **options: Python dictionary with options for the tool.
17 output: The actual tool."""
18 acc = ComponentAccumulator()
19 if useBTagFlagsDefaults:
20 jetFitterFullLinearizedTrackFactory = acc.popToolsAndMerge(AtlasFullLinearizedTrackFactoryCfg(flags, 'JFFullLinearizedTrackFactory'))
21 jetFitterExtrapolator= acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags, 'JFExtrapolator'))
22 defaults = { 'LinearizedTrackFactory': jetFitterFullLinearizedTrackFactory,
23 'Extrapolator' : jetFitterExtrapolator }
24 for option in defaults:
25 options.setdefault(option, defaults[option])
26 options['name'] = name
27 acc.setPrivateTools(CompFactory.InDet.InDetJetFitterUtils(**options))
28
29 return acc