ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTauHypoTool.TauCuts Class Reference
Collaboration diagram for TrigTauHypoTool.TauCuts:

Public Member Functions

 __init__ (self, dict[str, Any] chain_part)
int n_track_max (self)
int n_iso_track_max (self)
float pt_min (self)
int id_wp (self)

Protected Attributes

 _chain_part = chain_part

Detailed Description

Definition at line 32 of file TrigTauHypoTool.py.

Constructor & Destructor Documentation

◆ __init__()

TrigTauHypoTool.TauCuts.__init__ ( self,
dict[str, Any] chain_part )

Definition at line 33 of file TrigTauHypoTool.py.

33 def __init__(self, chain_part: dict[str, Any]):
34 self._chain_part = chain_part
35

Member Function Documentation

◆ id_wp()

int TrigTauHypoTool.TauCuts.id_wp ( self)

Definition at line 46 of file TrigTauHypoTool.py.

46 def id_wp(self) -> int:
47 sel = self._chain_part['selection']
48
49 if sel == 'perf' or sel == 'idperf': return -1 # disabled
50 elif sel.startswith('veryloose'): return 0
51 elif sel.startswith('loose'): return 1
52 elif sel.startswith('medium'): return 2
53 elif sel.startswith('tight'): return 3
54
55 raise ValueError(f'Invalid selection: {sel}')
56

◆ n_iso_track_max()

int TrigTauHypoTool.TauCuts.n_iso_track_max ( self)

Definition at line 40 of file TrigTauHypoTool.py.

40 def n_iso_track_max(self) -> int: return 999 if self._chain_part['selection'] == 'idperf' else 1
41

◆ n_track_max()

int TrigTauHypoTool.TauCuts.n_track_max ( self)

Definition at line 37 of file TrigTauHypoTool.py.

37 def n_track_max(self) -> int: return 3
38

◆ pt_min()

float TrigTauHypoTool.TauCuts.pt_min ( self)

Definition at line 43 of file TrigTauHypoTool.py.

43 def pt_min(self) -> float: return float(self._chain_part['threshold']) * GeV
44

Member Data Documentation

◆ _chain_part

TrigTauHypoTool.TauCuts._chain_part = chain_part
protected

Definition at line 34 of file TrigTauHypoTool.py.


The documentation for this class was generated from the following file: