Definition at line 31 of file TrigTauHypoTool.py.
◆ __init__()
def TrigTauHypoTool.TauCuts.__init__ |
( |
|
self, |
|
|
dict[str, Any] |
chain_part |
|
) |
| |
◆ id_wp()
int TrigTauHypoTool.TauCuts.id_wp |
( |
|
self | ) |
|
Definition at line 45 of file TrigTauHypoTool.py.
45 def id_wp(self) -> int:
46 sel = self._chain_part[
'selection']
48 if sel ==
'perf' or sel ==
'idperf':
return -1
49 elif sel.startswith(
'veryloose'):
return 0
50 elif sel.startswith(
'loose'):
return 1
51 elif sel.startswith(
'medium'):
return 2
52 elif sel.startswith(
'tight'):
return 3
54 raise ValueError(f
'Invalid selection: {sel}')
◆ n_iso_track_max()
int TrigTauHypoTool.TauCuts.n_iso_track_max |
( |
|
self | ) |
|
Definition at line 39 of file TrigTauHypoTool.py.
39 def n_iso_track_max(self) -> int:
return 999
if self._chain_part[
'selection'] ==
'idperf' else 1
◆ n_track_max()
int TrigTauHypoTool.TauCuts.n_track_max |
( |
|
self | ) |
|
◆ pt_min()
float TrigTauHypoTool.TauCuts.pt_min |
( |
|
self | ) |
|
Definition at line 42 of file TrigTauHypoTool.py.
42 def pt_min(self) -> float:
return float(self._chain_part[
'threshold']) * GeV
◆ _chain_part
TrigTauHypoTool.TauCuts._chain_part |
|
private |
The documentation for this class was generated from the following file: