ATLAS Offline Software
Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 import re
4 from copy import deepcopy
5 from collections import OrderedDict as odict
6 from functools import total_ordering
7 
8 from AthenaCommon.Logging import logging
9 
10 from ..Config.TypeWideThresholdConfig import getTypeWideThresholdConfig
11 from .ThresholdType import ThrType
12 from .Limits import CaloLimits as CL
13 from .TopoAlgorithms import AlgCategory
14 
15 log = logging.getLogger(__name__)
16 
17 
19 
20  def __init__(self, flags):
21  self.thresholds = odict() # holds all thresholds
22  self.thresholdNames = set() # holds all threshold names
23  self.flags = flags
24 
25  def __iter__(self):
26  return iter(self.thresholds.values())
27 
28  def __call__(self):
29  return self.thresholds.values()
30 
31  def __iadd__(self, thr):
32  if thr is None or thr.name in self.thresholdNames:
33  return self
34  self.thresholds[thr.name] = thr
35  self.thresholdNames.add(thr.name)
36  return self
37 
38  def __contains__(self, thrname):
39  return (thrname in self.thresholdNames)
40 
41  def __len__(self):
42  return len(self.thresholds)
43 
44  def __getitem__(self, thrName):
45  if type(thrName) is not str:
46  raise TypeError("Can not access threshold by %r, it is a %s" % (thrName, type(thrName)))
47  if thrName not in self:
48  raise KeyError("Threshold %s is not in the menu" % thrName)
49  return self.thresholds[thrName]
50 
51  def __setitem__(self, thrName, thr):
52  thr.name = thrName
53  self += thr
54 
55 
56  def names(self, ttype = None):
57  if not ttype:
58  return self.thresholdsNames
59  return set([thr.name for thr in self if thr.ttype == ttype])
60 
61 
62  def typeWideThresholdConfig(self, ttype):
63  return getTypeWideThresholdConfig(ttype, self.flags.Trigger.L1.Menu.doHeavyIonTobThresholds, self.flags.Trigger.L1.Menu.doeFexBDTTau)
64 
65  def json(self):
66  confObj = odict()
67  for ttype in (ThrType.Run3Types() + ThrType.NIMTypes() + [ThrType.TOPO, ThrType.MUTOPO] + [ThrType.LArSat, ThrType.NSWMon] ):
68  confObj[ttype.name] = odict()
69  confObj[ttype.name]["type"] = ttype.name
70  confObj[ttype.name]["thresholds"] = odict()
71  for thr in self:
72  if thr.isLegacy():
73  continue
74  try:
75  confObj[thr.ttype.name]["thresholds"][thr.name] = thr.json()
76  except KeyError:
77  raise RuntimeError("Run 3 threshold %s is of unsupported type %s" % (thr.name, thr.ttype.name))
78  # add extra information to each type of threshold (e.g. isolation definition, min pt for objects, etc.)
79  for ttype in ThrType.Run3Types():
80  confObj[ttype.name].update( self.typeWideThresholdConfig(ttype) )
81  return confObj
82 
83 
84  def jsonLegacy(self):
85  confObj = odict()
86  for ttype in (ThrType.LegacyTypes() + [ThrType.R2TOPO]):
87  confObj[ttype.name] = odict()
88  confObj[ttype.name]["type"] = ttype.name
89  confObj[ttype.name]["thresholds"] = odict()
90  for thr in self:
91  if not thr.isLegacy():
92  continue
93  if thr.ttype.name in confObj:
94  confObj[thr.ttype.name]["thresholds"][thr.name] = thr.json()
95  for ttype in ThrType.LegacyTypes():
96  confObj[ttype.name].update( self.typeWideThresholdConfig(ttype) )
97  return confObj
98 
99 
100 
101 class Threshold( object ):
102  __slots__ = ['name', 'ttype', 'mapping', 'thresholdValues', 'run']
103 
104  # global variable for threshold registration, if set, new thresholds will be registered with l1configForRegistration
105  l1configForRegistration = None
106 
107  @staticmethod
108  def setMenuConfig(mc):
109  Threshold.l1configForRegistration = mc
110 
111  def __init__(self, name, ttype, mapping = -1, run = 0):
112  self.name = name
113  self.ttype = ThrType[ttype]
114  self.mapping = int(mapping)
115  self.run = int(run)
116  self.thresholdValues = []
117 
118  if Threshold.l1configForRegistration:
119  Threshold.l1configForRegistration.registerThreshold(self)
120 
121  def __str__(self):
122  return self.name
123 
124  def getVarName(self):
125  """returns a string that can be used as a varname"""
126  return self.name.replace('p','')
127 
128  def isLegacy(self):
129  return self.run == 2
130 
131  def thresholdInGeV(self):
132  if len(self.thresholdValues)==0:
133  return 0
134  else:
135  return float(self.thresholdValues[0].value)
136 
137  def json(self):
138  confObj = odict()
139  confObj["todo"] = "implement"
140  if self.ttype == ThrType.ZB:
141  confObj["seed"] = self.seed
142  confObj["seed_multi"] = self.seed_multi
143  confObj["bc_delay"] = self.mapping
144 
145 
146  return confObj
147 
148 
149 
151 
152  def __init__(self, name, ttype, mapping = -1):
153  super(LegacyThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 2)
154 
155  def addThrValue(self, value, *args, **kwargs):
156  if self.ttype == ThrType.EM or self.ttype == ThrType.TAU:
157  return self.addLegacyEMThresholdValue(value, *args, **kwargs)
158  if self.ttype == ThrType.JET:
159  return self.addLegacyJetThresholdValue(value, *args, **kwargs)
160  if self.ttype in [ThrType.JE, ThrType.TE, ThrType.XE, ThrType.XS ]:
161  return self.addLegacyEnergyThresholdValue(value, *args, **kwargs)
162  raise RuntimeError("addThrValue() not defined for threshold type %s (%s)" % (self.ttype, self.name))
163 
164  def addLegacyEMThresholdValue(self, value, *args, **kwargs):
165  # supporting both EM and TAU
166  defargs = ThresholdValue.getDefaults(self.ttype.name)
167  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'em_isolation', 'had_isolation', 'had_veto', 'priority', 'isobits', 'use_relIso'], args))
168  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
169  p = deepcopy(defargs)
170  p.update(posargs)
171  p.update(kwargs)
172  thrv = ThresholdValue( self.ttype, value,
173  etamin = p['etamin'],
174  etamax=p['etamax'],
175  phimin=p['phimin'],
176  phimax=p['phimax'],
177  priority = p['priority'],
178  name = self.name+'full')
179  thrv.setIsolation( em_isolation = p['em_isolation'],
180  had_isolation = p['had_isolation'],
181  had_veto = p['had_veto'],
182  isobits = p['isobits'],
183  use_relIso = p['use_relIso'])
184  thrv.checkOverlapAny( self.thresholdValues )
185  self.thresholdValues.append(thrv)
186  return self
187 
188  def addLegacyJetThresholdValue(self, value, *args, **kwargs):
189  defargs = ThresholdValue.getDefaults(self.ttype.name)
190  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'window', 'priority'], args))
191  p = deepcopy(defargs)
192  p.update(posargs)
193  p.update(kwargs)
194  thrv = ThresholdValue( self.ttype, value,
195  etamin=p['etamin'],
196  etamax=p['etamax'],
197  phimin=p['phimin'],
198  phimax=p['phimax'],
199  window=p['window'],
200  priority=p['priority'],
201  name=self.name+'full')
202  self.thresholdValues.append(thrv)
203  return self
204 
205  def addLegacyEnergyThresholdValue(self, value, *args, **kwargs):
206  defargs = ThresholdValue.getDefaults(self.ttype.name)
207  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
208  p = deepcopy(defargs)
209  p.update(posargs)
210  p.update(kwargs)
211  thrv = ThresholdValue( self.ttype,
212  value,
213  etamin=p['etamin'],
214  etamax=p['etamax'],
215  phimin=p['phimin'],
216  phimax=p['phimax'],
217  priority=p['priority'],
218  name=self.name+'full')
219  self.thresholdValues.append(thrv)
220  return self
221 
222  def json(self):
223  confObj = odict()
224  confObj["mapping"] = self.mapping
225  if self.ttype == ThrType.EM:
226  confObj["thrValues"] = []
227  for thrV in self.thresholdValues:
228  confObj["thrValues"].append( odict([
229  ("value", thrV.value),
230  ("isobits", thrV.isobits),
231  ("etamin", thrV.etamin),
232  ("etamax", thrV.etamax),
233  ("phimin", thrV.phimin),
234  ("phimax", thrV.phimax),
235  ("priority", thrV.priority)
236  ]) )
237  elif self.ttype == ThrType.TAU:
238  confObj["isobits"] = self.thresholdValues[0].isobits
239  confObj["thrValues"] = []
240  for thrV in self.thresholdValues:
241  confObj["thrValues"].append( odict([
242  ("value", thrV.value),
243  ("etamin", thrV.etamin),
244  ("etamax", thrV.etamax),
245  ("phimin", thrV.phimin),
246  ("phimax", thrV.phimax),
247  ("priority", thrV.priority)
248  ]) )
249  elif self.ttype == ThrType.JET:
250  confObj["thrValues"] = []
251  for thrV in self.thresholdValues:
252  confObj["thrValues"].append( odict([
253  ("value", thrV.value),
254  ("etamin", thrV.etamin),
255  ("etamax", thrV.etamax),
256  ("phimin", thrV.phimin),
257  ("phimax", thrV.phimax),
258  ("window", thrV.window),
259  ("priority", thrV.priority)
260  ]) )
261  elif self.ttype == ThrType.TE:
262  if len(self.thresholdValues)==1:
263  confObj["value"] = self.thresholdValues[0].value
264  else:
265  confObj["thrValues"] = []
266  for thrV in self.thresholdValues:
267  confObj["thrValues"].append( odict([
268  ("value", thrV.value),
269  ("etamin", thrV.etamin),
270  ("etamax", thrV.etamax),
271  ("priority", thrV.priority)
272  ]) )
273  elif self.ttype == ThrType.XE:
274  if len(self.thresholdValues)==1:
275  confObj["value"] = self.thresholdValues[0].value
276  else:
277  confObj["thrValues"] = []
278  for thrV in self.thresholdValues:
279  confObj["thrValues"].append( odict([
280  ("value", thrV.value),
281  ("etamin", thrV.etamin),
282  ("etamax", thrV.etamax),
283  ("priority", thrV.priority)
284  ]) )
285  elif self.ttype == ThrType.XS:
286  confObj["value"] = self.thresholdValues[0].value
287  else:
288  raise RuntimeError("No json implementation for legacy threshold type %s" % self.ttype)
289  return confObj
290 
291 
292 
294 
295  def __init__(self, name, ttype = 'eEM', mapping = -1):
296  super(eEMThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='eEM' else 2)
297  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[VHILMT]*)",name).groupdict()
298  self.suffix = mres["suffix"]
299  self.rhad = "None"
300  self.reta = "None"
301  self.wstot = "None"
302 
303  def isV(self):
304  return 'V' in self.suffix
305 
306  def isI(self):
307  return 'I' in self.suffix
308 
309  def isL(self):
310  return 'L' in self.suffix
311 
312  def isM(self):
313  return 'M' in self.suffix
314 
315  def setIsolation(self, rhad = "None", reta = "None", wstot = "None"):
316  allowed = [ "None", "Loose", "Medium", "Tight" ]
317  if rhad not in allowed:
318  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for rhad, must be one of %s", self.name, self.ttype, rhad, ', '.join(allowed) )
319  if reta not in allowed:
320  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for reta, must be one of %s", self.name, self.ttype, reta, ', '.join(allowed) )
321  if wstot not in allowed:
322  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for wstot, must be one of %s", self.name, self.ttype, wstot, ', '.join(allowed) )
323  self.rhad = rhad
324  self.reta = reta
325  self.wstot = wstot
326  return self
327 
328  def addThrValue(self, value, *args, **kwargs):
329  # supporting both EM and TAU
330  defargs = ThresholdValue.getDefaults(self.ttype.name)
331  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
332 
333  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
334  p = deepcopy(defargs)
335  p.update(posargs)
336  p.update(kwargs)
337 
338  thrv = ThresholdValue(self.ttype, value,
339  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
340  priority = p['priority'], name = self.name+'full')
341  if len(self.thresholdValues):
342  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
343  self.thresholdValues.append(thrv)
344  return self
345 
346  def json(self):
347  confObj = odict()
348  confObj["mapping"] = self.mapping
349  confObj["rhad"] = self.rhad
350  confObj["reta"] = self.reta
351  confObj["wstot"] = self.wstot
352  confObj["thrValues"] = []
353  for thrV in self.thresholdValues:
354  tvco = odict()
355  tvco["value"] = thrV.value
356  tvco["etamin"] = thrV.etamin
357  tvco["etamax"] = thrV.etamax
358  tvco["priority"] = thrV.priority
359  confObj["thrValues"].append( tvco )
360  return confObj
361 
363 
364  def __init__(self, name, ttype = 'eEM', mapping = -1):
365  super(eEMVarThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='eEM' else 2)
366  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[VHILMT]*)",name).groupdict()
367  self.suffix = mres["suffix"]
368  self.rhad = "None"
369  self.reta = "None"
370  self.wstot = "None"
371 
372  def isV(self):
373  return 'V' in self.suffix
374 
375  def isI(self):
376  return 'I' in self.suffix
377 
378  def isL(self):
379  return 'L' in self.suffix
380 
381  def isM(self):
382  return 'M' in self.suffix
383 
384  def setIsolation(self, rhad = "None", reta = "None", wstot = "None"):
385  allowed = [ "None", "Loose", "Medium", "Tight" ]
386  if rhad not in allowed:
387  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for rhad, must be one of %s", self.name, self.ttype, rhad, ', '.join(allowed) )
388  if reta not in allowed:
389  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for reta, must be one of %s", self.name, self.ttype, reta, ', '.join(allowed) )
390  if wstot not in allowed:
391  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for wstot, must be one of %s", self.name, self.ttype, wstot, ', '.join(allowed) )
392  self.rhad = rhad
393  self.reta = reta
394  self.wstot = wstot
395  return self
396 
397  def addThrValue(self, value, *args, **kwargs):
398  # supporting both EM and TAU
399  defargs = ThresholdValue.getDefaults(self.ttype.name)
400  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
401 
402  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
403  p = deepcopy(defargs)
404  p.update(posargs)
405  p.update(kwargs)
406 
407  thrv = ThresholdValue(self.ttype, value,
408  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
409  priority = p['priority'], name = self.name+'full')
410 
411  self.thresholdValues.append(thrv)
412  return self
413 
414  def json(self):
415  confObj = odict()
416  confObj["mapping"] = self.mapping
417  confObj["rhad"] = self.rhad
418  confObj["reta"] = self.reta
419  confObj["wstot"] = self.wstot
420  confObj["thrValues"] = []
421  for thrV in self.thresholdValues:
422  tvco = odict()
423  tvco["value"] = thrV.value
424  tvco["etamin"] = thrV.etamin
425  tvco["etamax"] = thrV.etamax
426  tvco["priority"] = thrV.priority
427  confObj["thrValues"].append( tvco )
428  return confObj
429 
430 
432 
433  def __init__(self, name, ttype = 'jEM', mapping = -1):
434  super(jEMThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='jEM' else 2)
435  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[VHILMT]*)",name).groupdict()
436  self.suffix = mres["suffix"]
437  self.iso = "None"
438  self.frac = "None"
439  self.frac2 = "None"
440 
441  def isV(self):
442  return 'V' in self.suffix
443 
444  def isI(self):
445  return 'I' in self.suffix
446 
447  def isL(self):
448  return 'L' in self.suffix
449 
450  def isM(self):
451  return 'M' in self.suffix
452 
453  def setIsolation(self, iso = "None", frac = "None", frac2 = "None"):
454  allowed = [ "None", "Loose", "Medium", "Tight" ]
455  if iso not in allowed:
456  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for iso, must be one of %s", self.name, self.ttype, iso, ', '.join(allowed) )
457  if frac not in allowed:
458  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for frac, must be one of %s", self.name, self.ttype, frac, ', '.join(allowed) )
459  if frac2 not in allowed:
460  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for frac2, must be one of %s", self.name, self.ttype, frac2, ', '.join(allowed) )
461  self.iso = iso
462  self.frac = frac
463  self.frac2 = frac2
464  return self
465 
466  def addThrValue(self, value, *args, **kwargs):
467  # supporting both EM and TAU
468  defargs = ThresholdValue.getDefaults(self.ttype.name)
469  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
470 
471  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
472  p = deepcopy(defargs)
473  p.update(posargs)
474  p.update(kwargs)
475 
476  thrv = ThresholdValue(self.ttype, value,
477  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
478  priority = p['priority'], name = self.name+'full')
479  if len(self.thresholdValues):
480  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
481  self.thresholdValues.append(thrv)
482  return self
483 
484  def json(self):
485  confObj = odict()
486  confObj["mapping"] = self.mapping
487  confObj["iso"] = self.iso
488  confObj["frac"] = self.frac
489  confObj["frac2"] = self.frac2
490  confObj["thrValues"] = []
491  for thrV in self.thresholdValues:
492  tvco = odict()
493  tvco["value"] = thrV.value
494  tvco["etamin"] = thrV.etamin
495  tvco["etamax"] = thrV.etamax
496  tvco["priority"] = thrV.priority
497  confObj["thrValues"].append( tvco )
498  return confObj
499 
500 
502 
503  def __init__(self, name, run = 3, tgcFlags = "", mapping = -1):
504  super(MuonThreshold,self).__init__(name = name, ttype = 'MU', mapping = mapping, run = run)
505  self.thr = None
506  self.baThr = None
507  self.ecThr = None
508  self.fwThr = None
509  self.thrIdx = None
510  self.baIdx = None
511  self.ecIdx = None
512  self.fwIdx = None
513  self.tgcFlags = ""
514  self.rpcFlags = ""
515  self.region = "ALL"
516  self.rpcExclROIList = None
517 
518  def setRegion(self,det):
519  """@det can be any combination of 'BA','EC',FW' or can be 'ALL' (case doesn't matter)"""
520  tmp = set([x.strip() for x in det.split(',')])
521  for x in tmp:
522  if not x.upper() in ['BA','EC','FW','ALL']:
523  raise RuntimeError("Unknown detector specification %s for muon threshold %s" % (x, self.name))
524  tmp = sorted([x.upper() for x in tmp])
525  if 'ALL' in tmp:
526  tmp = ['ALL']
527  self.region = ','.join(tmp)
528  return self
529 
530  def setTGCFlags(self, flags):
531  """flags can be a logical expression like 'F & C | F & H | C & H'"""
532  self.tgcFlags = flags
533  return self
534 
535  def setRPCFlags(self, flags):
536  """flags can be a logical expression like 'M'"""
537  self.rpcFlags = flags
538  return self
539 
540 
541  def setExclusionList(self, exclusionList):
542  self.rpcExclROIList = exclusionList
543  return self
544 
545  def setThrValue(self, thr = None, ba = None, ec = None, fw = None):
546  """
547  pT parameters thr, ba, ec, fw are in GeV
548  Specifying thr sets all: ba, ec, and fw to that value
549  ba, ec, fw can then be used to overwrite it for a certain region
550  """
551  self.thr = thr
552  self.baThr = thr
553  self.ecThr = thr
554  self.fwThr = thr
555  if ba is not None:
556  self.baThr = ba
557  if ec is not None:
558  self.ecThr = ec
559  if fw is not None:
560  self.fwThr = fw
561  if self.baThr is None or self.ecThr is None or self.fwThr is None:
562  raise RuntimeError("In muon threshold %s setThrValue() at least one region is unspecified" % self.name)
563 
564  # set the threshold index from the pT value
565  muonRoads = getTypeWideThresholdConfig(ThrType.MU)["roads"]
566  try:
567  self.baIdx = muonRoads["rpc"][self.baThr]
568  except KeyError as ex:
569  log.error("Muon PT threshold %i does not have a defined road in the barrel", self.baThr)
570  log.error("Only these barrel roads are define (in L1/Config/TypeWideThresholdConfig.py): %s", ', '.join(['%i'%x for x in muonRoads["rpc"]]))
571  raise ex
572 
573  try:
574  self.ecIdx = muonRoads["tgc"][self.ecThr]
575  except KeyError as ex:
576  log.error("Muon PT threshold %i does not have a defined road in the endcap", self.ecThr)
577  log.error("Only these endcaps roads are define (in L1/Config/TypeWideThresholdConfig.py): %s", ', '.join(['%i'%x for x in muonRoads["tgc"]]))
578  raise ex
579 
580  try:
581  self.fwIdx = muonRoads["tgc"][self.fwThr]
582  except KeyError as ex:
583  log.error("Muon PT threshold %i does not have a defined road in the endcap", self.ecThr)
584  log.error("Only these endcaps roads are define (in L1/Config/TypeWideThresholdConfig.py): %s", ', '.join(['%i'%x for x in muonRoads["tgc"]]))
585  raise ex
586 
587  return self
588 
589 
590  def json(self):
591  confObj = odict()
592  confObj["mapping"] = self.mapping
593  if self.isLegacy():
594  confObj["thr"] = self.thr
595  else:
596  confObj["baThr"] = self.baThr
597  confObj["ecThr"] = self.ecThr
598  confObj["fwThr"] = self.fwThr
599  confObj["baIdx"] = self.baIdx
600  confObj["ecIdx"] = self.ecIdx
601  confObj["fwIdx"] = self.fwIdx
602  confObj["tgcFlags"] = self.tgcFlags
603  confObj["rpcFlags"] = self.rpcFlags
604  confObj["region"] = self.region
605  if self.rpcExclROIList:
606  confObj["rpcExclROIList"] = self.rpcExclROIList
607  return confObj
608 
610 
611  def __init__(self, name, mapping = -1):
612  super(NSWMonThreshold,self).__init__(name = name, ttype = ThrType.NSWMon, mapping=mapping, run = 3)
613  self.thresholdValues = [ThresholdValue(thrtype=self.ttype,value=0,**ThresholdValue.getDefaults(self.ttype))]
614 
615  def json(self):
616  confObj = odict()
617  confObj["mapping"] = self.mapping
618  return confObj
619 
620 
622 
623  def __init__(self, name, ttype = 'eTAU', mapping = -1):
624  super(eTauThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='eTAU' else 2)
625  self.et = None
626  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMTH]*)",name).groupdict()
627  self.suffix = mres["suffix"]
628  self.rCore = "None"
629  self.rHad = "None"
630 
631  def isL(self):
632  return 'L' in self.suffix
633 
634  def isM(self):
635  return 'M' in self.suffix
636 
637  def isT(self):
638  return 'T' in self.suffix
639 
640  def isH(self):
641  return 'H' in self.suffix
642 
643  def setEt(self, et):
644  self.et = et
645  self.addThrValue(et)
646  return self
647 
648  def addThrValue(self, value, *args, **kwargs):
649  # supporting both EM and TAU
650  defargs = ThresholdValue.getDefaults(self.ttype.name)
651  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
652 
653  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
654  p = deepcopy(defargs)
655  p.update(posargs)
656  p.update(kwargs)
657 
658  thrv = ThresholdValue(self.ttype, value,
659  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
660  priority = p['priority'], name = self.name+'full')
661  if len(self.thresholdValues):
662  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
663  self.thresholdValues.append(thrv)
664  return self
665 
666  def setIsolation(self, rCore = "None", rHad = "None"):
667  allowed_rCore = [ "None", "Loose", "Medium", "Tight" ]
668  allowed_rHad = [ "None", "Loose", "Medium", "Tight"]
669  if rCore not in allowed_rCore:
670  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for rCore, must be one of %s", self.name, self.ttype, rCore, ', '.join(allowed_rCore) )
671  if rHad not in allowed_rHad:
672  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for rHad, must be one of %s", self.name, self.ttype, rHad, ', '.join(allowed_rHad) )
673  self.rHad = rHad
674  self.rCore = rCore
675  return self
676 
677  def json(self):
678  confObj = odict()
679  confObj["mapping"] = self.mapping
680  confObj["rCore"] = self.rCore
681  confObj["rHad"] = self.rHad
682  confObj["thrValues"] = []
683  for thrV in self.thresholdValues:
684  confObj["thrValues"].append( odict([
685  ("value", thrV.value),
686  ("etamin", thrV.etamin),
687  ("etamax", thrV.etamax),
688  ("phimin", thrV.phimin),
689  ("phimax", thrV.phimax),
690  ("priority", thrV.priority)
691  ]) )
692  return confObj
693 
695 
696  def __init__(self, name, ttype = 'jTAU', mapping = -1):
697  super(jTauThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='jTAU' else 2)
698  self.et = None
699  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMT]*)",name).groupdict()
700  self.suffix = mres["suffix"]
701  self.isolation = "None"
702 
703  def isL(self):
704  return 'L' in self.suffix
705 
706  def isM(self):
707  return 'M' in self.suffix
708 
709  def isT(self):
710  return 'T' in self.suffix
711 
712  def setEt(self, et):
713  self.et = et
714  self.addThrValue(et)
715  return self
716 
717  def addThrValue(self, value, *args, **kwargs):
718  # supporting both EM and TAU
719  defargs = ThresholdValue.getDefaults(self.ttype.name)
720  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
721 
722  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
723  p = deepcopy(defargs)
724  p.update(posargs)
725  p.update(kwargs)
726 
727  thrv = ThresholdValue(self.ttype, value,
728  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
729  priority = p['priority'], name = self.name+'full')
730  if len(self.thresholdValues):
731  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
732  self.thresholdValues.append(thrv)
733  return self
734 
735  def setIsolation(self, isolation = "None"):
736  allowed = [ "None", "Loose", "Medium", "Tight" ]
737  if isolation not in allowed:
738  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for isolation, must be one of %s", self.name, self.ttype, isolation, ', '.join(allowed) )
739  self.isolation = isolation
740  return self
741 
742  def json(self):
743  confObj = odict()
744  confObj["mapping"] = self.mapping
745  confObj["isolation"] = self.isolation
746  confObj["thrValues"] = []
747  for thrV in self.thresholdValues:
748  confObj["thrValues"].append( odict([
749  ("value", thrV.value),
750  ("etamin", thrV.etamin),
751  ("etamax", thrV.etamax),
752  ("phimin", thrV.phimin),
753  ("phimax", thrV.phimax),
754  ("priority", thrV.priority)
755  ]) )
756  return confObj
757 
759 
760  def __init__(self, name, ttype = 'cTAU', mapping = -1):
761  super(cTauThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='cTAU' else 2)
762  self.et = None
763  mres = re.match("(?P<type>[A-z]*)[0-9]*(?P<suffix>[LMT]*)",name).groupdict()
764  self.suffix = mres["suffix"]
765  self.isolation = "None"
766 
767  def isL(self):
768  return 'L' in self.suffix
769 
770  def isM(self):
771  return 'M' in self.suffix
772 
773  def isT(self):
774  return 'T' in self.suffix
775 
776  def setEt(self, et):
777  self.et = et
778  self.addThrValue(et)
779  return self
780 
781  def addThrValue(self, value, *args, **kwargs):
782  # supporting both EM and TAU
783  defargs = ThresholdValue.getDefaults(self.ttype.name)
784  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
785 
786  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
787  p = deepcopy(defargs)
788  p.update(posargs)
789  p.update(kwargs)
790 
791  thrv = ThresholdValue(self.ttype, value,
792  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
793  priority = p['priority'], name = self.name+'full')
794  if len(self.thresholdValues):
795  raise RuntimeError("Threshold %s of type %s cannot have multiple Et cuts" % ( self.name, self.ttype ) )
796  self.thresholdValues.append(thrv)
797  return self
798 
799  def setIsolation(self, isolation = "None"):
800  allowed = [ "None", "Loose", "Medium", "Tight", "Loose12", "Loose20", "Loose30", "Loose35", "Medium12", "Medium20", "Medium30", "Medium35", "Tight12", "Tight20", "Tight30", "Tight35"]
801  if isolation not in allowed:
802  raise RuntimeError("Threshold %s of type %s: isolation wp %s not allowed for isolation, must be one of %s", self.name, self.ttype, isolation, ', '.join(allowed) )
803  self.isolation = isolation
804  return self
805 
806  def json(self):
807  confObj = odict()
808  confObj["mapping"] = self.mapping
809  confObj["isolation"] = self.isolation
810  confObj["thrValues"] = []
811  for thrV in self.thresholdValues:
812  confObj["thrValues"].append( odict([
813  ("value", thrV.value),
814  ("etamin", thrV.etamin),
815  ("etamax", thrV.etamax),
816  ("phimin", thrV.phimin),
817  ("phimax", thrV.phimax),
818  ("priority", thrV.priority)
819  ]) )
820  return confObj
821 
823 
824  def __init__(self, name, ttype = 'jJ', mapping = -1):
825  super(jJetThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='jJ' else 2)
826 
827  def addThrValue(self, value, *args, **kwargs):
828  defargs = ThresholdValue.getDefaults(self.ttype.name)
829  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
830 
831  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
832  p = deepcopy(defargs)
833  p.update(posargs)
834  p.update(kwargs)
835 
836  thrv = ThresholdValue(self.ttype, value,
837  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
838  priority = p['priority'], name = self.name+'full')
839 
840  self.thresholdValues.append(thrv)
841  return self
842 
843  def json(self):
844  confObj = odict()
845  confObj["mapping"] = self.mapping
846  confObj["thrValues"] = []
847  for thrV in self.thresholdValues:
848  tvco = odict()
849  tvco["value"] = thrV.value
850  tvco["etamin"] = thrV.etamin
851  tvco["etamax"] = thrV.etamax
852  tvco["priority"] = thrV.priority
853  confObj["thrValues"].append( tvco )
854  return confObj
855 
856 
858 
859  def __init__(self, name, ttype = 'jLJ', mapping = -1):
860  super(jLJetThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='jLJ' else 2)
861 
862  def addThrValue(self, value, *args, **kwargs):
863  defargs = ThresholdValue.getDefaults(self.ttype.name)
864  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
865 
866  # then we evaluate the arguments: first defaults, then positional arguments, then named arguments
867  p = deepcopy(defargs)
868  p.update(posargs)
869  p.update(kwargs)
870 
871  thrv = ThresholdValue(self.ttype, value,
872  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
873  priority = p['priority'], name = self.name+'full')
874 
875  self.thresholdValues.append(thrv)
876  return self
877 
878  def json(self):
879  confObj = odict()
880  confObj["mapping"] = self.mapping
881  confObj["thrValues"] = []
882  for thrV in self.thresholdValues:
883  tvco = odict()
884  tvco["value"] = thrV.value
885  tvco["etamin"] = thrV.etamin
886  tvco["etamax"] = thrV.etamax
887  tvco["priority"] = thrV.priority
888  confObj["thrValues"].append( tvco )
889  return confObj
890 
892 
893  def __init__(self, name, ttype = 'gJ', mapping = -1):
894  super(gJetThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='gJ' else 2)
895 
896  def addThrValue(self, value, *args, **kwargs):
897  defargs = ThresholdValue.getDefaults(self.ttype.name)
898  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
899 
900  p = deepcopy(defargs)
901  p.update(posargs)
902  p.update(kwargs)
903 
904  thrv = ThresholdValue(self.ttype, value,
905  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
906  priority = p['priority'], name = self.name+'full')
907 
908  self.thresholdValues.append(thrv)
909  return self
910 
911  def json(self):
912  confObj = odict()
913  confObj["mapping"] = self.mapping
914  confObj["thrValues"] = []
915  for thrV in self.thresholdValues:
916  tvco = odict()
917  tvco["value"] = thrV.value
918  tvco["etamin"] = thrV.etamin
919  tvco["etamax"] = thrV.etamax
920  tvco["priority"] = thrV.priority
921  confObj["thrValues"].append( tvco )
922  return confObj
923 
924 
926 
927  def __init__(self, name, ttype = 'gLJ', mapping = -1):
928  super(gLJetThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype=='gLJ' else 2)
929 
930  def addThrValue(self, value, *args, **kwargs):
931  defargs = ThresholdValue.getDefaults(self.ttype.name)
932  posargs = dict(zip(['etamin', 'etamax', 'phimin', 'phimax', 'priority'], args))
933 
934  p = deepcopy(defargs)
935  p.update(posargs)
936  p.update(kwargs)
937 
938  thrv = ThresholdValue(self.ttype, value,
939  etamin = p['etamin'], etamax=p['etamax'], phimin=p['phimin'], phimax=p['phimax'],
940  priority = p['priority'], name = self.name+'full')
941 
942  self.thresholdValues.append(thrv)
943  return self
944 
945  def json(self):
946  confObj = odict()
947  confObj["mapping"] = self.mapping
948  confObj["thrValues"] = []
949  for thrV in self.thresholdValues:
950  tvco = odict()
951  tvco["value"] = thrV.value
952  tvco["etamin"] = thrV.etamin
953  tvco["etamax"] = thrV.etamax
954  tvco["priority"] = thrV.priority
955  confObj["thrValues"].append( tvco )
956  return confObj
957 
958 
960 
961  def __init__(self, name, ttype, mapping = -1):
962  super(XEThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype.startswith('gXE') or ttype.startswith('gMHT') or ttype.startswith('jXE') else 2)
963  self.xe = None
964 
965  def setXE(self, xe):
966  """xe value in GeV"""
967  self.xe = xe
968  return self
969 
970  def json(self):
971  confObj = odict()
972  confObj["value"] = self.xe
973  confObj["mapping"] = self.mapping
974  return confObj
975 
976 
978 
979  def __init__(self, name, mapping = -1):
980  super(LArSaturationThreshold,self).__init__(name = name, ttype = ThrType.LArSat, mapping=mapping, run = 3)
981  self.thresholdValues = [ThresholdValue(thrtype=self.ttype,value=0,**ThresholdValue.getDefaults(self.ttype))]
982 
983  def json(self):
984  confObj = odict()
985  confObj["mapping"] = self.mapping
986  return confObj
987 
989 
990  def __init__(self, name, mapping = -1):
991  super(ZeroBiasThresholdTopo,self).__init__(name = name, ttype = ThrType.ZBTopo, mapping = mapping, run = 3)
992  self.mask0 = 0
993  self.mask1 = 0
994  self.mask2 = 0
995  self.mask3 = 0
996  self.mask4 = 0
997  self.mask5 = 0
998 
999  self.bcdelay = 0
1000 
1001  def setSeedThreshold(self, seed=[], seed_multi = 1, bcdelay = 3564 ):
1002  self.mask0 = seed[0]
1003  self.mask1 = seed[1]
1004  self.mask2 = seed[2]
1005  self.mask3 = seed[3]
1006  self.mask4 = seed[4]
1007  self.mask5 = seed[5]
1008  self.bcdelay = int(bcdelay)
1009 
1010 
1011  def json(self):
1012  confObj = odict()
1013  confObj["mapping" ] = self.mapping
1014  confObj["delay"] = self.bcdelay
1015  confObj["mask0"] = self.mask0
1016  confObj["mask1"] = self.mask1
1017  confObj["mask2"] = self.mask2
1018  confObj["mask3"] = self.mask3
1019  confObj["mask4"] = self.mask4
1020  confObj["mask5"] = self.mask5
1021 
1022  return confObj
1023 
1024 
1025 
1027 
1028  def __init__(self, name, ttype, mapping = -1):
1029  super(TEThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3 if ttype.startswith('gTE') or ttype.startswith('jTE') else 2)
1030  self.xe = None
1031 
1032  def setTE(self, xe):
1033  """te value in GeV"""
1034  self.xe = xe
1035  return self
1036 
1037  def json(self):
1038  confObj = odict()
1039  confObj["value"] = self.xe
1040  confObj["mapping"] = self.mapping
1041  return confObj
1042 
1044 
1045  def __init__(self, name, ttype, mapping = -1):
1046  super(NimThreshold,self).__init__(name = name, ttype = ttype, mapping = mapping, run = 3)
1047 
1048  def json(self):
1049  confObj = odict()
1050  confObj["mapping"] = self.mapping
1051  return confObj
1052 
1053 
1055 
1056  def __init__(self, name, mapping = -1):
1057  super(MBTSSIThreshold,self).__init__(name = name, ttype = 'MBTSSI', mapping = mapping, run = 3)
1058  self.voltage = None
1059 
1060  def setVoltage(self, voltage):
1061  self.voltage = voltage
1062 
1063  def json(self):
1064  confObj = odict()
1065  confObj["mapping"] = self.mapping
1066  confObj["voltage"] = self.voltage
1067  return confObj
1068 
1069 
1071 
1072  def __init__(self, name, mapping = -1):
1073  super(MBTSThreshold,self).__init__(name = name, ttype = 'MBTS', mapping = mapping, run = 3)
1074  self.sectors = []
1075 
1076  def addSector(self, mbtsSector):
1077  self.sectors += [ mbtsSector.name ]
1078 
1079  def json(self):
1080  confObj = odict()
1081  confObj["mapping"] = self.mapping
1082  confObj["sectors"] = self.sectors
1083  return confObj
1084 
1085 
1086 
1088 
1089  __slots__ = [ 'seed','seed_ttype', 'seed_multi', 'bcdelay' ]
1090 
1091  def __init__(self, name, mapping = -1):
1092  super(ZeroBiasThreshold,self).__init__(name = name, ttype = 'ZB', mapping = mapping, run = 2)
1093  self.seed = ''
1094  self.seed_ttype = ''
1095  self.seed_multi = 0
1096  self.bcdelay = 0
1097 
1098  def setSeedThreshold(self, seed='', seed_multi = 1, bcdelay = 3564 ):
1099  self.seed = seed
1100  self.seed_multi = int(seed_multi)
1101  self.bcdelay = int(bcdelay)
1102 
1103 
1104  def json(self):
1105  confObj = odict()
1106  confObj["mapping" ] = self.mapping
1107  confObj["seed"] = self.seed
1108  confObj["seedMultiplicity"] = self.seed_multi
1109  confObj["seedBcdelay"] = self.bcdelay
1110  return confObj
1111 
1112 
1113 
1114 @total_ordering
1116 
1117  defaultThresholdValues = {}
1118 
1119  @staticmethod
1120  def setDefaults(ttype, dic):
1121  ThresholdValue.defaultThresholdValues[ttype] = dic
1122 
1123  @staticmethod
1124  def getDefaults(ttype):
1125  defaults = {
1126  'etamin' : -49,
1127  'etamax' : 49,
1128  'phimin' : 0,
1129  'phimax' : 64,
1130  'priority': 0,
1131  }
1132  if ttype == 'EM' or ttype == 'TAU':
1133  defaults.update({'priority': 1,
1134  'em_isolation' : CL.IsolationOff,
1135  'had_isolation' : CL.IsolationOff,
1136  'had_veto' : CL.IsolationOff,
1137  'isobits' : '00000',
1138  'use_relIso' : False,
1139  })
1140  if ttype == 'JET':
1141  defaults.update({'window': 8})
1142 
1143  if ttype in ThresholdValue.defaultThresholdValues: # user defined
1144  defaults.update( ThresholdValue.defaultThresholdValues[ttype] )
1145 
1146  return defaults
1147 
1148  def __init__(self, thrtype, value, etamin, etamax, phimin, phimax, window=0, priority=1, name=''):
1149  self.name = name
1150  self.type = thrtype
1151  self.value = value
1152  self.etamin = etamin
1153  self.etamax = etamax
1154  self.phimin = phimin
1155  self.phimax = phimax
1156  self.em_isolation = CL.IsolationOff
1157  self.had_isolation = CL.IsolationOff
1158  self.had_veto = CL.IsolationOff
1159  self.window = window
1160  self.priority = priority
1161 
1162  def checkOverlapAny(self, listOfThrValues):
1163  for rv in listOfThrValues:
1164  if rv.priority != self.priority:
1165  continue
1166  if (self.etamax > rv.etamin) and (self.etamin < rv.etamax):
1167  # overlaps with existing range of the same priority
1168  raise RuntimeError( "ThresholdValue %s: Range eta %i - %i (priority %i) overlaps with existing range of the same priority" % \
1169  (self.name, self.etamin, self.etamax, self.priority) )
1170 
1171  def setIsolation(self, em_isolation, had_isolation, had_veto, isobits, use_relIso):
1172  self.em_isolation = em_isolation
1173  self.had_isolation = had_isolation
1174  self.had_veto = had_veto
1175  self.isobits = isobits
1176  self.use_relIso = use_relIso
1177  if self.use_relIso:
1178  self.had_veto=99
1179 
1180  def __lt__(self, o):
1181  if(self.priority!=o.priority):
1182  return self.priority < o.priority
1183  if(self.etamin!=o.etamin):
1184  return self.etamin < o.etamin
1185  return self.name < o.name
1186 
1187  def __eq__(self, o):
1188  return (self.priority == o.priority) and \
1189  (self.etamin == o.etamin) and \
1190  (self.name == o.name)
1191 
1192  def __str__(self):
1193  return "name=%s, value=%s, eta=(%s-%s)" % (self.name, self.value, self.etamin, self.etamax)
1194 
1195 
1197  """Class representing a direct input cable to the CTPCORE
1198 
1199  In the menu it is treated like a threshold, only the naming
1200  convention is less strict (allows"-" and can start with a number)
1201  """
1202 
1203  import re
1204  multibitPattern = re.compile(r"(?P<line>.*)\[(?P<bit>\d+)\]")
1205 
1206  def __init__(self, name, algCategory, mapping = None):
1207  """
1208  @param category of type AlgCategory
1209  """
1210  if ',' in name:
1211  raise RuntimeError("%s is not a valid topo output name, it should not contain a ','" % name)
1212  self.algCategory = algCategory
1213  super(TopoThreshold,self).__init__(name = name, ttype = algCategory.key, run = 2 if algCategory==AlgCategory.LEGACY else 3)
1214  if algCategory not in AlgCategory.getAllCategories():
1215  raise RuntimeError("%r is not a valid topo category" % algCategory)
1216 
1217 
1218 
1219  def getVarName(self):
1220  """returns a string that can be used as a varname"""
1221  return self.name.replace('.','').replace('-','_') # we can not have '.' or '-' in the variable name
1222 
1223  def json(self):
1224  confObj = odict()
1225  confObj["mapping"] = self.mapping
1226  return confObj
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.__init__
def __init__(self, name, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:990
python.L1.Base.Thresholds.Threshold.isLegacy
def isLegacy(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:128
python.L1.Base.Thresholds.Threshold.name
name
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:112
python.L1.Base.Thresholds.eEMThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:328
python.L1.Base.Thresholds.ZeroBiasThreshold.bcdelay
bcdelay
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1096
python.L1.Base.Thresholds.gJetThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:911
python.L1.Base.Thresholds.jEMThreshold.isV
def isV(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:441
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
python.L1.Base.Thresholds.jEMThreshold.__init__
def __init__(self, name, ttype='jEM', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:433
python.L1.Base.Thresholds.MenuThresholdsCollection.__init__
def __init__(self, flags)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:20
python.L1.Base.Thresholds.eEMThreshold.isV
def isV(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:303
python.L1.Base.Thresholds.eEMThreshold.isL
def isL(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:309
python.L1.Base.Thresholds.eTauThreshold.et
et
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:625
python.L1.Base.Thresholds.jEMThreshold.isM
def isM(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:450
python.L1.Base.Thresholds.LegacyThreshold.addLegacyEMThresholdValue
def addLegacyEMThresholdValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:164
python.L1.Base.Thresholds.jJetThreshold.__init__
def __init__(self, name, ttype='jJ', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:824
python.L1.Config.TypeWideThresholdConfig.getTypeWideThresholdConfig
def getTypeWideThresholdConfig(ttype, do_HI_tob_thresholds=False, do_eFex_BDT_Tau=True)
Definition: TypeWideThresholdConfig.py:102
python.L1.Base.Thresholds.MuonThreshold.rpcExclROIList
rpcExclROIList
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:516
python.L1.Base.Thresholds.MuonThreshold.thr
thr
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:505
python.L1.Base.Thresholds.TopoThreshold.getVarName
def getVarName(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1219
python.L1.Base.Thresholds.jEMThreshold.isI
def isI(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:444
python.L1.Base.Thresholds.jTauThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:742
python.L1.Base.Thresholds.jLJetThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:862
python.L1.Base.Thresholds.XEThreshold.xe
xe
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:963
python.L1.Base.Thresholds.LArSaturationThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:977
python.L1.Base.Thresholds.MBTSThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1070
python.L1.Base.Thresholds.Threshold.setMenuConfig
def setMenuConfig(mc)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:108
python.L1.Base.Thresholds.jEMThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:431
python.L1.Base.Thresholds.jTauThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:694
python.L1.Base.Thresholds.XEThreshold.setXE
def setXE(self, xe)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:965
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1011
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.L1.Base.Thresholds.eEMVarThreshold.isI
def isI(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:375
python.L1.Base.Thresholds.ThresholdValue.type
type
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1150
python.L1.Base.Thresholds.LArSaturationThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:983
python.L1.Base.Thresholds.LegacyThreshold.addLegacyJetThresholdValue
def addLegacyJetThresholdValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:188
python.L1.Base.Thresholds.eTauThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:648
python.L1.Base.Thresholds.TopoThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1196
python.L1.Base.Thresholds.Threshold.__init__
def __init__(self, name, ttype, mapping=-1, run=0)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:111
python.L1.Base.Thresholds.eTauThreshold.isH
def isH(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:640
python.L1.Base.Thresholds.eTauThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:621
python.L1.Base.Thresholds.jLJetThreshold.__init__
def __init__(self, name, ttype='jLJ', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:859
python.L1.Base.Thresholds.Threshold.__str__
def __str__(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:121
python.L1.Base.Thresholds.gLJetThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:930
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.bcdelay
bcdelay
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:999
python.L1.Base.Thresholds.cTauThreshold.isM
def isM(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:770
python.L1.Base.Thresholds.ThresholdValue.__str__
def __str__(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1192
python.L1.Base.Thresholds.eEMThreshold.rhad
rhad
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:299
python.L1.Base.Thresholds.MuonThreshold.baThr
baThr
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:506
python.L1.Base.Thresholds.XEThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:970
python.L1.Base.Thresholds.Threshold.getVarName
def getVarName(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:124
python.L1.Base.Thresholds.jEMThreshold.iso
iso
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:437
python.L1.Base.Thresholds.eEMVarThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:397
python.L1.Base.Thresholds.TEThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1026
python.L1.Base.Thresholds.gLJetThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:945
python.L1.Base.Thresholds.jEMThreshold.frac
frac
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:438
python.L1.Base.Thresholds.NSWMonThreshold.__init__
def __init__(self, name, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:611
python.L1.Base.Thresholds.gJetThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:891
python.L1.Base.Thresholds.NimThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1043
python.L1.Base.Thresholds.eEMVarThreshold.reta
reta
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:369
python.L1.Base.Thresholds.ThresholdValue.had_veto
had_veto
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1158
python.L1.Base.Thresholds.Threshold.ttype
ttype
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:113
python.L1.Base.Thresholds.ThresholdValue.had_isolation
had_isolation
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1157
python.L1.Base.Thresholds.eEMVarThreshold.wstot
wstot
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:370
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.mask1
mask1
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:993
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.L1.Base.Thresholds.ThresholdValue.checkOverlapAny
def checkOverlapAny(self, listOfThrValues)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1162
python.L1.Base.Thresholds.NimThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1048
python.L1.Base.Thresholds.gLJetThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:925
python.L1.Base.Thresholds.MuonThreshold.fwThr
fwThr
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:508
python.L1.Base.Thresholds.ThresholdValue.__init__
def __init__(self, thrtype, value, etamin, etamax, phimin, phimax, window=0, priority=1, name='')
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1148
python.L1.Base.Thresholds.jTauThreshold.isolation
isolation
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:701
python.Bindings.values
values
Definition: Control/AthenaPython/python/Bindings.py:797
python.L1.Base.Thresholds.MenuThresholdsCollection.typeWideThresholdConfig
def typeWideThresholdConfig(self, ttype)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:62
python.L1.Base.Thresholds.eEMThreshold.setIsolation
def setIsolation(self, rhad="None", reta="None", wstot="None")
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:315
python.L1.Base.Thresholds.ThresholdValue.setIsolation
def setIsolation(self, em_isolation, had_isolation, had_veto, isobits, use_relIso)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1171
python.L1.Base.Thresholds.LegacyThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:150
python.L1.Base.Thresholds.eEMVarThreshold.setIsolation
def setIsolation(self, rhad="None", reta="None", wstot="None")
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:384
python.L1.Base.Thresholds.MenuThresholdsCollection.flags
flags
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:23
python.L1.Base.Thresholds.eEMThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:293
python.L1.Base.Thresholds.eEMVarThreshold.suffix
suffix
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:367
python.L1.Base.Thresholds.ThresholdValue.setDefaults
def setDefaults(ttype, dic)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1120
python.L1.Base.Thresholds.MuonThreshold.setExclusionList
def setExclusionList(self, exclusionList)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:541
python.L1.Base.Thresholds.eEMThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:346
python.L1.Base.Thresholds.ThresholdValue.value
value
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1151
python.L1.Base.Thresholds.MuonThreshold.setThrValue
def setThrValue(self, thr=None, ba=None, ec=None, fw=None)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:545
python.L1.Base.Thresholds.LArSaturationThreshold.__init__
def __init__(self, name, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:979
python.L1.Base.Thresholds.jLJetThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:857
python.L1.Base.Thresholds.Threshold.thresholdInGeV
def thresholdInGeV(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:131
python.L1.Base.Thresholds.MuonThreshold.ecThr
ecThr
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:507
python.L1.Base.Thresholds.cTauThreshold.__init__
def __init__(self, name, ttype='cTAU', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:760
python.L1.Base.Thresholds.eTauThreshold.isM
def isM(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:634
python.L1.Base.Thresholds.ThresholdValue.etamin
etamin
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1152
python.L1.Base.Thresholds.eEMVarThreshold.isL
def isL(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:378
python.L1.Base.Thresholds.eEMVarThreshold.isV
def isV(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:372
python.L1.Base.Thresholds.cTauThreshold.suffix
suffix
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:764
python.L1.Base.Thresholds.ThresholdValue
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1115
python.L1.Base.Thresholds.MenuThresholdsCollection.names
def names(self, ttype=None)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:56
python.L1.Base.Thresholds.MuonThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:501
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.mask5
mask5
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:997
python.L1.Base.Thresholds.cTauThreshold.et
et
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:762
python.L1.Base.Thresholds.jEMThreshold.suffix
suffix
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:436
python.L1.Base.Thresholds.cTauThreshold.isL
def isL(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:767
python.L1.Base.Thresholds.eTauThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:677
python.L1.Base.Thresholds.cTauThreshold.setEt
def setEt(self, et)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:776
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.mask0
mask0
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:992
python.L1.Base.Thresholds.MenuThresholdsCollection
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:18
python.L1.Base.Thresholds.eTauThreshold.setEt
def setEt(self, et)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:643
python.L1.Base.Thresholds.cTauThreshold.isolation
isolation
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:765
python.L1.Base.Thresholds.MBTSThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1079
python.L1.Base.Thresholds.eEMThreshold.reta
reta
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:300
python.L1.Base.Thresholds.MBTSThreshold.__init__
def __init__(self, name, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1072
python.L1.Base.Thresholds.MBTSSIThreshold.setVoltage
def setVoltage(self, voltage)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1060
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.mask2
mask2
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:994
python.L1.Base.Thresholds.ThresholdValue.__eq__
def __eq__(self, o)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1187
python.L1.Base.Thresholds.jEMThreshold.isL
def isL(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:447
python.L1.Base.Thresholds.MuonThreshold.ecIdx
ecIdx
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:511
python.L1.Base.Thresholds.TopoThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1223
python.L1.Base.Thresholds.jJetThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:843
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.mask3
mask3
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:995
python.L1.Base.Thresholds.MuonThreshold.setRPCFlags
def setRPCFlags(self, flags)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:535
python.L1.Base.Thresholds.ThresholdValue.getDefaults
def getDefaults(ttype)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1124
add
bool add(const std::string &hname, TKey *tobj)
Definition: fastadd.cxx:55
python.L1.Base.Thresholds.Threshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:137
python.L1.Base.Thresholds.Threshold.run
run
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:115
python.L1.Base.Thresholds.jTauThreshold.setEt
def setEt(self, et)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:712
python.L1.Base.Thresholds.jLJetThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:878
python.L1.Base.Thresholds.eTauThreshold.isT
def isT(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:637
python.L1.Base.Thresholds.MuonThreshold.region
region
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:515
python.L1.Base.Thresholds.MuonThreshold.baIdx
baIdx
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:510
python.L1.Base.Thresholds.MenuThresholdsCollection.__call__
def __call__(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:28
python.L1.Base.Thresholds.TopoThreshold.algCategory
algCategory
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1212
python.L1.Base.Thresholds.MuonThreshold.tgcFlags
tgcFlags
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:513
python.L1.Base.Thresholds.eEMThreshold.__init__
def __init__(self, name, ttype='eEM', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:295
python.L1.Base.Thresholds.jTauThreshold.isM
def isM(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:706
python.L1.Base.Thresholds.XEThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:959
python.L1.Base.Thresholds.MBTSSIThreshold.__init__
def __init__(self, name, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1056
python.L1.Base.Thresholds.MBTSSIThreshold.voltage
voltage
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1058
python.L1.Base.Thresholds.jEMThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:484
python.L1.Base.Thresholds.ZeroBiasThreshold.setSeedThreshold
def setSeedThreshold(self, seed='', seed_multi=1, bcdelay=3564)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1098
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
python.L1.Base.Thresholds.cTauThreshold.setIsolation
def setIsolation(self, isolation="None")
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:799
python.L1.Base.Thresholds.jTauThreshold.isL
def isL(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:703
python.L1.Base.Thresholds.MBTSThreshold.sectors
sectors
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1074
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:224
python.L1.Base.Thresholds.cTauThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:758
python.L1.Base.Thresholds.eEMVarThreshold.isM
def isM(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:381
python.L1.Base.Thresholds.MuonThreshold.setRegion
def setRegion(self, det)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:518
python.L1.Base.Thresholds.ThresholdValue.use_relIso
use_relIso
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1176
python.L1.Base.Thresholds.TEThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1037
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.L1.Base.Thresholds.ThresholdValue.em_isolation
em_isolation
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1156
python.L1.Base.Thresholds.ThresholdValue.name
name
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1149
python.L1.Base.Thresholds.eTauThreshold.__init__
def __init__(self, name, ttype='eTAU', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:623
python.L1.Base.Thresholds.ZeroBiasThreshold.seed
seed
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1093
python.L1.Base.Thresholds.ThresholdValue.__lt__
def __lt__(self, o)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1180
python.L1.Base.Thresholds.MBTSSIThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1054
python.L1.Base.Thresholds.eEMThreshold.suffix
suffix
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:298
python.L1.Base.Thresholds.eTauThreshold.isL
def isL(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:631
python.L1.Base.Thresholds.MenuThresholdsCollection.jsonLegacy
def jsonLegacy(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:84
python.L1.Base.Thresholds.ThresholdValue.phimin
phimin
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1154
python.L1.Base.Thresholds.jEMThreshold.setIsolation
def setIsolation(self, iso="None", frac="None", frac2="None")
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:453
python.L1.Base.Thresholds.MenuThresholdsCollection.__contains__
def __contains__(self, thrname)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:38
python.L1.Base.Thresholds.MenuThresholdsCollection.__iter__
def __iter__(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:25
python.L1.Base.Thresholds.MenuThresholdsCollection.__getitem__
def __getitem__(self, thrName)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:44
python.L1.Base.Thresholds.TEThreshold.__init__
def __init__(self, name, ttype, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1028
python.L1.Base.Thresholds.jJetThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:827
python.L1.Base.Thresholds.eEMVarThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:362
python.L1.Base.Thresholds.eTauThreshold.setIsolation
def setIsolation(self, rCore="None", rHad="None")
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:666
python.L1.Base.Thresholds.cTauThreshold.isT
def isT(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:773
python.L1.Base.Thresholds.MenuThresholdsCollection.thresholdNames
thresholdNames
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:22
python.L1.Base.Thresholds.ThresholdValue.window
window
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1159
python.L1.Base.Thresholds.ZeroBiasThreshold.seed_ttype
seed_ttype
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1094
python.L1.Base.Thresholds.TEThreshold.xe
xe
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1030
python.L1.Base.Thresholds.TEThreshold.setTE
def setTE(self, xe)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1032
python.L1.Base.Thresholds.jTauThreshold.__init__
def __init__(self, name, ttype='jTAU', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:696
python.L1.Base.Thresholds.MenuThresholdsCollection.__len__
def __len__(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:41
python.L1.Base.Thresholds.jJetThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:822
python.L1.Base.Thresholds.MuonThreshold.__init__
def __init__(self, name, run=3, tgcFlags="", mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:503
dqt_zlumi_pandas.update
update
Definition: dqt_zlumi_pandas.py:42
python.L1.Base.Thresholds.jTauThreshold.et
et
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:698
python.L1.Base.Thresholds.MuonThreshold.setTGCFlags
def setTGCFlags(self, flags)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:530
python.L1.Base.Thresholds.NSWMonThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:615
python.L1.Base.Thresholds.eTauThreshold.rHad
rHad
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:629
python.L1.Base.Thresholds.eTauThreshold.rCore
rCore
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:628
python.L1.Base.Thresholds.ThresholdValue.phimax
phimax
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1155
python.L1.Base.Thresholds.Threshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:101
python.L1.Base.Thresholds.LegacyThreshold.addLegacyEnergyThresholdValue
def addLegacyEnergyThresholdValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:205
python.L1.Base.Thresholds.LegacyThreshold.__init__
def __init__(self, name, ttype, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:152
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.L1.Base.Thresholds.eEMVarThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:414
python.L1.Base.Thresholds.MuonThreshold.thrIdx
thrIdx
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:509
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:569
python.L1.Base.Thresholds.ZeroBiasThreshold.seed_multi
seed_multi
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1095
python.L1.Base.Thresholds.ZeroBiasThresholdTopo
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:988
python.L1.Base.Thresholds.MenuThresholdsCollection.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:65
python.L1.Base.Thresholds.gJetThreshold.__init__
def __init__(self, name, ttype='gJ', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:893
python.L1.Base.Thresholds.jTauThreshold.isT
def isT(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:709
python.L1.Base.Thresholds.XEThreshold.__init__
def __init__(self, name, ttype, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:961
pickleTool.object
object
Definition: pickleTool.py:30
python.L1.Base.Thresholds.MuonThreshold.fwIdx
fwIdx
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:512
python.L1.Base.Thresholds.ThresholdValue.etamax
etamax
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1153
python.L1.Base.Thresholds.Threshold.thresholdValues
thresholdValues
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:116
python.L1.Base.Thresholds.NSWMonThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:609
python.L1.Base.Thresholds.gJetThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:896
python.L1.Base.Thresholds.LegacyThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:155
python.L1.Base.Thresholds.MenuThresholdsCollection.__setitem__
def __setitem__(self, thrName, thr)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:51
python.L1.Base.Thresholds.Threshold.mapping
mapping
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:114
python.L1.Base.Thresholds.eEMThreshold.wstot
wstot
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:301
python.L1.Base.Thresholds.eEMVarThreshold.__init__
def __init__(self, name, ttype='eEM', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:364
python.L1.Base.Thresholds.ThresholdValue.priority
priority
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1160
python.L1.Base.Thresholds.jEMThreshold.frac2
frac2
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:439
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.setSeedThreshold
def setSeedThreshold(self, seed=[], seed_multi=1, bcdelay=3564)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1001
python.L1.Base.Thresholds.MuonThreshold.rpcFlags
rpcFlags
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:514
python.L1.Base.Thresholds.jTauThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:717
python.L1.Base.Thresholds.MBTSThreshold.addSector
def addSector(self, mbtsSector)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1076
python.L1.Base.Thresholds.jEMThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:466
python.L1.Base.Thresholds.gLJetThreshold.__init__
def __init__(self, name, ttype='gLJ', mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:927
python.L1.Base.Thresholds.cTauThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:806
python.L1.Base.Thresholds.eEMThreshold.isM
def isM(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:312
python.L1.Base.Thresholds.MenuThresholdsCollection.thresholds
thresholds
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:21
python.L1.Base.Thresholds.MuonThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:590
python.L1.Base.Thresholds.LegacyThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:222
python.L1.Base.Thresholds.ThresholdValue.isobits
isobits
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1175
python.L1.Base.Thresholds.ZeroBiasThresholdTopo.mask4
mask4
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:996
python.L1.Base.Thresholds.jTauThreshold.suffix
suffix
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:700
readCCLHist.float
float
Definition: readCCLHist.py:83
python.L1.Base.Thresholds.eEMVarThreshold.rhad
rhad
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:368
python.L1.Base.Thresholds.ZeroBiasThreshold
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1087
python.L1.Base.Thresholds.cTauThreshold.addThrValue
def addThrValue(self, value, *args, **kwargs)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:781
python.L1.Base.Thresholds.ZeroBiasThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1104
python.L1.Base.Thresholds.jTauThreshold.setIsolation
def setIsolation(self, isolation="None")
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:735
python.L1.Base.Thresholds.eEMThreshold.isI
def isI(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:306
python.L1.Base.Thresholds.MBTSSIThreshold.json
def json(self)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1063
python.L1.Base.Thresholds.MenuThresholdsCollection.__iadd__
def __iadd__(self, thr)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:31
python.L1.Base.Thresholds.NimThreshold.__init__
def __init__(self, name, ttype, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1045
python.L1.Base.Thresholds.ZeroBiasThreshold.__init__
def __init__(self, name, mapping=-1)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1091
python.L1.Base.Thresholds.TopoThreshold.__init__
def __init__(self, name, algCategory, mapping=None)
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:1206
python.L1.Base.Thresholds.eTauThreshold.suffix
suffix
Definition: Trigger/TriggerCommon/TriggerMenuMT/python/L1/Base/Thresholds.py:627