ATLAS Offline Software
HLTSignatureHypoTools.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 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(chainDict):
13  name = chainDict['chainName']
14  threshold = getThreshold(chainDict)
15  return TestHypoTool(name,prop="pt", threshold_value=threshold)
16 
17 def ElTestHypoTool(chainDict):
18  name = chainDict['chainName']
19  threshold = getThreshold(chainDict)
20  return TestHypoTool(name,prop="et", threshold_value=threshold)
21 
22 def GammTestHypoTool(chainDict):
23  name = chainDict['chainName']
24  threshold = getThreshold(chainDict)
25  return TestHypoTool(name,prop="et", threshold_value=threshold)
26 
27 
28 def MuTest2HypoTool(chainDict):
29  name = chainDict['chainName']
30  threshold = getThreshold(chainDict)
31  return TestHypoTool(name,prop="pt2", threshold_value=threshold)
32 
33 def ElTest2HypoTool(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(chainDict):
47  name = chainDict['chainName']
48  tool= CompFactory.DeltaRRoIComboHypoTool(name)
49  tool.DRcut=0.3
50  return tool
51 
HLTSignatureHypoTools.TestHypoTool
def TestHypoTool(name, prop, threshold_value)
Definition: HLTSignatureHypoTools.py:6
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
HLTSignatureHypoTools.ElTestHypoTool
def ElTestHypoTool(chainDict)
Definition: HLTSignatureHypoTools.py:17
HLTSignatureHypoTools.MuTest2HypoTool
def MuTest2HypoTool(chainDict)
Definition: HLTSignatureHypoTools.py:28
DictFromChainName.getChainThresholdFromName
def getChainThresholdFromName(chainParts, signature)
Definition: DictFromChainName.py:106
HLTSignatureHypoTools.GammTestHypoTool
def GammTestHypoTool(chainDict)
Definition: HLTSignatureHypoTools.py:22
HLTSignatureHypoTools.getThreshold
def getThreshold(chainDict)
Definition: HLTSignatureHypoTools.py:39
HLTSignatureHypoTools.MuTestHypoTool
def MuTestHypoTool(chainDict)
Definition: HLTSignatureHypoTools.py:12
HLTSignatureHypoTools.ElTest2HypoTool
def ElTest2HypoTool(chainDict)
Definition: HLTSignatureHypoTools.py:33
HLTSignatureHypoTools.dimuDrComboHypoTool
def dimuDrComboHypoTool(chainDict)
Definition: HLTSignatureHypoTools.py:46