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

Matching metadata for a Wilson coefficient at a specific QCD order. More...

#include <Wilson.h>

Collaboration diagram for MatchingInfo:

Public Member Functions

 MatchingInfo ()
 Default ctor: sets compute to a safe no-op (returns 0.0).
 
 MatchingInfo (const LhaID &id)
 Constructs a MatchingInfo with only an LHA id.
 
 MatchingInfo (std::unordered_set< ParamId > src, std::function< scalar_t(const ParamSrc &)> comp, LhaID id)
 Full constructor.
 
 MatchingInfo (MatchingInfo &&mi)=default
 
 MatchingInfo (const MatchingInfo &mi)=default
 
MatchingInfo operator= (const MatchingInfo &mi)
 Copy assignment operator.
 

Public Attributes

std::unordered_set< ParamIdsources = {}
 Set of source parameter identifiers used by compute().
 
std::function< scalar_t(const ParamSrc &)> compute
 Computation function for this coefficient/order.
 
LhaID lhaid
 LHA identifier used to store the coefficient value in its storage block.
 

Detailed Description

Matching metadata for a Wilson coefficient at a specific QCD order.

A MatchingInfo describes:

  • sources: the set of parameters required to compute the coefficient at this order,
  • compute: a function taking a ParamSrc view and producing the scalar coefficient value,
  • lhaid: the LHA identifier under which this coefficient/order/type is stored.

Default behavior:

  • compute defaults to a lambda returning 0.0 (safe no-op),
  • sources defaults to empty,
  • lhaid is default-constructed unless provided.

Notes:

  • The compute function signature matches the dependency system’s “source view” pattern: the caller provides a ParamSrc (or similar) that can query source parameters efficiently.

Definition at line 62 of file Wilson.h.

Constructor & Destructor Documentation

◆ MatchingInfo() [1/5]

MatchingInfo::MatchingInfo ( )
inline

Default ctor: sets compute to a safe no-op (returns 0.0).

Definition at line 80 of file Wilson.h.

◆ MatchingInfo() [2/5]

MatchingInfo::MatchingInfo ( const LhaID id)
inline

Constructs a MatchingInfo with only an LHA id.

Parameters
idLHA identifier to associate to this order.

Definition at line 87 of file Wilson.h.

◆ MatchingInfo() [3/5]

MatchingInfo::MatchingInfo ( std::unordered_set< ParamId src,
std::function< scalar_t(const ParamSrc &)>  comp,
LhaID  id 
)
inline

Full constructor.

Parameters
srcSource parameter IDs.
compCompute function.
idLHA identifier associated with the result.

Definition at line 95 of file Wilson.h.

◆ MatchingInfo() [4/5]

MatchingInfo::MatchingInfo ( MatchingInfo &&  mi)
default

◆ MatchingInfo() [5/5]

MatchingInfo::MatchingInfo ( const MatchingInfo mi)
default

Member Function Documentation

◆ operator=()

MatchingInfo MatchingInfo::operator= ( const MatchingInfo mi)
inline

Copy assignment operator.

Copies sources/compute/lhaid from mi.

Definition at line 108 of file Wilson.h.

Member Data Documentation

◆ compute

std::function<scalar_t(const ParamSrc&)> MatchingInfo::compute
Initial value:
=
[](const auto&) { return 0.0; }

Computation function for this coefficient/order.

Takes a ParamSrc providing access to source values and returns the resulting Wilson coefficient (scalar part). Complex coefficients can be represented upstream by multiple scalar entries (e.g. real/imag).

Definition at line 73 of file Wilson.h.

◆ lhaid

LhaID MatchingInfo::lhaid

LHA identifier used to store the coefficient value in its storage block.

Definition at line 77 of file Wilson.h.

◆ sources

std::unordered_set<ParamId> MatchingInfo::sources = {}

Set of source parameter identifiers used by compute().

Definition at line 64 of file Wilson.h.


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