|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
High-level mapper for WCoef <-> text <-> FLHA base indices. More...
#include <wcoef_ids.hpp>


Public Types | |
| using | Base = GenericMapperWithExt< WCoefTag, WCoef, std::pair< int, int >, PairHash, wcoef_mapping, wcoef_flha_mapping > |
Static Public Member Functions | |
| static WCoef | from_flha (int a, int b) |
| Returns the WCoef associated with a given FLHA base key (a,b). | |
| static std::optional< WCoefId > | from_flha_key (int a, int b) |
| Registry-based lookup of WCoefId from a FLHA base key (a,b). | |
| static std::pair< int, int > | flha_base (WCoef e) |
| Returns the base FLHA pair (a,b) for a given WCoef. | |
| static std::pair< int, int > | flha_base (const WCoefId &id) |
| Returns the base FLHA pair (a,b) for a given WCoefId. | |
| static WCoef | canonical_flha_coef (WCoef e) |
| Builds a full FLHA LhaID for a given WCoef, order and contribution. | |
| static LhaID | flha_full (WCoef e, QCDOrder q, ContributionType c) |
| static std::pair< WCoefId, std::pair< QCDOrder, ContributionType > > | lha_wilson_deserialize (LhaID id) |
| Deserialize the id of a Wilson coefficient into (WCoefId, QCDOrder, ContributionType) using lha convention. | |
| static LhaID | flha_full (const WCoefId &id, QCDOrder q, ContributionType c) |
| Builds a full FLHA LhaID for a given WCoefId, order and contribution. | |
| static size_t | n_wilsons () |
| Returns the total number of Wilson coefficients in the mapping. | |
| static const std::map< std::pair< int, int >, WCoef > & | inverse_flha_mapping () |
| Returns a static inverse mapping FLHA base pair -> WCoef. | |
| static const std::vector< WCoef > & | B_group () |
| B-group (C1–C10) Wilson coefficients. | |
| static constexpr int | lepton_mass_slot_from_index (int lepton_index) |
| static constexpr int | thdm_lepton_yukawa_slot_from_index (int lepton_index) |
| static constexpr int | lepton_index_from_pdg (int pdg) |
| static int | lepton_index_from_cq1 (WCoef coef) |
| static int | lepton_index_from_cq2 (WCoef coef) |
| static int | lepton_index_from_cpq1 (WCoef coef) |
| static int | lepton_index_from_cpq2 (WCoef coef) |
| static WCoef | cq1_for_lepton_index (int lepton_index) |
| static WCoef | cq2_for_lepton_index (int lepton_index) |
| static WCoef | cpq1_for_lepton_index (int lepton_index) |
| static WCoef | cpq2_for_lepton_index (int lepton_index) |
| static bool | is_cpq (WCoef c) |
| static const std::vector< WCoef > & | B_prime_group () |
| B'-group coefficients (primed + lepton-specific scalar primed). | |
| static const std::vector< WCoef > & | B_scalar_group () |
| Scalar B-group coefficients, split by charged-lepton generation. | |
| static const std::vector< WCoef > & | b_clnu_group () |
| Charged-current Wilsons for b -> c l ν. | |
| static const std::vector< WCoef > & | b_ulnu_group () |
| Charged-current Wilsons for b -> u l ν. | |
| static const std::vector< WCoef > & | c_slnu_group () |
| Charged-current Wilsons for c -> s l ν. | |
| static const std::vector< WCoef > & | c_dlnu_group () |
| Charged-current Wilsons for c -> d l ν. | |
| static const std::vector< WCoef > & | s_ulnu_group () |
| Charged-current Wilsons for s -> u l ν. | |
| static const std::vector< WCoef > & | d_ulnu_group () |
| Charged-current Wilsons for d -> u l ν. | |
| static const std::vector< WCoef > & | k_group () |
| Kaon-sector Wilsons (K group). | |
| static const std::vector< WCoef > & | meson_mixing_group () |
| Wilsons relevant for neutral meson mixing (B, K, D sectors). | |
| static std::vector< WCoef > | get_group (WGroup g) |
| Returns the list of Wilson coefficients belonging to a WGroup. | |
| static WGroup | group_of (WCoef c) |
| Returns the WGroup to which a given Wilson coefficient belongs. | |
| static std::optional< WGroup > | group_of_opt (WCoef c) |
| Optional version: returns std::nullopt if not in any group. | |
| static WGroup | group_of (const WCoefId &id) |
| Convenience overload for identifiers. | |
Static Public Member Functions inherited from GenericMapperWithExt< WCoefTag, WCoef, std::pair< int, int >, PairHash, wcoef_mapping, wcoef_flha_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< WCoef > | get_enum () |
| Returns the list of builtin enum values. | |
| static std::vector< std::string > | get_str_all () |
| Returns all known names (builtin + custom). | |
| static WCoef | enum_elt_legacy (std::string_view s) |
| Legacy enum lookup using only the static MapFn() table. | |
| static IdOf< WCoefTag > | id_of (std::string_view s) |
| Resolves a string into an IdOf<Tag> via the registry. | |
| static IdOf< WCoefTag > | enum_elt (std::string_view s) |
| Alias for id_of(), kept for compatibility. | |
| static std::optional< IdOf< WCoefTag > > | from_external (const std::pair< int, int > &k) |
| Resolves an external key into an identifier. | |
| static std::optional< std::pair< int, int > > | external_of (const IdOf< WCoefTag > &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::pair< int, int > > ext=std::nullopt) |
| Registers a custom entry with optional external key. | |
| static bool | set_external (const IdOf< WCoefTag > &id, const std::pair< int, int > &k) |
| Sets or updates the external key of an existing identifier. | |
| static std::vector< IdOf< WCoefTag > > | list_all () |
| Lists all distinct identifiers currently registered. | |
| static std::string | str (const IdOf< WCoefTag > &id) |
| Returns the string representation of an identifier. | |
| static std::string | str (WCoef e) |
| Returns the builtin string name of an enum value. | |
| static IdOf< WCoefTag > | to_id (WCoef e) |
| Converts an enum value to an IdOf<Tag>. | |
| static std::optional< WCoef > | enum_of (const IdOf< WCoefTag > &id) |
| Attempts to recover the enum value associated with an identifier. | |
High-level mapper for WCoef <-> text <-> FLHA base indices.
Specialization of GenericMapperWithExt with:
In addition to the generic mapping interface, it provides:
Definition at line 51 of file wcoef_ids.hpp.
| using WCoefMapper::Base = GenericMapperWithExt<WCoefTag,WCoef,std::pair<int,int>,PairHash,wcoef_mapping,wcoef_flha_mapping> |
Definition at line 59 of file wcoef_ids.hpp.
|
inlinestatic |
Charged-current Wilsons for b -> c l ν.
Definition at line 360 of file wcoef_ids.hpp.
|
inlinestatic |
B-group (C1–C10) Wilson coefficients.
Definition at line 239 of file wcoef_ids.hpp.
|
inlinestatic |
B'-group coefficients (primed + lepton-specific scalar primed).
Definition at line 342 of file wcoef_ids.hpp.
|
inlinestatic |
Scalar B-group coefficients, split by charged-lepton generation.
Definition at line 352 of file wcoef_ids.hpp.
|
inlinestatic |
Charged-current Wilsons for b -> u l ν.
Definition at line 365 of file wcoef_ids.hpp.
|
inlinestatic |
Charged-current Wilsons for c -> d l ν.
Definition at line 375 of file wcoef_ids.hpp.
|
inlinestatic |
Charged-current Wilsons for c -> s l ν.
Definition at line 370 of file wcoef_ids.hpp.
Builds a full FLHA LhaID for a given WCoef, order and contribution.
The resulting LhaID has components: { base_a, base_b, qcd_order_index, contribution_type } where:
| e | WCoef enum. |
| q | QCD order. |
| c | Contribution type (SM / BSM / TOTAL). |
Definition at line 146 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 317 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 326 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 299 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 308 of file wcoef_ids.hpp.
|
inlinestatic |
Charged-current Wilsons for d -> u l ν.
Definition at line 385 of file wcoef_ids.hpp.
|
inlinestatic |
Returns the base FLHA pair (a,b) for a given WCoefId.
This uses the registry's external_of() mapping. If no external key is known for this id, an exception is thrown.
| id | Wilson coefficient identifier. |
| std::runtime_error | if id has no associated FLHA key. |
Definition at line 119 of file wcoef_ids.hpp.
|
inlinestatic |
Returns the base FLHA pair (a,b) for a given WCoef.
This uses the static mapping wcoef_flha_mapping().
| e | WCoef enum value. |
Definition at line 104 of file wcoef_ids.hpp.
|
inlinestatic |
Builds a full FLHA LhaID for a given WCoefId, order and contribution.
Uses the external base key attached to the id. If none is found, an exception is thrown.
| id | WCoef identifier. |
| q | QCD order. |
| c | Contribution type. |
| std::runtime_error | if id has no FLHA key. |
Definition at line 203 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 156 of file wcoef_ids.hpp.
|
inlinestatic |
Returns the WCoef associated with a given FLHA base key (a,b).
Uses a static inverse map built once from wcoef_flha_mapping().
| a | First FLHA index. |
| b | Second FLHA index. |
| std::out_of_range | if the pair (a,b) is not supported. |
Definition at line 74 of file wcoef_ids.hpp.
|
inlinestatic |
Registry-based lookup of WCoefId from a FLHA base key (a,b).
Uses the external-key mapping in the GenericMapperWithExt registry.
| a | First FLHA index. |
| b | Second FLHA index. |
Definition at line 94 of file wcoef_ids.hpp.
Returns the list of Wilson coefficients belonging to a WGroup.
This is a convenience function on top of the various *_group() helpers.
| g | Wilson group. |
g.| (via | LOG_ERROR) if g is invalid. |
Definition at line 418 of file wcoef_ids.hpp.
Convenience overload for identifiers.
| std::runtime_error | if id cannot be converted to an enum. |
Definition at line 494 of file wcoef_ids.hpp.
Returns the WGroup to which a given Wilson coefficient belongs.
Uses a static inverse map built once from the group definitions.
| c | Wilson coefficient. |
| std::out_of_range | if the coefficient is not assigned to any group. |
Definition at line 445 of file wcoef_ids.hpp.
Optional version: returns std::nullopt if not in any group.
Definition at line 484 of file wcoef_ids.hpp.
|
inlinestatic |
Returns a static inverse mapping FLHA base pair -> WCoef.
This is built once from wcoef_flha_mapping() and reused for all calls.
Definition at line 229 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 335 of file wcoef_ids.hpp.
|
inlinestatic |
Kaon-sector Wilsons (K group).
Definition at line 390 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 279 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 289 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 259 of file wcoef_ids.hpp.
|
inlinestatic |
Definition at line 269 of file wcoef_ids.hpp.
|
inlinestaticconstexpr |
Definition at line 254 of file wcoef_ids.hpp.
|
inlinestaticconstexpr |
Definition at line 246 of file wcoef_ids.hpp.
|
inlinestatic |
Deserialize the id of a Wilson coefficient into (WCoefId, QCDOrder, ContributionType) using lha convention.
The resulting object has components: std::pair<WCoefId, std::pair<QCDOrder, ContributionType>> where:
| id | LhaID of the coefficient. |
Definition at line 173 of file wcoef_ids.hpp.
|
inlinestatic |
Wilsons relevant for neutral meson mixing (B, K, D sectors).
Definition at line 395 of file wcoef_ids.hpp.
|
inlinestatic |
Returns the total number of Wilson coefficients in the mapping.
Definition at line 220 of file wcoef_ids.hpp.
|
inlinestatic |
Charged-current Wilsons for s -> u l ν.
Definition at line 380 of file wcoef_ids.hpp.
|
inlinestaticconstexpr |
Definition at line 250 of file wcoef_ids.hpp.