|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Adapter that builds a ParamOptimizer from Parameters instances. More...
#include <ParamOptimizerAdapter.h>


Public Member Functions | |
| ParamOptimizerAdapter (std::vector< ParameterType > scopes) | |
| Constructs the adapter from a list of parameter type scopes. | |
| void | set_value (const BlockName &block, const LhaID &id, scalar_t v) override |
| Stage a change of central value for a parameter. | |
| void | set_param (const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p) override |
| Stage a full replacement of a parameter object. | |
| void | remove (const BlockName &block, const LhaID &id) override |
| Stage the removal of a parameter. | |
| void | commit (bool coalesce=true) override |
| Commit all staged operations. | |
| void | clear () override |
| Clears all currently staged operations without applying them. | |
Public Member Functions inherited from IParamOptimizer | |
| virtual | ~IParamOptimizer ()=default |
| Virtual destructor for interface. | |
Adapter that builds a ParamOptimizer from Parameters instances.
Example:
Definition at line 34 of file ParamOptimizerAdapter.h.
| ParamOptimizerAdapter::ParamOptimizerAdapter | ( | std::vector< ParameterType > | scopes | ) |
Constructs the adapter from a list of parameter type scopes.
For each ParameterType in scopes, the constructor retrieves Parameters::GetInstance(scope)->get_block_accessor() and passes the resulting collection of BlockAccessor pointers to an internal ParamOptimizer instance.
| scopes | List of ParameterTypes to include in the optimization scope. |
Definition at line 4 of file ParamOptimizerAdapter.cpp.
|
overridevirtual |
Clears all currently staged operations without applying them.
Implements IParamOptimizer.
Definition at line 27 of file ParamOptimizerAdapter.cpp.
|
overridevirtual |
Commit all staged operations.
Implementations may:
| coalesce | If true, coalesce multiple operations on the same parameter. |
Implements IParamOptimizer.
Definition at line 23 of file ParamOptimizerAdapter.cpp.
Stage the removal of a parameter.
Implements IParamOptimizer.
Definition at line 19 of file ParamOptimizerAdapter.cpp.
|
overridevirtual |
Stage a full replacement of a parameter object.
| block | Block name where the parameter resides. |
| id | LhaID of the parameter. |
| p | Shared pointer to the new Parameter. |
Implements IParamOptimizer.
Definition at line 16 of file ParamOptimizerAdapter.cpp.
|
overridevirtual |
Stage a change of central value for a parameter.
| block | Block name where the parameter resides. |
| id | LhaID of the parameter. |
| v | New value to set. |
Implements IParamOptimizer.
Definition at line 13 of file ParamOptimizerAdapter.cpp.