ATLAS Offline Software
Loading...
Searching...
No Matches
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
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def 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
12def MuTestHypoTool(flags, chainDict):
13 name = chainDict['chainName']
14 threshold = getThreshold(chainDict)
15 return TestHypoTool(name,prop="pt", threshold_value=threshold)
16
17def ElTestHypoTool(flags, chainDict):
18 name = chainDict['chainName']
19 threshold = getThreshold(chainDict)
20 return TestHypoTool(name,prop="et", threshold_value=threshold)
21
22def GammTestHypoTool(flags, chainDict):
23 name = chainDict['chainName']
24 threshold = getThreshold(chainDict)
25 return TestHypoTool(name,prop="et", threshold_value=threshold)
26
27
28def MuTest2HypoTool(flags, chainDict):
29 name = chainDict['chainName']
30 threshold = getThreshold(chainDict)
31 return TestHypoTool(name,prop="pt2", threshold_value=threshold)
32
33def ElTest2HypoTool(flags, chainDict):
34 name = chainDict['chainName']
35 threshold = getThreshold(chainDict)
36 return TestHypoTool(name,prop="et", threshold_value=threshold)
37
38
39def 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
46def dimuDrComboHypoTool(flags, chainDict):
47 name = chainDict['chainName']
48 tool= CompFactory.DeltaRRoIComboHypoTool(name)
49 tool.DRcut=0.3
50 return tool
51
ElTestHypoTool(flags, chainDict)
dimuDrComboHypoTool(flags, chainDict)
GammTestHypoTool(flags, chainDict)
ElTest2HypoTool(flags, chainDict)
MuTest2HypoTool(flags, chainDict)
TestHypoTool(name, prop, threshold_value)
MuTestHypoTool(flags, chainDict)