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

Public Member Functions

def __init__ (self, str variable, str working_point, list values_with_prio, list eta_range=(-49, 49, 1))
 

Public Attributes

 variable
 
 working_point
 
 name
 
 values_with_prio
 
 eta_range
 
 eta_to_value
 

Detailed Description

    Class to encode a working point with eta dependence
    - Initialised with a list of prioritised cut values
    - Converts to a mapping from eta bin to highest priority cut
    - Logic should match that in ValueWithEtaDependence
      defined in L1ThresholdBase.h

Definition at line 13 of file TypeWideThresholdConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.__init__ (   self,
str  variable,
str  working_point,
list  values_with_prio,
list   eta_range = (-49,49,1) 
)

Definition at line 22 of file TypeWideThresholdConfig.py.

22  def __init__(
23  self,
24  variable: str,
25  working_point: str,
26  values_with_prio: list,
27  eta_range: list = (-49,49,1),
28  ):
29  self.variable = variable
30  self.working_point = working_point
31  self.name = f"{working_point}.{variable}"
32  self.values_with_prio = values_with_prio
33  self.eta_range = eta_range
34  self.eta_to_value = {}
35  # Get value with highest priority for which
36  # etabin lies in [etamin,etamax)
37  for etabin in range(*eta_range):
38  current_priority = -1
39  for v in values_with_prio:
40  priority_value = None
41  if (
42  etabin >= v["etamin"]
43  and etabin < v["etamax"]
44  ):
45  if v["priority"] == current_priority:
46  raise ValueError(f"{v} overlaps another value {priority_value} with same priority {current_priority}")
47  if v["priority"] > current_priority:
48  current_priority = v["priority"]
49  priority_value = v
50  self.eta_to_value[etabin] = v[self.variable]
51 
52 # Facilitate enforcement of an ordering principle for working points:
53 # T >= M >= L in all eta bins, to avoid ambiguity in outcome from
54 # alg implementations [ATR-27796]

Member Data Documentation

◆ eta_range

python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.eta_range

Definition at line 27 of file TypeWideThresholdConfig.py.

◆ eta_to_value

python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.eta_to_value

Definition at line 28 of file TypeWideThresholdConfig.py.

◆ name

python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.name

Definition at line 25 of file TypeWideThresholdConfig.py.

◆ values_with_prio

python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.values_with_prio

Definition at line 26 of file TypeWideThresholdConfig.py.

◆ variable

python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.variable

Definition at line 23 of file TypeWideThresholdConfig.py.

◆ working_point

python.L1.Config.TypeWideThresholdConfig.ValueWithEtaDependence.working_point

Definition at line 24 of file TypeWideThresholdConfig.py.


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