ATLAS Offline Software
Loading...
Searching...
No Matches
FastElectronMenuSequences.py
Go to the documentation of this file.
2# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3#
4
5from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
6
7# menu components
8from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InViewRecoCA
9from AthenaConfiguration.ComponentFactory import CompFactory
10from AthenaConfiguration.AccumulatorCache import AccumulatorCache
11
12@AccumulatorCache
13def fastElectronSequenceGenCfg(flags, name='FastElectron', variant='', is_probe_leg = False):
14 """ second step: tracking....."""
15
16 InViewRoIs = "EMFastElectronRoIs"+variant
17
18 roiTool = CompFactory.ViewCreatorPreviousROITool()
19 reco = InViewRecoCA("EMElectron"+variant, RoITool = roiTool, InViewRoIs = InViewRoIs, RequireParentView = True, isProbe=is_probe_leg)
20
21 # Configure the reconstruction algorithm sequence
22 from TriggerMenuMT.HLT.Electron.FastElectronRecoSequences import fastElectronRecoSequence
23 reco.mergeReco(fastElectronRecoSequence(flags, name, InViewRoIs, variant))
24
25 theFastElectronHypo = CompFactory.TrigEgammaFastElectronHypoAlg("TrigEgammaFastElectronHypoAlg"+variant)
26 TrigEgammaKeys = getTrigEgammaKeys(flags, variant)
27 theFastElectronHypo.Electrons = TrigEgammaKeys.fastElectronContainer
28 theFastElectronHypo.RunInView = True
29 from TrigEgammaHypo.TrigEgammaFastElectronHypoTool import TrigEgammaFastElectronHypoToolFromDict
30
31 selAcc = SelectionCA('FastElectronMenuSequence'+variant,isProbe=is_probe_leg)
32 selAcc.mergeReco(reco)
33 selAcc.addHypoAlgo(theFastElectronHypo)
34
35 return MenuSequence(flags,selAcc,HypoToolGen=TrigEgammaFastElectronHypoToolFromDict)
36
37
38def fastElectron_LRTSequenceGenCfg(flags, name='FastElectron', is_probe_leg=False):
39 # This is to call fastElectronMenuSequence for the _LRT variant
40 return fastElectronSequenceGenCfg(flags, name, is_probe_leg=is_probe_leg, variant='_LRT')
fastElectron_LRTSequenceGenCfg(flags, name='FastElectron', is_probe_leg=False)
fastElectronSequenceGenCfg(flags, name='FastElectron', variant='', is_probe_leg=False)