ATLAS Offline Software
Loading...
Searching...
No Matches
FastElectronRecoSequences.py
Go to the documentation of this file.
2# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3#
4
5#logging
6from AthenaCommon.Logging import logging
7log = logging.getLogger(__name__)
8
9from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
10from AthenaConfiguration.ComponentFactory import CompFactory
11from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
12
13def fastElectronRecoSequence(flags, name, RoIs, variant=''):
14
15 acc = ComponentAccumulator()
16
17 TrigEgammaKeys = getTrigEgammaKeys(flags, variant)
18 trackParticlesName = TrigEgammaKeys.fastTrackParticleContainer
19
20 # A simple algorithm to confirm that data has been inherited from parent view
21 # Required to satisfy data dependencies
22
23 fastElectronVDV = CompFactory.AthViews.ViewDataVerifier(name+variant+'VDV')
24 from TriggerMenuMT.HLT.CommonSequences.CaloSequences import CaloMenuDefs
25
26 dataObjects = [( 'xAOD::TrigEMClusterContainer' , 'StoreGateSvc+%s' % CaloMenuDefs.L2CaloClusters ),
27 ( 'xAOD::TrackParticleContainer' , 'StoreGateSvc+%s' % trackParticlesName ),
28 ( 'TrigRoiDescriptorCollection' , 'StoreGateSvc+%s' % RoIs ),
29 ]
30
31 fastElectronVDV.DataObjects = dataObjects
32 acc.addEventAlgo(fastElectronVDV)
33
34 from TrigEgammaRec.TrigEgammaFastElectronConfig import fastElectronFexAlgCfg
35
36 trigEMClusterName = CaloMenuDefs.L2CaloClusters
37 trackParticlesName = trackParticlesName
38 electronsName = TrigEgammaKeys.fastElectronContainer
39
40 theElectronFex = fastElectronFexAlgCfg(flags, trigEMClusterName, trackParticlesName, electronsName, name="EgammaFastElectronFex_Clean_gen"+variant, rois=RoIs)
41
42 acc.merge(theElectronFex)
43 return acc