ATLAS Offline Software
Trigger
TrigHypothesis
TrigHIHypo
python
TrigHIFwdGapHypoConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
5
def
TrigHIFwdGapHypoToolFromDict
(chainDict):
6
"""Configure the FCal-based forward gap hypo tool"""
7
8
tool = CompFactory.TrigHIFwdGapHypoTool(chainDict[
'chainName'
])
9
10
FgapInfo = chainDict[
'chainParts'
][0][
'hypoFgapInfo'
][0]
11
if
'AC'
in
FgapInfo:
12
tool.maxFCalEt =
int
(FgapInfo.strip(
'FgapAC'
))
13
tool.useDoubleSidedGap =
True
14
elif
'A'
in
FgapInfo:
15
tool.maxFCalEt =
int
(FgapInfo.strip(
'FgapA'
))
16
tool.useSideA =
True
17
elif
'C'
in
FgapInfo:
18
tool.maxFCalEt =
int
(FgapInfo.strip(
'FgapC'
))
19
tool.useSideA =
False
20
21
return
tool
22
CaloCellPos2Ntuple.int
int
Definition:
CaloCellPos2Ntuple.py:24
TrigHIFwdGapHypoConfig.TrigHIFwdGapHypoToolFromDict
def TrigHIFwdGapHypoToolFromDict(chainDict)
Definition:
TrigHIFwdGapHypoConfig.py:5
Generated on Wed Jan 8 2025 21:19:55 for ATLAS Offline Software by
1.8.18