ATLAS Offline Software
Functions
python.JetFitterTwoTrackVtxFinderToolConfig Namespace Reference

Functions

def InDetJetFitterTwoTrackVtxFinderToolCfg (flags, name, suffix="", useBTagFlagsDefaults=True, **options)
 

Function Documentation

◆ InDetJetFitterTwoTrackVtxFinderToolCfg()

def python.JetFitterTwoTrackVtxFinderToolConfig.InDetJetFitterTwoTrackVtxFinderToolCfg (   flags,
  name,
  suffix = "",
  useBTagFlagsDefaults = True,
**  options 
)
Sets up a InDetJetFitterTwoTrackVtxFinderTool tool and returns it.

The following options have BTaggingFlags defaults:

ID_maxR                             default: 1150.
ID_maxZ                             default: 2727.
twoVertexProbabilityCut             default: 3.4e-2
revertFromPositiveToNegativeTags    default: False

input:             name: The name of the tool (should be unique).
  useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
              **options: Python dictionary with options for the tool.
output: The actual tool, which can then by added to ToolSvc via ToolSvc += output.

Definition at line 8 of file JetFitterTwoTrackVtxFinderToolConfig.py.

8 def InDetJetFitterTwoTrackVtxFinderToolCfg(flags, name, suffix="", useBTagFlagsDefaults = True, **options):
9 
10  """Sets up a InDetJetFitterTwoTrackVtxFinderTool tool and returns it.
11 
12  The following options have BTaggingFlags defaults:
13 
14  ID_maxR default: 1150.
15  ID_maxZ default: 2727.
16  twoVertexProbabilityCut default: 3.4e-2
17  revertFromPositiveToNegativeTags default: False
18 
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."""
23  acc = ComponentAccumulator()
24  if useBTagFlagsDefaults:
25  jetFitterSequentialVertexFitter = acc.popToolsAndMerge(JetFitterSequentialVertexFitterCfg(flags, 'JFSeqVxFitter'+suffix))
26  defaults = { 'ID_maxR' : 1150.,
27  'ID_maxZ' : 2727.,
28  'twoVertexProbabilityCut' : 0.034,
29  'revertFromPositiveToNegativeTags' : True if (suffix=="FLIP_SIGN") else False,
30 # 'CrossDistancesSeedFinder' : ,
31  'SequentialVertexFitter' : jetFitterSequentialVertexFitter }
32  for option in defaults:
33  options.setdefault(option, defaults[option])
34 
35  options['name'] = name
36  acc.setPrivateTools( CompFactory.InDet.JetFitterTwoTrackVtxFinderTool(**options) )
37  return acc
38 
39 
40 
41 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.JetFitterSequentialVertexFitterConfig.JetFitterSequentialVertexFitterCfg
def JetFitterSequentialVertexFitterCfg(flags, name, useBTagFlagsDefaults=True, **options)
Definition: JetFitterSequentialVertexFitterConfig.py:6
python.JetFitterTwoTrackVtxFinderToolConfig.InDetJetFitterTwoTrackVtxFinderToolCfg
def InDetJetFitterTwoTrackVtxFinderToolCfg(flags, name, suffix="", useBTagFlagsDefaults=True, **options)
Definition: JetFitterTwoTrackVtxFinderToolConfig.py:8