ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
EFTracking
FPGATrackSim
FPGATrackSimSGInput
python
FPGATrackSimSGInputConfig.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
from
AthenaCommon.SystemOfUnits
import
GeV
7
8
def
FPGATrackSimSGInputToolCfg
(flags,**kwargs):
9
acc = ComponentAccumulator()
10
11
if
not
flags.Trigger.FPGATrackSim.readOfflineObjects:
12
kwargs.setdefault(
'OfflineTracks'
,
""
)
13
kwargs.setdefault(
'pixelClustersName'
,
""
)
14
kwargs.setdefault(
'SCT_ClustersName'
,
""
)
15
16
17
from
TrkConfig.AtlasExtrapolatorConfig
import
AtlasExtrapolatorCfg
18
extrapolatorTool = acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
19
20
from
TrkConfig.TrkTruthCreatorToolsConfig
import
TruthToTrackToolCfg
21
truthToTrackTool = acc.popToolsAndMerge(TruthToTrackToolCfg(flags))
22
from
TrkConfig.TrkConfigFlags
import
TrackingComponent
23
FPGATrackSimSGInputTool = CompFactory.FPGATrackSimSGToRawHitsTool(maxEta=5.0, minPt=0.8 * GeV,
24
Extrapolator = extrapolatorTool, TruthToTrackTool = truthToTrackTool,
25
ReadOfflineTracks=TrackingComponent.AthenaChain
in
flags.Tracking.recoChain
and
flags.Trigger.FPGATrackSim.readOfflineObjects,
26
**kwargs)
27
FPGATrackSimSGInputToolCfg.doMultiTruth = flags.Trigger.FPGATrackSim.doMultiTruth
28
acc.setPrivateTools(FPGATrackSimSGInputTool)
29
30
return
acc
31
32
def
FPGATrackSimSGInputCfg
(flags,**kwargs):
33
"""
34
Configure FPGATrackSim wrappers generation, outFile will be taken from flags in the future
35
"""
36
37
acc = ComponentAccumulator()
38
from
PixelGeoModelXml.ITkPixelGeoModelConfig
import
ITkPixelReadoutGeometryCfg
39
acc.merge(ITkPixelReadoutGeometryCfg(flags))
40
from
StripGeoModelXml.ITkStripGeoModelConfig
import
ITkStripReadoutGeometryCfg
41
acc.merge(ITkStripReadoutGeometryCfg(flags))
42
43
wrapperAlg = CompFactory.TrigFPGATrackSimRawHitsWrapperAlg(
44
InputTool=acc.popToolsAndMerge(
FPGATrackSimSGInputToolCfg
(flags)),
45
OutFileName=flags.Trigger.FPGATrackSim.wrapperFileName,
46
WrapperMetaData=flags.Trigger.FPGATrackSim.wrapperMetaData
47
)
48
acc.addEventAlgo(wrapperAlg)
49
50
return
acc
51
# how to run? See README file
FPGATrackSimSGInputConfig.FPGATrackSimSGInputToolCfg
FPGATrackSimSGInputToolCfg(flags, **kwargs)
Definition
FPGATrackSimSGInputConfig.py:8
FPGATrackSimSGInputConfig.FPGATrackSimSGInputCfg
FPGATrackSimSGInputCfg(flags, **kwargs)
Definition
FPGATrackSimSGInputConfig.py:32
Generated on
for ATLAS Offline Software by
1.17.0