ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TriggerMenuMT
python
CFtest
HLTSignatureHypoTools.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
# file to simulate the HypoTool configuration of the signatures
3
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
def
TestHypoTool
(name, prop, threshold_value):
7
value = int(threshold_value)*1000
8
UseThisLinkName=
"initialRoI"
9
HLTTest__TestHypoTool=CompFactory.getComp(
"HLTTest::TestHypoTool"
)
10
return
HLTTest__TestHypoTool(name, Threshold=value, Property=prop, LinkName=UseThisLinkName)
11
12
def
MuTestHypoTool
(flags, chainDict):
13
name = chainDict[
'chainName'
]
14
threshold =
getThreshold
(chainDict)
15
return
TestHypoTool
(name,prop=
"pt"
, threshold_value=threshold)
16
17
def
ElTestHypoTool
(flags, chainDict):
18
name = chainDict[
'chainName'
]
19
threshold =
getThreshold
(chainDict)
20
return
TestHypoTool
(name,prop=
"et"
, threshold_value=threshold)
21
22
def
GammTestHypoTool
(flags, chainDict):
23
name = chainDict[
'chainName'
]
24
threshold =
getThreshold
(chainDict)
25
return
TestHypoTool
(name,prop=
"et"
, threshold_value=threshold)
26
27
28
def
MuTest2HypoTool
(flags, chainDict):
29
name = chainDict[
'chainName'
]
30
threshold =
getThreshold
(chainDict)
31
return
TestHypoTool
(name,prop=
"pt2"
, threshold_value=threshold)
32
33
def
ElTest2HypoTool
(flags, chainDict):
34
name = chainDict[
'chainName'
]
35
threshold =
getThreshold
(chainDict)
36
return
TestHypoTool
(name,prop=
"et"
, threshold_value=threshold)
37
38
39
def
getThreshold
(chainDict):
40
name = chainDict[
'chainParts'
][0][
'chainPartName'
]
41
from
TriggerMenuMT.HLT.Config.Utility.DictFromChainName
import
getChainThresholdFromName
42
return
getChainThresholdFromName( name.split(
"_"
),
"TestChain"
)
43
44
45
46
def
dimuDrComboHypoTool
(flags, chainDict):
47
name = chainDict[
'chainName'
]
48
tool= CompFactory.DeltaRRoIComboHypoTool(name)
49
tool.DRcut=0.3
50
return
tool
51
HLTSignatureHypoTools.getThreshold
getThreshold(chainDict)
Definition
HLTSignatureHypoTools.py:39
HLTSignatureHypoTools.MuTestHypoTool
MuTestHypoTool(flags, chainDict)
Definition
HLTSignatureHypoTools.py:12
HLTSignatureHypoTools.ElTestHypoTool
ElTestHypoTool(flags, chainDict)
Definition
HLTSignatureHypoTools.py:17
HLTSignatureHypoTools.GammTestHypoTool
GammTestHypoTool(flags, chainDict)
Definition
HLTSignatureHypoTools.py:22
HLTSignatureHypoTools.dimuDrComboHypoTool
dimuDrComboHypoTool(flags, chainDict)
Definition
HLTSignatureHypoTools.py:46
HLTSignatureHypoTools.MuTest2HypoTool
MuTest2HypoTool(flags, chainDict)
Definition
HLTSignatureHypoTools.py:28
HLTSignatureHypoTools.ElTest2HypoTool
ElTest2HypoTool(flags, chainDict)
Definition
HLTSignatureHypoTools.py:33
HLTSignatureHypoTools.TestHypoTool
TestHypoTool(name, prop, threshold_value)
Definition
HLTSignatureHypoTools.py:6
Generated on
for ATLAS Offline Software by
1.17.0