ATLAS Offline Software
TrigMuonHypoConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
4 # import Hypo Algs/Tools
5 from AthenaConfiguration.ComponentFactory import CompFactory # tools are imported from the factory, (NewJO)
6 
7 # import monitoring
8 from TrigMuonHypo.TrigMuonHypoMonitoring import (
9  TrigmuCombHypoMonitoring,
10  TrigMuonEFHypoMonitoring,
11  TrigMuonEFIdtpHypoMonitoring,
12  TrigL2MuonOverlapRemoverMonitoringMucomb,
13  TrigMuonEFInvMassHypoMonitoring,
14  TrigMuonEFIdtpInvMassHypoMonitoring,
15  TrigMuonEFTrackIsolationMonitoring
16 )
17 
18 monitorAll = False #should only be true for local debugging to have histograms from all chains
19 
20 # other imports
21 from AthenaCommon.SystemOfUnits import GeV
22 
23 from AthenaCommon.Logging import logging
24 log = logging.getLogger('TrigMuonHypoConfig')
25 
26 muFastThresholds = {
27  # added for Run3 low-mu 2mu3
28  '3GeV_v22a' : [ [0,9.9], [ 0.1 ] ],
29  # 2011a tuning + 2015 tuning
30  '4GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.38, 1.25, 3.17, 3.41] ],
31  '4GeV_barrelOnly_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.38, 1000., 1000., 1000.] ],
32  '6GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 5.17, 3.25, 4.69, 5.14] ],
33  '8GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 6.63, 5.17, 6.39, 6.81] ],
34  '10GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 8.28, 6.35, 7.19, 8.58] ],
35  #not optimized: ATR-20049
36  '11GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 8.99, 6.62, 7.40, 9.32] ],
37  '13GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 10.42, 7.16, 7.81, 10.80] ],
38  '14GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 11.15, 7.58, 8.43, 11.61] ],
39  '15GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 11.31, 10.52, 12.00, 13.24] ],
40  '18GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 14.33, 9.45, 10.96, 14.35] ],
41  '20GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.10, 3.25, 2.69, 5.14] ], # new
42  '22GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.20, 3.25, 4.90, 5.00] ], # new
43  '23GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.20, 3.25, 4.90, 5.00] ], # new
44  '24GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 4.80, 3.25, 4.50, 5.10] ], # new
45  '26GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.50, 3.25, 4.45, 4.40] ], # new
46  '28GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.70, 3.25, 4.50, 5.40] ], # new
47  '30GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.00, 4.00, 4.30, 5.55] ], # new
48  '32GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.00, 6.50, 4.20, 6.00] ], # new
49  '34GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.40, 7.20, 4.60, 9.00] ], # new
50  '35GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.30, 5.40, 4.80, 5.00] ], # new
51  '36GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 4.20, 3.90, 4.30, 5.00] ], # new
52  '40GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.16, 6.20, 5.50, 10.00] ], # new
53  '45GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.20, 9.80, 5.30, 10.70] ], # new
54  '48GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 4.00, 7.30, 5.50, 9.50] ], # new
55  '50GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 1.30, 8.10, 4.50, 9.50] ], # new
56  '60GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.13, 21.20, 25.38, 29.54] ],
57  '80GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.13, 21.20, 25.38, 29.54] ],
58  '40GeV_uptoEC2_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.13, 21.20, 25.38, 1000.] ],
59  '40GeV_barrelOnly_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.13, 1000., 1000., 1000.] ],
60  '50GeV_barrelOnly_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.13, 1000., 1000., 1000.] ],
61  '60GeV_barrelOnly_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.13, 1000., 1000., 1000.] ],
62  }
63 
64 muCombThresholds = {
65  # added for Run3 low-mu 2mu3
66  '3GeV_v22a' : [ [0,1.05,1.5,2.0,9.9], [ 2.82, 2.76, 2.64, 2.64] ],
67  # original + 2015 tuning
68  '2GeV_v15a' : [ [0,9.9], [ 2.000] ],
69  '3GeV_v15a' : [ [0,9.9], [ 3.000] ],
70  '4GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.86, 3.77, 3.69, 3.70] ],
71  '5GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 4.9, 4.8, 4.8, 4.8] ],
72  '6GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 5.87, 5.79, 5.70, 5.62] ],
73  '7GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 6.8, 6.7, 6.7, 6.6] ],
74  '8GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 7.80, 7.72, 7.59, 7.46] ],
75  '10GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 9.73, 9.63, 9.45, 9.24] ],
76  '11GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 10.8, 10.4, 10.6, 10.6] ],
77  '12GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 11.7, 11.3, 11.4, 11.5] ],
78  '13GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 12.62, 12.48, 12.24, 11.88] ],
79  '14GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 13.57, 13.44, 13.21, 12.77] ],
80  '15GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 14.50, 14.00, 14.00, 14.50] ],
81  '16GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 15.47, 15.09, 14.98, 15.08] ], # Lidia - extrapolated not optimized
82  '18GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 17.41, 17.27, 16.95, 16.25] ],
83  '20GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 16.50, 19.19, 18.80, 17.00] ], # new
84  '22GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 18.70, 21.07, 19.13, 18.80] ], # new
85  '23GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 18.70, 21.07, 19.13, 18.80] ], # new
86  '24GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 18.10, 21.07, 18.60, 19.35] ], # new
87  '25GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 24.20, 23.20, 23.20, 22.60] ],
88  '26GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.50, 21.07, 20.22, 19.65] ], # new
89  '27GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 26.20, 25.10, 25.10, 24.40] ],
90  '28GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 18.30, 21.07, 20.77, 20.00] ], # new
91  '30GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 18.80, 21.00, 21.00, 20.10] ], # new
92  '32GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 16.50, 22.50, 20.00, 21.50] ], # new
93  '34GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 18.40, 24.10, 21.45, 23.00] ], # new
94  '35GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 17.40, 25.90, 23.40, 23.80] ], # new
95  '36GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 16.90, 25.60, 24.20, 24.00] ], # new
96  '38GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 35.80, 35.40, 35.40, 33.60] ],
97  '40GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 13.20, 27.90, 27.30, 27.60] ], # new
98  '40GeV_slow_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 40.00, 40.00, 40.00, 40.00] ],
99  '45GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 17.70, 33.10, 31.60, 33.30] ], # new
100  '48GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 14.00, 33.80, 34.20, 35.90] ], # new
101  '50GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 8.30, 33.55, 32.40, 37.70] ], # new
102  '60GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 45.0, 45.0, 45.0, 45.0] ],
103  '60GeV_slow_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 47.0, 47.0, 47.0, 47.0] ],
104  '70GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 49.0, 49.0, 49.0, 49.0] ],
105  '80GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 56.0, 56.0, 56.0, 56.0] ],
106  '100GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 70.0, 70.0, 70.0, 70.0] ],
107 
108  '5GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 4.9, 4.8, 4.8, 4.8] ],
109  '8GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 7.8, 7.7, 7.7, 7.7] ],
110  '10GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 9.8, 9.5, 9.6, 9.7] ],
111  '15GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 14.50, 14.00, 14.00, 14.50] ],
112  '20GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 19.31, 19.19, 18.80, 17.95] ],
113  '25GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 24.2, 23.2, 23.2, 22.6] ],
114  '30GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 29.0, 28.0, 28.0, 27.0] ],
115  '50GeV_v16' : [ [0,1.05,1.5,2.0,9.9], [ 40.0, 40.0, 40.0, 40.0] ],
116  }
117 
118 trigMuonEFSAThresholds = {
119  # added for Run3 low-mu 2mu3
120  '3GeV_v22a' : [ [0,9.9], [ 1.0 ] ],
121  #
122  '0GeV' : [ [0,9.9], [ 0.100 ] ],
123  '2GeV' : [ [0,9.9], [ 2.000 ] ],
124  '3GeV' : [ [0,9.9], [ 3.000 ] ],
125  '4GeV' : [ [0,1.05,1.5,2.0,9.9], [ 3.0, 2.5, 2.5, 2.5] ],
126  '4GeV_barrelOnly' : [ [0,1.05,1.5,2.0,9.9], [ 3.0,1000.0,1000.0,1000.0]],
127  '5GeV' : [ [0,1.05,1.5,2.0,9.9], [ 4.6, 3.3, 4.0, 4.5] ],
128  '6GeV' : [ [0,1.05,1.5,2.0,9.9], [ 5.4, 4.5, 4.9, 5.3] ],
129  '7GeV' : [ [0,1.05,1.5,2.0,9.9], [ 6.3, 5.6, 5.6, 6.3] ],
130  '8GeV' : [ [0,1.05,1.5,2.0,9.9], [ 7.2, 6.7, 6.4, 7.3] ],
131  '10GeV' : [ [0,1.05,1.5,2.0,9.9], [ 8.9, 9.0, 8.4, 9.2] ],
132  '11GeV' : [ [0,1.05,1.5,2.0,9.9], [ 9.8, 10.1, 9.3, 10.1] ],
133  '12GeV' : [ [0,1.05,1.5,2.0,9.9], [ 10.6, 11.0, 10.2, 11.0] ],
134  '13GeV' : [ [0,1.05,1.5,2.0,9.9], [ 11.4, 12.0, 11.1, 12.0] ],
135  '14GeV' : [ [0,1.05,1.5,2.0,9.9], [ 12.2, 13.0, 12.1, 13.0] ],
136  '15GeV' : [ [0,1.05,1.5,2.0,9.9], [ 13.0, 14.0, 13.0, 14.0] ],
137  '16GeV' : [ [0,1.05,1.5,2.0,9.9], [ 13.0, 14.0, 13.0, 14.0] ], # not optimized
138  '18GeV' : [ [0,1.05,1.5,2.0,9.9], [ 15.7, 16.6, 15.4, 16.3] ],
139  '20GeV' : [ [0,1.05,1.5,2.0,9.9], [ 18.20, 16.50, 17.00, 18.00] ], # new
140  '22GeV' : [ [0,1.05,1.5,2.0,9.9], [ 20.20, 18.00, 17.00, 19.00] ], # new
141  '23GeV' : [ [0,1.05,1.5,2.0,9.9], [ 21.20, 18.75, 17.80, 19.60] ], # new
142  '24GeV' : [ [0,1.05,1.5,2.0,9.9], [ 22.20, 19.50, 18.60, 20.20] ], # new
143  '26GeV' : [ [0,1.05,1.5,2.0,9.9], [ 23.50, 21.00, 20.15, 22.00] ], # new
144  '28GeV' : [ [0,1.05,1.5,2.0,9.9], [ 23.40, 21.00, 20.55, 22.50] ], # new
145  '30GeV' : [ [0,1.05,1.5,2.0,9.9], [ 25.20, 22.10, 21.70, 24.40] ], # new
146  '32GeV' : [ [0,1.05,1.5,2.0,9.9], [ 27.05, 20.50, 22.30, 26.12] ], # new
147  '34GeV' : [ [0,1.05,1.5,2.0,9.9], [ 28.90, 22.00, 24.00, 27.88] ], # new
148  '35GeV' : [ [0,1.05,1.5,2.0,9.9], [ 30.00, 20.90, 24.90, 28.85] ], # new
149  '36GeV' : [ [0,1.05,1.5,2.0,9.9], [ 30.50, 23.77, 26.40, 28.00] ], # new
150  '40GeV' : [ [0,1.05,1.5,2.0,9.9], [ 33.00, 27.30, 30.50, 32.90] ], # new
151  '40GeV_barrelOnly' : [ [0,1.05,1.5,2.0,9.9], [ 31.50,1000.0,1000.0,1000.0] ],
152  '40GeV_uptoEC2' : [ [0,1.05,1.5,2.0,9.9], [ 31.50, 30.00, 28.50, 1000.0] ],
153  '45GeV' : [ [0,1.05,1.5,2.0,9.9], [ 41.20, 31.90, 35.10, 37.50] ], # new
154  '48GeV' : [ [0,1.05,1.5,2.0,9.9], [ 43.00, 34.45, 38.00, 40.30] ], # new
155  '50GeV' : [ [0,1.05,1.5,2.0,9.9], [ 40.00, 36.30, 40.00, 42.10] ], # new
156  '50GeV_barrelOnly' : [ [0,1.05,1.5,2.0,9.9], [ 45.0,1000.0,1000.0,1000.0]],
157  '60GeV' : [ [0,1.05,1.5,2.0,9.9], [ 54.0, 54.0, 54.0, 54.0] ],
158  '60GeV_barrelOnly' : [ [0,1.05,1.5,2.0,9.9], [ 54.0,1000.0,1000.0,1000.0]],
159  '70GeV' : [ [0,1.05,1.5,2.0,9.9], [ 63.0, 63.0, 63.0, 63.0] ],
160  '80GeV' : [ [0,1.05,1.5,2.0,9.9], [ 72.0, 72.0, 72.0, 72.0] ],
161  '100GeV' : [ [0,1.05,1.5,2.0,9.9], [ 90.0, 90.0, 90.0, 90.0] ],
162  }
163 
164 efCombinerThresholds = {
165  #
166  # added for Run3 low-mu 2mu3
167  '3GeV_v22a' : [ [0,1.05,1.5,2.0,9.9], [ 2.94, 2.91, 2.77, 2.72] ],
168  # original + 2015 tuning
169  '2GeV_v15a' : [ [0,9.9], [2.000] ],
170  '3GeV_v15a' : [ [0,9.9], [3.000] ],
171  '4GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 3.94, 3.91, 3.77, 3.72] ],
172  '5GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 4.91, 4.86, 4.84, 4.83] ],
173  '6GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 5.92, 5.86, 5.70, 5.64] ],
174  '7GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 6.85, 6.77, 6.74, 6.74] ],
175  '8GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 7.89, 7.81, 7.60, 7.53] ],
176  '10GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 9.84, 9.77, 9.54, 9.47] ],
177  '11GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 10.74, 10.64, 10.58, 10.53] ],
178  '12GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 11.70, 11.59, 11.53, 11.49] ],
179  '13GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 12.80, 12.67, 12.43, 12.38] ],
180  '14GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 13.75, 13.62, 13.38, 13.36] ],
181  '15GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 14.63, 14.49, 14.42, 14.38] ],
182  '16GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 15.65, 15.50, 15.39, 15.37] ], # Lidia - extrapolated not optimized
183  '18GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 17.68, 17.51, 17.34, 17.34] ],
184  '20GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 19.65, 19.50, 19.20, 19.30] ], # new
185  '22GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 21.64, 21.32, 21.30, 21.30] ], # new
186  '23GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 22.59, 22.27, 22.25, 22.27] ], # new
187  '24GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 23.55, 23.21, 23.20, 23.25] ], # new
188  '26GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 25.60, 25.15, 25.20, 25.20] ], # new
189  '27GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 26.26, 26.12, 26.11, 26.02] ],
190  '28GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 27.28, 27.09, 27.15, 27.20] ], # new
191  '30GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 29.20, 29.00, 29.00, 29.00] ], # new
192  '32GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 31.20, 30.95, 30.90, 30.84] ], # new
193  '34GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 33.16, 32.88, 32.80, 32.70] ], # new
194  '35GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 34.15, 33.82, 33.65, 33.65] ], # new
195  '36GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 35.23, 34.75, 34.50, 34.60] ], # new
196  '38GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 36.87, 36.67, 36.55, 36.48] ],
197  '40GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 38.80, 38.56, 38.40, 38.90] ], # new
198  '45GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 43.75, 43.30, 43.10, 43.90] ], # new
199  '48GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 46.50, 46.20, 46.00, 46.80] ], # new
200  '50GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 48.00, 48.20, 48.00, 48.80] ], # new
201  '60GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 54.00, 54.00, 54.00, 54.00] ],
202  '70GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 63.00, 63.00, 63.00, 63.00] ],
203  '80GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 72.00, 72.00, 72.00, 72.00] ],
204  '100GeV_v15a' : [ [0,1.05,1.5,2.0,9.9], [ 90.00, 90.00, 90.00, 90.00] ],
205  }
206 
207 
208 muFastThresholdsForECWeakBRegion = {
209  #
210  # added for Run3 low-mu 2mu3
211  '3GeV_v22a' : [ 0.1, 0.1 ],
212  # 2011a tuning + 2015 tuning
213  '4GeV_v15a' : [ 2.72, 1.58],
214  '4GeV_barrelOnly_v15a' : [ 1000., 1000. ],
215  '6GeV_v15a' : [ 3.91, 2.22],
216  '8GeV_v15a' : [ 4.65, 3.26],
217  '10GeV_v15a' : [ 5.96, 4.24],
218  #not optimized: ATR-20049
219  '11GeV_v15a' : [ 6.19, 4.37 ],
220  '13GeV_v15a' : [ 6.65, 4.64 ],
221  '14GeV_v15a' : [ 6.78, 5.03 ],
222  '15GeV_v15a' : [ 7.61, 7.81 ],
223  '18GeV_v15a' : [ 8.48, 7.26 ],
224  '20GeV_v15a' : [ 8.63, 7.26 ],
225  '22GeV_v15a' : [ 9.53, 7.77 ],
226  '23GeV_v15a' : [ 9.53, 7.77 ],
227  '24GeV_v15a' : [ 9.02, 8.31 ],
228  '26GeV_v15a' : [ 9.89, 8.77 ],
229  '28GeV_v15a' : [ 9.89, 8.77 ], # copy of 26
230  '30GeV_v15a' : [ 14.41, 17.43 ],
231  '32GeV_v15a' : [ 14.41, 17.43 ], # copy of 30
232  '34GeV_v15a' : [ 14.41, 17.43 ], # copy of 30
233  '35GeV_v15a' : [ 14.41, 17.43 ], # copy of 30
234  '36GeV_v15a' : [ 10.78, 10.66 ],
235  '40GeV_v15a' : [ 15.07, 18.02 ],
236  '45GeV_v15a' : [ 15.07, 18.02 ], # copy of 40
237  '48GeV_v15a' : [ 15.07, 18.02 ], # copy of 50
238  '50GeV_v15a' : [ 15.07, 18.02 ], # lixia, not optimized
239  '60GeV_v15a' : [ 15.07, 18.02 ],
240  '80GeV_v15a' : [ 15.07, 18.02 ],
241  '40GeV_uptoEC2_v15a' : [ 15.07, 18.02 ],
242  '40GeV_barrelOnly_v15a' : [ 1000., 1000. ],
243  '50GeV_barrelOnly_v15a' : [ 1000., 1000. ],
244  '60GeV_barrelOnly_v15a' : [ 1000., 1000. ],
245  }
246 
247 
248 # Working points for EF track isolation algorithm
249 # syntax is:
250 # 'WPname' : cut on 0.3 cone
251 # put < 0 for no cut
252 trigMuonEFTrkIsoThresholds = {
253  'ivarloose' : 0.16, #ivarloose
254  'ivarmedium' : 0.07, #ivarmedium
255  'ivartight' : 0.06, #ivartight
256  'ivarverytight' : 0.04, #ivarverytight
257  'iloosems' : 3000.0 #ms-only iso
258  }
259 
260 trigMuonLrtd0Cut = {
261  'd0loose' : 2.0,
262  'd0medium' : 3.0,
263  'd0tight' : 5.0
264  }
265 
266 #Possible dimuon mass window cuts
267 #Fomat is [lower bound, upper bound] in GeV
268 # <0 for no cut
269 trigMuonEFInvMassThresholds = {
270  'invmJPsiOS' : [2.5, 4.3],
271  'invmDimu' : [1.5, 14.],
272  'idZmumu' : [50., 130.],
273  'idJpsimumu' : [1., 5.],
274 }
275 
276 # Monitoring groups to monitor
277 muonHypoMonGroups = ['muonMon:online']
278 idHypoMonGroups = ['idMon:t0','idMon:shifter']
279 
280 def getThresholdsFromDict( chainDict ):
281  cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon' or i['signature']=='Bphysics']
282  return sum( [ [part['threshold']]*int(part['multiplicity']) for part in cparts ], [])
283 
284 
285 def TrigMufastHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs):
286  return CompFactory.TrigMufastHypoAlg(name, **kwargs)
287 
288 def TrigMufastHypoToolFromDict(flags, chainDict):
289 
290  chainPart = chainDict['chainParts'][0]
291 
292  doOverlapRemoval = False
293  if chainPart['signature'] == 'Bphysics' or 'l2io' in chainPart['l2AlgInfo']:
294  doOverlapRemoval = False
295  elif int(chainPart['multiplicity']) > 1:
296  doOverlapRemoval = True
297  elif len(chainDict['signatures']) > 1 and not chainPart['extra']:
298  doOverlapRemoval = True
299 
300  doMonitoring = monitorAll or any(group in muonHypoMonGroups for group in chainDict['monGroups'])
301 
302  config = TrigMufastHypoToolConfig(chainDict['chainName'], chainPart, doOverlapRemoval, doMonitoring)
303  config.compile(flags)
304  return config.tool()
305 
306 
308  def __init__(self, name, cpart, doOverlapRemoval = False, doMonitoring = False):
309 
310  from AthenaCommon.Logging import logging
311  self.__log = logging.getLogger('TrigMufastHypoToolConfig')
312  self.__name = name
313 
314  self.__threshold = int(cpart['threshold'])
315  self.__multiplicity = int(cpart['multiplicity'])
316  self.__isPassThrough = 'mucombTag' in cpart['extra']
317  self.__isCalibration = 'muoncalib' in cpart['extra']
318  self.__isBarrelOnly = '0eta105' in cpart['etaRange']
319  self.__useGeV_v15a = any(x in cpart['addInfo'] for x in ['idperf', 'idtp', '3layersEC'])
320  self.__doL2MT = 'l2mt' in cpart['l2AlgInfo']
321  self.__doOverlapRemoval = doOverlapRemoval
322  self.__doMonitoring = doMonitoring
323 
324  from AthenaConfiguration.ComponentFactory import CompFactory
325  tool = CompFactory.TrigMufastHypoTool(name)
326  self.__tool = tool
327 
328  def multiplicity(self):
329  return self.__multiplicity
330 
331  def tool(self):
332  return self.__tool
333 
334  def toolName(self):
335  return self.__name
336 
337  def log(self):
338  return self.__log
339 
340  def isPassThrough(self):
341  return self.__isPassThrough
342 
343  def isCalibration(self):
344  return self.__isCalibration
345 
346  def isBarrelOnly(self):
347  return self.__isBarrelOnly
348 
349  def useGeV_v15a(self):
350  return self.__useGeV_v15a or self.getThresholdValue() < 5
351 
352  def doMonitoring(self):
353  return self.__doMonitoring
354 
355  def doL2MT(self):
356  return self.__doL2MT
357 
358  def doOverlapRemoval(self):
359  return self.__doOverlapRemoval
360 
361  def getThresholdValue(self):
362  return self.__threshold
363 
364  def getThresholdName(self):
365  threshold = str(self.getThresholdValue())
366  key = '6GeV_v15a'
367  if self.useGeV_v15a():
368  key = threshold + 'GeV_v15a'
369  if self.getThresholdValue() == 3:
370  key = threshold + 'GeV_v22a'
371  elif self.isBarrelOnly():
372  key = threshold + 'GeV_barrelOnly_v15a'
373  elif self.getThresholdValue() >= 20:
374  key = threshold + 'GeV_v15a'
375  return key
376 
377  def setOverlapRemoval(self):
378  self.tool().ApplyOR = True
379  # cut defintion
380  self.tool().RequireDR = True
381  self.tool().RequireMass = True
382  self.tool().RequireSameSign = True
383  # BB
384  self.tool().DRThresBB = 0.05
385  self.tool().MassThresBB = 0.20
386  # BE
387  self.tool().DRThresBE = 0.05
388  self.tool().MassThresBE = 0.20
389  # EE
390  self.tool().EtaBinsEC = [0.0, 1.9, 2.1, 9.9]
391  self.tool().DRThresEC = [0.06, 0.05, 0.05]
392  self.tool().MassThresEC = [0.20, 0.15, 0.10]
393 
394  def setL2MT(self):
395  self.tool().ApplyOR = True
396  # cut defintion
397  self.tool().RequireDR = True
398  self.tool().RequireMass = True
399  self.tool().RequireSameSign = True
400  # BB
401  self.tool().DRThresBB = 0.05
402  self.tool().MassThresBB = 0.20
403  # BE
404  self.tool().DRThresBE = 0.05
405  self.tool().MassThresBE = 0.20
406  # EE
407  self.tool().EtaBinsEC = [0.0, 1.9, 2.1, 9.9]
408  self.tool().DRThresEC = [0.06, 0.05, 0.05]
409  self.tool().MassThresEC = [0.20, 0.15, 0.10]
410 
411  def compile(self, flags):
412 
413  nt = self.multiplicity()
414  if self.isCalibration():
415  self.tool().AcceptAll = False
416  self.tool().DoCalib = True
417  self.tool().PtBins = [ [ 0.0, 2.5 ] ] * nt
418 
419  elif self.isPassThrough():
420  self.tool().AcceptAll = True
421  self.tool().PtBins = [ [-10000.,10000.] ]
422  self.tool().PtThresholds = [ [ -1. * GeV ] ]
423  self.tool().PtThresholdForECWeakBRegionA = [ 3. * GeV ]
424  self.tool().PtThresholdForECWeakBRegionB = [ 3. * GeV ]
425 
426  else:
427  self.log().debug('Set %d thresholds', nt)
428  self.tool().AcceptAll = False
429  self.tool().PtBins = [ [ 0.0, 2.5 ] ] * nt
430  self.tool().PtThresholds = [ [ 5.49 * GeV ] ] * nt
431  self.tool().PtThresholdForECWeakBRegionA = [ 3. * GeV ] * nt
432  self.tool().PtThresholdForECWeakBRegionB = [ 3. * GeV ] * nt
433 
434  thvaluename = self.getThresholdName()
435 
436  for th in range(nt):
437  try:
438  values = muFastThresholds[thvaluename]
439  self.tool().PtBins[th] = values[0]
440  self.tool().PtThresholds[th] = [ x * GeV for x in values[1] ]
441  self.log().debug('Configration of threshold[%d] %s', th, self.tool().PtThresholds[th])
442  self.log().debug('Configration of PtBins[%d] %s', th, self.tool().PtBins[th])
443  if thvaluename in muFastThresholdsForECWeakBRegion:
444  spThres = muFastThresholdsForECWeakBRegion[thvaluename]
445  self.tool().PtThresholdForECWeakBRegionA[th] = spThres[0] * GeV
446  self.tool().PtThresholdForECWeakBRegionB[th] = spThres[1] * GeV
447  else:
448  self.log().debug('No special thresholds for EC weak Bfield regions for %s. Copy EC1 for region A, EC2 for region B.', thvaluename)
449  spThres = values[0][1]
450  if thvaluename == '2GeV' or thvaluename == '3GeV':
451  self.tool().PtThresholdForECWeakBRegionA[th] = spThres[0] * GeV
452  self.tool().PtThresholdForECWeakBRegionB[th] = spThres[0] * GeV
453  else:
454  self.tool().PtThresholdForECWeakBRegionA[th] = spThres[1] * GeV
455  self.tool().PtThresholdForECWeakBRegionB[th] = spThres[2] * GeV
456 
457  self.log().debug('Thresholds for A[%d]/B[%d] = %d/%d', th, th, self.tool().PtThresholdForECWeakBRegionA[th], self.tool().PtThresholdForECWeakBRegionB[th])
458 
459  except LookupError:
460  raise Exception('MuFast Hypo Misconfigured: threshold %r not supported' % thvaluename)
461 
462  if self.doL2MT():
463  self.setL2MT()
464  elif self.doOverlapRemoval():
465  self.setOverlapRemoval()
466 
467  if self.doMonitoring():
468  if self.doOverlapRemoval():
469  from TrigMuonHypo.TrigMuonHypoMonitoring import TrigL2MuonOverlapRemoverMonitoringMufast
470  self.tool().MonTool = TrigL2MuonOverlapRemoverMonitoringMufast(flags, 'TrigMufastHypoTool/' + self.toolName())
471  else:
472  from TrigMuonHypo.TrigMuonHypoMonitoring import TrigMufastHypoMonitoring
473  self.tool().MonTool = TrigMufastHypoMonitoring(flags, 'TrigMufastHypoTool/' + self.toolName())
474 
475 
476 def TrigmuCombHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs):
477  return CompFactory.TrigmuCombHypoAlg(name, **kwargs)
478 
479 def TrigmuCombHypoToolFromDict( flags, chainDict ):
480 
481  if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo'] :
482  thresholds = ['passthrough']
483  else:
484  thresholds = getThresholdsFromDict( chainDict )
485 
486  config = TrigmuCombHypoConfig()
487 
488  tight = False # can be probably decoded from some of the proprties of the chain, expert work
489 
490  acceptAll = False
491 
492  if 'mucombTag' in chainDict['chainParts'][0]['extra']:
493  domuCombTag = True
494  else:
495  domuCombTag = False
496 
497  if chainDict['chainParts'][0]['signature'] == 'Bphysics':
498  acceptAll = True
499 
500  tool = config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
501 
502  if monitorAll:
503  tool.MonTool = TrigmuCombHypoMonitoring(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
504  else:
505  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
506  tool.MonTool = TrigmuCombHypoMonitoring(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
507 
508  d0cut=0.
509  if 'd0loose' in chainDict['chainParts'][0]['lrtInfo']:
510  d0cut=trigMuonLrtd0Cut['d0loose']
511  elif 'd0medium' in chainDict['chainParts'][0]['lrtInfo']:
512  d0cut=trigMuonLrtd0Cut['d0medium']
513  elif 'd0tight' in chainDict['chainParts'][0]['lrtInfo']:
514  d0cut=trigMuonLrtd0Cut['d0tight']
515  tool.MinimumD0=d0cut
516 
517  return tool
518 
519 
520 def TrigmuCombHypoToolwORFromDict( flags, chainDict ):
521 
522  if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo'] :
523  thresholds = ['passthrough']
524  else:
525  thresholds = getThresholdsFromDict( chainDict )
526 
527  config = TrigmuCombHypoConfig()
528 
529  tight = False # can be probably decoded from some of the proprties of the chain, expert work
530 
531  acceptAll = False
532  if 'mucombTag' in chainDict['chainParts'][0]['extra']:
533  domuCombTag = True
534  else:
535  domuCombTag = False
536 
537  tool = config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
538 
539  if monitorAll:
540  tool.MonTool = TrigL2MuonOverlapRemoverMonitoringMucomb(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
541  else:
542  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
543  tool.MonTool = TrigL2MuonOverlapRemoverMonitoringMucomb(flags, "TrigmuCombHypoTool/"+chainDict['chainName'])
544 
545  # Overlap Removal
546  tool.ApplyOR = True
547  tool.RequireDR = True
548  tool.RequireMufastDR = True
549  tool.RequireMass = True
550  tool.RequireSameSign = True
551  tool.EtaBins = [0, 0.9, 1.1, 1.9, 2.1, 9.9]
552  tool.DRThres = [0.002, 0.001, 0.002, 0.002, 0.002]
553  tool.MufastDRThres = [0.4, 0.4, 0.4, 0.4, 0.4]
554  tool.MassThres = [0.004, 0.002, 0.006, 0.006, 0.006]
555 
556  return tool
557 
558 
559 # muComb Hypo for L2 inside-out
561 
562  thresholds = getThresholdsFromDict( chainDict )
563 
564  config = TrigmuCombHypoConfig()
565 
566  tight = False # can be probably decoded from some of the proprties of the chain, expert work
567 
568  acceptAll = False
569  domuCombTag=False
570 
571  tool=config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
572 
573  # Overlap Removal
574  tool.ApplyOR = True
575  tool.RequireDR = True
576  tool.RequireMufastDR = False
577  tool.RequireMass = True
578  tool.RequireSameSign = True
579  tool.EtaBins = [0, 0.9, 1.1, 1.9, 2.1, 9.9]
580  tool.DRThres = [0.002, 0.001, 0.002, 0.002, 0.002]
581  tool.MufastDRThres = [0]
582  tool.MassThres = [0.004, 0.002, 0.006, 0.006, 0.006]
583 
584  return tool
585 
586 
587 # muComb Hypo for L2 multi-track SA mode
589 
590  if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo'] :
591  thresholds = ['passthrough']
592  else:
593  thresholds = getThresholdsFromDict( chainDict )
594 
595  config = TrigmuCombHypoConfig()
596 
597  tight = False # can be probably decoded from some of the proprties of the chain, expert work
598 
599  acceptAll = False
600  domuCombTag = False
601 
602  tool=config.ConfigurationHypoTool( chainDict['chainName'], thresholds, tight, acceptAll, domuCombTag )
603 
604  # Overlap Removal
605  tool.ApplyOR = True
606  tool.RequireDR = True
607  tool.RequireMufastDR = True
608  tool.RequireMass = True
609  tool.RequireSameSign = True
610  tool.EtaBins = [0, 0.9, 1.1, 1.9, 2.1, 9.9]
611  tool.DRThres = [0.002, 0.001, 0.002, 0.002, 0.002]
612  tool.MufastDRThres = [0.4, 0.4, 0.4, 0.4, 0.4]
613  tool.MassThres = [0.004, 0.002, 0.006, 0.006, 0.006]
614 
615  return tool
616 
617 
619 
620  log = logging.getLogger('TrigmuCombHypoConfig')
621 
622  def ConfigurationHypoTool( self, thresholdHLT, thresholds, tight, acceptAll, domuCombTag ):
623 
624  tool = CompFactory.TrigmuCombHypoTool( thresholdHLT )
625  tool.AcceptAll = acceptAll
626 
627  nt = len(thresholds)
628  log.debug('Set %d thresholds', nt)
629  tool.PtBins = [ [ 0.0, 2.5 ] ] * nt
630  tool.PtThresholds = [ [ 5.83 * GeV ] ] * nt
631 
632  for th, thvalue in enumerate(thresholds):
633  if thvalue == 'passthrough':
634  tool.AcceptAll = True
635  tool.PtBins[th] = [-10000.,10000.]
636  tool.PtThresholds[th] = [ -1. * GeV ]
637  else:
638  # 15.03.2022: original flow, commented to allow use of the new HLT algo thresholds
639  #if int(thvalue) >= 24:
640  # thvaluename = '22GeV_v15a'
641  #else:
642  # thvaluename = thvalue + 'GeV_v15a'
643  if domuCombTag:
644  thvaluename = thvalue + 'GeV_v16'
645  else:
646  thvaluename = thvalue + 'GeV_v15a'
647 
648  if int(thvalue)==3:
649  thvaluename = thvalue + 'GeV_v22a'
650  log.debug('Number of threshold = %d, Value of threshold = %s', th, thvaluename)
651 
652  try:
653  values = muCombThresholds[thvaluename]
654  tool.PtBins[th] = values[0]
655  tool.PtThresholds[th] = [ x * GeV for x in values[1] ]
656  if (tight is True):
657  tool.ApplyPikCuts = True
658  tool.MaxPtToApplyPik = 25.
659  tool.MaxChi2IDPik = 3.5
660  except LookupError:
661  raise Exception('MuComb Hypo Misconfigured: threshold %r not supported' % thvaluename)
662 
663  return tool
664 
665 def TrigMuonEFHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs):
666  return CompFactory.TrigMuonEFHypoAlg(name, **kwargs)
667 
668 
669 def TrigMuonEFMSonlyHypoToolFromDict( flags, chainDict ) :
670  thresholds = getThresholdsFromDict( chainDict )
671  kwargs={}
672  kwargs.setdefault("RequireSAMuons",True)
673  if 'msonly' in chainDict['chainParts'][0]['msonlyInfo'] and 'noL1' not in chainDict['chainParts'][0]['extra']:
674  kwargs.setdefault("RemoveOverlaps",True)
675 
676 
677  if monitorAll:
678  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
679  kwargs.setdefault("MonTool", monTool)
680  else:
681  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
682  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
683  kwargs.setdefault("MonTool", monTool)
684  if '3layersEC' in chainDict['chainParts'][0]['addInfo']:
685  kwargs.setdefault("RequireThreeStations", True)
686  muonflags = flags.cloneAndReplace('Muon', 'Trigger.Offline.SA.Muon')
687  if muonflags.Muon.runCommissioningChain:
688  kwargs.setdefault("RunCommissioningChain",True)
689 
690 
691  if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
692  conesize = 0.1
693  narrowscan = True
694  elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
695  conesize = 0.2
696  narrowscan = True
697  elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
698  conesize = 0.3
699  narrowscan = True
700  elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
701  conesize = 0.4
702  narrowscan = True
703  elif 'nscan' in chainDict['chainParts'][0]['addInfo']:
704  conesize = 0.5
705  narrowscan = True
706  else:
707  narrowscan = False
708  conesize = 0.0
709 
710  kwargs.setdefault("ConeSize", conesize)
711  kwargs.setdefault("NarrowScan", narrowscan)
712 
713  return TrigMuonEFHypoToolCfg( chainDict['chainName'], thresholds, doSA=True, **kwargs )
714 
715 def TrigMuonEFMSonlyHypoToolFromName( flags, chainDict):
716  #For full scan chains, we need to configure the thresholds based on all muons
717  #in the chain to get the counting correct.
718  thresholds=[]
719  chainName = chainDict["chainName"]
720  hltChainName = chainName.rsplit("_L1",1)[0]
721  cparts = hltChainName.split("_")
722 
723  if 'HLT' in hltChainName:
724  cparts.remove('HLT')
725  for part in cparts:
726  if 'mu' in part:
727  thrPart = part.split('mu')
728  if not thrPart[0]:
729  mult = 1
730  else:
731  mult=thrPart[0]
732  thr = thrPart[1]
733  if 'noL1' in part:
734  thr =thr.replace('noL1','')
735  for i in range(1,int(mult)+1):
736  thresholds.append(thr)
737 
738  monTool=None
739  if monitorAll:
740  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
741  else:
742  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
743  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFMSonlyHypoTool/"+chainDict['chainName'])
744 
745  if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
746  conesize = 0.1
747  narrowscan = True
748  elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
749  conesize = 0.2
750  narrowscan = True
751  elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
752  conesize = 0.3
753  narrowscan = True
754  elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
755  conesize = 0.4
756  narrowscan = True
757  elif 'nscan' in chainDict['chainParts'][0]['addInfo']:
758  conesize = 0.5
759  narrowscan = True
760  else:
761  narrowscan = False
762  conesize = 0.0
763 
764 
765  return TrigMuonEFHypoToolCfg( chainDict['chainName'], thresholds, doSA=True, MonTool=monTool, RequireSAMuons=True, NarrowScan=narrowscan, ConeSize=conesize)
766 
767 def TrigMuonEFHypoToolCfg(name, thresholds, doSA=False, **kwargs):
768 
769 
770  log = logging.getLogger(name)
771 
772  nt = len(thresholds)
773  log.debug('Set %d thresholds', nt)
774  PtBins = [ [ 0.0, 2.5 ] ] * nt
775  PtThresholds = [ [ 5.49 * GeV ] ] * nt
776  passthrough=False
777  for th, thvalue in enumerate(thresholds):
778  if (thvalue=='passthrough'):
779  passthrough = True
780  PtBins[th] = [-10000.,10000.]
781  PtThresholds[th] = [ -1. * GeV ]
782  else:
783  if "0eta105" in name:
784  thvaluename = thvalue+ "GeV_barrelOnly"
785  else:
786  if int(thvalue)==3:
787  thvaluename = thvalue + 'GeV_v22a'
788  else:
789  if doSA:
790  thvaluename = thvalue + 'GeV'
791  else:
792  thvaluename = thvalue + 'GeV_v15a'
793  log.debug('Number of threshold = %d, Value of threshold = %s', th, thvaluename)
794 
795  if doSA:
796  values = trigMuonEFSAThresholds[thvaluename]
797  else:
798  values = efCombinerThresholds[thvaluename]
799  PtBins[th] = values[0]
800  PtThresholds[th] = [ x * GeV for x in values[1] ]
801 
802 
803  kwargs.setdefault("AcceptAll", passthrough)
804  kwargs.setdefault("PtBins", PtBins)
805  kwargs.setdefault("PtThresholds", PtThresholds)
806  return CompFactory.TrigMuonEFHypoTool(name, **kwargs)
807 
808 
809 def TrigMuonEFCombinerHypoToolFromDict( flags, chainDict ) :
810  if 'idperf' in chainDict['chainParts'][0]['addInfo'] or 'idtp' in chainDict['chainParts'][0]['addInfo']:
811  thresholds = ['passthrough']
812  else:
813  thresholds = getThresholdsFromDict( chainDict )
814 
815  if 'muonqual' in chainDict['chainParts'][0]['addInfo']:
816  muonquality = True
817  else:
818  muonquality = False
819 
820  if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
821  conesize = 0.1
822  narrowscan = True
823  elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
824  conesize = 0.2
825  narrowscan = True
826  elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
827  conesize = 0.3
828  narrowscan = True
829  elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
830  conesize = 0.4
831  narrowscan = True
832  elif 'nscan' in chainDict['chainParts'][0]['addInfo']:
833  conesize = 0.5
834  narrowscan = True
835  else:
836  narrowscan = False
837  conesize = 0.0
838 
839  if 'noL1' not in chainDict['chainParts'][0]['extra']:
840  overlap=True
841  else:
842  overlap=False
843 
844  monTool=None
845  if monitorAll:
846  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
847  else:
848  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
849  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
850 
851  d0cut=0.
852  if 'd0loose' in chainDict['chainParts'][0]['lrtInfo']:
853  d0cut=trigMuonLrtd0Cut['d0loose']
854  elif 'd0medium' in chainDict['chainParts'][0]['lrtInfo']:
855  d0cut=trigMuonLrtd0Cut['d0medium']
856  elif 'd0tight' in chainDict['chainParts'][0]['lrtInfo']:
857  d0cut=trigMuonLrtd0Cut['d0tight']
858 
859 
860  tool = TrigMuonEFHypoToolCfg(chainDict['chainName'], thresholds, doSA=False, MuonQualityCut=muonquality, MonTool=monTool,
861  NarrowScan=narrowscan, RemoveOverlaps=overlap, ConeSize=conesize, MinimumD0=d0cut)
862 
863  return tool
864 
865 def TrigMuonEFCombinerHypoToolFromName( flags, chainDict ):
866  #For full scan chains, we need to configure the thresholds based on all muons
867  #in the chain to get the counting correct. Currently a bit convoluted as
868  #the chain dict is (improperly) overwritten when merging for FS chains.
869  #Can probably improve this once serial merging is officially implemented
870  thresholds=[]
871  chainName = chainDict["chainName"]
872  hltChainName = chainName.rsplit("_L1",1)[0]
873  cparts = hltChainName.split("_")
874  if 'HLT' in hltChainName:
875  cparts.remove('HLT')
876  for part in cparts:
877  if 'mu' in part:
878  thrPart = part.split('mu')
879  if not thrPart[0]:
880  mult = 1
881  else:
882  mult=thrPart[0]
883  thr = thrPart[1]
884  if 'noL1' in part:
885  thr =thr.replace('noL1','')
886  for i in range(1,int(mult)+1):
887  thresholds.append(thr)
888  if 'nscan10' in chainDict['chainParts'][0]['addInfo']:
889  conesize = 0.1
890  narrowscan = True
891  elif 'nscan20' in chainDict['chainParts'][0]['addInfo']:
892  conesize = 0.2
893  narrowscan = True
894  elif 'nscan30' in chainDict['chainParts'][0]['addInfo']:
895  conesize = 0.3
896  narrowscan = True
897  elif 'nscan40' in chainDict['chainParts'][0]['addInfo']:
898  conesize = 0.4
899  narrowscan = True
900  if 'nscan' in chainDict['chainParts'][0]['addInfo']:
901  conesize = 0.5
902  narrowscan = True
903  else:
904  narrowscan = False
905  conesize = 0.0
906 
907  if 'muonqual' in chainDict['chainParts'][0]['addInfo']:
908  muonquality = True
909  else:
910  muonquality = False
911 
912  monTool=None
913  if monitorAll:
914  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
915  else:
916  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
917  monTool = TrigMuonEFHypoMonitoring(flags, "TrigMuonEFCombinerHypoTool/"+chainDict['chainName'])
918 
919  tool = TrigMuonEFHypoToolCfg(chainDict['chainName'], thresholds, doSA=False, MuonQualityCut=muonquality, MonTool=monTool,
920  NarrowScan=narrowscan, ConeSize=conesize)
921 
922  return tool
923 
924 
925 
927  cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon']
928  if 'ivarperf' in chainDict['chainParts'][0]['isoInfo']:
929  thresholds = 'passthrough'
930  else:
931  thresholds = cparts[0]['isoInfo']
932 
933  tool = TrigMuonEFTrackIsolationHypoCfg(flags, chainDict['chainName'], thresholds)
934 
935 
936  if monitorAll:
937  tool.MonTool = TrigMuonEFTrackIsolationMonitoring(flags, 'TrigMuonEFTrackIsolationHypoTool/'+chainDict['chainName'])
938  else:
939  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
940  tool.MonTool = TrigMuonEFTrackIsolationMonitoring(flags, 'TrigMuonEFTrackIsolationHypoTool/'+chainDict['chainName'])
941 
942  return tool
943 
944 def TrigMuonEFTrackIsolationHypoCfg(flags, name, isoCut, **kwargs) :
945 
946 
947  if(isoCut=='passthrough') :
948  kwargs.setdefault("AcceptAll", True)
949 
950  else:
951  ptcone03 = trigMuonEFTrkIsoThresholds[ isoCut ]
952 
953  kwargs.setdefault("PtCone02Cut", 0.0)
954  kwargs.setdefault("PtCone03Cut", ptcone03)
955  kwargs.setdefault("AcceptAll", False)
956 
957  if 'ms' in isoCut:
958  kwargs.setdefault("RequireCombinedMuon", False)
959  kwargs.setdefault("DoAbsCut", True)
960  else:
961  kwargs.setdefault("RequireCombinedMuon", True)
962  kwargs.setdefault("DoAbsCut", False)
963 
964 
965  if 'var' in isoCut :
966  kwargs.setdefault("useVarIso", True)
967  else :
968  kwargs.setdefault("useVarIso", False)
969 
970  tool = CompFactory.TrigMuonEFTrackIsolationHypoTool(name, **kwargs)
971  return tool
972 
973 def TrigMuonEFTrackIsolationHypoAlgCfg(flags, name="TrigMuonEFTrackIsolationHypoAlg", **kwargs):
974  return CompFactory.TrigMuonEFTrackIsolationHypoAlg(name, **kwargs)
975 
976 def TrigMuonEFInvMassHypoToolFromDict( flags, chainDict ) :
977  cparts = [i for i in chainDict['chainParts'] if i['signature']=='Muon']
978  #The invariant mass is specified at end of chain, so only shows up in the last chainPart
979  thresholds = cparts[-1]['invMassInfo']
980  if "os" in cparts[-1]['addInfo']:
981  osCut=True
982  else:
983  osCut = False
984 
985  tool = TrigMuonEFInvMassHypoCfg( flags, chainDict['chainName'], thresholds, SelectOppositeSign=osCut )
986 
987  if monitorAll:
988  tool.MonTool = TrigMuonEFInvMassHypoMonitoring(flags, "TrigMuonEFInvMassHypoTool/"+chainDict['chainName'])
989  else:
990  if any(group in muonHypoMonGroups for group in chainDict['monGroups']):
991  tool.MonTool = TrigMuonEFInvMassHypoMonitoring(flags, "TrigMuonEFInvMassHypoTool/"+chainDict['chainName'])
992 
993  return tool
994 
995 def TrigMuonEFInvMassHypoCfg(flags, toolName, thresholds, **kwargs):
996 
997  massWindow = trigMuonEFInvMassThresholds[thresholds]
998 
999  kwargs.setdefault("InvMassLow", massWindow[0])
1000  kwargs.setdefault("InvMassHigh", massWindow[1])
1001  kwargs.setdefault("AcceptAll", False)
1002 
1003  tool = CompFactory.TrigMuonEFInvMassHypoTool(toolName, **kwargs)
1004  return tool
1005 
1006 def TrigMuonEFIdtpHypoToolFromDict( flags, chainDict ) :
1007  thresholds = getThresholdsFromDict( chainDict )
1008  monTool=None
1009  if any(group in idHypoMonGroups for group in chainDict['monGroups']):
1010  monTool = TrigMuonEFIdtpHypoMonitoring(flags, "TrigMuonEFIdtpHypoTool/"+chainDict['chainName'])
1011  tool = TrigMuonEFIdtpHypoCfg( chainDict['chainName'], thresholds, MonTool=monTool )
1012  return tool
1013 
1014 
1015 def TrigMuonEFIdtpHypoCfg(name, thresholds, **kwargs):
1016 
1017  log = logging.getLogger(name)
1018 
1019  nt = len(thresholds)
1020  log.debug('Set %d thresholds', nt)
1021  ptBins = [ [ 0, 2.5 ] ] * nt
1022  ptThresholds = [ [ 5.49 * GeV ] ] * nt
1023  for th, thvalue in enumerate(thresholds):
1024  thvaluename = thvalue + 'GeV'
1025  if int(thvalue)==3:
1026  thvaluename = thvalue + 'GeV_v22a'
1027  log.debug('Number of threshold = %d, Value of threshold = %s', th, thvaluename)
1028  if (thvalue=='passthrough'):
1029  ptBins[th] = [-10000.,10000.]
1030  ptThresholds[th] = [ -1. * GeV ]
1031  else:
1032  values = trigMuonEFSAThresholds[thvaluename]
1033  ptBins[th] = values[0]
1034  ptThresholds[th] = [ x * GeV for x in values[1] ]
1035 
1036 
1037  if (thvalue=='passthrough'):
1038  kwargs.setdefault("AcceptAll", True)
1039  else:
1040  kwargs.setdefault("AcceptAll", False)
1041 
1042  kwargs.setdefault("PtBins", ptBins)
1043  kwargs.setdefault("PtThresholds", ptThresholds)
1044 
1045 
1046  return CompFactory.TrigMuonEFIdtpHypoTool( name, **kwargs )
1047 
1049  cname = chainDict['chainName']
1050  if 'idZmumu' in cname :
1051  thresholds = 'idZmumu'
1052  elif 'idJpsimumu' in cname :
1053  thresholds = 'idJpsimumu'
1054  else :
1055  log.warning("unknown chain name for IdtpInvmassHypo, chain name= %s, setting threshold of Z mass",cname)
1056  thresholds = 'idZmumu'
1057 
1058  tool = TrigMuonEFIdtpInvMassHypoCfg( chainDict['chainName'], thresholds )
1059 
1060  if any(group in idHypoMonGroups for group in chainDict['monGroups']):
1061  tool.MonTool = TrigMuonEFIdtpInvMassHypoMonitoring(flags, "TrigMuonEFIdtpInvMassHypoTool/"+chainDict['chainName'])
1062 
1063  return tool
1064 
1065 def TrigMuonEFIdtpInvMassHypoCfg(name, thresholds, **kwargs) :
1066 
1067  massWindow = trigMuonEFInvMassThresholds[thresholds]
1068  kwargs.setdefault("InvMassLow", massWindow[0])
1069  kwargs.setdefault("InvMassHigh", massWindow[1])
1070  kwargs.setdefault("AcceptAll", False)
1071 
1072  return CompFactory.TrigMuonEFIdtpInvMassHypoTool(name, **kwargs)
1073 
1074 
1075 def TrigMuonEFIdtpHypoAlgCfg(flags, name="TrigMuonEFIdtpHypoAlg", **kwargs):
1076  return CompFactory.TrigMuonEFIdtpHypoAlg(name, **kwargs)
1077 
1078 def TrigMuonLateMuRoIHypoAlgCfg(flags, name="TrigMuRoIHypoAlg", **kwargs):
1079  return CompFactory.TrigMuonLateMuRoIHypoAlg(name, **kwargs)
1080 
1081 def TrigMuonLateMuRoIHypoToolFromDict(flags, chainDict ) :
1082  tool = TrigMuonLateMuRoIHypoCfg(flags, chainDict['chainName'])
1083  return tool
1084 
1085 def TrigMuonLateMuRoIHypoCfg(flags, name="TrigMuRoIHypoTool") :
1086 
1087  tool = CompFactory.TrigMuonLateMuRoIHypoTool(name, AcceptAll=False)
1088  return tool
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__doL2MT
__doL2MT
Definition: TrigMuonHypoConfig.py:320
TrigMuonHypoConfig.TrigMuonEFIdtpHypoCfg
def TrigMuonEFIdtpHypoCfg(name, thresholds, **kwargs)
Definition: TrigMuonHypoConfig.py:1015
TrigMuonHypoConfig.TrigMufastHypoToolConfig.getThresholdName
def getThresholdName(self)
Definition: TrigMuonHypoConfig.py:364
TrigMuonHypoMonitoring.TrigMuonEFIdtpHypoMonitoring
def TrigMuonEFIdtpHypoMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:127
TrigMuonHypoConfig.TrigMuonEFHypoToolCfg
def TrigMuonEFHypoToolCfg(name, thresholds, doSA=False, **kwargs)
Definition: TrigMuonHypoConfig.py:767
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__init__
def __init__(self, name, cpart, doOverlapRemoval=False, doMonitoring=False)
Definition: TrigMuonHypoConfig.py:308
TrigMuonHypoConfig.TrigMufastHypoToolConfig.setL2MT
def setL2MT(self)
Definition: TrigMuonHypoConfig.py:394
SystemOfUnits
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__tool
__tool
Definition: TrigMuonHypoConfig.py:326
TrigMuonHypoConfig.TrigMuonEFIdtpHypoToolFromDict
def TrigMuonEFIdtpHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:1006
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__isCalibration
__isCalibration
Definition: TrigMuonHypoConfig.py:317
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TrigMuonHypoConfig.TrigMuonEFIdtpInvMassHypoCfg
def TrigMuonEFIdtpInvMassHypoCfg(name, thresholds, **kwargs)
Definition: TrigMuonHypoConfig.py:1065
TrigMuonHypoConfig.TrigMufastHypoToolConfig.compile
def compile(self, flags)
Definition: TrigMuonHypoConfig.py:411
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__useGeV_v15a
__useGeV_v15a
Definition: TrigMuonHypoConfig.py:319
TrigMuonHypoConfig.TrigMuonEFMSonlyHypoToolFromDict
def TrigMuonEFMSonlyHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:669
TrigMuonHypoConfig.TrigMufastHypoToolFromDict
def TrigMufastHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:288
TrigMuonHypoConfig.TrigMuonEFMSonlyHypoToolFromName
def TrigMuonEFMSonlyHypoToolFromName(flags, chainDict)
Definition: TrigMuonHypoConfig.py:715
TrigMuonHypoConfig.TrigMuonEFIdtpInvMassHypoToolFromDict
def TrigMuonEFIdtpInvMassHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:1048
TrigMuonHypoConfig.TrigMufastHypoToolConfig.isBarrelOnly
def isBarrelOnly(self)
Definition: TrigMuonHypoConfig.py:346
TrigMuonHypoConfig.TrigMuonLateMuRoIHypoCfg
def TrigMuonLateMuRoIHypoCfg(flags, name="TrigMuRoIHypoTool")
Definition: TrigMuonHypoConfig.py:1085
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__doOverlapRemoval
__doOverlapRemoval
Definition: TrigMuonHypoConfig.py:321
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__name
__name
Definition: TrigMuonHypoConfig.py:312
TrigMuonHypoConfig.getThresholdsFromDict
def getThresholdsFromDict(chainDict)
Definition: TrigMuonHypoConfig.py:280
TrigMuonHypoConfig.TrigMufastHypoToolConfig
Definition: TrigMuonHypoConfig.py:307
TrigMuonHypoConfig.TrigMufastHypoToolConfig.doMonitoring
def doMonitoring(self)
Definition: TrigMuonHypoConfig.py:352
TrigMuonHypoConfig.TrigMufastHypoToolConfig.log
def log(self)
Definition: TrigMuonHypoConfig.py:337
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__isPassThrough
__isPassThrough
Definition: TrigMuonHypoConfig.py:316
TrigMuonHypoConfig.TrigMuonEFInvMassHypoToolFromDict
def TrigMuonEFInvMassHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:976
TrigMuonHypoConfig.TrigmuCombHypoToolwORFromDict
def TrigmuCombHypoToolwORFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:520
TrigMuonHypoConfig.TrigMufastHypoAlgCfg
def TrigMufastHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs)
Definition: TrigMuonHypoConfig.py:285
TrigMuonHypoConfig.TrigMuonEFTrackIsolationHypoCfg
def TrigMuonEFTrackIsolationHypoCfg(flags, name, isoCut, **kwargs)
Definition: TrigMuonHypoConfig.py:944
TrigMuonHypoConfig.TrigMuonEFTrackIsolationHypoAlgCfg
def TrigMuonEFTrackIsolationHypoAlgCfg(flags, name="TrigMuonEFTrackIsolationHypoAlg", **kwargs)
Definition: TrigMuonHypoConfig.py:973
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
TrigMuonHypoConfig.TrigMufastHypoToolConfig.toolName
def toolName(self)
Definition: TrigMuonHypoConfig.py:334
TrigMuonHypoConfig.Trigl2mtCBHypoToolwORFromDict
def Trigl2mtCBHypoToolwORFromDict(chainDict)
Definition: TrigMuonHypoConfig.py:588
TrigMuonHypoConfig.Trigl2IOHypoToolwORFromDict
def Trigl2IOHypoToolwORFromDict(chainDict)
Definition: TrigMuonHypoConfig.py:560
TrigMuonHypoMonitoring.TrigL2MuonOverlapRemoverMonitoringMucomb
def TrigL2MuonOverlapRemoverMonitoringMucomb(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:74
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
TrigMuonHypoConfig.TrigMuonEFCombinerHypoToolFromName
def TrigMuonEFCombinerHypoToolFromName(flags, chainDict)
Definition: TrigMuonHypoConfig.py:865
TrigMuonHypoConfig.TrigMuonEFHypoAlgCfg
def TrigMuonEFHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs)
Definition: TrigMuonHypoConfig.py:665
TrigMuonHypoConfig.TrigMufastHypoToolConfig.multiplicity
def multiplicity(self)
Definition: TrigMuonHypoConfig.py:328
TrigMuonHypoConfig.TrigMufastHypoToolConfig.tool
def tool(self)
Definition: TrigMuonHypoConfig.py:331
TrigMuonHypoConfig.TrigmuCombHypoToolFromDict
def TrigmuCombHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:479
TrigMuonHypoMonitoring.TrigMuonEFHypoMonitoring
def TrigMuonEFHypoMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:101
TrigMuonHypoConfig.TrigMuonEFTrackIsolationHypoToolFromDict
def TrigMuonEFTrackIsolationHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:926
TrigMuonHypoConfig.TrigMuonLateMuRoIHypoAlgCfg
def TrigMuonLateMuRoIHypoAlgCfg(flags, name="TrigMuRoIHypoAlg", **kwargs)
Definition: TrigMuonHypoConfig.py:1078
debug
const bool debug
Definition: MakeUncertaintyPlots.cxx:53
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__threshold
__threshold
Definition: TrigMuonHypoConfig.py:314
TrigMuonHypoConfig.TrigmuCombHypoConfig.ConfigurationHypoTool
def ConfigurationHypoTool(self, thresholdHLT, thresholds, tight, acceptAll, domuCombTag)
Definition: TrigMuonHypoConfig.py:622
TrigMuonHypoMonitoring.TrigL2MuonOverlapRemoverMonitoringMufast
def TrigL2MuonOverlapRemoverMonitoringMufast(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:28
TrigMuonHypoMonitoring.TrigmuCombHypoMonitoring
def TrigmuCombHypoMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:55
TrigMuonHypoConfig.TrigMufastHypoToolConfig.isPassThrough
def isPassThrough(self)
Definition: TrigMuonHypoConfig.py:340
TrigMuonHypoMonitoring.TrigMuonEFIdtpInvMassHypoMonitoring
def TrigMuonEFIdtpInvMassHypoMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:144
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__doMonitoring
__doMonitoring
Definition: TrigMuonHypoConfig.py:322
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__log
__log
Definition: TrigMuonHypoConfig.py:311
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__isBarrelOnly
__isBarrelOnly
Definition: TrigMuonHypoConfig.py:318
TrigMuonHypoConfig.TrigmuCombHypoAlgCfg
def TrigmuCombHypoAlgCfg(flags, name="UNSPECIFIED", **kwargs)
Definition: TrigMuonHypoConfig.py:476
TrigMuonHypoConfig.TrigMufastHypoToolConfig.doL2MT
def doL2MT(self)
Definition: TrigMuonHypoConfig.py:355
TrigMuonHypoConfig.TrigMuonEFCombinerHypoToolFromDict
def TrigMuonEFCombinerHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:809
TrigMuonHypoMonitoring.TrigMuonEFInvMassHypoMonitoring
def TrigMuonEFInvMassHypoMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:118
TrigMuonHypoConfig.TrigMuonEFInvMassHypoCfg
def TrigMuonEFInvMassHypoCfg(flags, toolName, thresholds, **kwargs)
Definition: TrigMuonHypoConfig.py:995
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:569
TrigMuonHypoConfig.TrigMufastHypoToolConfig.setOverlapRemoval
def setOverlapRemoval(self)
Definition: TrigMuonHypoConfig.py:377
pickleTool.object
object
Definition: pickleTool.py:30
str
Definition: BTagTrackIpAccessor.cxx:11
TrigMuonHypoConfig.TrigMufastHypoToolConfig.isCalibration
def isCalibration(self)
Definition: TrigMuonHypoConfig.py:343
TrigMuonHypoMonitoring.TrigMufastHypoMonitoring
def TrigMufastHypoMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:5
TrigMuonHypoConfig.TrigmuCombHypoConfig
Definition: TrigMuonHypoConfig.py:618
TrigMuonHypoConfig.TrigMuonEFIdtpHypoAlgCfg
def TrigMuonEFIdtpHypoAlgCfg(flags, name="TrigMuonEFIdtpHypoAlg", **kwargs)
Definition: TrigMuonHypoConfig.py:1075
TrigMuonHypoConfig.TrigMufastHypoToolConfig.doOverlapRemoval
def doOverlapRemoval(self)
Definition: TrigMuonHypoConfig.py:358
TrigMuonHypoConfig.TrigMufastHypoToolConfig.useGeV_v15a
def useGeV_v15a(self)
Definition: TrigMuonHypoConfig.py:349
TrigMuonHypoConfig.TrigMufastHypoToolConfig.getThresholdValue
def getThresholdValue(self)
Definition: TrigMuonHypoConfig.py:361
TrigMuonHypoConfig.TrigMufastHypoToolConfig.__multiplicity
__multiplicity
Definition: TrigMuonHypoConfig.py:315
TrigMuonHypoMonitoring.TrigMuonEFTrackIsolationMonitoring
def TrigMuonEFTrackIsolationMonitoring(flags, histPath)
Definition: TrigMuonHypoMonitoring.py:220
TrigMuonHypoConfig.TrigMuonLateMuRoIHypoToolFromDict
def TrigMuonLateMuRoIHypoToolFromDict(flags, chainDict)
Definition: TrigMuonHypoConfig.py:1081