Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
Freezer Class Reference

Concrete implementation for freezing and unfreezing blocks and parameters. More...

#include <Freezer.h>

Inheritance diagram for Freezer:
Collaboration diagram for Freezer:

Static Public Member Functions

static void freeze (const ParameterType &, const std::string &)
 Freezes a block given its type and name.
 
static void freeze (const ParamId &)
 Freezes a single parameter.
 
static void unfreeze (const ParameterType &, const std::string &)
 Unfreezes a block given its type and name.
 
static void unfreeze (const ParamId &)
 Unfreezes a single parameter.
 
- Static Public Member Functions inherited from IFreezer< ParameterType, std::string, ParamId >
static void freeze (const ParameterType &, const std::string &)=delete
 Freezes a block given its type and name.
 
static void freeze (const ParamId &)=delete
 Freezes a single object (typically a parameter).
 
static void unfreeze (const ParameterType &, const std::string &)=delete
 Unfreezes a block given its type and name.
 
static void unfreeze (const ParamId &)=delete
 Unfreezes a single object (typically a parameter).
 

Additional Inherited Members

- Public Member Functions inherited from IFreezer< ParameterType, std::string, ParamId >
virtual ~IFreezer ()=default
 Virtual destructor for proper polymorphic cleanup if ever inherited non-statically.
 

Detailed Description

Concrete implementation for freezing and unfreezing blocks and parameters.

This class provides a static API to:

  • freeze or unfreeze a whole block given its ParameterType and BlockName,
  • freeze or unfreeze a single parameter given its ParamId.

All operations are delegated to the corresponding Parameters instance, which in turn propagates the freeze/unfreeze requests to Block and Parameter objects (via Block::freeze, Block::unfreeze, Parameter::freeze, Parameter::unfreeze).

See also
Parameters
Block
Parameter

Definition at line 40 of file Freezer.h.

Member Function Documentation

◆ freeze() [1/2]

void Freezer::freeze ( const ParameterType p_type,
const std::string &  block_name 
)
static

Freezes a block given its type and name.

Delegates to Parameters::GetInstance(p_type)->freeze_block(block_name).

Parameters
p_typeThe parameter type (e.g., SM, BSM).
block_nameThe name of the block to freeze.
Examples
examples/freezer_example.cpp.

Definition at line 3 of file Freezer.cpp.

◆ freeze() [2/2]

void Freezer::freeze ( const ParamId pid)
static

Freezes a single parameter.

Delegates to the appropriate Parameters instance based on pid.type and calls freeze_param(pid.block, pid.code).

Parameters
pidThe parameter ID to freeze.

Definition at line 7 of file Freezer.cpp.

◆ unfreeze() [1/2]

void Freezer::unfreeze ( const ParameterType p_type,
const std::string &  block_name 
)
static

Unfreezes a block given its type and name.

Delegates to Parameters::GetInstance(p_type)->unfreeze_block(block_name).

Parameters
p_typeThe parameter type.
block_nameThe name of the block to unfreeze.
Examples
examples/freezer_example.cpp.

Definition at line 11 of file Freezer.cpp.

◆ unfreeze() [2/2]

void Freezer::unfreeze ( const ParamId pid)
static

Unfreezes a single parameter.

Delegates to the appropriate Parameters instance based on pid.type and calls unfreeze_param(pid.block, pid.code).

Parameters
pidThe parameter ID to unfreeze.

Definition at line 15 of file Freezer.cpp.


The documentation for this class was generated from the following files: