PlasmaMLPALLAS
|
Interface for ONNX model inference for PALLAS plasma simulation beam generation. More...
#include <PlasmaMLPALLASOnnxInference.hh>
Public Member Functions | |
PlasmaMLPALLASOnnxInference (const std::string &modelPath) | |
Constructor. | |
BeamParameters | GenerateBeam (G4double fXof, G4double fA0, G4double fCN2, G4double fPressure) |
Generate beam parameters using the ONNX model. | |
Interface for ONNX model inference for PALLAS plasma simulation beam generation.
Class for performing ONNX model inference to generate plasma beam parameters.
This class wraps an ONNX runtime session and provides a convenient interface for generating beam parameters given laser and plasma conditions.
PlasmaMLPALLASOnnxInference::PlasmaMLPALLASOnnxInference | ( | const std::string & | modelPath | ) |
Constructor.
modelPath | Path to the ONNX model file |
Initializes the ONNX runtime environment and loads the specified model.
modelPath | Path to the ONNX model file |
Initializes the ONNX runtime environment, sets session options, and loads the specified ONNX model. Also initializes input and output node names.
BeamParameters PlasmaMLPALLASOnnxInference::GenerateBeam | ( | G4double | fXof, |
G4double | fA0, | ||
G4double | fCN2, | ||
G4double | fPressure | ||
) |
Generate beam parameters using the ONNX model.
Generates beam parameters using the ONNX model.
fXof | Laser focal position |
fA0 | Laser normalized amplitude |
fCN2 | Plasma density |
fPressure | Gas pressure |
fXof | Laser focal position |
fA0 | Laser normalized amplitude |
fCN2 | Plasma density |
fPressure | Gas pressure |
This method rescales inputs, runs inference on the ONNX model, converts outputs to physical units, and samples transverse positions/momenta.