Definition at line 433 of file TypeWideThresholdConfig.py.
◆ __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:
509 confObj[
'workingPoints'] = odict()
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)]),
519 confObj[
'resolutionMeV'] = 100
522 for wp
in confObj[
'workingPoints']:
523 for ssthr
in confObj[
'workingPoints'][wp]:
524 for ssthr_i
in ssthr:
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!')
◆ __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):
500 for default_wp, wp_list
in {
'Loose': [
'Loose12',
'Loose20',
'Loose30',
'Loose35'],
'Tight': [
'Tight12',
'Tight20',
'Tight30',
'Tight35']}.
items():
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()}'))
◆ eTAUWP
◆ int
python.L1.Config.TypeWideThresholdConfig.L1Config_cTAU.int |
|
static |
The documentation for this class was generated from the following file: