|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Template concrete implementation of an LHA/FLHA block element. More...
#include <lha_elements.h>


Public Member Functions | |
| LhaElement (const Prototype &prototype, const std::vector< std::string > &line) | |
| Constructs an LhaElement from a prototype and a line of data. | |
| T | getValue () const |
| Returns the stored value of the element. | |
| RenormalizationScheme | getScheme () const |
| Returns the renormalization scheme of the element. | |
| double | getScale () const override |
| Returns the renormalization scale Q of the element. | |
| std::pair< double, double > | getBinning () const override |
| Returns the binning associated with the element. | |
| std::string | toString () const override |
| Returns a line-like string representation of the element. | |
| std::shared_ptr< DBNode > | toDBNode () const override |
| Converts the element to a DBNode representation. | |
Public Member Functions inherited from AbstractElement | |
| AbstractElement (const LhaID &id_) | |
| Constructs an AbstractElement with a given identifier. | |
| LhaID | getId () const |
| Returns the identifier of the element. | |
| virtual | ~AbstractElement ()=default |
| Virtual destructor. | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractElement | |
| const LhaID | id |
Template concrete implementation of an LHA/FLHA block element.
LhaElement<T> represents an element whose numerical content is of type T (e.g. double or std::string). It is constructed from:
From these, it:
| T | Value type stored by the element (e.g. double or std::string). |
Definition at line 135 of file lha_elements.h.
| LhaElement< T >::LhaElement | ( | const Prototype & | prototype, |
| const std::vector< std::string > & | line | ||
| ) |
Constructs an LhaElement from a prototype and a line of data.
The constructor:
| prototype | Description of the block structure. |
| line | Vector of tokens representing one line of the block. |
| std::runtime_error | if indices are inconsistent or conversion fails. |
Definition at line 43 of file lha_elements.cpp.
|
inlineoverridevirtual |
Returns the binning associated with the element.
If no binning is defined, the default pair (-1.0, -1.0) is returned.
Implements AbstractElement.
Definition at line 211 of file lha_elements.h.
|
inlineoverridevirtual |
Returns the renormalization scale Q of the element.
If no scale is defined, 0.0 is returned by convention.
Implements AbstractElement.
Definition at line 202 of file lha_elements.h.
|
inline |
Returns the renormalization scheme of the element.
If no scheme is defined, RenormalizationScheme::NONE is returned.
Definition at line 193 of file lha_elements.h.
|
inline |
Returns the stored value of the element.
Definition at line 184 of file lha_elements.h.
|
overridevirtual |
Converts the element to a DBNode representation.
The returned DBNode contains at least:
Implements AbstractElement.
Definition at line 106 of file lha_elements.cpp.
|
overridevirtual |
Returns a line-like string representation of the element.
The exact format is: "<id>\t<value>[\t<scale>][\t<scheme>]\n"
where the optional parts are printed only if available.
Implements AbstractElement.
Definition at line 92 of file lha_elements.cpp.