Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
test_contributions.cpp
Go to the documentation of this file.
1#include "HyperisoMaster.h"
2#include "WilsonBuilder.h"
3#include "BlockProxy.h"
4#include <iostream>
5#include <cassert>
6
7int main() {
9 HyperisoConfig config;
10 config.model = Model::MARTY;
11
12 config.mty_model_name = "THDM";
13 config.mty_model_path = std::string(project_tp_root.data()) + "MARTY/src/MARTY/src/marty/models/thdm.h";
14
15 hyp.init("lha/testinput_thdm.lha", config);
16
17 WilsonBuildConfig wilson_config;
19 wilson_config.matching_scale = 160.0;
20 wilson_config.hadronic_scale = 3;
21 wilson_config.order = QCDOrder::LO;
22 WilsonBuilder builder {wilson_config};
23
24 BlockProxy bp;
25
26 LOG_INFO("------------- Matching blocks -------------");
27
29
30 LOG_INFO("------------- Hadronic blocks -------------");
31
33
34 LOG_INFO("------------- Wilson Parameter blocks -------------");
36 bp.log_block(ParameterType::SM, "VCKM");
37 bp.log_block(ParameterType::WILSON, "B_SCALE");
38 bp.log_block(ParameterType::WILSON, "WPARAM_SI_SM");
39 bp.log_block(ParameterType::WILSON, "WPARAM_MATCH_SM");
40 bp.log_block(ParameterType::WILSON, "WPARAM_RUN_SM");
41 bp.log_block(ParameterType::WILSON, "UM_MATRIX_5");
42 bp.log_block(ParameterType::WILSON, "UM_MATRIX_4");
43
44 return 0;
45}
Facade combining block existence/logging (BlockProvider) and block listing (APIAdapter).
@ MESON_MIXING
High-level helpers for initializing and monitoring the Hyperiso framework.
#define LOG_INFO(...)
Macro for logging informational messages.
Definition Logger.h:39
Unified proxy for block queries and diagnostics.
Definition BlockProxy.h:51
void log_block(ParameterType pt, const std::string &blockname) override
Logs a single block for a given ParameterType.
static std::string str(const WGroupId &gid, ScaleType s, WilsonBasis b=WilsonBasis::B_STANDARD)
Builds a composite block name using a WGroupId, scale and basis.
High-level interface to initialize and monitor the main framework configuration.
void init(const std::string &lhaFile, HyperisoConfig config)
Initializes Hyperiso using a LHA file and a full Config object.
High-level factory assembling a complete Wilson computation pipeline.
Configuration object controlling model, input flags and optional MARTY resources.
Definition Config.h:24
std::optional< fs::path > mty_model_path
Path to the MARTY model file, if needed.
Definition Config.h:35
std::optional< std::string > mty_model_name
MARTY model class name, if needed.
Definition Config.h:34
Model model
Current model.
Definition Config.h:33
Configuration for building sets of Wilson coefficients.
Definition Configs.h:32
std::unordered_set< WGroupId > groups
Set of Wilson operator group identifiers to be included in the build.
Definition Configs.h:36
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
int main()