90 '''1st FTF step sequence, for both the tauCore and tauLRT RoIs'''
92 if name
not in [
'Core',
'LRT']:
93 raise ValueError(
'Invalid name')
97 newRoITool = CompFactory.ViewCreatorFetchFromViewROITool(
98 RoisWriteHandleKey=
recordable(flags.Tracking.ActiveConfig.roi),
99 InViewRoIs=
'UpdatedCaloRoI',
101 RoIEtaWidth=flags.Tracking.ActiveConfig.etaHalfWidth,
102 RoIPhiWidth=flags.Tracking.ActiveConfig.phiHalfWidth,
103 RoIZedWidth=flags.Tracking.ActiveConfig.zedHalfWidth,
109 from TriggerJobOpts.TriggerConfigFlags
import ROBPrefetching
110 if doExtraPrefetching := name ==
'Core' and ROBPrefetching.TauCoreLargeRoI
in flags.Trigger.ROBPrefetchingOptions:
111 prefetchRoIUpdater = CompFactory.RoiUpdaterTool(
114 EtaWidth=flags.Trigger.InDetTracking.tauIso.etaHalfWidth,
115 PhiWidth=flags.Trigger.InDetTracking.tauIso.phiHalfWidth,
116 ZedWidth=flags.Trigger.InDetTracking.tauIso.zedHalfWidth,
119 prefetchRoITool = CompFactory.ViewCreatorExtraPrefetchROITool(
120 RoiCreator=newRoITool,
121 RoiUpdater=prefetchRoIUpdater,
122 ExtraPrefetchRoIsKey=f
'{newRoITool.RoisWriteHandleKey}_forPrefetching',
123 PrefetchRoIsLinkName=
'prefetchRoI',
124 MergeWithOriginal=
True,
131 recoAcc = InViewRecoCA(
132 f
'tauFastTrack{name}',
133 RoITool=prefetchRoITool
if doExtraPrefetching
else newRoITool,
134 ViewFallThrough=
True,
135 RequireParentView=
True,
136 mergeUsingFeature=
True,
139 RoIs = recoAcc.inputMaker().InViewRoIs
144 recoAcc.addRecoAlgo(CompFactory.AthViews.ViewDataVerifier(
145 name=f
'{recoAcc.name}RecoVDV',
147 (
'TrigRoiDescriptorCollection', f
'StoreGateSvc+{RoIs}'),
155 from TrigInDetConfig.TrigInDetConfig
import trigInDetFastTrackingCfg
159 TrackCollection = flags.Tracking.ActiveConfig.trkTracks_FTF
161 from TrigTauRec.TrigTauRoIToolsConfig
import tauTrackRoiUpdaterCfg
164 from TrigTauRec.TrigTauRoIToolsConfig
import tauLRTRoiUpdaterCfg
169 from TrigGenericAlgs.TrigGenericAlgsConfig
import ROBPrefetchingAlgCfg_Si
171 if doExtraPrefetching:
172 robPrefetchAlg.RoILinkName = prefetchRoITool.PrefetchRoIsLinkName
177 selAcc = SelectionCA(f
'tauFTF{name}', isProbe=is_probe_leg)
178 selAcc.mergeReco(recoAcc, robPrefetchCA=robPrefetchAlg)
183 selAcc.addHypoAlgo(CompFactory.TrigTauFastTrackHypoAlg(
184 f
'TauFastTrackHypoAlg_PassBy{name}',
185 RoIForIDReadHandleKey=
'UpdatedTrackLRTRoI' if name ==
'LRT' else '',
186 FastTracksKey=TrackCollection
192 from TrigTauHypo.TrigTauHypoTool
import TrigTauFastTrackHypoToolFromDict
193 menuSeq = MenuSequence(flags, selAcc, HypoToolGen=TrigTauFastTrackHypoToolFromDict)