![]() |
MaCh3
2.5.1
Reference Guide
|
Implementation of NuDock factory utilities for object creation and oscillation parameter format conversion. More...
#include "NuDockFactory.h"Go to the source code of this file.
Functions | |
| 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 |
| Mapping from NuDock oscillation parameter names to MaCh3 names. More... | |
| const std::unordered_map< std::string, std::string > | NuDockOscNameMap_r |
| Mapping from MaCh3 oscillation parameter names to NuDock names. More... | |
| const std::unordered_map< std::string, CommunicationType > | CommunicationTypeMap |
| Lookup table mapping strings to NuDock CommunicationType enum values. More... | |
| const std::unordered_map< std::string, VerbosityLevel > | VerbosityLevelMap |
| Lookup table mapping strings to NuDock VerbosityLevel enum values. More... | |
Implementation of NuDock factory utilities for object creation and oscillation parameter format conversion.
Definition in file NuDockFactory.cpp.
| 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.
| 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.
| const std::unordered_map<std::string, CommunicationType> CommunicationTypeMap |
Lookup table mapping strings to NuDock CommunicationType enum values.
Definition at line 29 of file NuDockFactory.cpp.
| const std::unordered_map<std::string, std::string> NuDockOscNameMap |
Mapping from NuDock oscillation parameter names to MaCh3 names.
Map from NuDock oscillation parameter names to MaCh3 names.
Definition at line 9 of file NuDockFactory.cpp.
| const std::unordered_map<std::string, std::string> NuDockOscNameMap_r |
Mapping from MaCh3 oscillation parameter names to NuDock names.
Map from MaCh3 oscillation parameter names to NuDock names.
Definition at line 19 of file NuDockFactory.cpp.
| const std::unordered_map<std::string, VerbosityLevel> VerbosityLevelMap |
Lookup table mapping strings to NuDock VerbosityLevel enum values.
Definition at line 36 of file NuDockFactory.cpp.