ATLAS Offline Software
Functions
python.ImprovedJetFitterInitializationHelperConfig Namespace Reference

Functions

def ImprovedJetFitterInitializationHelperCfg (flags, name, useBTagFlagsDefaults=True, **options)
 

Function Documentation

◆ ImprovedJetFitterInitializationHelperCfg()

def python.ImprovedJetFitterInitializationHelperConfig.ImprovedJetFitterInitializationHelperCfg (   flags,
  name,
  useBTagFlagsDefaults = True,
**  options 
)
Sets up a ImprovedJetFitterInitializationHelper tool and returns it.

The following options have BTaggingFlags defaults:

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 6 of file ImprovedJetFitterInitializationHelperConfig.py.

6 def ImprovedJetFitterInitializationHelperCfg(flags, name, useBTagFlagsDefaults = True, **options):
7  """Sets up a ImprovedJetFitterInitializationHelper tool and returns it.
8 
9  The following options have BTaggingFlags defaults:
10 
11  input: name: The name of the tool (should be unique).
12  useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
13  **options: Python dictionary with options for the tool.
14  output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
15  acc = ComponentAccumulator()
16  if useBTagFlagsDefaults:
17  from TrkConfig.TrkVertexFitterUtilsConfig import AtlasFullLinearizedTrackFactoryCfg
18  jetFitterFullLinearizedTrackFactory = acc.popToolsAndMerge(AtlasFullLinearizedTrackFactoryCfg(flags, 'JFFullLinearizedTrackFactory'))
19  defaults = {'LinearizedTrackFactory' : jetFitterFullLinearizedTrackFactory}
20  for option in defaults:
21  options.setdefault(option, defaults[option])
22 
23  options['name'] = name
24  acc.setPrivateTools(CompFactory.Trk.JetFitterInitializationHelper(**options))
25 
26  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkVertexFitterUtilsConfig.AtlasFullLinearizedTrackFactoryCfg
def AtlasFullLinearizedTrackFactoryCfg(flags, name='AtlasFullLinearizedTrkFactory', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:20
python.ImprovedJetFitterInitializationHelperConfig.ImprovedJetFitterInitializationHelperCfg
def ImprovedJetFitterInitializationHelperCfg(flags, name, useBTagFlagsDefaults=True, **options)
Definition: ImprovedJetFitterInitializationHelperConfig.py:6