![]() |
MaCh3
2.5.1
Reference Guide
|
Factory utilities for creating and configuring NuDock communication objects. More...
Go to the source code of this file.
Functions | |
| _MaCh3_Safe_Include_Start_ _MaCh3_Safe_Include_End_ void | InitialiseNuDockObj (Manager *man, std::unique_ptr< NuDock > &nudock_ptr) |
| Initialise a NuDock communication object from a manager configuration. More... | |
| void | FormatOscParsForNuDock (const std::string ¶m_name, double ¶m_value) |
| Convert an oscillation parameter value from MaCh3 convention to NuDock convention. More... | |
| void | FormatOscParsForMaCh3 (const std::string ¶m_name, double ¶m_value) |
| Convert an oscillation parameter value from NuDock convention to MaCh3 convention. More... | |
Variables | |
| const std::unordered_map< std::string, std::string > | NuDockOscNameMap |
| Map from NuDock oscillation parameter names to MaCh3 names. More... | |
| const std::unordered_map< std::string, std::string > | NuDockOscNameMap_r |
| Map from MaCh3 oscillation parameter names to NuDock names. More... | |
Factory utilities for creating and configuring NuDock communication objects.
Provides helper functions to initialise NuDock instances from MaCh3 configuration, as well as conversion utilities between MaCh3 and NuDock oscillation parameter conventions.
Definition in file NuDockFactory.h.
| void FormatOscParsForMaCh3 | ( | const std::string & | param_name, |
| double & | param_value | ||
| ) |
Convert an oscillation parameter value from NuDock convention to MaCh3 convention.
| param_name | The NuDock-side parameter name (e.g. "Theta12"). | |
| [in,out] | param_value | The parameter value to convert in-place. |
Definition at line 111 of file NuDockFactory.cpp.
| void FormatOscParsForNuDock | ( | const std::string & | param_name, |
| double & | param_value | ||
| ) |
Convert an oscillation parameter value from MaCh3 convention to NuDock convention.
| param_name | The MaCh3-side parameter name (e.g. "Theta12"). | |
| [in,out] | param_value | The parameter value to convert in-place. |
Definition at line 105 of file NuDockFactory.cpp.
| _MaCh3_Safe_Include_Start_ _MaCh3_Safe_Include_End_ void InitialiseNuDockObj | ( | Manager * | man, |
| std::unique_ptr< NuDock > & | nudock_ptr | ||
| ) |
Initialise a NuDock communication object from a manager configuration.
| man | Pointer to the MaCh3 manager holding the NuDock YAML config block. | |
| [in,out] | nudock_ptr | Unique pointer that will own the newly created NuDock object. |
| MaCh3Exception | if no NuDock configuration is found, or if an unsupported communication type / verbosity level is specified. |
Definition at line 43 of file NuDockFactory.cpp.
|
extern |
Map from NuDock oscillation parameter names to MaCh3 names.
Keys are NuDock-style names (e.g. "Theta12"), values are MaCh3-style names (e.g. "sin2th_12").
Map from NuDock oscillation parameter names to MaCh3 names.
Definition at line 9 of file NuDockFactory.cpp.
|
extern |
Map from MaCh3 oscillation parameter names to NuDock names.
Keys are MaCh3-style names (e.g. "sin2th_12"), values are NuDock-style names (e.g. "Theta12").
Map from MaCh3 oscillation parameter names to NuDock names.
Definition at line 19 of file NuDockFactory.cpp.