|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Helper class to serialize parameter values to a text stream. More...
#include <ParamWriter.h>
Public Member Functions | |
| ParamWriter ()=default | |
| Default constructor. | |
| void | writeParams (std::ofstream &outputFile, const std::unordered_map< std::string, double > ¶ms) |
| Writes a map of parameters to an output stream. | |
Helper class to serialize parameter values to a text stream.
ParamWriter is typically used in the MARTY code-generation pipeline to dump user parameters or matching inputs into a CSV file that can later be read by a generated executable or an external tool.
Definition at line 29 of file ParamWriter.h.
|
default |
Default constructor.
| void ParamWriter::writeParams | ( | std::ofstream & | outputFile, |
| const std::unordered_map< std::string, double > & | params | ||
| ) |
Writes a map of parameters to an output stream.
The format of each line is:
| outputFile | Stream to write into (must be opened beforehand). |
| params | Map from parameter name to its numeric value. |
Definition at line 5 of file ParamWriter.cpp.