ATLAS Offline Software
CaloSequences_FWD.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InViewRecoCA
6 from AthenaConfiguration.AccumulatorCache import AccumulatorCache
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 
10  """Static Class to collect all string manipulations in Calo sequences """
11  from TrigEDMConfig.TriggerEDM import recordable
12  L2CaloClusters= recordable("HLT_FastCaloEMClusters_FWD")
13 
14 
15 #
16 # central or forward fast calo sequence
17 #
18 
19 @AccumulatorCache
20 def fastCalo_FWDSequenceGenCfg(flags,name,doRinger=True, is_probe_leg=False):
21  """ Creates Egamma Fast Calo FWD MENU sequence (Reco and Hypo)
22  The Hypo name changes depending on name, so for different implementations (Electron, Gamma,....)
23  """
24 
25  from TrigT2CaloCommon.CaloDef import fastCaloVDVCfg
26  from TrigGenericAlgs.TrigGenericAlgsConfig import ROBPrefetchingAlgCfg_Calo
27  from TrigT2CaloCommon.CaloDef import fastCaloRecoSequenceCfg
28  nameselAcc = "fastCaloFWDSequence"
29  output = "HLT_FastCaloEMClusters_FWD"
30  CaloMenuDefs_FWD.L2CaloClusters = output
31  selAcc = SelectionCA(nameselAcc,isProbe=is_probe_leg)
32  InViewRoIs="FSJETMETCaloRoI"
33  reco = InViewRecoCA("EMCaloFWD",InViewRoIs=InViewRoIs,isProbe=is_probe_leg)
34  reco.mergeReco(fastCaloVDVCfg(flags,InViewRoIs=InViewRoIs))
35  robPrefetchAlg = ROBPrefetchingAlgCfg_Calo( flags, nameSuffix=InViewRoIs+'_probe' if is_probe_leg else InViewRoIs)
36  reco.mergeReco(fastCaloRecoSequenceCfg(flags, inputEDM=InViewRoIs,doForward=True,ClustersName=output))
37  selAcc.mergeReco(reco, robPrefetchCA=robPrefetchAlg)
38 
39  # hypo
40  from TrigEgammaForwardHypo.TrigEgammaForwardFastCaloHypoTool import TrigEgammaForwardFastCaloHypoToolFromDict
41  theFastCaloHypo = CompFactory.TrigEgammaForwardFastCaloHypoAlgMT(name+"EgammaFastCaloFWDHypo")
42  selAcc.addHypoAlgo(theFastCaloHypo)
43 
44  return MenuSequence(flags,selAcc,HypoToolGen=TrigEgammaForwardFastCaloHypoToolFromDict)
45 
python.HLT.CommonSequences.CaloSequences_FWD.CaloMenuDefs_FWD
Definition: CaloSequences_FWD.py:9
python.HLT.CommonSequences.CaloSequences_FWD.fastCalo_FWDSequenceGenCfg
def fastCalo_FWDSequenceGenCfg(flags, name, doRinger=True, is_probe_leg=False)
Definition: CaloSequences_FWD.py:20
CaloDef.fastCaloRecoSequenceCfg
def fastCaloRecoSequenceCfg(flags, inputEDM="", ClustersName="HLT_FastCaloEMClusters", RingerKey="HLT_FastCaloRinger", doForward=False, doAllEm=False, doAll=False)
Definition: CaloDef.py:14
python.TrigGenericAlgsConfig.ROBPrefetchingAlgCfg_Calo
def ROBPrefetchingAlgCfg_Calo(flags, nameSuffix, **kwargs)
Definition: TrigGenericAlgsConfig.py:60
CaloDef.fastCaloVDVCfg
def fastCaloVDVCfg(flags, name="fastCaloVDV", InViewRoIs="EMCaloRoIs")
Definition: CaloDef.py:39
python.TriggerEDM.recordable
def recordable(arg, runVersion=3)
Definition: TriggerEDM.py:34
pickleTool.object
object
Definition: pickleTool.py:30