ATLAS Offline Software
Loading...
Searching...
No Matches
PrecisionPhotonTLAMenuSequenceConfig.py
Go to the documentation of this file.
2# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3#
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
9
10
11@AccumulatorCache
12def PhotonTLASequenceCfg(flags, photonsIn):
13
14
15 tlaPhotonInputMakerAlg = CompFactory.InputMakerForRoI("IMTLAPhotons", RoIsLink="initialRoI")
16 tlaPhotonInputMakerAlg.RoITool = CompFactory.ViewCreatorPreviousROITool()
17 tlaPhotonInputMakerAlg.mergeUsingFeature = True
18
19 recoAcc = InEventRecoCA("PhotonTLARecoSeq_"+photonsIn, inputMaker=tlaPhotonInputMakerAlg)
20
21 sequenceOut = recordable(photonsIn+"_TLA")
22
23 return recoAcc, sequenceOut
24
25@AccumulatorCache
26def PhotonTLAMenuSequenceGenCfg( flags, photonsIn ):
27
28 # retrieves the "reco" sequence which only consists of the InputMaker
29 (recoAcc, sequenceOut) = PhotonTLASequenceCfg(flags, photonsIn=photonsIn)
30
31 # add the hypo
32 hypo = CompFactory.TrigEgammaTLAPhotonHypoAlg("TrigPhotonTLAHypoAlg_"+photonsIn)
33 hypo.TLAOutputName = sequenceOut
34
35 selAcc = SelectionCA("TrigPhotonTLAMainSeq_"+photonsIn)
36 selAcc.mergeReco(recoAcc)
37 selAcc.addHypoAlgo(hypo)
38
39 return MenuSequence( flags,
40 selAcc,
41 HypoToolGen = TrigEgammaTLAPhotonHypoToolFromDict
42 )