ATLAS Offline Software
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 
10 
11  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
12  extrapolatorTool = acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
13 
14  from TrkConfig.TrkTruthCreatorToolsConfig import TruthToTrackToolCfg
15  truthToTrackTool = acc.popToolsAndMerge(TruthToTrackToolCfg(flags))
16  from TrkConfig.TrkConfigFlags import TrackingComponent
17  FPGATrackSimSGInputTool = CompFactory.FPGATrackSimSGToRawHitsTool(maxEta=5.0, minPt=0.8 * GeV,
18  Extrapolator = extrapolatorTool, TruthToTrackTool = truthToTrackTool, ReadOfflineTracks=TrackingComponent.AthenaChain in flags.Tracking.recoChain)
19  acc.setPrivateTools(FPGATrackSimSGInputTool)
20 
21  return acc
22 
23 def FPGATrackSimSGInputCfg(flags,**kwargs):
24  """
25  Configure FPGATrackSim wrappers generation, outFile will be taken from flags in the future
26  """
27 
28  acc = ComponentAccumulator()
29  from PixelGeoModelXml.ITkPixelGeoModelConfig import ITkPixelReadoutGeometryCfg
30  acc.merge(ITkPixelReadoutGeometryCfg(flags))
31  from StripGeoModelXml.ITkStripGeoModelConfig import ITkStripReadoutGeometryCfg
32  acc.merge(ITkStripReadoutGeometryCfg(flags))
33 
34  wrapperAlg = CompFactory.TrigFPGATrackSimRawHitsWrapperAlg(
35  InputTool=acc.popToolsAndMerge(FPGATrackSimSGInputToolCfg(flags)),
36  OutFileName=flags.Trigger.FPGATrackSim.wrapperFileName,
37  WrapperMetaData=flags.Trigger.FPGATrackSim.wrapperMetaData
38  )
39  acc.addEventAlgo(wrapperAlg)
40 
41  return acc
42 # how to run? See README file
FPGATrackSimSGInputConfig.FPGATrackSimSGInputCfg
def FPGATrackSimSGInputCfg(flags, **kwargs)
Definition: FPGATrackSimSGInputConfig.py:23
SystemOfUnits
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
python.TrkTruthCreatorToolsConfig.TruthToTrackToolCfg
def TruthToTrackToolCfg(flags, name="TruthToTrack", **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:25
FPGATrackSimSGInputConfig.FPGATrackSimSGInputToolCfg
def FPGATrackSimSGInputToolCfg(flags)
Definition: FPGATrackSimSGInputConfig.py:8
ITkPixelGeoModelConfig.ITkPixelReadoutGeometryCfg
def ITkPixelReadoutGeometryCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkPixelGeoModelConfig.py:39
ITkStripGeoModelConfig.ITkStripReadoutGeometryCfg
def ITkStripReadoutGeometryCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkStripGeoModelConfig.py:39