Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
WilsonRequest Struct Reference

Dynamic configuration for requesting a specific Wilson coefficient. More...

#include <Configs.h>

Inheritance diagram for WilsonRequest:
Collaboration diagram for WilsonRequest:

Public Member Functions

 WilsonRequest (WGroupId group, WCoefId coefficient, QCDOrder order, ContributionType contribution, ScaleType scale_type, bool sum_qcd_orders)
 Constructs a WilsonRequest from dynamic identifiers.
 
 WilsonRequest (WGroup group, WCoef coefficient, QCDOrder order, ContributionType contribution, ScaleType scale_type, bool sum_qcd_orders)
 Backward-compatible constructor from builtin enums.
 
- Public Member Functions inherited from AbstractConfig
virtual ~AbstractConfig ()=default
 Virtual destructor to allow safe polymorphic deletion.
 

Public Attributes

WGroupId group
 Wilson operator group identifier associated with the request.
 
WCoefId coefficient
 Wilson coefficient identifier associated with the request.
 
QCDOrder order {QCDOrder::LO}
 Perturbative QCD order at which the coefficient is evaluated.
 
ContributionType contribution {ContributionType::TOTAL}
 Type of contribution requested, e.g. SM, BSM or TOTAL.
 
ScaleType scale_type {ScaleType::HADRONIC}
 Scale at which the Wilson coefficient is evaluated.
 
bool sum_qcd_orders {false}
 If true, contributions from different QCD orders are summed up to order.
 
std::optional< WilsonBasisbasis
 Optional Wilson basis used for hadronic-scale coefficients.
 

Detailed Description

Dynamic configuration for requesting a specific Wilson coefficient.

Wilson requests are stored with the dynamic identifier layer:

This keeps the provider compatible with both:

  • builtin enum calls, through the compatibility constructor taking WGroup and WCoef,
  • runtime/config/CLI-driven calls, through the constructor taking WGroupId and WCoefId.

The manager underneath already consumes string names, so using ids here avoids converting through the static enum when the caller has a dynamic symbol.

Definition at line 122 of file Configs.h.

Constructor & Destructor Documentation

◆ WilsonRequest() [1/2]

WilsonRequest::WilsonRequest ( WGroupId  group,
WCoefId  coefficient,
QCDOrder  order,
ContributionType  contribution,
ScaleType  scale_type,
bool  sum_qcd_orders 
)
inline

Constructs a WilsonRequest from dynamic identifiers.

Use this overload for runtime/config driven code where the group and coefficient have already been resolved by the mapper layer.

Parameters
groupWilson group id.
coefficientWilson coefficient id.
orderPerturbative QCD order.
contributionContribution type to request.
scale_typeMatching or hadronic scale.
sum_qcd_ordersWhether to sum QCD orders up to order.

Definition at line 177 of file Configs.h.

◆ WilsonRequest() [2/2]

WilsonRequest::WilsonRequest ( WGroup  group,
WCoef  coefficient,
QCDOrder  order,
ContributionType  contribution,
ScaleType  scale_type,
bool  sum_qcd_orders 
)
inline

Backward-compatible constructor from builtin enums.

This preserves existing calls such as:

Dynamic configuration for requesting a specific Wilson coefficient.
Definition Configs.h:122

while storing the request internally as dynamic ids.

Definition at line 192 of file Configs.h.

Member Data Documentation

◆ basis

std::optional<WilsonBasis> WilsonRequest::basis

Optional Wilson basis used for hadronic-scale coefficients.

Definition at line 162 of file Configs.h.

◆ coefficient

WCoefId WilsonRequest::coefficient

Wilson coefficient identifier associated with the request.

For builtin coefficients, this is usually obtained with WCoefMapper::to_id(WCoef::C7). For dynamic/config-driven code, prefer WCoefMapper::id_of("C7") or any registered alias.

Definition at line 137 of file Configs.h.

◆ contribution

ContributionType WilsonRequest::contribution {ContributionType::TOTAL}

Type of contribution requested, e.g. SM, BSM or TOTAL.

Definition at line 147 of file Configs.h.

◆ group

WGroupId WilsonRequest::group

Wilson operator group identifier associated with the request.

For builtin groups, this is usually obtained with GroupMapper::to_id(WGroup::B). For dynamic/config-driven code, prefer GroupMapper::id_of("B") or any registered alias.

Definition at line 129 of file Configs.h.

◆ order

QCDOrder WilsonRequest::order {QCDOrder::LO}

Perturbative QCD order at which the coefficient is evaluated.

Definition at line 142 of file Configs.h.

◆ scale_type

ScaleType WilsonRequest::scale_type {ScaleType::HADRONIC}

Scale at which the Wilson coefficient is evaluated.

Definition at line 152 of file Configs.h.

◆ sum_qcd_orders

bool WilsonRequest::sum_qcd_orders {false}

If true, contributions from different QCD orders are summed up to order.

Definition at line 157 of file Configs.h.


The documentation for this struct was generated from the following file: