Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
main_thdm.cpp
Go to the documentation of this file.
1#include <iostream>
2
3#include "MemoryManager.h"
4#include "Parameters.h"
5#include "WilsonInterface.h"
6#include "BlockProxy.h"
7
8int main() {
9 auto hyp = HyperisoMaster();
10 HyperisoConfig config_hyp;
11 // config_hyp.flags[ExternalFlag::USE_MARTY] = false;
12 config_hyp.model = Model::THDM;
13 config_hyp.mty_model_name = "THDM";
14 config_hyp.mty_model_path = std::string(project_tp_root.data()) + "MARTY/src/MARTY/src/marty/models/thdm.h";
15
16 hyp.init("lha/testinput_thdm.lha", config_hyp); // Initialize program manager with LHA file
17
18 auto wi = WilsonInterface(); // Initialize interface and build the required groups
19 std::cout << "here " << std::endl;
21 std::cout << "here " << std::endl;
22 wi.build(config);
23 std::cout << "here " << std::endl;
24 // BlockProxy().log_block(ParameterType::WILSON, "BCoefficients_B_SCALE_STANDARD");
28 for (auto elem : {WCoef::CQ1_MU, WCoef::CQ2_MU}) {
29 LOG_INFO(WCoefMapper::str(elem), "(MW) at LO =", wi.getM(WGroup::BScalar, elem, QCDOrder::LO, ContributionType::BSM));
30 LOG_INFO(WCoefMapper::str(elem), "(MW) at NLO =", wi.getM(WGroup::BScalar, elem, QCDOrder::NLO, ContributionType::BSM));
31 LOG_INFO("\n");
32 }
33
35 LOG_INFO(WCoefMapper::str(elem), "(MW) at LO =", wi.getM(WGroup::B, elem, QCDOrder::LO, ContributionType::BSM));
36 LOG_INFO(WCoefMapper::str(elem), "(MW) at NLO =", wi.getM(WGroup::B, elem, QCDOrder::NLO, ContributionType::BSM));
37 LOG_INFO(WCoefMapper::str(elem), "(MW) at NNLO =", wi.getM(WGroup::B, elem, QCDOrder::NNLO, ContributionType::BSM));
38 LOG_INFO("\n");
39 }
40
42 LOG_INFO(WCoefMapper::str(elem), "(MW) at LO =", wi.getM(WGroup::BPrime, elem, QCDOrder::LO, ContributionType::BSM));
43 LOG_INFO(WCoefMapper::str(elem), "(MW) at NLO =", wi.getM(WGroup::BPrime, elem, QCDOrder::NLO, ContributionType::BSM));
44 LOG_INFO("\n");
45 }
46
47 LOG_INFO("Parameters created");
48 // LOG_INFO("C9(mu_h) at LO =", wi.getR(WGroup::B, WCoef::C9, QCDOrder::LO, ContributionType::TOTAL));
49 // LOG_INFO("AGAIN");
50 // LOG_INFO("C9(mu_h) at NLO =", wi.getR(WGroup::B, WCoef::C9, QCDOrder::NLO, ContributionType::TOTAL));
51 // LOG_INFO("C9(mu_h) at NNLO =", wi.getR(WGroup::B, WCoef::C9, QCDOrder::NNLO, ContributionType::TOTAL));
52
53 // LOG_INFO("C9(mu_h) full =", wi.getFR(WGroup::B, WCoef::C9, QCDOrder::NNLO, ContributionType::TOTAL));
54 return 0;
55}
Facade combining block existence/logging (BlockProvider) and block listing (APIAdapter).
#define LOG_INFO(...)
Macro for logging informational messages.
Definition Logger.h:39
Manages memory caching, parameter blocks, and LHA reader instances.
Model-dependent parameter repository and initialization strategies.
Unified proxy for block queries and diagnostics.
Definition BlockProxy.h:51
void log_all_blocks(ParameterType pt) override
Logs all blocks for a given ParameterType.
Definition BlockProxy.cpp:7
static std::string str(const IdOf< WCoefTag > &id)
Returns the string representation of an identifier.
High-level interface to initialize and monitor the main framework configuration.
User-facing API to build and query Wilson coefficients at matching and hadronic scales.
int main()
Definition main_thdm.cpp:8
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