9 """Sets up a IPDetailedTrackGradeFactory tool and returns it.
11 The following options have BTaggingFlags defaults:
13 useSharedHitInfo default: True
14 useDetailSharedHitInfo default: True
15 useRun2TrackGrading default: False
16 hitBLayerGrade default: True
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."""
24 btagrun23 = flags.GeoModel.Run
in [LHCPeriod.Run2, LHCPeriod.Run3]
26 if useBTagFlagsDefaults:
27 defaults = {
'useSharedHitInfo' :
True,
28 'useDetailSharedHitInfo' :
True,
29 'useRun2TrackGrading' : btagrun23,
30 'useInnerLayers0HitInfo' : btagrun23,
31 'useDetailSplitHitInfo' : btagrun23,
32 'useITkTrackGrading' : flags.GeoModel.Run >= LHCPeriod.Run4,
33 'hitBLayerGrade' :
True }
34 for option
in defaults:
35 options.setdefault(option, defaults[option])
36 options[
'name'] = name
37 acc.setPrivateTools(CompFactory.Analysis.DetailedTrackGradeFactory(**options))