ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
HLT
Jet
JetTLASequenceConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
from
AthenaConfiguration.AccumulatorCache
import
AccumulatorCache
5
from
TriggerMenuMT.HLT.Config.MenuComponents
import
MenuSequence, SelectionCA, InEventRecoCA
6
from
TrigEDMConfig.TriggerEDM
import
recordable
7
from
TrigGenericAlgs.TrigGenericAlgsConfig
import
TrigEventInfoRecorderAlgCfg
8
from
TrigHLTJetHypo.TrigJetHypoToolConfig
import
trigJetTLAHypoToolFromDict
9
10
11
def
JetTLASequenceCfg
(flags, jetsIn):
12
13
14
tlaJetInputMakerAlg = CompFactory.InputMakerForRoI(
"IMTLAJets_"
+jetsIn)
#,RoIsLink="initialRoI")
15
tlaJetInputMakerAlg.RoITool = CompFactory.ViewCreatorPreviousROITool()
16
tlaJetInputMakerAlg.mergeUsingFeature =
True
17
18
# configure an instance of TrigEventInfoRecorderAlg
19
recoAcc = InEventRecoCA(
"JetTLARecoSeq_"
+jetsIn,inputMaker=tlaJetInputMakerAlg)
20
eventInfoRecorderAlgCfg = TrigEventInfoRecorderAlgCfg(flags, name=
"TrigEventInfoRecorderAlg_TLA"
,
21
decoratePFlowInfo=
True
,
22
decorateEMTopoInfo=
True
,
23
renounceAll=
True
,
# avoid dependencies, just take what is there, so can share alg between EMTopo & PFlow TLA
24
trigEventInfoKey=recordable(
"HLT_TCEventInfo_TLA"
),
25
primaryVertexInputName=
"HLT_IDVertex_FS"
,
26
)
27
recoAcc.mergeReco(eventInfoRecorderAlgCfg)
28
29
return
recoAcc
30
31
@AccumulatorCache
32
def
JetTLAMenuSequenceGenCfg
(flags, jetsIn):
33
34
jetsOut = recordable(jetsIn+
"_TLA"
)
35
recoAcc =
JetTLASequenceCfg
(flags, jetsIn=jetsIn)
36
37
hypo = CompFactory.TrigJetTLAHypoAlg(
"TrigJetTLAHypoAlg_"
+jetsIn)
38
39
hypo.TLAOutputName = jetsOut
40
41
selAcc = SelectionCA(
"TrigJetTLAMainSeq_"
+jetsIn)
42
selAcc.mergeReco(recoAcc)
43
selAcc.addHypoAlgo(hypo)
44
45
return
MenuSequence( flags,
46
selAcc,
47
HypoToolGen = trigJetTLAHypoToolFromDict
48
)
python.HLT.Jet.JetTLASequenceConfig.JetTLAMenuSequenceGenCfg
JetTLAMenuSequenceGenCfg(flags, jetsIn)
Definition
JetTLASequenceConfig.py:32
python.HLT.Jet.JetTLASequenceConfig.JetTLASequenceCfg
JetTLASequenceCfg(flags, jetsIn)
Definition
JetTLASequenceConfig.py:11
Generated on
for ATLAS Offline Software by
1.17.0