ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
HLT
CommonSequences
CaloSequences.py
Go to the documentation of this file.
1
#
2
# Copyright (C) 2002-2026 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
8
class
CaloMenuDefs
(object):
9
"""Static Class to collect all string manipulations in Calo sequences """
10
from
TrigEDMConfig.TriggerEDM
import
recordable
11
L2CaloClusters= recordable(
"HLT_FastCaloEMClusters"
)
12
13
14
#
15
# central or forward fast calo sequence
16
#
17
18
@AccumulatorCache
19
def
fastCaloSequenceGenCfg
(flags, name, doRinger=True, is_probe_leg=False):
20
""" Creates Egamma Fast Calo MENU sequence
21
The Hypo name changes depending on name, so for different implementations (Electron, Gamma,....)
22
"""
23
24
from
TrigT2CaloCommon.CaloDef
import
fastCaloVDVCfg
25
from
TrigT2CaloCommon.CaloDef
import
fastCaloRecoSequenceCfg
26
nameselAcc =
"fastCaloSequence"
+name
27
output =
"HLT_FastCaloEMClusters"
28
selAcc = SelectionCA(nameselAcc,isProbe=is_probe_leg)
29
InViewRoIs=
"EMCaloRoIs"
30
reco = InViewRecoCA(
"EMCalo"
,InViewRoIs=InViewRoIs,isProbe=is_probe_leg)
31
reco.mergeReco(fastCaloVDVCfg(flags,InViewRoIs=InViewRoIs))
32
reco.mergeReco(fastCaloRecoSequenceCfg(flags, inputEDM=InViewRoIs,ClustersName=output,))
33
selAcc.mergeReco(reco)
34
35
# hypo # The Alg will ALWAYS configure photons and electrons for ringer
36
# The tool is what will use that or not
37
from
TrigEgammaHypo.TrigEgammaFastCaloHypoTool
import
createTrigEgammaFastCaloHypoAlg
38
39
theFastCaloHypo = createTrigEgammaFastCaloHypoAlg(flags, name+
"FastCaloHypo"
, sequenceOut=output)
40
selAcc.addHypoAlgo(theFastCaloHypo)
41
42
from
TrigEgammaHypo.TrigEgammaFastCaloHypoTool
import
TrigEgammaFastCaloHypoToolFromDict
43
return
MenuSequence(flags,selAcc,HypoToolGen=TrigEgammaFastCaloHypoToolFromDict)
44
45
46
python.HLT.CommonSequences.CaloSequences.CaloMenuDefs
Definition
CaloSequences.py:8
python.HLT.CommonSequences.CaloSequences.fastCaloSequenceGenCfg
fastCaloSequenceGenCfg(flags, name, doRinger=True, is_probe_leg=False)
Definition
CaloSequences.py:19
Generated on
for ATLAS Offline Software by
1.17.0