5 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InViewRecoCA
6 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
7 from AthenaConfiguration.ComponentFactory
import CompFactory
11 return 'precision' + (
'HI' if ion
is True else '') +
'Tracking_GSFRefitted'
15 """ sixth step: GSF refitting of precision track....."""
17 inViewRoIs =
"precisionTracks_GSFRefitted"+variant
19 roiTool = CompFactory.ViewCreatorPreviousROITool()
20 reco = InViewRecoCA(
tag(ion)+variant,
22 InViewRoIs = inViewRoIs,
23 RequireParentView =
True,
24 mergeUsingFeature =
True,
25 ViewFallThrough =
True,
29 from TriggerMenuMT.HLT.Electron.PrecisionTracks_GSFRefittedSequence
import precisionTracks_GSFRefitted
32 reco.mergeReco(precisionTracks_GSFRefittedInViewSequence)
34 selAcc = SelectionCA(name +
tag(ion) +variant, isProbe=is_probe_leg)
35 selAcc.mergeReco(reco)
37 thePrecisionTrack_GSFRefittedHypo = CompFactory.TrigStreamerHypoAlg(name +
tag(ion) +
"Hypo" + variant)
38 thePrecisionTrack_GSFRefittedHypo.FeatureIsROI =
False
39 selAcc.addHypoAlgo(thePrecisionTrack_GSFRefittedHypo)
40 def acceptAllHypoToolGen(chainDict):
41 return CompFactory.TrigStreamerHypoTool(chainDict[
"chainName"], Pass =
True)
42 return MenuSequence(flags,selAcc,HypoToolGen=acceptAllHypoToolGen)