Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
main_fwcoef.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::HAS_WILSON_INPUT] = true;
12 hyp.init("Test/InputFiles/testInput.flha", config_hyp); // Initialize program manager with LHA file
13
14 auto wi = WilsonInterface(); // Initialize interface and build the required groups
15
16 WilsonBuildConfig config({WGroup::B}, 81, 4.18, QCDOrder::NLO);
17
18 wi.build(config);
21 for (auto elem : list) {
22 std::cout << elem << std::endl;
23 }
24 BlockProxy().log_block(ParameterType::WILSON, "BCoefficients_EW_SCALE");
25 BlockProxy().log_block(ParameterType::WILSON, "BCoefficients_EW_SCALE_SM");
27 std::cout << "here !" << std::endl;
28
29 std::vector<std::string> name {"C1", "C2", "C3", "C4", "C5", "C6", "C7", "C8", "C9", "C10"};
30 for (auto& coeff : name) {
31 complex_t C = {0,0};
32 C = wi.getMatchingCoefficient(WGroup::B,WCoefMapper::enum_of(WCoefMapper::enum_elt(coeff)).value(), QCDOrder::LO, ContributionType::SM );
33
34 std::cout << "," << C.real() << "," << C.imag() << std::endl;
35 }
37 BlockProxy().log_block(ParameterType::WILSON, "BCoefficients_B_SCALE_STANDARD");
38
39
40
41 return 0;
42}
Facade combining block existence/logging (BlockProvider) and block listing (APIAdapter).
@ HAS_WILSON_INPUT
User provided Wilson coefficient input.
Manages memory caching, parameter blocks, and LHA reader instances.
Model-dependent parameter repository and initialization strategies.
std::complex< double > complex_t
Convenience alias for std::complex<double>.
Definition Utils.h:35
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
void log_block(ParameterType pt, const std::string &blockname) override
Logs a single block for a given ParameterType.
std::unordered_set< BlockName > get_block_list(ParameterType pt) override
Retrieves the set of block names for a given ParameterType.
static std::optional< WCoef > enum_of(const IdOf< WCoefTag > &id)
Attempts to recover the enum value associated with an identifier.
static IdOf< WCoefTag > enum_elt(std::string_view s)
Alias for id_of(), kept for compatibility.
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()
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
Configuration for building sets of Wilson coefficients.
Definition Configs.h:32