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

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.
 

Detailed Description

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.

Member Function Documentation

◆ default_mass_symbols()

const std::unordered_map< std::string, std::string > & CinematicExtractor::default_mass_symbols ( )
static

Default particle -> MARTY mass-symbol dictionary.

Definition at line 201 of file CinematicExtractor.cpp.

◆ extract()

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.

◆ extract_process()

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.

◆ mass_symbol_for_particle()

std::optional< std::string > CinematicExtractor::mass_symbol_for_particle ( const std::string &  particle_name)
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.

◆ normalize_particle_name()

std::string CinematicExtractor::normalize_particle_name ( std::string  particle_name)
static

Normalizes common MARTY particle names for dictionary lookup.

Definition at line 172 of file CinematicExtractor.cpp.


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