Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
examples/monitoring_system_example.cpp

Example of using monitoring and access classes like HyperisoMaster, MartyAdapter, APIAdapter.

Example of using monitoring and access classes like HyperisoMaster, MartyAdapter, APIAdapter.

#include "HyperisoMaster.h"
#include "MartyAdapter.h"
#include "APIAdapter.h"
#include <iostream>
int main() {
HyperisoMaster hyperiso;
hyperiso.init("input.lha");
if (hyperiso.check_flag(ExternalFlag::USE_MARTY)) {
MartyAdapter marty;
std::cout << "MARTY Model: " << marty.get_marty_model_name() << std::endl;
}
for (const auto& block : api.get_all_blocks()) {
std::cout << "Available block: " << block << std::endl;
}
return 0;
}
High-level monitoring and access adapter for parameter and path information.
High-level helpers for initializing and monitoring the Hyperiso framework.
Core-side adapter giving MARTY access to configuration and managed paths.
Concrete adapter combining monitoring and path providing functionalities.
Definition APIAdapter.h:54
std::unordered_set< BlockName > get_all_blocks()
Retrieves all block names across all available model types.
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.
bool check_flag(ExternalFlag flag)
Checks if a specific external flag is active.
std::string get_marty_model_name() const
Retrieves the configured MARTY model name.