PlasmaMLPALLAS
|
Provides UI commands to configure the primary generator. More...
#include <PlasmaMLPALLASPrimaryGeneratorMessenger.hh>
Public Member Functions | |
PlasmaMLPALLASPrimaryGeneratorMessenger (PlasmaMLPALLASPrimaryGeneratorAction *primaryGenerator) | |
Constructor. | |
~PlasmaMLPALLASPrimaryGeneratorMessenger () | |
Destructor. | |
virtual void | SetNewValue (G4UIcommand *command, G4String newValue) final |
Executes a command with a new value. | |
virtual G4String | GetCurrentValue (G4UIcommand *command) final |
Retrieves the current value of a command. | |
Provides UI commands to configure the primary generator.
This class allows the user to set various parameters of the primary particle generator, including ONNX model usage, particle type, laser focus, and plasma parameters via the Geant4 UI.
PlasmaMLPALLASPrimaryGeneratorMessenger::PlasmaMLPALLASPrimaryGeneratorMessenger | ( | PlasmaMLPALLASPrimaryGeneratorAction * | aGun | ) |
Constructor.
primaryGenerator | Pointer to the associated primary generator action |
Sets up UI commands and directories for controlling the primary generator.
aGun | Pointer to the primary generator action. |
Creates UI directories and commands for both the particle gun and the laser parameters.
Command to enable or disable ONNX feature for the gun.
Parameter: StatusONNX (0 or 1)
Command to set the particle name for the gun.
Parameter: ParticleName (string)
Command to set the offset of the laser focus.
Parameter: OffsetLaserFocus (double)
Command to set the normalized vector potential of the laser.
Parameter: NormVecPotential (double)
Command to set the fraction of dopant in the target chamber.
Parameter: FracDopTargChamber (double)
Command to set the gaz chamber pressure.
Parameter: Pressure (double)
PlasmaMLPALLASPrimaryGeneratorMessenger::~PlasmaMLPALLASPrimaryGeneratorMessenger | ( | ) |
Destructor.
Deletes all UI commands to free memory.
|
finalvirtual |
Retrieves the current value of a command.
Get the current value of a UI command.
command | Pointer to the command |
aCommand | Pointer to the UI command. |
Retrieves the current value from the primary generator action and converts it to a string for display in the UI.
|
finalvirtual |
Executes a command with a new value.
Apply a new value from the UI command.
command | Pointer to the issued command |
newValue | String representation of the new value |
Calls the appropriate method in the primary generator based on the command.
aCommand | Pointer to the UI command used. |
aNewValue | New value as string from the UI. |
Converts the string to the appropriate type and sets it in the primary generator action.