ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
(flags, 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
TrigHIFwdGapHypoConfig.TrigHIFwdGapHypoToolFromDict
TrigHIFwdGapHypoToolFromDict(flags, chainDict)
Definition
TrigHIFwdGapHypoConfig.py:5
Generated on
for ATLAS Offline Software by
1.17.0