3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
11 if not flags.Trigger.FPGATrackSim.readOfflineObjects:
12 kwargs.setdefault(
'OfflineTracks',
"")
13 kwargs.setdefault(
'pixelClustersName',
"")
14 kwargs.setdefault(
'SCT_ClustersName',
"")
17 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
20 from TrkConfig.TrkTruthCreatorToolsConfig
import TruthToTrackToolCfg
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,
27 FPGATrackSimSGInputToolCfg.doMultiTruth = flags.Trigger.FPGATrackSim.doMultiTruth
28 acc.setPrivateTools(FPGATrackSimSGInputTool)
34 Configure FPGATrackSim wrappers generation, outFile will be taken from flags in the future
38 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelReadoutGeometryCfg
40 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripReadoutGeometryCfg
43 wrapperAlg = CompFactory.TrigFPGATrackSimRawHitsWrapperAlg(
45 OutFileName=flags.Trigger.FPGATrackSim.wrapperFileName,
46 WrapperMetaData=flags.Trigger.FPGATrackSim.wrapperMetaData
48 acc.addEventAlgo(wrapperAlg)