|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete statistics-layer proxy for staged parameter optimization updates. More...
#include <StatParamOptimizerProxy.h>


Public Member Functions | |
| StatParamOptimizerProxy () | |
| Constructs the optimizer proxy. | |
| void | set_value (const BlockName &block, const LhaID &id, scalar_t v) override |
| Stages a scalar value update for a parameter. | |
| void | set_param (const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p) override |
| Stages a full parameter replacement/update. | |
| void | remove (const BlockName &block, const LhaID &id) override |
| Stages the removal of a parameter. | |
| void | commit (bool coalesce=true) override |
| Applies all staged operations. | |
| void | clear () override |
| Clears all staged operations without applying them. | |
Public Member Functions inherited from IStatParamOptimizerProxy | |
| virtual | ~IStatParamOptimizerProxy ()=default |
| Virtual destructor. | |
Concrete statistics-layer proxy for staged parameter optimization updates.
This class is intentionally thin: all logic is delegated to the internal ParamOptimizerAdapter. Its role is to expose a stable, module-local interface to the statistics code.
Definition at line 43 of file StatParamOptimizerProxy.h.
| StatParamOptimizerProxy::StatParamOptimizerProxy | ( | ) |
Constructs the optimizer proxy.
Constructs the proxy with the parameter types used by the statistics layer.
Internally initializes the underlying ParamOptimizerAdapter with the parameter types currently relevant to the statistics layer:
The underlying ParamOptimizerAdapter is initialized to operate on:
Definition at line 12 of file StatParamOptimizerProxy.cpp.
|
overridevirtual |
Clears all staged operations without applying them.
Implements IStatParamOptimizerProxy.
Definition at line 47 of file StatParamOptimizerProxy.cpp.
|
overridevirtual |
Applies all staged operations.
Implementations may use coalesce to merge or compact multiple pending edits before applying them. The exact coalescing behavior is adapter-defined.
| coalesce | If true, allows the implementation to merge/reduce pending operations. |
Implements IStatParamOptimizerProxy.
Definition at line 40 of file StatParamOptimizerProxy.cpp.
Stages the removal of a parameter.
The parameter identified by (block, id) will be removed on the next commit().
| block | Block containing the parameter. |
| id | LHA-like identifier of the parameter to remove. |
Implements IStatParamOptimizerProxy.
Definition at line 33 of file StatParamOptimizerProxy.cpp.
|
overridevirtual |
Stages a full parameter replacement/update.
The parameter identified by (block, id) will later be updated from the provided Parameter object when commit() is called.
| block | Block containing the parameter. |
| id | LHA-like identifier inside the block. |
| p | Shared pointer to the parameter payload to apply. |
Implements IStatParamOptimizerProxy.
Definition at line 26 of file StatParamOptimizerProxy.cpp.
|
overridevirtual |
Stages a scalar value update for a parameter.
The parameter identified by (block, id) will later be assigned the value v when commit() is called.
| block | Block containing the parameter. |
| id | LHA-like identifier inside the block. |
| v | New scalar value to assign. |
Implements IStatParamOptimizerProxy.
Definition at line 19 of file StatParamOptimizerProxy.cpp.