Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
ObsWilsonBuilder.cpp
Go to the documentation of this file.
1#include "ObsWilsonBuilder.h"
2
3void ObsWilsonBuilder::build(std::shared_ptr<AbstractConfig> config) {
4 auto wil_config = *std::dynamic_pointer_cast<WilsonBuildConfig>(config);
5
6 if (wil_builder->get_coefficient_manager()) {
7 wil_builder->add(wil_config);
8 } else {
9 wil_builder->build(wil_config);
10 }
11}
12
13
15 if (!wil_builder->get_coefficient_manager()) {
17 base.matching_scale = config.matching_scale;
18 base.hadronic_scale = config.hadronic_scale;
19 base.order = config.order;
20 wil_builder->build(base);
21 }
22
23 wil_builder->add_custom_group(config);
24}
25
26
28 if (!wil_builder->get_coefficient_manager()) {
30 base.order = patch.order == QCDOrder::NONE ? QCDOrder::LO : patch.order;
31 wil_builder->build(base);
32 }
33
34 wil_builder->add_matching_patch(patch);
35}
36
37std::shared_ptr<IObsWilsonProxy> ObsWilsonBuilder::get_proxy() {
38 return std::make_shared<ObsWilsonProxy>(wil_builder->get_wilson_provider());
39}
Observable-side builder for Wilson coefficient services.
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< IObsWilsonProxy > get_proxy() override
Create and return a proxy object used by observables to query Wilson coefficients.
Configuration of a user-defined Wilson group built from lambdas.
double hadronic_scale
Hadronic/running scale used when the group is added to the manager.
QCDOrder order
Highest QCD order to initialize.
double matching_scale
Matching scale used when the group is added to the manager.
Configuration for building sets of Wilson coefficients.
Definition Configs.h:32
double hadronic_scale
Hadronic scale (in GeV) at which the Wilson coefficients are evaluated in the effective theory.
Definition Configs.h:48
QCDOrder order
Perturbative QCD order used for the evolution and matching of Wilson coefficients....
Definition Configs.h:54
double matching_scale
Matching scale (in GeV) at which the high-energy theory is matched to the effective theory.
Definition Configs.h:42