ATLAS Offline Software
Loading...
Searching...
No Matches
CaloSequences_FWD.py
Go to the documentation of this file.
2# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3#
4
5from TriggerMenuMT.HLT.Config.MenuComponents import MenuSequence, SelectionCA, InViewRecoCA
6from AthenaConfiguration.AccumulatorCache import AccumulatorCache
7from 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
20def 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
fastCalo_FWDSequenceGenCfg(flags, name, doRinger=True, is_probe_leg=False)