Belle II Software development
TrackVariable Class Reference

Public Member Functions

 __init__ (self, name1, name2, latex, unit, plaintext)
 
 getName (self)
 

Public Attributes

 name1 = name1
 ROOT branch name for the first track.
 
 name2 = name2
 ROOT branch name for the second track.
 
 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 an observable with one ROOT branch per track.

Used for two-track events (cosmics, dimuons) where each track has its
own branch.

Parameters
----------
name1 : str
    ROOT branch name for the first track.
name2 : str
    ROOT branch name for the second track.
latex : str
    LaTeX string for axis labels (e.g. ``r"d$_0$"``).
unit : Unit
    Unit instance describing display and residual units.
plaintext : str
    Short plain-text identifier used for file names (e.g. ``"d"``).

Definition at line 96 of file variables.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
name1,
name2,
latex,
unit,
plaintext )
Initialize a two-track variable description.

Parameters
----------
name1 : str
    ROOT branch name for the first track.
name2 : str
    ROOT branch name for the second track.
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 116 of file variables.py.

116 def __init__(self, name1, name2, latex, unit, plaintext):
117 """Initialize a two-track variable description.
118
119 Parameters
120 ----------
121 name1 : str
122 ROOT branch name for the first track.
123 name2 : str
124 ROOT branch name for the second track.
125 latex : str
126 LaTeX string for axis labels.
127 unit : Unit
128 Unit instance describing display and residual units.
129 plaintext : str
130 Short plain-text identifier used for file names.
131 """
132
133 self.name1 = name1
134
135 self.name2 = name2
136
137 self.latex = latex
138
139 self.unit = unit
140
141 self.plaintext = plaintext
142

Member Function Documentation

◆ getName()

getName ( self)
Return a list of both ROOT branch names (track 1 then track 2).

Returns
-------
list of str

Definition at line 143 of file variables.py.

143 def getName(self):
144 """Return a list of both ROOT branch names (track 1 then track 2).
145
146 Returns
147 -------
148 list of str
149 """
150 return [self.name1, self.name2]
151
152
153# Unit instances

Member Data Documentation

◆ latex

latex = latex

LaTeX string for axis labels.

Definition at line 137 of file variables.py.

◆ name1

name1 = name1

ROOT branch name for the first track.

Definition at line 133 of file variables.py.

◆ name2

name2 = name2

ROOT branch name for the second track.

Definition at line 135 of file variables.py.

◆ plaintext

plaintext = plaintext

Plain-text identifier for file naming.

Definition at line 141 of file variables.py.

◆ unit

unit = unit

Unit descriptor for plotting and residuals.

Definition at line 139 of file variables.py.


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