Belle II Software development
GlobalVariable Class Reference

Public Member Functions

 __init__ (self, name, latex, unit, plaintext)
 
 getName (self)
 

Public Attributes

 name = name
 ROOT branch name.
 
 latex = latex
 LaTeX string for axis labels.
 
 unit = unit
 Unit descriptor for plotting and residuals.
 
 plaintext = plaintext
 Plain-text identifier for file naming.
 

Detailed Description

Metadata for a scalar observable stored in a single ROOT branch per event.

Parameters
----------
name : str
    ROOT branch name.
latex : str
    LaTeX string for axis labels (e.g. ``r"$M_{inv}$"``).
unit : Unit
    Unit instance describing display and residual units.
plaintext : str
    Short plain-text identifier used for file names (e.g. ``"run"``).

Definition at line 48 of file variables.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
name,
latex,
unit,
plaintext )
Initialize a global variable description.

Parameters
----------
name : str
    ROOT branch name.
latex : str
    LaTeX string for axis labels.
unit : Unit
    Unit instance describing display and residual units.
plaintext : str
    Short plain-text identifier used for file names.

Definition at line 63 of file variables.py.

63 def __init__(self, name, latex, unit, plaintext):
64 """Initialize a global variable description.
65
66 Parameters
67 ----------
68 name : str
69 ROOT branch name.
70 latex : str
71 LaTeX string for axis labels.
72 unit : Unit
73 Unit instance describing display and residual units.
74 plaintext : str
75 Short plain-text identifier used for file names.
76 """
77
78 self.name = name
79
80 self.latex = latex
81
82 self.unit = unit
83
84 self.plaintext = plaintext
85

Member Function Documentation

◆ getName()

getName ( self)
Return a list containing the single ROOT branch name.

Returns
-------
list of str

Definition at line 86 of file variables.py.

86 def getName(self):
87 """Return a list containing the single ROOT branch name.
88
89 Returns
90 -------
91 list of str
92 """
93 return [self.name]
94
95

Member Data Documentation

◆ latex

latex = latex

LaTeX string for axis labels.

Definition at line 80 of file variables.py.

◆ name

name = name

ROOT branch name.

Definition at line 78 of file variables.py.

◆ plaintext

plaintext = plaintext

Plain-text identifier for file naming.

Definition at line 84 of file variables.py.

◆ unit

unit = unit

Unit descriptor for plotting and residuals.

Definition at line 82 of file variables.py.


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