4 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InViewRecoCA
5 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys
import getTrigEgammaKeys
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
10 from AthenaCommon.Logging
import logging
11 log = logging.getLogger(__name__)
14 return 'precision' + (
'HI' if ion
is True else '') +
'Photon'
19 """ This function creates the PrecisionPhoton sequence"""
21 InViewRoIs=
"PrecisionPhotonRoIs"
26 hiInfo =
'HI' if ion
is True else ''
27 probeInfo =
'_probe' if is_probe_leg
is True else ''
29 roiTool = CompFactory.ViewCreatorPreviousROITool()
30 recoAcc = InViewRecoCA(
tag(ion),InViewRoIs=InViewRoIs, RoITool = roiTool, RequireParentView =
True, isProbe=is_probe_leg)
32 from TriggerMenuMT.HLT.Photon.PrecisionPhotonRecoSequences
import precisionPhotonRecoSequence
35 selAcc = SelectionCA(
'PrecisionPhotonMenuSequence'+hiInfo, isProbe=is_probe_leg)
37 selAcc.mergeReco(recoAcc)
38 sequenceOut = TrigEgammaKeys.precisionPhotonContainer
40 from TrigEgammaHypo.TrigEgammaPrecisionPhotonHypoTool
import TrigEgammaPrecisionPhotonHypoAlgCfg, TrigEgammaPrecisionPhotonHypoToolFromDict
44 return MenuSequence(flags, selAcc, HypoToolGen=TrigEgammaPrecisionPhotonHypoToolFromDict)