Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
main_parameters.cpp
Go to the documentation of this file.
1#include "Parameters.h"
2#include "HyperisoMaster.h"
3#include "BlockProvider.h"
5#include <iostream>
6#include <cmath>
7
8int main() {
9 std::cout << "here ! " << std::endl;
10 auto hyp = HyperisoMaster(); // Initialize program manager with LHA file containing SMINPUTS block
11
12 hyp.pre_init_add_block("SOFTSUSY");
13
14 HyperisoConfig config;
15 config.model = Model::SUSY;
17 std::cout << "here ! " << std::endl;
18 hyp.init("Test/InputFiles/testInput.slha", config);
19 auto sm_params = Parameters::GetInstance(ParameterType::SM); // SM Model
20 auto susy_params = Parameters::GetInstance(ParameterType::BSM); // SUSY Model
21
22 std::shared_ptr<BlockAccessor> truc = sm_params->get_block_accessor();
23
24 auto mmh = truc->get_block_sources("VCKM");
25
26 for (auto mm : mmh) {
27 std::cout << mm.first << std::endl;
28 }
29 auto ooooh = truc->get_all_source_parameters({ParamId(ParameterType::SM, "VCKM", {2,2})});
30
31 for (auto oo : ooooh) {
32 std::cout << oo << std::endl;
33 }
34 try {
35
36 double alpha_s_MZ = pow((*sm_params)("GAUGE", 1), 2) / (4 * M_PI);
37 std::cout << "Alpha_s(MZ): " << alpha_s_MZ << std::endl;
38
39 std::cout << "mass up quark : " << (*sm_params)("MASS", 2) << std::endl;
40 std::cout << "first element of ckm : " << (*sm_params)("VCKM", {0,1}) << std::endl;
41 // double susy_mass = (*susy_params)("MASS", 1000021); // Example PDG code for a SUSY particle
42 std::cout << "SUSY Particle Mass: " << (*susy_params)("SOFTSUSY", 1) << std::endl;
43
44
45 } catch (const std::exception& e) {
46 std::cerr << "Error: " << e.what() << std::endl;
47 }
48
49 // try {
50 // std::cout << (*susy_params)(std::string("GAUGE"), 1) << std::endl;
51 // } catch(const std::exception& e) {
52 // std::cerr << "Error: " << e.what() << std::endl;
53 // }
54
55 // auto mm2 = MemoryManager::GetInstance("Test/InputFiles/testinput_thdm.lha", {0,2});
56 // mm2->init();
57 // auto thdm_params = Parameters::GetInstance(2); // THDM Model
58 // std::cout << "THDM matrice yu : " << (*thdm_params)("YU", 22) << std::endl;
59 // BlockProvider().log_all_blocks(ParameterType::OBSERVABLE);
60 // LOG_INFO(CorrelationProvider()("DEFAULT", Observables::BR_BS_MUMU_UNTAG, Observables::BR_BD_MUMU, CorrelationProvider::CorrelationType::COMBINED));
61 // LOG_INFO(CorrelationProvider()("DEFAULT2", Observables::BR_BS_MUMU_UNTAG, Observables::BR_BD_MUMU, CorrelationProvider::CorrelationType::COMBINED));
62
63
64 return 0;
65}
Concrete implementation of IBlockProvider for HyperISO parameter blocks.
@ IS_LHA_SPECTRUM
Input LHA file already contains a spectrum.
High-level access to parameter and experiment-scoped observable correlations.
High-level helpers for initializing and monitoring the Hyperiso framework.
Model-dependent parameter repository and initialization strategies.
High-level interface to initialize and monitor the main framework configuration.
static std::shared_ptr< Parameters > GetInstance(ParameterType id=ParameterType::SM)
Returns the singleton-like repository for a given parameter type.
int main()
scalar_t pow(const scalar_t &base, const scalar_t &exp)
Definition scalar.cpp:75
Configuration object controlling model, input flags and optional MARTY resources.
Definition Config.h:24
std::map< ExternalFlag, bool > flags
External flags describing the nature of the inputs.
Definition Config.h:26
Model model
Current model.
Definition Config.h:33
Composite identifier for a single parameter.
Definition ParamID.h:57