Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
test_adapters.cpp
Go to the documentation of this file.
2#include "HyperisoMaster.h"
3#include "BlockProxy.h"
5
6int main(int argc, char** argv) {
7
9 HyperisoConfig config;
10 config.model = Model::SM;
11
12 hyp.init("lha/testInput.flha", config);
13
14 auto stat_corr = StatCorrelationProxy();
15
16 double el = stat_corr({"DEFAULT", ObservableMapper::from_flha(LhaID("531_15_2_13_-13")).value()},
17 {"DEFAULT", ObservableMapper::from_flha(LhaID("511_1_2_13_-13")).value()},
18 StatCorrelationProxy::Type::COMBINED);
19
20 std::cout << el << std::endl;
21
22 std::cout << "Corr between A_3_B__KSTAR_L_L and Observables::A_4_B__KSTAR_L_L : "<< stat_corr({"DEFAULT", Observables::A_3_B__KSTAR_MU_MU}, {"DEFAULT", Observables::A_3_B__KSTAR_MU_MU}, StatCorrelationProxy::Type::COMBINED) << std::endl;
23
24 std::cout << "Corr between same param : "<< stat_corr(ExperimentObs{"DEFAULT", Observables::A_3_B__KSTAR_MU_MU}, {"DEFAULT", Observables::A_3_B__KSTAR_MU_MU}, StatCorrelationProxy::Type::COMBINED) << std::endl;
25
27
29
30 // std::cout << "BR_BD_MUMU obs param : " << *spp.get_obs_param(ObservableMapper::to_id(Observables::BR_BD_MUMU)) << std::endl;
31
32 std::cout << "W mass : " << *spp.get_param(ParamId(ParameterType::SM, "MASS", 24)) << std::endl;
33 return 0;
34}
Facade combining block existence/logging (BlockProvider) and block listing (APIAdapter).
High-level helpers for initializing and monitoring the Hyperiso framework.
Concrete statistical proxy forwarding correlation queries to CorrelationProvider.
Statistics-layer proxy for read-only access to parameters and observables.
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
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.
static std::optional< ObservableId > from_flha(const LhaID &ext)
Resolve a FLHA id to a dynamic observable id.
Concrete implementation of IStatCorrelationProxy for the statistics module.
Concrete read-only proxy used by the statistics layer.
std::shared_ptr< Parameter > get_param(const ParamId &) const override
Returns the parameter object identified by a typed ParamId.
Configuration object controlling model, input flags and optional MARTY resources.
Definition Config.h:24
Model model
Current model.
Definition Config.h:33
Represents an identifier of a LHA element, possibly containing several sub-ids.
Definition LhaID.h:56
Composite identifier for a single parameter.
Definition ParamID.h:57