Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
pyhyperiso.core.BusinessLogic.DecayConfig Namespace Reference

Classes

class  BDlnuBCharge
 
class  BDlnuConfig
 
class  BDstarlnuBCharge
 
class  BDstarlnuConfig
 
class  BFFType
 
class  BKllBCharge
 
class  BKllConfig
 
class  BKllLepton
 
class  BKstarGammaBCharge
 
class  BKstarGammaConfig
 
class  BKstarllBCharge
 
class  BKstarllConfig
 
class  BKstarllLepton
 
class  BKstarllPowerCorrectionsImpl
 
class  BPFFSource
 
class  BsPhiConfig
 
class  BsPhiLepton
 
class  BVFFSource
 
class  BXsllConfig
 
class  BXsllLepton
 
class  DecayConfig
 
class  KllDecayConfig
 
class  LbLFFSource
 
class  LbLllConfig
 
class  LbLllLepton
 

Functions

Any _as_cpp_enum (EnumT|Any value, Type[EnumT] enum_type, str name)
 

Variables

 EnumT = TypeVar("EnumT", bound=Enum)
 
 B_FF_Type = BFFType
 
 BP_FF_Src = BPFFSource
 
 BV_FF_Src = BVFFSource
 
 LbL_FF_Src = LbLFFSource
 

Detailed Description

Python wrappers for decay-configuration objects.

This module mirrors the decay configuration structs exposed by the C++
observable binding. The Python classes are lightweight value wrappers: they
store Python enum values and build the corresponding pybind11 C++ config object
through ``to_cpp()`` when passed to
``ObservableInterface.set_decay_config(...)``.

Example:
    >>> from pyhyperiso.core.BusinessLogic.DecayConfig import BKllConfig, BPFFSource
    >>> from pyhyperiso.core.BusinessLogic.ObservableInterface import ObservableInterface
    >>> from pyhyperiso.core.Common.GeneralEnum import Decays
    >>> oi = ObservableInterface()
    >>> cfg = BKllConfig(ff_src=BPFFSource.GKvD_SR_LAT, n_threads=8)
    >>> oi.set_decay_config(Decays.B__K_l_l, cfg)

Function Documentation

◆ _as_cpp_enum()

Any pyhyperiso.core.BusinessLogic.DecayConfig._as_cpp_enum ( EnumT | Any  value,
Type[EnumT enum_type,
str  name 
)
protected
Return the C++ enum value stored by a Python wrapper enum.

Args:
    value: Python enum value or raw pybind11 enum value.
    enum_type: Expected Python enum class.
    name: Field name used in error messages.

Returns:
    The pybind11 enum value to assign on the C++ config object.

Raises:
    TypeError: If ``value`` is a different Python enum type.

Definition at line 178 of file DecayConfig.py.

Variable Documentation

◆ B_FF_Type

pyhyperiso.core.BusinessLogic.DecayConfig.B_FF_Type = BFFType

Definition at line 515 of file DecayConfig.py.

◆ BP_FF_Src

pyhyperiso.core.BusinessLogic.DecayConfig.BP_FF_Src = BPFFSource

Definition at line 516 of file DecayConfig.py.

◆ BV_FF_Src

pyhyperiso.core.BusinessLogic.DecayConfig.BV_FF_Src = BVFFSource

Definition at line 517 of file DecayConfig.py.

◆ EnumT

pyhyperiso.core.BusinessLogic.DecayConfig.EnumT = TypeVar("EnumT", bound=Enum)

Definition at line 175 of file DecayConfig.py.

◆ LbL_FF_Src

pyhyperiso.core.BusinessLogic.DecayConfig.LbL_FF_Src = LbLFFSource

Definition at line 518 of file DecayConfig.py.