ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
HLT
Electron
TrigEMBremCollectionBuilder.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
def
TrigEMBremCollectionBuilderCfg
(flags, name = "TrigEgammaBremCollectionBuilder", **kwargs):
7
8
acc = ComponentAccumulator()
9
if
"TrackRefitTool"
not
in
kwargs:
10
from
egammaTrackTools.egammaTrackToolsConfig
import
(
11
egammaTrkRefitterToolCfg)
12
kwargs[
"TrackRefitTool"
] = acc.popToolsAndMerge(
13
egammaTrkRefitterToolCfg(flags))
14
15
16
if
"TrackParticleCreatorTool"
not
in
kwargs:
17
from
TrkConfig.TrkParticleCreatorConfig
import
(
18
GSFBuildInDetParticleCreatorToolCfg)
19
kwargs[
"TrackParticleCreatorTool"
] = acc.popToolsAndMerge(
20
GSFBuildInDetParticleCreatorToolCfg(flags, name=
"TrigGSFBuildInDetParticleCreatorTool"
, isTrigger=
True
))
21
22
if
"TrackSlimmingTool"
not
in
kwargs:
23
from
TrkConfig.TrkTrackSlimmingToolConfig
import
GSFTrackSlimmingToolCfg
24
kwargs[
"TrackSlimmingTool"
] = acc.popToolsAndMerge(GSFTrackSlimmingToolCfg(flags))
25
26
kwargs.setdefault(
27
"usePixel"
,
28
flags.Detector.EnablePixel
or
flags.Detector.EnableITkPixel)
29
kwargs.setdefault(
30
"useSCT"
,
31
flags.Detector.EnableSCT
or
flags.Detector.EnableITkStrip)
32
kwargs.setdefault(
"useTRT"
, flags.Detector.EnableTRT)
33
kwargs.setdefault(
"doTruth"
, flags.Input.isMC)
34
kwargs.setdefault(
"slimTrkTracks"
, flags.Egamma.slimGSFTrkTracks)
35
36
# P->T conversion extra dependencies
37
if
flags.Detector.GeometryITk:
38
kwargs.setdefault(
"ExtraInputs"
, [
39
(
"InDetDD::SiDetectorElementCollection"
,
40
"ConditionStore+ITkPixelDetectorElementCollection"
),
41
(
"InDetDD::SiDetectorElementCollection"
,
42
"ConditionStore+ITkStripDetectorElementCollection"
),
43
])
44
else
:
45
kwargs.setdefault(
"ExtraInputs"
, [
46
(
"InDetDD::SiDetectorElementCollection"
,
47
"ConditionStore+PixelDetectorElementCollection"
),
48
(
"InDetDD::SiDetectorElementCollection"
,
49
"ConditionStore+SCT_DetectorElementCollection"
),
50
])
51
52
alg = CompFactory.EMBremCollectionBuilder(name, **kwargs)
53
acc.addEventAlgo(alg)
54
return
acc
55
56
57
58
python.HLT.Electron.TrigEMBremCollectionBuilder.TrigEMBremCollectionBuilderCfg
TrigEMBremCollectionBuilderCfg(flags, name="TrigEgammaBremCollectionBuilder", **kwargs)
Definition
TrigEMBremCollectionBuilder.py:6
Generated on
for ATLAS Offline Software by
1.17.0