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

#include <ObsWilsonBuilder.h>

Inheritance diagram for ObsWilsonBuilder:
Collaboration diagram for ObsWilsonBuilder:

Public Member Functions

 ObsWilsonBuilder (std::shared_ptr< WilsonBuilder > wil_builder)
 Construct the observable builder using a core Wilson builder.
 
void build (std::shared_ptr< AbstractConfig > config) override
 Build or extend the Wilson coefficient infrastructure from an observable config.
 
void add_custom_group (const CustomWilsonGroupConfig &config) override
 Append a runtime/custom Wilson group to the underlying core builder.
 
void add_matching_patch (const WilsonMatchingPatch &patch) override
 Add an additive Wilson matching patch to the underlying Wilson manager.
 
std::shared_ptr< IObsWilsonProxyget_proxy () override
 Create and return a proxy object used by observables to query Wilson coefficients.
 
- Public Member Functions inherited from IObsWilsonBuilder
virtual ~IObsWilsonBuilder ()=default
 

Detailed Description

Definition at line 34 of file ObsWilsonBuilder.h.

Constructor & Destructor Documentation

◆ ObsWilsonBuilder()

ObsWilsonBuilder::ObsWilsonBuilder ( std::shared_ptr< WilsonBuilder wil_builder)
inline

Construct the observable builder using a core Wilson builder.

Parameters
wil_builderCore Wilson builder responsible for group creation and configuration.

The builder instance is stored and reused to either build or extend the Wilson coefficient manager.

Definition at line 43 of file ObsWilsonBuilder.h.

Member Function Documentation

◆ add_custom_group()

void ObsWilsonBuilder::add_custom_group ( const CustomWilsonGroupConfig config)
overridevirtual

Append a runtime/custom Wilson group to the underlying core builder.

If the core builder has not created a coefficient manager yet, an empty Wilson pipeline is first built using the scales/order from config. This makes the method safe to call before any builtin Wilson group has been requested by a decay.

Parameters
configRuntime/custom Wilson group configuration.

Implements IObsWilsonBuilder.

Definition at line 14 of file ObsWilsonBuilder.cpp.

◆ add_matching_patch()

void ObsWilsonBuilder::add_matching_patch ( const WilsonMatchingPatch patch)
overridevirtual

Add an additive Wilson matching patch to the underlying Wilson manager.

Implements IObsWilsonBuilder.

Definition at line 27 of file ObsWilsonBuilder.cpp.

◆ build()

void ObsWilsonBuilder::build ( std::shared_ptr< AbstractConfig config)
overridevirtual

Build or extend the Wilson coefficient infrastructure from an observable config.

The provided config must be a WilsonBuildConfig (stored behind an AbstractConfig shared_ptr). It is downcast and then forwarded to the core builder.

Behavior:

Parameters
configObservable configuration (expected to contain a WilsonBuildConfig).
Warning
This function assumes config can be safely cast to WilsonBuildConfig. If the cast fails, dereferencing the result is undefined behavior.

Implements IObsWilsonBuilder.

Definition at line 3 of file ObsWilsonBuilder.cpp.

◆ get_proxy()

std::shared_ptr< IObsWilsonProxy > ObsWilsonBuilder::get_proxy ( )
overridevirtual

Create and return a proxy object used by observables to query Wilson coefficients.

The returned proxy is an ObsWilsonProxy that wraps the core WilsonProvider obtained from the underlying WilsonBuilder.

Returns
A new IObsWilsonProxy instance.

Implements IObsWilsonBuilder.

Definition at line 37 of file ObsWilsonBuilder.cpp.


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