11def InDetImprovedJetFitterVxFinderCfg(flags, name, suffix = "", useBTagFlagsDefaults = True, **options):
12 """Sets up a InDetJetFitterTrackSelectorTool tool and returns it.
13
14 The following options have BTaggingFlags defaults:
15
16 input: name: The name of the tool (should be unique).
17 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
18 **options: Python dictionary with options for the tool.
19 output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
20 acc = ComponentAccumulator()
21 if useBTagFlagsDefaults:
22 InDetJetFitterMultiStageFit = acc.popToolsAndMerge( InDetJetFitterMultiStageFitCfg(flags,"JetFitterMultiStageFit"+suffix,suffix) )
23 InDetJetFitterTrackSelectorTool = acc.popToolsAndMerge( InDetJetFitterTrackSelectorToolCfg(flags,"JetFitterTrackSelectorTool"+suffix,suffix) )
24 InDetJetFitterTwoTrackVtxFinderTool = acc.popToolsAndMerge( InDetJetFitterTwoTrackVtxFinderToolCfg(flags, "InDetJetFitterTwoTrackVtxFinderTool"+suffix,suffix) )
25 InDetJetFitterV0FinderTool = acc.popToolsAndMerge( JetFitterV0FinderToolCfg(flags,"JetFitterV0FinderTool"+suffix,suffix) )
26 defaults = { 'JetFitterTrackSelectorTool' : InDetJetFitterTrackSelectorTool ,
27 'JetFitterTwoTrackVtxFinderTool' : InDetJetFitterTwoTrackVtxFinderTool ,
28 'JetFitterV0FinderTool' : InDetJetFitterV0FinderTool ,
29 'JetFitterMultiStageFit' : InDetJetFitterMultiStageFit }
30 for option in defaults:
31 options.setdefault(option, defaults[option])
32
33 options['name'] = name
34 acc.setPrivateTools( CompFactory.InDet.InDetImprovedJetFitterVxFinder(**options) )
35 return acc