Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
MartyParameterProxy.cpp
Go to the documentation of this file.
2#include "ModelAPI.h"
3
5 if (!MartyParameterProxy::ALLOWED.contains(type)) {
6 LOG_ERROR("ValueError", "MartyInterface cannot access parameter type", ParameterTypeMapper::str(type));
7 }
8 if (ModelAPI().get() == Model::SM) {
10 } else {
11 this->pp = ParameterProvider(type);
12 }
13
14}
15
16scalar_t MartyParameterProxy::operator()(const std::string& block, const LhaID& id) const {
17 return pp(block, id);
18};
ParameterType
#define LOG_ERROR(type,...)
Macro for logging error messages and terminating the application.
Definition Logger.h:41
Concrete parameter proxy that reads values from Hyperiso Parameters.
Core API exposing the currently active physics model.
static std::string str(const IdOf< ParamTypeTag > &id)
Returns the string representation associated with an identifier.
scalar_t operator()(const std::string &block, const LhaID &id) const override
Retrieves the value of a parameter.
MartyParameterProxy(ParameterType type)
Constructs a proxy for a given parameter type.
Core API returning the current Model.
Definition ModelAPI.h:28
Provides access to parameter values, errors, and existence checks.
Represents an identifier of a LHA element, possibly containing several sub-ids.
Definition LhaID.h:56