4from AthenaConfiguration.ComponentFactory
import CompFactory
5from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
6from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InEventRecoCA
7from TrigEDMConfig.TriggerEDM
import recordable
8from TrigEgammaHypo.TrigEgammaTLAPhotonHypoTool
import TrigEgammaTLAPhotonHypoToolFromDict
15 tlaPhotonInputMakerAlg = CompFactory.InputMakerForRoI(
"IMTLAPhotons", RoIsLink=
"initialRoI")
16 tlaPhotonInputMakerAlg.RoITool = CompFactory.ViewCreatorPreviousROITool()
17 tlaPhotonInputMakerAlg.mergeUsingFeature =
True
19 recoAcc = InEventRecoCA(
"PhotonTLARecoSeq_"+photonsIn, inputMaker=tlaPhotonInputMakerAlg)
21 sequenceOut = recordable(photonsIn+
"_TLA")
23 return recoAcc, sequenceOut
32 hypo = CompFactory.TrigEgammaTLAPhotonHypoAlg(
"TrigPhotonTLAHypoAlg_"+photonsIn)
33 hypo.TLAOutputName = sequenceOut
35 selAcc = SelectionCA(
"TrigPhotonTLAMainSeq_"+photonsIn)
36 selAcc.mergeReco(recoAcc)
37 selAcc.addHypoAlgo(hypo)
39 return MenuSequence( flags,
41 HypoToolGen = TrigEgammaTLAPhotonHypoToolFromDict