ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
HLT
Photon
PrecisionPhotonTLAMenuSequenceConfig.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
#
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaConfiguration.AccumulatorCache
import
AccumulatorCache
6
from
TriggerMenuMT.HLT.Config.MenuComponents
import
MenuSequence, SelectionCA, InEventRecoCA
7
from
TrigEDMConfig.TriggerEDM
import
recordable
8
from
TrigEgammaHypo.TrigEgammaTLAPhotonHypoTool
import
TrigEgammaTLAPhotonHypoToolFromDict
9
10
11
@AccumulatorCache
12
def
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
26
def
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
)
PrecisionPhotonTLAMenuSequenceConfig.PhotonTLAMenuSequenceGenCfg
PhotonTLAMenuSequenceGenCfg(flags, photonsIn)
Definition
PrecisionPhotonTLAMenuSequenceConfig.py:26
PrecisionPhotonTLAMenuSequenceConfig.PhotonTLASequenceCfg
PhotonTLASequenceCfg(flags, photonsIn)
Definition
PrecisionPhotonTLAMenuSequenceConfig.py:12
Generated on
for ATLAS Offline Software by
1.17.0