ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagTools
python
IPDetailedTrackGradeFactoryConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaConfiguration.Enums
import
LHCPeriod
6
7
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
IPDetailedTrackGradeFactoryConfig.IPDetailedTrackGradeFactoryCfg
IPDetailedTrackGradeFactoryCfg(flags, name='IPDetailedTrackGradeFactory', useBTagFlagsDefaults=True, **options)
Definition
IPDetailedTrackGradeFactoryConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0