ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigTauHypoTool.TauCuts Class Reference
Collaboration diagram for TrigTauHypoTool.TauCuts:

Public Member Functions

def __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)
 

Private Attributes

 _chain_part
 

Detailed Description

Definition at line 31 of file TrigTauHypoTool.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 32 of file TrigTauHypoTool.py.

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

Member Function Documentation

◆ 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']
47 
48  if sel == 'perf' or sel == 'idperf': return -1 # disabled
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
53 
54  raise ValueError(f'Invalid selection: {sel}')
55 

◆ 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
40 

◆ n_track_max()

int TrigTauHypoTool.TauCuts.n_track_max (   self)

Definition at line 36 of file TrigTauHypoTool.py.

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

◆ 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
43 

Member Data Documentation

◆ _chain_part

TrigTauHypoTool.TauCuts._chain_part
private

Definition at line 33 of file TrigTauHypoTool.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18