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

Builds a ready-to-use CoefficientGroup instance from a BuildContext. More...

#include <CoefficientGroupBuilder.h>

Public Member Functions

 CoefficientGroupBuilder (const CoefficientRegistry &reg)
 Constructs the builder with a reference to a coefficient registry.
 
std::shared_ptr< CoefficientGroupbuild (const BuildContext &ctx) const
 Builds the coefficient group described by ctx.group_id.
 

Detailed Description

Builds a ready-to-use CoefficientGroup instance from a BuildContext.

The builder is a pure assembly component:

  • it does not implement coefficient physics,
  • it does not compute running itself,
  • it simply instantiates and wires objects according to definitions and registries.

Definition at line 53 of file CoefficientGroupBuilder.h.

Constructor & Destructor Documentation

◆ CoefficientGroupBuilder()

CoefficientGroupBuilder::CoefficientGroupBuilder ( const CoefficientRegistry reg)
inlineexplicit

Constructs the builder with a reference to a coefficient registry.

Parameters
regRegistry used to create concrete WilsonCoefficient instances.

Definition at line 60 of file CoefficientGroupBuilder.h.

Member Function Documentation

◆ build()

std::shared_ptr< CoefficientGroup > CoefficientGroupBuilder::build ( const BuildContext ctx) const

Builds the coefficient group described by ctx.group_id.

Steps performed: 1) Fetch the group definition via GroupDefinitions::get(ctx.group_id). 2) Create a GenericCoefficientGroup initialized with ctx.adapters. 3) Set group id and contribution type (SM/BSM/TOTAL). 4) Determine the matching block name:

Parameters
ctxBuild context (model/backend/contribution and adapters).
Returns
A fully constructed coefficient group.

Definition at line 12 of file CoefficientGroupBuilder.cpp.


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