Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
spectrum_calculator_example.cpp

Example usage of SpectrumCalculator to calculate a physics spectrum.

Example usage of SpectrumCalculator to calculate a physics spectrum.

#include <iostream>
int main() {
// Input and output file paths
fs::path input_lha = "input.lha"; // Path to your input LHA file
fs::path output_spectrum = "spectrum_output.lha"; // Where to save the result
// Specify the model to use for the calculation
Model model = Model::THDM; // or Model::SUSY
// Perform the calculation
calc.calculate_spectrum(input_lha, output_spectrum, model);
std::cout << "Spectrum calculation completed successfully." << std::endl;
return 0;
}
Model
Concrete spectrum calculator using external tools.
Concrete implementation of ISpectrumCalculator.
void calculate_spectrum(fs::path in_lha_path, fs::path out_spectrum_path, Model model) override
Calculates the physics spectrum by calling the appropriate external calculator.