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

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 > &params)
 Writes a map of parameters to an output stream.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ParamWriter()

ParamWriter::ParamWriter ( )
default

Default constructor.

Member Function Documentation

◆ writeParams()

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:

<name>,<value>\n
Parameters
outputFileStream to write into (must be opened beforehand).
paramsMap from parameter name to its numeric value.

Definition at line 5 of file ParamWriter.cpp.


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