Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
Freezer.cpp
Go to the documentation of this file.
1#include "Freezer.h"
2
3void Freezer::freeze(const ParameterType &p_type, const std::string &block_name) {
4 Parameters::GetInstance(p_type)->freeze_block(block_name);
5}
6
7void Freezer::freeze(const ParamId &pid) {
8 Parameters::GetInstance(pid.type.value())->freeze_param(pid.block, pid.code);
9}
10
11void Freezer::unfreeze(const ParameterType &p_type, const std::string &block_name) {
12 Parameters::GetInstance(p_type)->unfreeze_block(block_name);
13}
14
15void Freezer::unfreeze(const ParamId &pid) {
16 Parameters::GetInstance(pid.type.value())->unfreeze_param(pid.block, pid.code);
17}
Concrete helper for freezing and unfreezing parameter blocks and parameters.
ParameterType
static void freeze(const ParameterType &, const std::string &)
Freezes a block given its type and name.
Definition Freezer.cpp:3
static void unfreeze(const ParameterType &, const std::string &)
Unfreezes a block given its type and name.
Definition Freezer.cpp:11
static std::shared_ptr< Parameters > GetInstance(ParameterType id=ParameterType::SM)
Returns the singleton-like repository for a given parameter type.
Composite identifier for a single parameter.
Definition ParamID.h:57
std::optional< ParameterType > type
Optional high-level parameter category.
Definition ParamID.h:65
BlockName block
Name of the block where the parameter is stored.
Definition ParamID.h:73
LhaID code
Index or multi-index of the parameter inside the block.
Definition ParamID.h:82