![]() |
Belle II Software development
|
basf2 (Belle II Analysis Software Framework) # Author: The Belle II Collaboration # # See git log for contributors and copyright holders. More...
Public Member Functions | |
| __init__ (self, name, dname, multiplier) | |
Public Attributes | |
| name = name | |
| Unit name shown in plots. | |
| dname = dname | |
| Unit name used for residual axes. | |
| convert = multiplier | |
Conversion factor from name to dname units. | |
basf2 (Belle II Analysis Software Framework) # Author: The Belle II Collaboration # # See git log for contributors and copyright holders.
# This file is licensed under LGPL-3.0, see LICENSE.md. #
Pair of display/residual unit strings and the conversion factor between them.
Parameters
----------
name : str
Unit label used on standard axes (e.g. ``" [cm]"``).
dname : str
Unit label used on residual/difference axes, after applying the
conversion factor (e.g. ``r" [$\\mu$m]"``).
multiplier : float
Factor to convert from ``name`` units to ``dname`` units
(e.g. ``1e4`` to go from cm to μm).
Definition at line 13 of file variables.py.
| __init__ | ( | self, | |
| name, | |||
| dname, | |||
| multiplier ) |
Initialize a unit definition.
Parameters
----------
name : str
Unit label used on standard axes (e.g. ``" [cm]"``).
dname : str
Unit label used on residual/difference axes.
multiplier : float
Conversion factor from ``name`` units to ``dname`` units.
Definition at line 28 of file variables.py.
| convert = multiplier |
Conversion factor from name to dname units.
Definition at line 45 of file variables.py.
| dname = dname |
Unit name used for residual axes.
Definition at line 43 of file variables.py.
| name = name |
Unit name shown in plots.
Definition at line 41 of file variables.py.