ATLAS Offline Software
Loading...
Searching...
No Matches
CaloSequences_FWD.py
Go to the documentation of this file.
2# Copyright (C) 2002-2026 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
9class CaloMenuDefs_FWD(object):
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 TrigT2CaloCommon.CaloDef import fastCaloRecoSequenceCfg
27 nameselAcc = "fastCaloFWDSequence"
28 output = "HLT_FastCaloEMClusters_FWD"
29 CaloMenuDefs_FWD.L2CaloClusters = output
30 selAcc = SelectionCA(nameselAcc,isProbe=is_probe_leg)
31 InViewRoIs="FSJETMETCaloRoI"
32 reco = InViewRecoCA("EMCaloFWD",InViewRoIs=InViewRoIs,isProbe=is_probe_leg)
33 reco.mergeReco(fastCaloVDVCfg(flags,InViewRoIs=InViewRoIs))
34 reco.mergeReco(fastCaloRecoSequenceCfg(flags, inputEDM=InViewRoIs,doForward=True,ClustersName=output))
35 selAcc.mergeReco(reco)
36
37 # hypo
38 from TrigEgammaForwardHypo.TrigEgammaForwardFastCaloHypoTool import TrigEgammaForwardFastCaloHypoToolFromDict
39 theFastCaloHypo = CompFactory.TrigEgammaForwardFastCaloHypoAlgMT(name+"EgammaFastCaloFWDHypo")
40 selAcc.addHypoAlgo(theFastCaloHypo)
41
42 return MenuSequence(flags,selAcc,HypoToolGen=TrigEgammaForwardFastCaloHypoToolFromDict)
43
fastCalo_FWDSequenceGenCfg(flags, name, doRinger=True, is_probe_leg=False)