Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
ObsParameterProxy Class Reference

#include <ObsParameterProxy.h>

Inheritance diagram for ObsParameterProxy:
Collaboration diagram for ObsParameterProxy:

Public Member Functions

 ObsParameterProxy (ParameterType type=ParameterType::SM)
 Construct a proxy limited to a given parameter type.
 
scalar_t operator() (const ParamId &pid, DataType d_type=DataType::VALUE) override
 Access a parameter by fully-typed ParamId.
 
scalar_t operator() (const std::string &block, const LhaID &id, DataType d_type=DataType::VALUE) const override
 Access a parameter by block name and LHA-like id.
 
std::shared_ptr< Parameterget_parameter (const ParamId &pid) const override
 Returns the underlying Parameter object (shared_ptr) for a given id.
 

Detailed Description

Definition at line 41 of file ObsParameterProxy.h.

Constructor & Destructor Documentation

◆ ObsParameterProxy()

ObsParameterProxy::ObsParameterProxy ( ParameterType  type = ParameterType::SM)

Construct a proxy limited to a given parameter type.

If type is not in ALLOWED, this triggers a ValueError.

Parameters
typeThe parameter type namespace to read from (default: SM).

Definition at line 3 of file ObsParameterProxy.cpp.

Member Function Documentation

◆ get_parameter()

std::shared_ptr< Parameter > ObsParameterProxy::get_parameter ( const ParamId pid) const
overridevirtual

Returns the underlying Parameter object (shared_ptr) for a given id.

Parameters
pidTyped parameter identifier.
Returns
Shared pointer to the parameter (may be null depending on provider policy).

Implements IObsParameterProxy< ParamId, DataType, std::string, LhaID >.

Definition at line 35 of file ObsParameterProxy.cpp.

◆ operator()() [1/2]

scalar_t ObsParameterProxy::operator() ( const ParamId pid,
DataType  d_type = DataType::VALUE 
)
overridevirtual

Access a parameter by fully-typed ParamId.

If pid.type is missing, a warning is emitted (untyped ParamId usage). If pid.type is not allowed, this triggers a ValueError.

For Wilson parameters: returns default scalar_t if parameter does not exist.

Parameters
pidTyped parameter identifier.
d_typeWhich value to return (central/value, error, etc.).
Returns
The requested scalar value (or default if missing Wilson parameter).

Implements IObsParameterProxy< ParamId, DataType, std::string, LhaID >.

Definition at line 19 of file ObsParameterProxy.cpp.

◆ operator()() [2/2]

scalar_t ObsParameterProxy::operator() ( const std::string &  block,
const LhaID id,
DataType  d_type = DataType::VALUE 
) const
overridevirtual

Access a parameter by block name and LHA-like id.

For Wilson parameters: if missing, returns default scalar_t. For other types: delegates directly to the provider.

Parameters
blockParameter block name.
idParameter code inside the block.
d_typeWhich value to return (central/value, error, etc.).
Returns
The requested scalar value (or default if missing Wilson parameter).

Implements IObsParameterProxy< ParamId, DataType, std::string, LhaID >.

Definition at line 11 of file ObsParameterProxy.cpp.


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