10 """Sets up a InDetJetFitterTwoTrackVtxFinderTool tool and returns it.
12 The following options have BTaggingFlags defaults:
14 ID_maxR default: 1150.
15 ID_maxZ default: 2727.
16 twoVertexProbabilityCut default: 3.4e-2
17 revertFromPositiveToNegativeTags default: False
19 input: name: The name of the tool (should be unique).
20 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
21 **options: Python dictionary with options for the tool.
22 output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
24 if useBTagFlagsDefaults:
26 defaults = {
'ID_maxR' : 1150.,
28 'twoVertexProbabilityCut' : 0.034,
29 'revertFromPositiveToNegativeTags' :
True if (suffix==
"FLIP_SIGN")
else False,
31 'SequentialVertexFitter' : jetFitterSequentialVertexFitter }
32 for option
in defaults:
33 options.setdefault(option, defaults[option])
35 options[
'name'] = name
36 acc.setPrivateTools( CompFactory.InDet.JetFitterTwoTrackVtxFinderTool(**options) )