8def 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