ATLAS Offline Software
Loading...
Searching...
No Matches
JetTLASequenceConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.AccumulatorCache import AccumulatorCache
5from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InEventRecoCA
6from TrigEDMConfig.TriggerEDM import recordable
7from TrigGenericAlgs.TrigGenericAlgsConfig import TrigEventInfoRecorderAlgCfg
8from TrigHLTJetHypo.TrigJetHypoToolConfig import trigJetTLAHypoToolFromDict
9
10
11def 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
32def 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 )