Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
examples/freezer_example.cpp

Example usage of Freezer to freeze and unfreeze parameters and blocks.

Example usage of Freezer to freeze and unfreeze parameters and blocks.

#include "Freezer.h"
#include "Parameters.h"
#include <iostream>
int main() {
// Assume Parameters are initialized
ParamId mass_w{ParameterType::SM, "MASS", 24}; // W boson
// Freeze a single parameter
Freezer::freeze(mass_w);
std::cout << "W mass is now frozen." << std::endl;
// Unfreeze a single parameter
std::cout << "W mass is now unfrozen." << std::endl;
// Freeze a full block
std::cout << "GAUGE block is now frozen." << std::endl;
// Unfreeze the block
std::cout << "GAUGE block is now unfrozen." << std::endl;
return 0;
}
Concrete helper for freezing and unfreezing parameter blocks and parameters.
Model-dependent parameter repository and initialization strategies.
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
Composite identifier for a single parameter.
Definition ParamID.h:57