ATLAS Offline Software
Loading...
Searching...
No Matches
FastPhotonRecoSequences.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3# menu components
4from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
5from AthenaConfiguration.ComponentFactory import CompFactory
6from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7from TriggerMenuMT.HLT.CommonSequences.CaloSequences import CaloMenuDefs
8
9# logger
10from AthenaCommon.Logging import logging
11log = logging.getLogger(__name__)
12
13def fastPhotonVDVCfg(name, InViewRoIs):
14 acc = ComponentAccumulator()
15 fastPhotonVDV = CompFactory.AthViews.ViewDataVerifier(name)
16 fastPhotonVDV.DataObjects = {( 'xAOD::TrigEMClusterContainer' , 'StoreGateSvc+%s' % CaloMenuDefs.L2CaloClusters ),
17 ( 'TrigRoiDescriptorCollection' , 'StoreGateSvc+%s'%InViewRoIs ),
18 }
19 acc.addEventAlgo(fastPhotonVDV)
20 return acc
21
22
23def fastPhotonRecoSequence(flags, RoIs, name = None):
24 """Creates secpond step photon sequence"""
25 acc = ComponentAccumulator()
26
27 acc.merge(fastPhotonVDVCfg(name+'VDV',RoIs))
28
29 TrigEgammaKeys = getTrigEgammaKeys(flags)
30
31 thePhotonFex = CompFactory.TrigEgammaFastPhotonReAlgo("EgammaFastPhotonFex_1")
32 thePhotonFex.TrigEMClusterName = CaloMenuDefs.L2CaloClusters # From commom staff
33 thePhotonFex.PhotonsName= TrigEgammaKeys.fastPhotonContainer
34
35 thePhotonFex.RoIs = RoIs
36
37 acc.addEventAlgo(thePhotonFex)
38
39 return acc
fastPhotonRecoSequence(flags, RoIs, name=None)