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

Configuration of one user-defined Wilson coefficient. More...

#include <CustomWilsonLambda.h>

Collaboration diagram for CustomWilsonCoefficientConfig:

Public Member Functions

 CustomWilsonCoefficientConfig ()=default
 
 CustomWilsonCoefficientConfig (WCoefId id)
 
CustomWilsonCoefficientConfigset_matching (QCDOrder order, std::unordered_set< ParamId > sources, std::function< scalar_t(const ParamSrc &)> compute, ContributionType contribution=ContributionType::SM)
 Attach a matching lambda to a QCD order.
 

Public Attributes

WCoefId id
 Dynamic coefficient id. It must be known by WCoefMapper and have an FLHA base key.
 
std::map< QCDOrder, MatchingInfomatching
 Per-order matching rules.
 

Detailed Description

Configuration of one user-defined Wilson coefficient.

A coefficient is identified by a dynamic WCoefId and receives one matching rule per QCD order. Each rule is a standard MatchingInfo containing:

  • parameter dependencies, as ParamId values,
  • a compute lambda of type scalar_t(const ParamSrc&),
  • the full FLHA id under which the result is stored.

If an order is not configured, a zero-valued default rule is installed for that order. This keeps the downstream matching/hadronic composition robust when a caller requests NLO/NNLO while only LO was supplied.

Definition at line 50 of file CustomWilsonLambda.h.

Constructor & Destructor Documentation

◆ CustomWilsonCoefficientConfig() [1/2]

CustomWilsonCoefficientConfig::CustomWilsonCoefficientConfig ( )
default

◆ CustomWilsonCoefficientConfig() [2/2]

CustomWilsonCoefficientConfig::CustomWilsonCoefficientConfig ( WCoefId  id)
inlineexplicit

Definition at line 58 of file CustomWilsonLambda.h.

Member Function Documentation

◆ set_matching()

CustomWilsonCoefficientConfig & CustomWilsonCoefficientConfig::set_matching ( QCDOrder  order,
std::unordered_set< ParamId sources,
std::function< scalar_t(const ParamSrc &)>  compute,
ContributionType  contribution = ContributionType::SM 
)
inline

Attach a matching lambda to a QCD order.

Parameters
orderQCD order to configure.
sourcesParameter dependencies needed by compute.
computeUser function computing the coefficient from a ParamSrc.
contributionContribution slot this rule fills; used only to build the default FLHA id.
Returns
Reference to this config for chaining.

Definition at line 69 of file CustomWilsonLambda.h.

Member Data Documentation

◆ id

WCoefId CustomWilsonCoefficientConfig::id

Dynamic coefficient id. It must be known by WCoefMapper and have an FLHA base key.

Definition at line 52 of file CustomWilsonLambda.h.

◆ matching

std::map<QCDOrder, MatchingInfo> CustomWilsonCoefficientConfig::matching

Per-order matching rules.

Definition at line 55 of file CustomWilsonLambda.h.


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