Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
BScalarWilsonGroup.cpp
Go to the documentation of this file.
2
3std::shared_ptr<CoefficientGroup> BScalarCoefficientGroup::clone() const {
4 return std::make_shared<BScalarCoefficientGroup>(*this);
5}
6
8 LOG_TRACE("In BScalarCoefficientGroup constructor");
10}
11
12std::unordered_map<WCoefId, scalar_t> BScalarCoefficientGroup::base_1_LO_calculation (
13 const std::unordered_map<QCDOrder, std::unordered_map<WCoefId, scalar_t>>& coef_matching,
14 const BlockSrc& src
15)
16{
18 double eta = src.get_val("WPARAM_RUN_SM",2);
19 double beta_0 = src.get_val("WPARAM_SI_SM",5);
20 double fact = pow(eta, -4 / beta_0);
21
22 std::unordered_map<WCoefId, scalar_t> Ci_run_map {};
23 for (auto coef : ids) {
24 const auto id = WCoefMapper::to_id(coef);
25 Ci_run_map[id] = fact * coef_matching.at(QCDOrder::LO).at(id);
26 }
27
28 return Ci_run_map;
29}
30
31std::unordered_map<WCoefId, scalar_t> BScalarCoefficientGroup::base_1_NLO_calculation (
32 const std::unordered_map<QCDOrder, std::unordered_map<WCoefId, scalar_t>>& coef_matching,
33 const BlockSrc& src
34)
35{
37 double eta = src.get_val("WPARAM_RUN_SM",2);
38 double beta_0 = src.get_val("WPARAM_SI_SM",5);
39 double fact = pow(eta, 1 - 4 / beta_0);
40
41 std::unordered_map<WCoefId, scalar_t> Ci_run_map {};
42 for (auto coef : ids) {
43 const auto id = WCoefMapper::to_id(coef);
44 Ci_run_map[id] = fact * coef_matching.at(QCDOrder::NLO).at(id);
45 }
46
47 return Ci_run_map;
48}
QCDOrder
#define LOG_TRACE(...)
Macro for logging trace messages.
Definition Logger.h:46
std::shared_ptr< CoefficientGroup > clone() const override
Polymorphic clone.
static std::unordered_map< WCoefId, scalar_t > base_1_NLO_calculation(const std::unordered_map< QCDOrder, std::unordered_map< WCoefId, scalar_t > > &coef_matching, const BlockSrc &src)
static std::unordered_map< WCoefId, scalar_t > base_1_LO_calculation(const std::unordered_map< QCDOrder, std::unordered_map< WCoefId, scalar_t > > &coef_matching, const BlockSrc &src)
BScalarCoefficientGroup(WilsonGroupAdapterConfig adapters)
Lightweight view over a set of source blocks.
Definition SourcesView.h:71
scalar_t get_val(std::string_view blk, std::initializer_list< long > code) const
Retrieves the value of a parameter given as an initializer_list.
Polymorphic container of WilsonCoefficient objects representing a coefficient group.
WGroupId id
Identifier of this group (used by GroupMapper to build block names).
static std::vector< WCoef > get_group(WGroup g)
Returns the list of Wilson coefficients belonging to a WGroup.
scalar_t pow(const scalar_t &base, const scalar_t &exp)
Definition scalar.cpp:75
Dependency injection bundle for CoefficientGroup.