11from FPGATrackSimConfTools.FPGATrackSimAnalysisConfig
import FPGATrackSimRoadUnionToolCfg,FPGATrackSimRoadUnionTool1DCfg,FPGATrackSimRoadUnionToolGenScanCfg
12from FPGATrackSimConfTools.FPGATrackSimDataPrepConfig
import FPGATrackSimRawLogicCfg, FPGATrackSimMappingCfg, FPGATrackSimEventSelectionSvcCfg
17 result=ComponentAccumulator()
18 SpacePointTool = CompFactory.FPGATrackSimSpacePointsTool()
19 SpacePointTool.Filtering = flags.Trigger.FPGATrackSim.ActiveConfig.spacePointFiltering
20 SpacePointTool.FilteringClosePoints =
False
21 SpacePointTool.PhiWindow = 0.004
22 SpacePointTool.Duplication =
True
23 result.setPrivateTools(SpacePointTool)
31 result=ComponentAccumulator()
33 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
34 MyExtrapolator = result.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
36 from TrkConfig.TrkTruthCreatorToolsConfig
import TruthToTrackToolCfg
37 MyTruthToTrack = result.popToolsAndMerge(TruthToTrackToolCfg(flags))
39 FPGATrackSimSGInputTool = CompFactory.FPGATrackSimSGToRawHitsTool(maxEta=5.0, minPt=0.8 * GeV,
40 dumpHitsOnTracks=
False,
41 dumpTruthIntersections=
False,
42 ReadOfflineClusters=
False,
44 ReadOfflineTracks=
False,
45 UseNominalOrigin =
True,
46 Extrapolator = MyExtrapolator,
47 TruthToTrackTool = MyTruthToTrack )
48 result.setPrivateTools(FPGATrackSimSGInputTool)
53 acc = ComponentAccumulator()
55 theFPGATrackSimMatrixGenAlg = CompFactory.FPGATrackSimMatrixGenAlgo()
56 theFPGATrackSimMatrixGenAlg.Clustering =
True
57 theFPGATrackSimMatrixGenAlg.IdealiseGeometry = 2
58 theFPGATrackSimMatrixGenAlg.SingleSector =
False
59 theFPGATrackSimMatrixGenAlg.HoughConstants =
True
60 theFPGATrackSimMatrixGenAlg.DeltaPhiConstants =
False
61 theFPGATrackSimMatrixGenAlg.PT_THRESHOLD = 1.0
62 theFPGATrackSimMatrixGenAlg.D0_THRESHOLD = 2.0
63 theFPGATrackSimMatrixGenAlg.TRAIN_PDG = 13
64 theFPGATrackSimMatrixGenAlg.NBanks = 1
66 theFPGATrackSimMatrixGenAlg.SpacePoints = flags.Trigger.FPGATrackSim.spacePoints
67 if flags.Trigger.FPGATrackSim.spacePoints:
69 theFPGATrackSimMatrixGenAlg.minSpacePlusPixel = flags.Trigger.FPGATrackSim.minSpacePlusPixel
71 theFPGATrackSimMatrixGenAlg.FPGATrackSimEventSelectionSvc = acc.getPrimaryAndMerge(FPGATrackSimEventSelectionSvcCfg(flags))
72 theFPGATrackSimMatrixGenAlg.FPGATrackSimMappingSvc = acc.getPrimaryAndMerge(FPGATrackSimMappingCfg(flags))
74 if (flags.Trigger.FPGATrackSim.ActiveConfig.secondStage):
75 from FPGATrackSimConfTools.FPGATrackSimAnalysisConfig
import FPGATrackSimTrackFitterToolCfg,FPGATrackSimOverlapRemovalToolCfg
76 from FPGATrackSimConfTools.FPGATrackSimSecondStageConfig
import FPGATrackSimWindowExtensionToolCfg
77 theFPGATrackSimMatrixGenAlg.TrackFitter_1st = acc.getPrimaryAndMerge(FPGATrackSimTrackFitterToolCfg(flags))
78 theFPGATrackSimMatrixGenAlg.OverlapRemoval_1st = acc.getPrimaryAndMerge(FPGATrackSimOverlapRemovalToolCfg(flags))
79 theFPGATrackSimMatrixGenAlg.TrackExtensionTool = acc.getPrimaryAndMerge(FPGATrackSimWindowExtensionToolCfg(flags))
80 theFPGATrackSimMatrixGenAlg.SecondStage =
True
82 theFPGATrackSimMatrixGenAlg.SecondStage =
False
86 theFPGATrackSimMatrixGenAlg.WCmax = 2
87 theFPGATrackSimMatrixGenAlg.dropHitsAndFill = flags.dropHitsAndFill
89 theFPGATrackSimMatrixGenAlg.FPGATrackSimRawToLogicalHitsTool = acc.getPrimaryAndMerge(FPGATrackSimRawLogicCfg(flags))
90 if (flags.Trigger.FPGATrackSim.ActiveConfig.genScan):
91 theFPGATrackSimMatrixGenAlg.RoadFinder = acc.getPrimaryAndMerge(FPGATrackSimRoadUnionToolGenScanCfg(flags))
92 elif (flags.Trigger.FPGATrackSim.ActiveConfig.hough1D):
93 theFPGATrackSimMatrixGenAlg.RoadFinder = acc.getPrimaryAndMerge(FPGATrackSimRoadUnionTool1DCfg(flags))
95 theFPGATrackSimMatrixGenAlg.RoadFinder = acc.getPrimaryAndMerge(FPGATrackSimRoadUnionToolCfg(flags))
97 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
98 acc.merge(BeamSpotCondAlgCfg(flags))
101 theFPGATrackSimMatrixGenAlg.FPGATrackSimClusteringFTKTool = CompFactory.FPGATrackSimClusteringTool()
103 theFPGATrackSimMatrixGenAlg.sectorQPtBins = [-0.001, -0.0005, 0, 0.0005, 0.001]
104 theFPGATrackSimMatrixGenAlg.qptAbsBinning =
False
106 acc.addEventAlgo(theFPGATrackSimMatrixGenAlg)