Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
pyhyperiso.core.Common.Mapper.WCoefMapper Class Reference

Public Member Functions

 __init__ (self)
 
 get_str (self)
 
 get_str_all (self)
 
 get_enum (self)
 

Static Public Member Functions

str str (coef)
 
WCoefId id_of (coef)
 
WCoefId to_id (WCoeff coef)
 
str canonical (WCoefId coef_id)
 
bool register_custom (str canonical, aliases=None, flha=(0, 0))
 
tuple[int, int] flha_base (coef)
 
LhaID flha_full (coef, QCDOrder order, ContributionType contribution)
 

Detailed Description

Mapper for Wilson-coefficient identifiers.

Runtime lookups return :class:`WCoefId`, so custom coefficients do not need
a corresponding static :class:`WCoeff` enum value.

Definition at line 468 of file Mapper.py.

Constructor & Destructor Documentation

◆ __init__()

pyhyperiso.core.Common.Mapper.WCoefMapper.__init__ (   self)

Definition at line 475 of file Mapper.py.

Member Function Documentation

◆ canonical()

str pyhyperiso.core.Common.Mapper.WCoefMapper.canonical ( WCoefId  coef_id)
static
Return the canonical name of a dynamic coefficient id.

Definition at line 502 of file Mapper.py.

◆ flha_base()

tuple[int, int] pyhyperiso.core.Common.Mapper.WCoefMapper.flha_base (   coef)
static
Return the external FLHA base pair for a coefficient enum or id.

Definition at line 518 of file Mapper.py.

◆ flha_full()

LhaID pyhyperiso.core.Common.Mapper.WCoefMapper.flha_full (   coef,
QCDOrder  order,
ContributionType  contribution 
)
static
Return the full FLHA identifier for a Wilson coefficient term.

Definition at line 526 of file Mapper.py.

◆ get_enum()

pyhyperiso.core.Common.Mapper.WCoefMapper.get_enum (   self)
Return builtin enum values known to the C++ mapper.

Definition at line 547 of file Mapper.py.

◆ get_str()

pyhyperiso.core.Common.Mapper.WCoefMapper.get_str (   self)
Return the C++ mapper's primary string table.

Definition at line 539 of file Mapper.py.

◆ get_str_all()

pyhyperiso.core.Common.Mapper.WCoefMapper.get_str_all (   self)
Return all string aliases known to the C++ mapper.

Definition at line 543 of file Mapper.py.

◆ id_of()

WCoefId pyhyperiso.core.Common.Mapper.WCoefMapper.id_of (   coef)
static
Resolve a coefficient enum/name/alias to :class:`WCoefId`.

Definition at line 488 of file Mapper.py.

◆ register_custom()

bool pyhyperiso.core.Common.Mapper.WCoefMapper.register_custom ( str  canonical,
  aliases = None,
  flha = (0, 0) 
)
static
Register a custom Wilson coefficient.

Args:
    canonical: Canonical coefficient name.
    aliases: Optional aliases accepted by :meth:`id_of`.
    flha: External FLHA pair used by Wilson input/output conventions.

Definition at line 507 of file Mapper.py.

◆ str()

str pyhyperiso.core.Common.Mapper.WCoefMapper.str (   coef)
static
Return the canonical string for a Wilson coefficient.

Definition at line 479 of file Mapper.py.

◆ to_id()

WCoefId pyhyperiso.core.Common.Mapper.WCoefMapper.to_id ( WCoeff  coef)
static
Convert a builtin coefficient enum to :class:`WCoefId`.

Definition at line 497 of file Mapper.py.


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