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

Classes

class  eTAUWP
 

Public Member Functions

def __post_init__ (self)
 
odict __call__ (self, do_eFex_BDT_Tau=True)
 

Static Public Attributes

 int
 
 eTAUWP
 

Detailed Description

Definition at line 433 of file TypeWideThresholdConfig.py.

Member Function Documentation

◆ __call__()

odict python.L1.Config.TypeWideThresholdConfig.L1Config_cTAU.__call__ (   self,
  do_eFex_BDT_Tau = True 
)

Definition at line 507 of file TypeWideThresholdConfig.py.

507  def __call__(self, do_eFex_BDT_Tau=True) -> odict:
508  confObj = odict()
509  confObj['workingPoints'] = odict()
510 
511  for wp in ['Loose', 'Medium', 'Tight', 'Loose12', 'Loose20', 'Loose30', 'Loose35', 'Medium12', 'Medium20', 'Medium30', 'Medium35', 'Tight12', 'Tight20', 'Tight30', 'Tight35']:
512  confObj['workingPoints'][wp] = [
513  odict([('isolation', cTAUfwToFlowConversion(getattr(self, f'isolation_fw_{wp.lower()}'))), ('isolation_fw', getattr(self, f'isolation_fw_{wp.lower()}')),
514  ('isolation_jTAUCoreScale', cTAUfwToFlowConversion(getattr(self, f'isolation_jTAUCoreScale_fw_{wp.lower()}'))), ('isolation_jTAUCoreScale_fw', getattr(self, f'isolation_jTAUCoreScale_fw_{wp.lower()}')),
515  ('eTAU_rCoreMin', getattr(self, f'eTAU_rCoreMin_WP_fw_{wp.lower()}').rCoreMinCut(do_eFex_BDT_Tau)), ('eTAU_rCoreMin_WP_fw', getattr(self, f'eTAU_rCoreMin_WP_fw_{wp.lower()}').value),
516  ('eTAU_rHadMin', getattr(self, f'eTAU_rHadMin_WP_fw_{wp.lower()}').rHadMinCut(do_eFex_BDT_Tau)), ('eTAU_rHadMin_WP_fw', getattr(self, f'eTAU_rHadMin_WP_fw_{wp.lower()}').value)]),
517  ]
518 
519  confObj['resolutionMeV'] = 100
520 
521  # Check that FW values are integers
522  for wp in confObj['workingPoints']:
523  for ssthr in confObj['workingPoints'][wp]:
524  for ssthr_i in ssthr:
525  if '_fw' in ssthr_i:
526  if not isinstance(ssthr[ssthr_i], int):
527  raise RuntimeError(f'Threshold {ssthr_i} in cTAU configuration is not an integer!')
528  elif ssthr[ssthr_i] < 0:
529  raise RuntimeError('Threshold {ssthr_i} in cTAU configuration is negative!')
530 
531  return confObj
532 

◆ __post_init__()

def python.L1.Config.TypeWideThresholdConfig.L1Config_cTAU.__post_init__ (   self)

Definition at line 498 of file TypeWideThresholdConfig.py.

498  def __post_init__(self):
499  # By default, duplicate the configs of isolation_fw_loose and isolation_fw_tight:
500  for default_wp, wp_list in {'Loose': ['Loose12', 'Loose20', 'Loose30', 'Loose35'], 'Tight': ['Tight12', 'Tight20', 'Tight30', 'Tight35']}.items():
501  for wp in wp_list:
502  setattr(self, f'isolation_fw_{wp.lower()}', getattr(self, f'isolation_fw_{default_wp.lower()}'))
503  setattr(self, f'isolation_jTAUCoreScale_fw_{wp.lower()}', getattr(self, f'isolation_jTAUCoreScale_fw_{default_wp.lower()}'))
504  setattr(self, f'eTAU_rCoreMin_WP_fw_{wp.lower()}', getattr(self, f'eTAU_rCoreMin_WP_fw_{default_wp.lower()}'))
505  setattr(self, f'eTAU_rHadMin_WP_fw_{wp.lower()}', getattr(self, f'eTAU_rHadMin_WP_fw_{default_wp.lower()}'))
506 

Member Data Documentation

◆ eTAUWP

Definition at line 460 of file TypeWideThresholdConfig.py.

◆ int

python.L1.Config.TypeWideThresholdConfig.L1Config_cTAU.int
static

Definition at line 458 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
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79