|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Compilation strategy using a make-based build system. More...
#include <MakeCompilerStrategy.h>


Public Member Functions | |
| MakeCompilerStrategy (std::string model, std::string wilson) | |
| Constructs a MakeCompilerStrategy for a given (model, wilson) pair. | |
| void | compile_run (const std::string &sourceFile, const std::string &outputBinary) override |
| Compiles if necessary and then runs the resulting binary. | |
| void | compile (const std::string &sourceFile, const std::string &outputBinary) override |
Invokes make in the given source directory. | |
| void | set_Q_match (double Q_match) |
Sets the matching scale ![]() | |
| void | set_param_file (std::filesystem::path path) |
| void | set_output_file (std::filesystem::path path) |
Public Member Functions inherited from CompilerStrategy | |
| CompilerStrategy (std::string model, std::string wilson) | |
| Constructs a CompilerStrategy with a given model and Wilson label. | |
| virtual | ~CompilerStrategy ()=default |
| Virtual destructor. | |
| virtual bool | check_if_compile (const std::string &outputBinary) |
| Checks whether a compiled binary already exists and is non-empty. | |
Public Attributes | |
| double | Q_match = 80.379 |
| Matching scale (default: 80.379 GeV, the physical W mass). | |
Additional Inherited Members | |
Protected Attributes inherited from CompilerStrategy | |
| std::string | model |
| Model name. | |
| std::string | wilson |
| Wilson basis / label name. | |
Compilation strategy using a make-based build system.
MakeCompilerStrategy assumes that:
sourceFile passed to compile() is a directory containing a Makefile,make in that directory builds the desired binary,-Q option specifying a matching scale. Definition at line 29 of file MakeCompilerStrategy.h.
|
inline |
Constructs a MakeCompilerStrategy for a given (model, wilson) pair.
| model | Model name (metadata only). |
| wilson | Wilson basis / label (metadata only). |
Definition at line 37 of file MakeCompilerStrategy.h.
|
overridevirtual |
Invokes make in the given source directory.
| sourceFile | Directory in which to run make. |
| outputBinary | Unused here except for consistency with interface; the Makefile determines the real output name. |
Implements CompilerStrategy.
Definition at line 22 of file MakeCompilerStrategy.cpp.
|
overridevirtual |
Compiles if necessary and then runs the resulting binary.
If check_if_compile() returns false, compile() is called first. The resulting binary is then run with: outputBinary -Q <Q_match>
| sourceFile | Directory containing the Makefile. |
| outputBinary | Path/name of the binary to run. |
Implements CompilerStrategy.
Definition at line 7 of file MakeCompilerStrategy.cpp.
|
inline |
Use an invocation-local Wilson CSV instead of the shared default.
Definition at line 74 of file MakeCompilerStrategy.h.
|
inline |
Use an invocation-local parameter CSV instead of the shared default.
Definition at line 71 of file MakeCompilerStrategy.h.
|
inline |
Sets the matching scale 
The scale is used by compile_run() when executing: outputBinary -Q <Q_match>.
| Q_match | Matching scale in GeV. |
Definition at line 68 of file MakeCompilerStrategy.h.
| double MakeCompilerStrategy::Q_match = 80.379 |
Matching scale (default: 80.379 GeV, the physical W mass).
Definition at line 77 of file MakeCompilerStrategy.h.