Singleton class to manage ONNX beam parameters in a thread-safe way.
More...
#include <PlasmaMLPALLASOnnxParameters.hh>
Singleton class to manage ONNX beam parameters in a thread-safe way.
- Author
- Arnaud HUBER huber.nosp@m.@lp2.nosp@m.ib.in.nosp@m.2p3..nosp@m.fr - Alexei SYTOV sytov.nosp@m.@inf.nosp@m.n.it
- Date
- 2025
- Copyright
- PALLAS Project - GEANT4 Collaboration
This class provides thread-safe getters and setters for parameters used by ONNX models. It ensures that updates and reads are synchronized across multiple threads.
◆ GetA0()
double OnnxParameters::GetA0 |
( |
| ) |
const |
|
inline |
◆ GetCN2()
double OnnxParameters::GetCN2 |
( |
| ) |
const |
|
inline |
◆ GetParticleName()
std::string OnnxParameters::GetParticleName |
( |
| ) |
const |
|
inline |
◆ GetPressure()
double OnnxParameters::GetPressure |
( |
| ) |
const |
|
inline |
◆ GetStatusONNX()
int OnnxParameters::GetStatusONNX |
( |
| ) |
const |
|
inline |
◆ GetXoff()
double OnnxParameters::GetXoff |
( |
| ) |
const |
|
inline |
◆ Instance()
Access the singleton instance.
- Returns
- Reference to the singleton instance of OnnxParameters.
◆ SetA0()
void OnnxParameters::SetA0 |
( |
double |
a0 | ) |
|
|
inline |
◆ SetCN2()
void OnnxParameters::SetCN2 |
( |
double |
cn2 | ) |
|
|
inline |
◆ SetParticleName()
void OnnxParameters::SetParticleName |
( |
const std::string & |
name | ) |
|
|
inline |
◆ SetPressure()
void OnnxParameters::SetPressure |
( |
double |
p | ) |
|
|
inline |
◆ SetStatusONNX()
void OnnxParameters::SetStatusONNX |
( |
int |
status | ) |
|
|
inline |
◆ SetXoff()
void OnnxParameters::SetXoff |
( |
double |
x | ) |
|
|
inline |
The documentation for this class was generated from the following file: