11void GeneralNumModelModifier::initializeParams() {
15 this->interpreted_params = interpreter.
interpret(extractedParams);
17 for (
const auto& [name, interpreted] : this->interpreted_params) {
18 auto map_param = paramSetter->setParam(name, interpreted);
19 for (
const auto& [
param_name, param_value] : map_param) {
Declares the helper used to prepare numeric MARTY models and parameter files.
std::string param_name(const ParamId &pid)
static std::shared_ptr< FileNameManager > getInstance(const std::string &wilson="", const std::string &model="")
Retrieves a FileNameManager for a given (wilson, model) pair.
void createparamfile(std::ofstream ¶mFile, const std::unordered_map< std::string, double > ¶ms)
Writes the parameter CSV/param file.
void modify(std::ifstream &inputFile, std::ofstream &outputFile)
Applies the numeric model transformation to a template file.
std::unordered_map< std::string, InterpretedParam > interpret(std::vector< Extractor::Parameter > ¶ms)
Interprets a set of extracted parameters.
void writeParam(std::ofstream ¶mFile, const std::unordered_map< std::string, double > ¶ms)
Writes parameters to the parameter file.
void writeModel(std::ifstream &inputFile, std::ofstream &outputFile)
Processes the model source and writes the transformed file.