|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Concrete mutator that directly sets the value of parameters. More...
#include <ParameterSetter.h>


Public Member Functions | |
| void | mutate (const ParamId &pid, scalar_t value) override |
| Sets the value of a parameter. | |
| void | change_mode (const ParamId &pid, ParameterMode mode) override |
| Changes the mode of a parameter (e.g., from FIXED to SHIFTABLE). | |
Public Member Functions inherited from IDataMutator< ParamId, scalar_t, ParameterMode > | |
| virtual | ~IDataMutator ()=default |
| Virtual destructor for interface. | |
Concrete mutator that directly sets the value of parameters.
ParameterSetter is a thin adapter on top of the Parameters singleton:
It additionally enforces some high-level consistency rules, such as preventing changes to EW_SCALE when Wilson coefficients are provided by the user (HAS_WILSON_INPUT).
Definition at line 35 of file ParameterSetter.h.
|
overridevirtual |
Changes the mode of a parameter (e.g., from FIXED to SHIFTABLE).
Delegates to Parameters::changeParameterMode on the appropriate Parameters instance, as determined by pid.type.
| pid | The parameter ID. |
| mode | The new parameter mode. |
Implements IDataMutator< ParamId, scalar_t, ParameterMode >.
Definition at line 16 of file ParameterSetter.cpp.
Sets the value of a parameter.
If the ParamId has no type set, an error is logged since the Parameters instance to target cannot be determined.
Special case:
"EW_SCALE" and the flag ExternalFlag::HAS_WILSON_INPUT is true in MemoryManager's cache, the change is refused and a warning is logged.| pid | The parameter ID. |
| value | The new central value to set. |
Implements IDataMutator< ParamId, scalar_t, ParameterMode >.
Definition at line 3 of file ParameterSetter.cpp.