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

Extension of GroupMapper for building composite group strings. More...

#include <GroupMapper.h>

Inheritance diagram for GroupMapperExt:
Collaboration diagram for GroupMapperExt:

Static Public Member Functions

static std::string str (WGroup g, ScaleType scale, WilsonBasis basis=WilsonBasis::B_STANDARD)
 Returns a composite label "GROUP_SCALE[_BASIS]" for a Wilson group.
 
- Static Public Member Functions inherited from GroupMapper
static bool register_custom (std::string canonical, std::vector< std::string > aliases={}, std::optional< std::string > ext=std::nullopt)
 Registers a custom Wilson group with optional external label.
 
static std::string str (const WGroupId &gid, ScaleType s, WilsonBasis b=WilsonBasis::B_STANDARD)
 Builds a composite block name using a WGroupId, scale and basis.
 
static std::string str (WGroup g, ScaleType s, WilsonBasis b=WilsonBasis::B_STANDARD)
 Builds a composite block name using a WGroup enum, scale and basis.
 
- Static Public Member Functions inherited from GenericMapperWithExt< WGroupTag, WGroup, std::string, std::hash< std::string >, group_mapping, group_external_mapping >
static void init_builtins ()
 Explicitly initializes builtin entries.
 
static std::vector< std::string > get_str ()
 Returns the list of builtin string names from MapFn().
 
static std::vector< WGroupget_enum ()
 Returns the list of builtin enum values.
 
static std::vector< std::string > get_str_all ()
 Returns all known names (builtin + custom).
 
static WGroup enum_elt_legacy (std::string_view s)
 Legacy enum lookup using only the static MapFn() table.
 
static IdOf< WGroupTagid_of (std::string_view s)
 Resolves a string into an IdOf<Tag> via the registry.
 
static IdOf< WGroupTagenum_elt (std::string_view s)
 Alias for id_of(), kept for compatibility.
 
static std::optional< IdOf< WGroupTag > > from_external (const std::string &k)
 Resolves an external key into an identifier.
 
static std::optional< std::string > external_of (const IdOf< WGroupTag > &id)
 Returns the external key associated with a given identifier.
 
static bool register_custom (std::string canonical, std::vector< std::string > aliases={}, std::optional< std::string > ext=std::nullopt)
 Registers a custom entry with optional external key.
 
static bool set_external (const IdOf< WGroupTag > &id, const std::string &k)
 Sets or updates the external key of an existing identifier.
 
static std::vector< IdOf< WGroupTag > > list_all ()
 Lists all distinct identifiers currently registered.
 
static std::string str (const IdOf< WGroupTag > &id)
 Returns the string representation of an identifier.
 
static std::string str (WGroup e)
 Returns the builtin string name of an enum value.
 
static IdOf< WGroupTagto_id (WGroup e)
 Converts an enum value to an IdOf<Tag>.
 
static std::optional< WGroupenum_of (const IdOf< WGroupTag > &id)
 Attempts to recover the enum value associated with an identifier.
 

Additional Inherited Members

- Public Types inherited from GroupMapper
using Base = GenericMapperWithExt< WGroupTag, WGroup, std::string, std::hash< std::string >, group_mapping, group_external_mapping >
 

Detailed Description

Extension of GroupMapper for building composite group strings.

Definition at line 29 of file GroupMapper.h.

Member Function Documentation

◆ str()

static std::string GroupMapperExt::str ( WGroup  g,
ScaleType  scale,
WilsonBasis  basis = WilsonBasis::B_STANDARD 
)
inlinestatic

Returns a composite label "GROUP_SCALE[_BASIS]" for a Wilson group.

Examples:

  • str(WGroup::B, ScaleType::MATCHING) -> "BCoefficients_EW_SCALE"
  • str(WGroup::B, ScaleType::HADRONIC) -> "BCoefficients_B_SCALE_STANDARD"
  • str(WGroup::B, ScaleType::HADRONIC, WilsonBasis::B_TRADITIONAL) -> "BCoefficients_B_SCALE_TRADITIONAL"
Parameters
gWilson operator group.
scaleScale type (matching / hadronic).
basisWilson basis (used only if scale == HADRONIC).
Returns
Composite string label.

Definition at line 45 of file GroupMapper.h.


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