43 from TrkConfig.TrkTrackSummaryToolConfig
import ITkTrackSummaryToolCfg
45 from InDetConfig.SiTrackMakerConfig
import ITkSiTrackMaker_xkCfg
48 ITkSiTrackMakerTool.CombinatorialTrackFinder.writeHolesFromPattern =
False
50 if flags.Tracking.ActiveConfig.useTrigTrackFollowing:
51 acc.addPublicTool( CompFactory.TrigInDetTrackFollowingTool( name =
"TrigTrackFollowingTool_FTF", LayerNumberTool = acc.popToolsAndMerge(
ITkTrigL2LayerNumberToolCfg(flags))))
53 ITkSiTrackMakerTool.useTrigTrackFollowingTool =
True
54 ITkSiTrackMakerTool.TrigTrackFollowingTool = acc.getPublicTool(
"TrigTrackFollowingTool_FTF")
56 if flags.Tracking.ActiveConfig.useTrigRoadPredictor:
57 acc.addPublicTool( CompFactory.TrigInDetRoadPredictorTool( name =
"TrigRoadPredictorTool_FTF", LayerNumberTool = acc.popToolsAndMerge(
ITkTrigL2LayerNumberToolCfg(flags))))
59 ITkSiTrackMakerTool.useTrigInDetRoadPredictorTool =
True
60 ITkSiTrackMakerTool.TrigInDetRoadPredictorTool = acc.getPublicTool(
"TrigRoadPredictorTool_FTF")
62 ITkSiTrackMakerTool.trackletPoints = flags.Trigger.InDetTracking.trackletPoints
64 acc.addPublicTool(ITkSiTrackMakerTool)
66 acc.addPublicTool( CompFactory.TrigInDetTrackFitter(
"TrigInDetTrackFitter" ) )
68 if flags.Trigger.InDetTracking.doGPU:
69 inDetAccelSvc = CompFactory.TrigInDetAccelerationSvc(
"TrigInDetAccelerationSvc")
70 inDetAccelSvc.useITkGeometry =
True
71 inDetAccelSvc.MiddleSpacePointLayers = [81000, 82000,
72 90011, 90012, 90013, 90014, 91002, 91003, 91004, 91005,
73 92000, 92001, 92002, 92003, 92004, 92005, 92006, 92007, 92008, 92009, 92010,
74 92011, 92012, 92013, 92014, 92015, 92016, 92017, 92018, 92019, 92020, 92021, 92022,
75 70011, 70012, 70013, 70014, 71002, 71003, 71004, 71005,
76 72000, 72001, 72002, 72003, 72004, 72005, 72006, 72007, 72008, 72009, 72010,
77 72011, 72012, 72013, 72014, 72015, 72016, 72017, 72018, 72019, 72020, 72021, 72022
79 acc.addService(inDetAccelSvc)
81 isLRT=flags.Tracking.ActiveConfig.extension ==
"LargeD0"
83 from TrigFastTrackFinder.TrigFastTrackFinderConfig
import TrigFastTrackFinderMonitoringArg
84 from TriggerJobOpts.TriggerHistSvcConfig
import TriggerHistSvcConfig
90 ftf = CompFactory.TrigFastTrackFinder( name =
"TrigFastTrackFinder"+flags.Tracking.ActiveConfig.extension,
92 TrigAccelerationTool = CompFactory.TrigITkAccelerationTool(name =
"TrigITkAccelerationTool_FTF")
if flags.Trigger.InDetTracking.doGPU
else None,
93 TrigAccelerationSvc = acc.getService(
"TrigInDetAccelerationSvc")
if flags.Trigger.InDetTracking.doGPU
else None,
94 SpacePointProviderTool =
None,
97 initialTrackMaker = ITkSiTrackMakerTool,
98 trigInDetTrackFitter = CompFactory.TrigInDetTrackFitter(
"TrigInDetTrackFitter" ),
99 trigZFinder = CompFactory.TrigZFinder(),
101 SeedRadBinWidth = 10,
102 TrackInitialD0Max = 300.
if isLRT
else 20.0,
103 TracksName = SiSPSeededTrackCollectionKey,
104 TrackZ0Max = 500.
if isLRT
else 300.,
105 Triplet_D0Max = 300.
if isLRT
else 4,
106 Triplet_MaxBufferLength = 3
if isLRT
else 1,
107 Triplet_MinPtFrac = 0.8,
110 doSeedRedundancyCheck =
True,
111 pTmin = flags.Tracking.ActiveConfig.minPT[0],
112 useNewLayerNumberScheme =
True,
115 useGPU = flags.Trigger.InDetTracking.doGPU,
116 StandaloneMode =
True,
117 UseTracklets = flags.Tracking.ActiveConfig.useTracklets,
118 doTrackRefit =
False,
121 DoubletDR_Max = 150.0,
123 doDisappearingTrk =
False,
125 ConnectionFileName =
"binTables_ITK_RUN4_LRT.txt" if isLRT
else "binTables_ITK_RUN4.txt")
127 acc.addEventAlgo( ftf, primary=
True )