Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
MartyWilsonProxy.h
Go to the documentation of this file.
1#ifndef MARTY_WILSON_PROXY_H
2#define MARTY_WILSON_PROXY_H
3
4#include "IMartyWilsonProxy.h"
6
7#include <utility>
8
31class MartyWilsonProxy : public IMartyWilsonProxy<InterpretedParam> {
32public:
39
41 void calculate(std::string wilson, std::string model, double Q_match, std::string model_path) override {martyAdapter.calculate(wilson, model, Q_match, model_path);}
42
44 void calculate(std::string wilson,
45 std::string output_model,
46 std::string target_model,
47 double Q_match,
48 std::string model_path,
49 bool sm_like_filter,
50 bool bsm_split_generation = false,
51 bool full_target_generation = false) override {
52 martyAdapter.calculate(
53 wilson,
54 output_model,
55 target_model,
56 Q_match,
57 model_path,
58 sm_like_filter,
59 bsm_split_generation,
60 full_target_generation
61 );
62 }
63
64 std::string calculate_isolated(std::string wilson,
65 std::string output_model,
66 std::string target_model,
67 double Q_match,
68 std::string model_path,
69 bool sm_like_filter,
70 bool bsm_split_generation = false,
71 bool full_target_generation = false) override {
72 return martyAdapter.calculate_isolated(
73 std::move(wilson),
74 std::move(output_model),
75 std::move(target_model),
76 Q_match,
77 std::move(model_path),
78 sm_like_filter,
79 bsm_split_generation,
80 full_target_generation
81 );
82 }
83
85 std::set<std::string> get_special_blocks() override {return martyAdapter.get_special_blocks();}
86
88 std::unordered_set<InterpretedParam> get_dependencies(std::string wilson) override {return martyAdapter.get_dependencies(wilson);}
89
90private:
92 MartyWilsonAdapter martyAdapter;
93};
94
95#endif // MARTY_WILSON_PROXY_H
Interface for MARTY-based Wilson coefficient calculations.
Declares a concrete IMartyWilsonAdapter implementation built on MartyInterface.
Abstract proxy for Wilson coefficient calculations via MARTY.
Concrete adapter for Wilson calculations based on MartyInterface.
std::unordered_set< InterpretedParam > get_dependencies(std::string wilson) override
Returns the dependencies associated with a given Wilson basis.
std::set< std::string > get_special_blocks() override
Returns the set of special blocks requiring custom handling.
void calculate(std::string wilson, std::string model, double Q_match, std::string model_path) override
Launches a full calculation for a given (Wilson, model) pair.
std::string calculate_isolated(std::string wilson, std::string output_model, std::string target_model, double Q_match, std::string model_path, bool sm_like_filter, bool bsm_split_generation=false, bool full_target_generation=false) override
Concrete proxy forwarding Wilson calculations to MARTY.
std::string calculate_isolated(std::string wilson, std::string output_model, std::string target_model, double Q_match, std::string model_path, bool sm_like_filter, bool bsm_split_generation=false, bool full_target_generation=false) override
Runs a calculation with invocation-local parameter/output files.
MartyWilsonProxy()
Default constructor.
void calculate(std::string wilson, std::string output_model, std::string target_model, double Q_match, std::string model_path, bool sm_like_filter, bool bsm_split_generation=false, bool full_target_generation=false) override
void calculate(std::string wilson, std::string model, double Q_match, std::string model_path) override
Runs the full Wilson coefficient calculation pipeline.
std::set< std::string > get_special_blocks() override
Returns the set of special parameter blocks.
std::unordered_set< InterpretedParam > get_dependencies(std::string wilson) override
Returns the set of parameter dependencies for a given Wilson coefficient.