Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
GroupDef_B.cpp
Go to the documentation of this file.
1#include "GroupDefinition.h"
2#include "BWilsonGroup.h"
3
5
6namespace GroupDefinitions {
7 const GroupDefinition& B() {
8 static const GroupDefinition def = []{
12
13 {
14 std::map<QCDOrder, CGS> m;
15 CGS lo;
16 lo.sources = {
17 { ParameterType::WILSON, { MATCHING_BLOCK_PLACEHOLDER, "WPARAM_RUN_SM", "WPARAM_MATCH_SM", "B_SCALE", "U_MATRIX" } },
18 { ParameterType::SM, { "SMINPUTS", "MASS" } }
19 };
21 m[QCDOrder::LO] = lo;
22
24 m[QCDOrder::NLO] = nlo;
25
27 m[QCDOrder::NNLO] = nnlo;
28
29 d.sources.emplace(WilsonBasis::B_STANDARD, std::move(m));
30 }
31 {
32 std::map<QCDOrder, CGS> m;
33 CGS lo;
34 lo.sources = {
35 { ParameterType::WILSON, { MATCHING_BLOCK_PLACEHOLDER, "WPARAM_RUN_SM", "WPARAM_MATCH_SM", "V_MATRIX" } }
36 };
38 m[QCDOrder::LO] = lo;
39
41 m[QCDOrder::NLO] = nlo;
42
43 d.sources.emplace(WilsonBasis::B_TRADITIONAL, std::move(m));
44 }
45 return d;
46 }();
47 return def;
48 }
49}
Declarative registry describing Wilson coefficient groups, their sources, and setup hooks.
constexpr const char * MATCHING_BLOCK_PLACEHOLDER
Placeholder string used in GroupDefinition sources to refer to the matching block.
static std::unordered_map< WCoefId, scalar_t > base_1_NNLO_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)
static std::unordered_map< WCoefId, scalar_t > base_2_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_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_2_LO_calculation(const std::unordered_map< QCDOrder, std::unordered_map< WCoefId, scalar_t > > &coef_matching, const BlockSrc &src)
static std::vector< WCoef > get_group(WGroup g)
Returns the list of Wilson coefficients belonging to a WGroup.
Registry/factory of built-in and custom GroupDefinition objects.
Definition GroupDef_B.cpp:6
const GroupDefinition & B()
Built-in group definition accessors.
Definition GroupDef_B.cpp:7
Source specification and aggregation function for a coefficient group block.
Definition WilsonGroup.h:68
std::unordered_map< ParameterType, std::vector< std::string > > sources
Map of required source blocks for each ParameterType scope.
Definition WilsonGroup.h:70
std::function< std::unordered_map< WCoefId, scalar_t >(const std::unordered_map< QCDOrder, std::unordered_map< WCoefId, scalar_t > > &, const BlockSrc &)> func
Computes a set of coefficients from existing values and source blocks.
Definition WilsonGroup.h:82
Declarative description of a Wilson coefficient group.