|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
High-level orchestrator for numeric MARTY model generation. More...
#include <GeneralNumModelModifier.h>
Public Member Functions | |
| GeneralNumModelModifier (const std::string &wilson, const std::string &model, std::unique_ptr< SMParamSetter > param_setter, std::shared_ptr< ICoreAPI< Model > > api, std::shared_ptr< IInterpreterPortsFactory > ports, bool force=false) | |
| Constructs a numeric model modifier for a given (Wilson, model) pair. | |
| GeneralNumModelModifier (const std::string &wilson, const std::string &model, const std::string &mapping_model, std::unique_ptr< SMParamSetter > param_setter, std::shared_ptr< ICoreAPI< Model > > api, std::shared_ptr< IInterpreterPortsFactory > ports, bool force=false, bool bsm_split_generation=false, bool full_target_generation=false) | |
| Constructs a numeric model modifier with distinct output and parameter-resolution models. | |
| GeneralNumModelModifier (const GeneralNumModelModifier &other) | |
| Copy constructor used to duplicate the whole modification pipeline. | |
| void | modify (std::ifstream &inputFile, std::ofstream &outputFile) |
| Applies the numeric model transformation to a template file. | |
| void | createparamfile (std::ofstream ¶mFile, const std::unordered_map< std::string, double > ¶ms) |
| Writes the parameter CSV/param file. | |
| std::unordered_map< std::string, InterpretedParam > | get_interpreted_param_map () |
| Returns the interpreted parameter mapping. | |
| std::unordered_map< std::string, double > | get_params () |
| Returns the map of numerical parameter values. | |
High-level orchestrator for numeric MARTY model generation.
GeneralNumModelModifier coordinates:
It is dedicated to "numeric" templates that require a parameter file and CSV output for Wilson coefficients.
Definition at line 46 of file GeneralNumModelModifier.h.
|
inline |
Constructs a numeric model modifier for a given (Wilson, model) pair.
| wilson | Name of the Wilson basis (e.g. "C1"). |
| model | Name of the model (e.g. "SM", "THDM"). |
| param_setter | Preconfigured SMParamSetter, moved into this object. |
| api | Core API giving access to the active Model. |
| ports | Factory used to build an IParameterResolver for the interpreter. |
| force | If true, forces regeneration even when the output file appears to be already processed (marker //42). |
Definition at line 84 of file GeneralNumModelModifier.h.
|
inline |
Constructs a numeric model modifier with distinct output and parameter-resolution models.
| model | Output/cache label used for generated numeric files. |
| mapping_model | Model whose MARTY mapping should be used to resolve symbolic parameters extracted from the generated code. |
Definition at line 101 of file GeneralNumModelModifier.h.
|
inline |
Copy constructor used to duplicate the whole modification pipeline.
Definition at line 126 of file GeneralNumModelModifier.h.
| void GeneralNumModelModifier::createparamfile | ( | std::ofstream & | paramFile, |
| const std::unordered_map< std::string, double > & | params | ||
| ) |
Writes the parameter CSV/param file.
The given params map is passed to ModelWriter, which uses ParamWriter under the hood.
| paramFile | Output stream where the parameter file is written. |
| params | Map from parameter name to value. |
Definition at line 7 of file GeneralNumModelModifier.cpp.
|
inline |
Returns the interpreted parameter mapping.
Definition at line 171 of file GeneralNumModelModifier.h.
|
inline |
Returns the map of numerical parameter values.
Definition at line 177 of file GeneralNumModelModifier.h.
| void GeneralNumModelModifier::modify | ( | std::ifstream & | inputFile, |
| std::ofstream & | outputFile | ||
| ) |
Applies the numeric model transformation to a template file.
The input numeric example is read from inputFile, processed by ModelWriter (and ultimately LineProcessor), and written to outputFile.
| inputFile | Open input stream for the numeric template. |
| outputFile | Open output stream for the generated C++ file. |
Definition at line 3 of file GeneralNumModelModifier.cpp.