Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
main_marty.cpp
Go to the documentation of this file.
1#include "HyperisoMaster.h"
2#include "WilsonInterface.h"
3#include "ParameterSetter.h"
4#include <iostream>
5#include "BlockProxy.h"
6
7int main() {
9 HyperisoConfig config;
10 // config.flags[ExternalFlag::USE_MARTY] = true;
11 config.model = Model::THDM;
12 config.mty_model_name = "THDM";
13 config.mty_model_path = project_assets_root.data() + std::string("input_files/marty_model/thdm.h");
14
15 // hyp.init("default/lha/testInput.flha", config);
16 // hyp.init("lha/camilia.flha", config);
17 // hyp.init("spectrum/testinput_thdm.lha", config);
18 hyp.init("lha/testinput_thdm.lha", config);
19 // hyp.init("lha/testInput.slha", config);
20 LOG_INFO("HyperisoMaster initialized");
21
23 auto wi = WilsonInterface();
24 LOG_INFO("WilsonInterface created");
25 wi.build(WilsonBuildConfig{
26 {WGroup::B},
27 81,
28 4.7,
30 );
31
32 LOG_INFO("Interface built");
33
36
37 LOG_INFO("alpha =", QCDHelper::alpha_s(pa("EW_SCALE", 1 )));
38 LOG_INFO("C9(mu_W) BSM at LO =", wi.getM(WGroup::B, WCoef::C9, QCDOrder::LO, ContributionType::BSM));
39 LOG_INFO("C9(mu_W) BSM at NLO =", wi.getM(WGroup::B, WCoef::C9, QCDOrder::NLO, ContributionType::BSM));
40 LOG_INFO("C9(mu_W) BSM at NNLO =", wi.getM(WGroup::B, WCoef::C9, QCDOrder::NNLO, ContributionType::BSM));
41 LOG_INFO("C9(mu_W) SM at LO =", wi.getM(WGroup::B, WCoef::C9, QCDOrder::LO, ContributionType::SM));
42 LOG_INFO("C9(mu_W) SM at NLO =", wi.getM(WGroup::B, WCoef::C9, QCDOrder::NLO, ContributionType::SM));
43 LOG_INFO("C9(mu_W) SM at NNLO =", wi.getM(WGroup::B, WCoef::C9, QCDOrder::NNLO, ContributionType::SM));
44
45 LOG_INFO("C7(mu_W) SM at LO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::LO, ContributionType::SM));
46 LOG_INFO("C7(mu_W) BSM at LO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::LO, ContributionType::BSM));
47
48 LOG_INFO("C7(mu_W) SM at NLO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::NLO, ContributionType::SM));
49 LOG_INFO("C7(mu_W) BSM at NLO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::NLO, ContributionType::BSM));
50
51 LOG_INFO("C7(mu_W) at LO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::LO, ContributionType::TOTAL));
52 LOG_INFO("C7(mu_W) at NLO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::NLO, ContributionType::TOTAL));
53 LOG_INFO("C7(mu_W) at NNLO =", wi.getM(WGroup::B, WCoef::C7, QCDOrder::NNLO, ContributionType::TOTAL));
54
55 LOG_INFO("C7(mu_W) SM full =", wi.getFM(WGroup::B, WCoef::C7, QCDOrder::NNLO, ContributionType::SM));
56 LOG_INFO("C7(mu_W) BSM full =", wi.getFM(WGroup::B, WCoef::C7, QCDOrder::NNLO, ContributionType::BSM));
57 LOG_INFO("C7(mu_W) full =", wi.getFM(WGroup::B, WCoef::C7, QCDOrder::NNLO, ContributionType::TOTAL));
58
59 return 0;
60}
Facade combining block existence/logging (BlockProvider) and block listing (APIAdapter).
High-level helpers for initializing and monitoring the Hyperiso framework.
#define LOG_INFO(...)
Macro for logging informational messages.
Definition Logger.h:39
int main()
Definition main_marty.cpp:7
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.
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.
Parameter access proxy bound to a specific ParameterType.
Concrete mutator that directly sets the value of parameters.
static double alpha_s(double mu, MassType mass_b_type=MassType::POLE, MassType mass_t_type=MassType::POLE)
Computes the strong coupling constant α_s at scale μ.
Definition QCDHelper.cpp:52
User-facing API to build and query Wilson coefficients at matching and hadronic scales.
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