ATLAS Offline Software
Public Member Functions | Static Public Attributes | List of all members
python.L1.Config.TypeWideThresholdConfig.L1Config_jTAU Class Reference
Collaboration diagram for python.L1.Config.TypeWideThresholdConfig.L1Config_jTAU:

Public Member Functions

odict __call__ (self, do_HI_tob_thresholds=False)
 

Static Public Attributes

 int
 

Detailed Description

Definition at line 537 of file TypeWideThresholdConfig.py.

Member Function Documentation

◆ __call__()

odict python.L1.Config.TypeWideThresholdConfig.L1Config_jTAU.__call__ (   self,
  do_HI_tob_thresholds = False 
)

Definition at line 547 of file TypeWideThresholdConfig.py.

547  def __call__(self,do_HI_tob_thresholds=False) -> odict:
548  confObj = odict()
549  confObj["workingPoints"] = odict()
550  confObj["workingPoints"]["Loose"] = [
551  odict([("isolation", cTAUfwToFlowConversion(self.isolation_fw_loose)), ("isolation_fw", self.isolation_fw_loose),
552  ]),
553  ]
554  confObj["workingPoints"]["Medium"] = [
555  odict([("isolation", cTAUfwToFlowConversion(self.isolation_fw_medium)), ("isolation_fw", self.isolation_fw_medium),
556  ]),
557  ]
558  confObj["workingPoints"]["Tight"] = [
559  odict([("isolation", cTAUfwToFlowConversion(self.isolation_fw_tight)), ("isolation_fw", self.isolation_fw_tight),
560  ]),
561  ]
562  confObj["ptMinToTopo1"] = 1 if do_HI_tob_thresholds else 5 # PLACEHOLDER
563  confObj["ptMinToTopo2"] = 1 if do_HI_tob_thresholds else 5 # PLACEHOLDER
564  confObj["ptMinToTopo3"] = 1 if do_HI_tob_thresholds else 5 # PLACEHOLDER
565  confObj["ptMinxTOB1"] = 1 if do_HI_tob_thresholds else 5 # PLACEHOLDER
566  confObj["ptMinxTOB2"] = 1 if do_HI_tob_thresholds else 5 # PLACEHOLDER
567  confObj["ptMinxTOB3"] = 1 if do_HI_tob_thresholds else 5 # PLACEHOLDER
568  confObj["resolutionMeV"] = 200
569  confObj["maxEt"] = 50 # PLACEHOLDER
570 
571  # Check that FW values are integers
572  for wp in confObj["workingPoints"]:
573  for ssthr in confObj["workingPoints"][wp]:
574  for ssthr_i in ssthr:
575  if "_fw" in ssthr_i:
576  if not isinstance(ssthr[ssthr_i], int):
577  raise RuntimeError("Threshold %s in jTAU configuration is not an integer!", ssthr_i )
578  elif ssthr[ssthr_i] < 0:
579  raise RuntimeError("Threshold %s in jTAU configuration is negative!", ssthr_i )
580 
581  # Check that T >= M >= L [ATR-27796]
582  # Ordering is inverted here: larger value is looser
583  for var in ["isolation_fw"]:
584  validate_ordering(var,"Medium","Loose",confObj["workingPoints"])
585  validate_ordering(var,"Tight","Medium",confObj["workingPoints"])
586  return confObj
587 

Member Data Documentation

◆ int

python.L1.Config.TypeWideThresholdConfig.L1Config_jTAU.int
static

Definition at line 542 of file TypeWideThresholdConfig.py.


The documentation for this class was generated from the following file:
python.L1.Config.TypeWideThresholdConfig.cTAUfwToFlowConversion
def cTAUfwToFlowConversion(fw)
Definition: TypeWideThresholdConfig.py:98
python.L1.Config.TypeWideThresholdConfig.validate_ordering
def validate_ordering(var, wpl, wpg, conf)
Definition: TypeWideThresholdConfig.py:64