ATLAS Offline Software
Loading...
Searching...
No Matches
TrigLongLivedParticlesHypoConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4import TrigLongLivedParticlesHypo.TrigLongLivedParticlesHypoMonitoring as HypoMon
5
7 """
8 Generates the Hypo Tool from the chain dictionary
9 """
10 name = chainDict['chainName']
11
12
13 from TrigLongLivedParticlesHypo.TrigLongLivedParticlesHypoConfig import MuonClusterHypoToolConfig
14 return MuonClusterHypoToolConfig(flags, name)
15
16
17def MuonClusterHypoAlgConfig(flags, name="MuonClusterHypoAlgConfig"):
18 """Monitoring Tool Configuration for HypoAlg"""
19 return CompFactory.MuonClusterHypoAlg(name,
20 MonTool = HypoMon.trigMuonClusterHypoAlgMonitoring(flags))
21
22
23def MuonClusterHypoToolConfig(flags, name="MuonClusterHypoToolConfig"):
24 """Monitoring Tool Configuration for HypoTool"""
25 return CompFactory.MuonClusterHypoTool(name,
26 MonTool = HypoMon.trigMuonClusterHypoToolMonitoring(flags),
27 acceptAll = False)
28
29def MlMuonDVtxHypoAlgConfig(flags, name="MlMuonDVtxHypoAlgConfig"):
30 """Monitoring Tool Configuration for HypoAlg"""
31 return CompFactory.MlMuonDVtxHypoAlg(name)
32
33def MlMuonDVtxHypoToolConfig(flags, name="MlMuonDVtxHypoToolConfig"):
34 """Monitoring Tool Configuration for HypoTool"""
35 the_tool = CompFactory.MlMuonDVtxHypoTool(name)
36 the_tool.score_cut = 0.94
37 return the_tool
38
39def MlMuonDVtxHypoToolFromDict(flags, chainDict):
40 name = chainDict['chainName']
41 return MlMuonDVtxHypoToolConfig(flags, name)
42
43def MlMuonDVtxTrkVetoHypoAlgConfig(flags, name="MlMuonDVtxTrkVetoHypoAlg", **kwargs):
44 """Prompt-track veto after the ML score cut"""
45 return CompFactory.MlMuonDVtxTrkVetoHypoAlg(name, **kwargs)
46
47def MlMuonDVtxTrkVetoHypoToolConfig(flags, name="MlMuonDVtxTrkVetoHypoTool"):
48 the_tool = CompFactory.MlMuonDVtxTrkVetoHypoTool(name)
49 the_tool.MinTrackPt = 5000. # MeV
50 the_tool.MaxTrackDR = 0.4
51 the_tool.MaxDz0SinTheta = 2. # mm
52 the_tool.MinClusterSegments = 2
53 the_tool.OnlyLeadingCluster = True
54 the_tool.MaxClusters = 5 # used with OnlyLeadingCluster = False
55 return the_tool
56
58 name = chainDict['chainName']
59 return MlMuonDVtxTrkVetoHypoToolConfig(flags, name)
MlMuonDVtxHypoToolConfig(flags, name="MlMuonDVtxHypoToolConfig")
MlMuonDVtxTrkVetoHypoAlgConfig(flags, name="MlMuonDVtxTrkVetoHypoAlg", **kwargs)
MuonClusterHypoToolConfig(flags, name="MuonClusterHypoToolConfig")
MlMuonDVtxTrkVetoHypoToolConfig(flags, name="MlMuonDVtxTrkVetoHypoTool")
MuonClusterHypoAlgConfig(flags, name="MuonClusterHypoAlgConfig")
MlMuonDVtxHypoAlgConfig(flags, name="MlMuonDVtxHypoAlgConfig")