13 """ second step: tracking....."""
14 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys
import getTrigEgammaKeys
16 inViewRoIs =
"EMIDRoIs"+variant
19 from TriggerMenuMT.HLT.Electron.FastTrackingRecoSequences
import fastTracking
20 fastTrackingReco, recoFlags =
fastTracking(flags, inViewRoIs, variant)
23 ViewCreatorCentredOnClusterROITool=CompFactory.ViewCreatorCentredOnClusterROITool
25 roiTool.AllowMultipleClusters =
False
26 roiTool.RoisWriteHandleKey = TrigEgammaKeys.fastTrackingRoIContainer
27 roiTool.RoIEtaWidth = recoFlags.Tracking.ActiveConfig.etaHalfWidth
28 roiTool.RoIPhiWidth = recoFlags.Tracking.ActiveConfig.phiHalfWidth
29 if recoFlags.Tracking.ActiveConfig.zedHalfWidth > 0 :
30 roiTool.RoIZedWidth = recoFlags.Tracking.ActiveConfig.zedHalfWidth
31 viewName=
"EMFastTracking"+variant
32 fastInDetReco = InViewRecoCA(viewName,
34 RequireParentView=
True,
35 InViewRoIs=inViewRoIs,
38 from TrigGenericAlgs.TrigGenericAlgsConfig
import ROBPrefetchingAlgCfg_Si
41 fastInDetReco.mergeReco(fastTrackingReco)
42 selAcc=SelectionCA(
'ElectronFTF'+variant, isProbe=is_probe_leg)
43 selAcc.mergeReco(fastInDetReco, robPrefetchCA=robPrefetchAlg)
44 fastElectronHypoAlg = CompFactory.TrigStreamerHypoAlg(
"ElectronfastTrackingHypo"+variant)
45 fastElectronHypoAlg.FeatureIsROI =
False
46 selAcc.addHypoAlgo(fastElectronHypoAlg)
47 def acceptAllHypoToolGen(chainDict):
48 return CompFactory.TrigStreamerHypoTool(chainDict[
"chainName"], Pass =
True)
49 return MenuSequence(flags,selAcc,HypoToolGen=acceptAllHypoToolGen)