|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete IModel implementation backed by ObservableInterface. More...
#include <ObservableInterfaceProxy.h>


Public Member Functions | |
| ObservableInterfaceProxy (std::shared_ptr< ObservableInterface > obs, std::vector< ParamId > p_specs, std::vector< ParamId > eta_specs) | |
| Constructs the proxy with explicit fit and nuisance parameter lists. | |
| ObservableInterfaceProxy (std::shared_ptr< ObservableInterface > obs, std::shared_ptr< IStatParamOptimizerProxy > spop) | |
| Constructs the proxy with a parameter optimizer backend. | |
| std::shared_ptr< IModel > | clone_for_worker () const override |
| Returns the number of currently active binned observables. | |
| bool | can_clone_for_worker () const override |
| Whether clone_for_worker is implemented. | |
| std::unique_ptr< IModelThreadGuard > | force_decay_threads (size_t n_threads) override |
| Temporarily force internal model/decay thread counts. | |
| std::size_t | n_observables () const override |
| Returns the number of currently active binned observables. | |
| void | prepare_for_prediction () override |
| Materialize model-side runtime state before repeated predictions. | |
| std::unordered_set< ParamId > | get_obs_deps (ObservableId id) override |
| Returns the model parameters required by an observable. | |
| std::vector< BinnedObservableId > | get_obs_ids () override |
| Returns the identifiers of the currently active observable bins. | |
| std::map< ObservableId, std::vector< ObservableValue > > | predict_optimized (const std::map< ParamId, double > &p, const std::map< ParamId, double > &eta) override |
| Computes model predictions for a given parameter point. | |
| void | compute_observables () const |
| Forces computation of the currently configured observables. | |
Public Member Functions inherited from IModel | |
| virtual | ~IModel ()=default |
| Default virtual destructor. | |
Concrete IModel implementation backed by ObservableInterface.
The proxy translates statistical fit/nuisance parameter maps into updates of the underlying parameter optimizer proxy, commits those updates, then delegates prediction computation to ObservableInterface.
Definition at line 34 of file ObservableInterfaceProxy.h.
| ObservableInterfaceProxy::ObservableInterfaceProxy | ( | std::shared_ptr< ObservableInterface > | obs, |
| std::vector< ParamId > | p_specs, | ||
| std::vector< ParamId > | eta_specs | ||
| ) |
Constructs the proxy with explicit fit and nuisance parameter lists.
| obs | Observable interface to wrap. |
| p_specs | Fit-parameter identifiers handled by the statistical layer. |
| eta_specs | Nuisance-parameter identifiers handled by the statistical layer. |
Definition at line 30 of file ObservableInterfaceProxy.cpp.
| ObservableInterfaceProxy::ObservableInterfaceProxy | ( | std::shared_ptr< ObservableInterface > | obs, |
| std::shared_ptr< IStatParamOptimizerProxy > | spop | ||
| ) |
Constructs the proxy with a parameter optimizer backend.
| obs | Observable interface to wrap. |
| spop | Optimizer proxy used to set and commit parameter values. |
Definition at line 38 of file ObservableInterfaceProxy.cpp.
|
inlineoverridevirtual |
Whether clone_for_worker is implemented.
Reimplemented from IModel.
Definition at line 61 of file ObservableInterfaceProxy.h.
|
overridevirtual |
Returns the number of currently active binned observables.
Reimplemented from IModel.
Definition at line 40 of file ObservableInterfaceProxy.cpp.
|
virtual |
Forces computation of the currently configured observables.
This method is primarily used to initialize or refresh model-side caches before the statistical manager builds likelihood inputs.
Implements IModel.
Definition at line 109 of file ObservableInterfaceProxy.cpp.
|
overridevirtual |
Temporarily force internal model/decay thread counts.
The returned guard restores the previous state on destruction. Implementations that do not support runtime thread control may return nullptr.
Reimplemented from IModel.
Definition at line 50 of file ObservableInterfaceProxy.cpp.
|
overridevirtual |
Returns the model parameters required by an observable.
| id | Observable identifier. |
Implements IModel.
Definition at line 73 of file ObservableInterfaceProxy.cpp.
|
overridevirtual |
Returns the identifiers of the currently active observable bins.
Implements IModel.
Definition at line 77 of file ObservableInterfaceProxy.cpp.
|
overridevirtual |
Returns the number of currently active binned observables.
Implements IModel.
Definition at line 57 of file ObservableInterfaceProxy.cpp.
|
overridevirtual |
Computes model predictions for a given parameter point.
| p | Map of fit-parameter identifiers to values. |
| eta | Map of nuisance-parameter identifiers to values. |
| std::runtime_error | if no optimizer proxy is available. |
Implements IModel.
Definition at line 81 of file ObservableInterfaceProxy.cpp.
|
overridevirtual |
Materialize model-side runtime state before repeated predictions.
Implementations may use this hook to lazily build dependent parameter blocks, Wilson groups, decay caches, or other mutable runtime structures that must exist before the first parameter update is committed. The default implementation is a no-op so existing non-cloneable models keep their previous behavior.
Reimplemented from IModel.
Definition at line 59 of file ObservableInterfaceProxy.cpp.