ATLAS Offline Software
Functions
IPDetailedTrackGradeFactoryConfig Namespace Reference

Functions

def IPDetailedTrackGradeFactoryCfg (flags, name='IPDetailedTrackGradeFactory', useBTagFlagsDefaults=True, **options)
 

Function Documentation

◆ IPDetailedTrackGradeFactoryCfg()

def IPDetailedTrackGradeFactoryConfig.IPDetailedTrackGradeFactoryCfg (   flags,
  name = 'IPDetailedTrackGradeFactory',
  useBTagFlagsDefaults = True,
**  options 
)
Sets up a IPDetailedTrackGradeFactory tool and returns it.

The following options have BTaggingFlags defaults:

useSharedHitInfo                    default: True
useDetailSharedHitInfo              default: True
useRun2TrackGrading                 default: False
hitBLayerGrade                      default: True

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.

Definition at line 8 of file IPDetailedTrackGradeFactoryConfig.py.

8 def IPDetailedTrackGradeFactoryCfg( flags, name = 'IPDetailedTrackGradeFactory', useBTagFlagsDefaults = True, **options ):
9  """Sets up a IPDetailedTrackGradeFactory tool and returns it.
10 
11  The following options have BTaggingFlags defaults:
12 
13  useSharedHitInfo default: True
14  useDetailSharedHitInfo default: True
15  useRun2TrackGrading default: False
16  hitBLayerGrade default: True
17 
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."""
22  acc = ComponentAccumulator()
23 
24  btagrun23 = flags.GeoModel.Run in [LHCPeriod.Run2, LHCPeriod.Run3]
25 
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))
38 
39  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
IPDetailedTrackGradeFactoryConfig.IPDetailedTrackGradeFactoryCfg
def IPDetailedTrackGradeFactoryCfg(flags, name='IPDetailedTrackGradeFactory', useBTagFlagsDefaults=True, **options)
Definition: IPDetailedTrackGradeFactoryConfig.py:8