ATLAS Offline Software
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
4 from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from TriggerMenuMT.HLT.CommonSequences.CaloSequences import CaloMenuDefs
8 
9 # logger
10 from AthenaCommon.Logging import logging
11 log = logging.getLogger(__name__)
12 
13 def 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 
23 def 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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
FastPhotonRecoSequences.fastPhotonVDVCfg
def fastPhotonVDVCfg(name, InViewRoIs)
Definition: FastPhotonRecoSequences.py:13
FastPhotonRecoSequences.fastPhotonRecoSequence
def fastPhotonRecoSequence(flags, RoIs, name=None)
Definition: FastPhotonRecoSequences.py:23
python.HLT.Egamma.TrigEgammaKeys.getTrigEgammaKeys
def getTrigEgammaKeys(AthConfigFlags flags, name='', ion=False)
Definition: TrigEgammaKeys.py:138