|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Extracts process kinematics from MARTY templates. More...
#include <CinematicExtractor.h>
Public Member Functions | |
| std::pair< int, int > | extract (const std::string &filename) |
| Legacy API: returns {number_of_incoming, number_of_outgoing}. | |
| CinematicProcess | extract_process (const std::string &filename) const |
| Extracts the first MARTY process from a template file. | |
Static Public Member Functions | |
| static std::string | normalize_particle_name (std::string particle_name) |
| Normalizes common MARTY particle names for dictionary lookup. | |
| static std::optional< std::string > | mass_symbol_for_particle (const std::string &particle_name) |
| Returns the MARTY mass symbol associated with a particle name. | |
| static const std::unordered_map< std::string, std::string > & | default_mass_symbols () |
| Default particle -> MARTY mass-symbol dictionary. | |
Extracts process kinematics from MARTY templates.
The extractor looks for the first computeWilsonCoefficients(...) call and parses the particle list entries Incoming("...") and Outgoing("..."). If the call appears multiple times, only the first one is used.
Definition at line 50 of file CinematicExtractor.h.
|
static |
Default particle -> MARTY mass-symbol dictionary.
Definition at line 201 of file CinematicExtractor.cpp.
| std::pair< int, int > CinematicExtractor::extract | ( | const std::string & | filename | ) |
Legacy API: returns {number_of_incoming, number_of_outgoing}.
Definition at line 82 of file CinematicExtractor.cpp.
| CinematicProcess CinematicExtractor::extract_process | ( | const std::string & | filename | ) | const |
Extracts the first MARTY process from a template file.
Definition at line 87 of file CinematicExtractor.cpp.
|
static |
Returns the MARTY mass symbol associated with a particle name.
Examples: b -> m_b, s -> m_s, A/g/gamma -> 0.
Definition at line 190 of file CinematicExtractor.cpp.
|
static |
Normalizes common MARTY particle names for dictionary lookup.
Definition at line 172 of file CinematicExtractor.cpp.