ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
HLT
Electron
FastElectronRecoSequences.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
#
4
5
#logging
6
from
AthenaCommon.Logging
import
logging
7
log = logging.getLogger(__name__)
8
9
from
TriggerMenuMT.HLT.Egamma.TrigEgammaKeys
import
getTrigEgammaKeys
10
from
AthenaConfiguration.ComponentFactory
import
CompFactory
11
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
12
13
def
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
python.HLT.Electron.FastElectronRecoSequences.fastElectronRecoSequence
fastElectronRecoSequence(flags, name, RoIs, variant='')
Definition
FastElectronRecoSequences.py:13
Generated on
for ATLAS Offline Software by
1.17.0