Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
decay_ids.hpp File Reference

Mapper and dynamic identifiers for decay channels. More...

#include <algorithm>
#include <mutex>
#include <optional>
#include <stdexcept>
#include <string>
#include <string_view>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include "generic_mapper.h"
#include "Map.h"
#include "LhaID.h"
#include "observable_ids.hpp"
Include dependency graph for decay_ids.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DecayTag
 Tag type for decay identifiers. More...
 
struct  CustomObservableSpec
 Small value object used to register a custom decay with observables. More...
 
class  DecayMapper
 Mapper for decay names, dynamic ids and observable membership. More...
 

Typedefs

using DecayId = IdOf< DecayTag >
 Strongly typed dynamic identifier for decays.
 

Functions

const std::map< Decays, LhaID > & decay_external_mapping ()
 Placeholder external mapping for decays.
 

Detailed Description

Mapper and dynamic identifiers for decay channels.

The decay layer mirrors the observable layer:

  • Decays is the historical static enum for builtin decay channels;
  • DecayId is the string-based dynamic identifier used for both builtin and custom decays.

Static relations (Decays -> Observables) are still read from decay_observable_mapping(). Runtime relations (DecayId -> ObservableId) are stored in DecayGraph.

Definition in file decay_ids.hpp.

Typedef Documentation

◆ DecayId

using DecayId = IdOf<DecayTag>

Strongly typed dynamic identifier for decays.

Definition at line 39 of file decay_ids.hpp.

Function Documentation

◆ decay_external_mapping()

const std::map< Decays, LhaID > & decay_external_mapping ( )
inline

Placeholder external mapping for decays.

Decays currently have no builtin FLHA-like external identifier. The empty map keeps DecayMapper compatible with GenericMapperWithExt, so a real external mapping can be added later without changing the public mapper shape.

Returns
Empty static map.

Definition at line 50 of file decay_ids.hpp.