3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from BTagging.JetFitterMultiStageFitConfig
import InDetJetFitterMultiStageFitCfg
7 from BTagging.JetFitterTrackSelectorToolConfig
import InDetJetFitterTrackSelectorToolCfg
8 from BTagging.JetFitterTwoTrackVtxFinderToolConfig
import InDetJetFitterTwoTrackVtxFinderToolCfg
9 from BTagging.JetFitterV0FinderToolConfig
import JetFitterV0FinderToolCfg
12 """Sets up a InDetJetFitterTrackSelectorTool tool and returns it.
14 The following options have BTaggingFlags defaults:
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."""
21 if useBTagFlagsDefaults:
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])
33 options[
'name'] = name
34 acc.setPrivateTools( CompFactory.InDet.InDetImprovedJetFitterVxFinder(**options) )