16 """ fourth step: precision electron....."""
18 inViewRoIs =
"precisionTracking" + variant
20 from TriggerMenuMT.HLT.Electron.PrecisionTrackingRecoSequences
import precisionTracking
24 roiTool = CompFactory.ViewCreatorPreviousROITool()
26 viewName =
tag(ion)+variant
27 precisionInDetReco = InViewRecoCA(viewName,
29 ViewFallThrough =
True,
30 RequireParentView=
True,
31 mergeUsingFeature=
True,
32 InViewRoIs=inViewRoIs,
35 precisionInDetReco.mergeReco(precisionTrackingReco)
36 selAcc=SelectionCA(viewName, isProbe=is_probe_leg)
37 selAcc.mergeReco(precisionInDetReco)
40 precisionElectronHypoAlg = CompFactory.TrigStreamerHypoAlg(
"Electron"+
tag(ion)+
"Hypo"+variant)
41 precisionElectronHypoAlg.FeatureIsROI =
False
42 selAcc.addHypoAlgo(precisionElectronHypoAlg)
43 def acceptAllHypoToolGen(chainDict):
44 return CompFactory.TrigStreamerHypoTool(chainDict[
"chainName"], Pass =
True)
45 return MenuSequence(flags,selAcc,HypoToolGen=acceptAllHypoToolGen)