|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Provides access to parameter values, errors, and existence checks. More...
#include <ParameterProvider.h>


Public Member Functions | |
| ParameterProvider ()=default | |
| Default constructor (untyped provider). | |
| ParameterProvider (ParameterType p_type) | |
| Constructs a provider bound to a specific ParameterType. | |
| scalar_t | operator() (const ParamId &pid, DataType d_type=DataType::VALUE) const |
| Retrieves a parameter value based on ParamId and requested data type. | |
| scalar_t | operator() (const std::string &block, const LhaID &id, DataType d_type=DataType::VALUE) const |
| Retrieves a parameter value based on block name and LHA ID. | |
| bool | exists (const ParamId &pid) const |
| Checks if a parameter identified by ParamId exists. | |
| bool | exists (const std::string &block, const LhaID &id) const |
| Checks if a parameter identified by ParamId exists. | |
| double | get_scale (const std::string &block) const |
| Checks if a parameter identified by block name and LHA ID exists. | |
| ParameterType | get_type () const |
| Retrieves the renormalization scale associated with a given block. | |
| std::shared_ptr< Parameter > | get_parameter (const ParamId &pid) const |
| Retrieves the actual Parameter object corresponding to the given ParamId. | |
Public Member Functions inherited from IDataProvider< ParameterProvider > | |
| virtual | ~IDataProvider ()=default |
| double | operator() (Args &&... args) |
| bool | exists (Args &&... args) const |
Provides access to parameter values, errors, and existence checks.
ParameterProvider wraps the Parameters subsystem and exposes a convenient callable interface:
operator()(ParamId, DataType) to fetch central value or uncertainties of a parameter identified by ParamId.operator()(block, LhaID, DataType) to fetch the same information using the usual SLHA-style (block, index) access.It can optionally be “bound” to a given ParameterType (e.g. SM, BSM) at construction time. In that case, calls using (block, LhaID, ...) will implicitly use that parameter type.
Typical usage:
Definition at line 53 of file ParameterProvider.h.
|
default |
Default constructor (untyped provider).
When constructed without a ParameterType, the provider can still be used with ParamId-based access. Block-based access (block, LhaID, ...) requires an explicit type (see the other constructor).
|
inline |
Constructs a provider bound to a specific ParameterType.
Ensures that the corresponding Parameters instance exists, and stores the type internally for later block-based queries.
| p_type | ParameterType handled by this provider (e.g. SM, BSM). |
Definition at line 72 of file ParameterProvider.h.
| bool ParameterProvider::exists | ( | const ParamId & | pid | ) | const |
Checks if a parameter identified by ParamId exists.
| pid | The parameter ID. |
Definition at line 20 of file ParameterProvider.cpp.
| bool ParameterProvider::exists | ( | const std::string & | block, |
| const LhaID & | id | ||
| ) | const |
Checks if a parameter identified by ParamId exists.
| pid | The parameter ID. |
Definition at line 24 of file ParameterProvider.cpp.
Retrieves the actual Parameter object corresponding to the given ParamId.
| pid | The parameter ID. |
Definition at line 45 of file ParameterProvider.cpp.
| double ParameterProvider::get_scale | ( | const std::string & | block | ) | const |
Checks if a parameter identified by block name and LHA ID exists.
This call uses the internal ParameterType that was provided at construction time.
| block | The name of the parameter block. |
| id | The LHA ID of the parameter. |
Definition at line 36 of file ParameterProvider.cpp.
| ParameterType ParameterProvider::get_type | ( | ) | const |
Retrieves the renormalization scale associated with a given block.
Delegates to Parameters::get_block_scale for the provider's ParameterType.
| block | The name of the block. |
Definition at line 28 of file ParameterProvider.cpp.
| scalar_t ParameterProvider::operator() | ( | const ParamId & | pid, |
| DataType | d_type = DataType::VALUE |
||
| ) | const |
Retrieves a parameter value based on ParamId and requested data type.
The ParamId fully encodes the parameter type, block, and LHA identifier.
| pid | The parameter ID. |
| d_type | Type of data requested (central value, stat error, syst error, etc.). |
Definition at line 3 of file ParameterProvider.cpp.
| scalar_t ParameterProvider::operator() | ( | const std::string & | block, |
| const LhaID & | id, | ||
| DataType | d_type = DataType::VALUE |
||
| ) | const |
Retrieves a parameter value based on block name and LHA ID.
This overload requires the ParameterProvider to have been constructed with a specific ParameterType. The internal type is then combined with the (block, id) to build a temporary ParamId.
| block | The name of the parameter block. |
| id | The LHA ID of the parameter. |
| d_type | Type of data requested (central value, stat error, syst error, etc.). |
Definition at line 11 of file ParameterProvider.cpp.