3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from BTagging.ImprovedJetFitterInitializationHelperConfig
import ImprovedJetFitterInitializationHelperCfg
6 from BTagging.TrkDistanceFinderNeutralNeutralConfig
import TrkDistanceFinderNeutralNeutralCfg
7 from BTagging.TrkDistanceFinderNeutralChargedConfig
import TrkDistanceFinderNeutralChargedCfg
10 """Sets up a ImprovedJetFitterRoutines tool and returns it.
12 The following options have BTaggingFlags defaults:
15 maxDRshift default: 0.0
16 noPrimaryVertexRefit default: False
18 input: name: The name of the tool (should be unique).
19 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
20 **options: Python dictionary with options for the tool.
21 output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
23 if useBTagFlagsDefaults:
31 'noPrimaryVertexRefit' :
False,
32 'JetFitterInitializationHelper' : improvedJetFitterInitializationHelper,
33 'JetFitterMinimumDistanceFinder' : trkDistanceFinderNeutralCharged,
34 'JetFitterMinimumDistanceFinderNeutral' : trkDistanceFinderNeutralNeutral,
37 for option
in defaults:
38 options.setdefault(option, defaults[option])
39 options[
'name'] = name
40 acc.setPrivateTools(CompFactory.Trk.JetFitterRoutines(**options))