|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete read-only proxy used by the statistics layer. More...
#include <StatParameterProxy.h>


Public Member Functions | |
| StatParameterProxy (ParameterType type=ParameterType::SM) | |
| Constructs a proxy optionally bound to a parameter type. | |
| std::shared_ptr< Parameter > | get_param (const ParamId &) const override |
| Returns the parameter object identified by a typed ParamId. | |
| std::shared_ptr< Parameter > | get_param (const std::string &block, const LhaID &id) const override |
| Returns the parameter object identified by block and LHA id. | |
| scalar_t | operator() (const ParamId &, DataType d_type=DataType::VALUE) const override |
| Returns a scalar quantity for a typed parameter. | |
| std::map< ExperimentObs, double > | operator() (const ObservableId &, DataType d_type=DataType::VALUE) const override |
| Returns a scalar quantity for an observable entry. | |
| std::map< ExperimentObs, double > | operator() (const BinnedObservableId &, DataType d_type=DataType::VALUE) const override |
| Returns a scalar quantity for a binned observable entry. | |
| scalar_t | operator() (const std::string &block, const LhaID &id, DataType d_type=DataType::VALUE) const override |
| Returns a scalar quantity for a parameter identified by block and LHA id. | |
| std::map< ExperimentObs, std::shared_ptr< Parameter > > | get_obs_param (const BinnedObservableId &) const override |
| Returns the parameter object associated with a binned observable. | |
Public Member Functions inherited from IStatParameterProxy | |
| virtual | ~IStatParameterProxy ()=default |
| Virtual destructor. | |
Concrete read-only proxy used by the statistics layer.
The proxy enforces a whitelist of parameter types accessible from the statistics/business layer:
It can be constructed either:
Definition at line 60 of file StatParameterProxy.h.
| StatParameterProxy::StatParameterProxy | ( | ParameterType | type = ParameterType::SM | ) |
Constructs a proxy optionally bound to a parameter type.
Constructs the statistics parameter proxy.
If type is not allowed by the statistics layer, a ValueError is logged.
| type | Parameter namespace handled by block-based access. |
Initializes:
pp) for typed ParamId access,pp_with_type) bound to type for (block, LhaID) access.| type | Parameter namespace used by block-based queries. |
Definition at line 12 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns the parameter object associated with a binned observable.
Returns a vector of the underlying parameter objects for a binned observable entry.
The binned observable is resolved to the FOBS observable block.
| id | Binned observable identifier. |
This is useful when the caller needs access to the full parameter metadata associated with a binned observable, such as uncertainties or binning info.
| id | Binned observable identifier. |
Implements IStatParameterProxy.
Definition at line 100 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns the parameter object identified by a typed ParamId.
Returns the underlying parameter object identified by a typed ParamId.
| pid | Fully typed parameter identifier. |
| pid | Fully typed parameter identifier. |
Implements IStatParameterProxy.
Definition at line 23 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns the parameter object identified by block and LHA id.
Returns the underlying parameter object identified by block and LHA id.
This uses the internal provider bound to the constructor-selected ParameterType.
| block | Block name. |
| id | LHA-like identifier. |
This overload is intended for proxies already bound to a specific ParameterType.
| block | Block name. |
| id | LHA-like identifier inside the block. |
Implements IStatParameterProxy.
Definition at line 30 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns a scalar quantity for a binned observable entry.
Returns a vector of scalar quantities (for each experiments) for a binned observable entry.
The binned observable is internally mapped to the observable block (FOBS) using its FLHA identifier.
| id | Binned observable identifier. |
| d_type | Requested quantity type. |
This overload is used when the observable is identified not only by its base observable id but also by a bin definition encoded in BinnedObservableId.
| id | Binned observable identifier. |
| d_type | Requested quantity type. |
Implements IStatParameterProxy.
Definition at line 71 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns a scalar quantity for an observable entry.
Returns a vector of scalar quantities (for each experiments) for an observable identified by ObservableId.
The observable is internally mapped to the observable block (FOBS) using its FLHA identifier.
| id | Observable identifier. |
| d_type | Requested quantity type. |
This is typically used for experimental observable entries stored in the observable parameter blocks.
| id | Observable identifier. |
| d_type | Requested quantity type. |
Implements IStatParameterProxy.
Definition at line 55 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns a scalar quantity for a typed parameter.
Returns a scalar quantity for a typed parameter.
If the parameter has no type, a warning is emitted. If the type is not allowed, a ValueError is logged.
For Wilson parameters, missing entries return a default-constructed scalar_t.
| pid | Fully typed parameter identifier. |
| d_type | Requested quantity type. |
Depending on d_type, returns the central value or one of its uncertainties.
| pid | Fully typed parameter identifier. |
| d_type | Requested quantity type. |
Implements IStatParameterProxy.
Definition at line 37 of file StatParameterProxy.cpp.
|
overridevirtual |
Returns a scalar quantity for a parameter identified by block and LHA id.
Returns a scalar quantity for a parameter identified by block and LHA id.
This overload uses the provider bound to the constructor-selected ParameterType.
For Wilson parameters, missing entries return a default-constructed scalar_t.
| block | Block name. |
| id | LHA-like identifier. |
| d_type | Requested quantity type. |
This overload is intended for proxies already bound to a specific ParameterType.
| block | Block name. |
| id | LHA-like identifier inside the block. |
| d_type | Requested quantity type. |
Implements IStatParameterProxy.
Definition at line 89 of file StatParameterProxy.cpp.