13 if (!StatParameterProxy::ALLOWED.contains(type)) {
38 if (!pid.
type.has_value()) {
39 LOG_WARN(
"LogicError",
"Use of untyped ParamId in ParameterProvider.");
42 if (!StatParameterProxy::ALLOWED.contains(pid.
type.value())) {
48 return pp(pid, d_type);
59 std::map<ExperimentObs, double> out;
60 for (
auto block : blocks) {
75 std::map<ExperimentObs, double> out;
76 for (
auto block : blocks) {
91 return pp_with_type.
exists(block,
id) ? pp_with_type(block,
id, d_type) :
scalar_t();
93 scalar_t value = pp_with_type(block,
id, d_type);
104 std::map<ExperimentObs, std::shared_ptr<Parameter>> out;
105 for (
auto block : blocks) {
#define LOG_ERROR(type,...)
Macro for logging error messages and terminating the application.
#define LOG_WARN(...)
Macro for logging warning messages.
Statistics-layer proxy for read-only access to parameters and observables.
Block provider bound to HyperISO Parameters / ParameterType.
std::unordered_set< std::string > get_all_blocks(ParameterType type) override
return all blocks for a given ParameterType.
static std::string str(const IdOf< ParamTypeTag > &id)
Returns the string representation associated with an identifier.
static LhaID flha(const Observables &id)
Return the FLHA id associated with a builtin enum value.
Provides access to parameter values, errors, and existence checks.
std::shared_ptr< Parameter > get_parameter(const ParamId &pid) const
Retrieves the actual Parameter object corresponding to the given ParamId.
ParameterType get_type() const
Retrieves the renormalization scale associated with a given block.
bool exists(const ParamId &pid) const
Checks if a parameter identified by ParamId exists.
scalar_t operator()(const ParamId &, DataType d_type=DataType::VALUE) const override
Returns a scalar quantity for a typed parameter.
StatParameterProxy(ParameterType type=ParameterType::SM)
Constructs a proxy optionally bound to a parameter type.
std::map< ExperimentObs, std::shared_ptr< Parameter > > get_obs_param(const BinnedObservableId &) const override
Returns the parameter object associated with a binned observable.
std::shared_ptr< Parameter > get_param(const ParamId &) const override
Returns the parameter object identified by a typed ParamId.
Identifies an observable together with a numerical bin.
Represents an identifier of a LHA element, possibly containing several sub-ids.
Composite identifier for a single parameter.
std::optional< ParameterType > type
Optional high-level parameter category.