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 "MartyInterface.h"
3#include "Extractor.h"
4#include "Interpreter.h"
5#include "IncludeManager.hpp"
6#include "LineProcessor.h"
7#include "ModelWriter.h"
8#include "SMParamSetter.h"
9#include "FileNameManager.h"
10#include "MemoryManager.h"
11#include "HyperisoMaster.h"
12#include "config.hpp"
13#include "ModelAPI.h"
14#include "MartyParameterProxy.h"
16
17int main() {
19
20 std::string base_path = project_root.data();
21 HyperisoConfig config;
22 config.model = Model::SM;
23 hyp.init(base_path + "Test/InputFiles/testinput_thdm.lha", config);
24
25 std::shared_ptr<ModelAPI> model_api = std::make_shared<ModelAPI>();
26 std::shared_ptr<MartyParameterProxy> sm_params = std::make_shared<MartyParameterProxy>(ParameterType::SM);
27 std::shared_ptr<MartyParameterProxy> bsm_params = std::make_shared<MartyParameterProxy>(ParameterType::BSM);
28 std::shared_ptr<IInterpreterPortsFactory> ports = std::make_shared<DefaultInterpreterPortsFactory>();
29 MartyInterface MartyInterface(model_api, sm_params, ports, bsm_params);
30
31 std::cout << sm_params->operator()("MASS", 24) << std::endl;
32
33 MartyInterface.calculate("C7", "SM", 81, project_tp_root.data() + std::string("MARTY/src/MARTY/src/marty/models/sm.h"));
34
35 return 0;
36}
Declares the default factory for interpreter ports.
int main()
Declares utilities to extract parameter declarations from C++ code.
Manages file and directory names for generated MARTY code and assets.
Declares the helper used to prepare numeric MARTY models and parameter files.
High-level helpers for initializing and monitoring the Hyperiso framework.
Declares the Interpreter that maps MARTY parameters to Hyperiso IDs.
Declares a line-based transformer for MARTY-generated C++ files.
High-level façade around MARTY-based code generation and compilation.
Concrete parameter proxy that reads values from Hyperiso Parameters.
Manages memory caching, parameter blocks, and LHA reader instances.
Declares a helper that writes processed model code and parameters.
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 interface to MARTY-based code generation and execution.
void calculate(std::string wilson, std::string model, double Q_match, std::string model_path)
Convenience shortcut to generate, compile, and run the full pipeline.
Configuration object controlling model, input flags and optional MARTY resources.
Definition Config.h:24
Model model
Current model.
Definition Config.h:33