PlasmaMLPALLAS
|
UI messenger for the Geometry constrcution in PALLAS simulation. More...
#include <PlasmaMLPALLASGeometryMessenger.hh>
Public Member Functions | |
PlasmaMLPALLASGeometryMessenger (PlasmaMLPALLASGeometryConstruction *) | |
Constructor. | |
~PlasmaMLPALLASGeometryMessenger () | |
Destructor. | |
virtual void | SetNewValue (G4UIcommand *, G4String) final |
Invokes appropriate methods based on the typed command. | |
virtual G4String | GetCurrentValue (G4UIcommand *) final |
Retrieves the current settings. | |
UI messenger for the Geometry constrcution in PALLAS simulation.
Provides UI commands to setup detector and readout geometry (prior to initialization). Length, distance, gradients and display can be changed.
PlasmaMLPALLASGeometryMessenger::PlasmaMLPALLASGeometryMessenger | ( | PlasmaMLPALLASGeometryConstruction * | aDetector | ) |
Constructor.
aDetector | Pointer to the PlasmaMLPALLAS geometry construction class |
This constructor initializes all UI commands and directories for geometry, display, and field control.
Command to enable/disable display of Full PALLAS geometry
Parameter: StatusDisplayGeometry (0 or 1)
Command to enable/disable display of Quadrupoles geometries
Parameter: StatusDisplayQuadrupolesGeometry (0 or 1)
Command to enable/disable display of Collimators geometries
Parameter: StatusDisplayCollimatorsGeometry (0 or 1)
Command to set the Q1 Length.
Parameter: Q1Length (double) unit
Command to set the Q2 Length.
Parameter: Q2Length (double) unit
Command to set the Q3 Length.
Parameter: Q3Length (double) unit
Command to set the Q4 Length.
Parameter: Q4Length (double) unit
Command to set the Source - Q1 Distance.
Parameter: SourceQ1Distance (double) unit
Command to set the Q1 - Q2 Distance.
Parameter: Q1Q2Distance (double) unit
Command to set the Q2 - Q3 Distance.
Parameter: Q2Q3Distance (double) unit
Command to set the Q3 - Q4 Distance.
Parameter: Q3Q4Distance (double) unit
Command to set the Source - Collimators Distance.
Parameter: SourceCollimatorsDistance (double) unit
Command to set the Q1Gradient .
Parameter: Q1Gradient (double) in tesla/m
Command to set the Q2Gradient .
Parameter: Q2Gradient (double) in tesla/m
Command to set the Q3Gradient .
Parameter: Q3Gradient (double) in tesla/m
Command to set the Q4Gradient .
Parameter: Q4Gradient (double) in tesla/m
Command to enable/disable use of Map Dipole spectrometer
Parameter: StatusMapBField (0 or 1)
Command to set the Constant Dipole spectrometer B Field Value if Status Map B Field is disabled.
Parameter: ConstantDipoleBField (double) in tesla
PlasmaMLPALLASGeometryMessenger::~PlasmaMLPALLASGeometryMessenger | ( | ) |
Destructor.
Deletes all UI commands to free memory.
|
finalvirtual |
Retrieves the current settings.
Get the current value of a UI command.
aCommand | Pointer to the UI command. |
Retrieves the current value from the geometry construction and converts it to a string for display in the UI.
|
finalvirtual |
Invokes appropriate methods based on the typed command.
Apply a new value from the UI 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 geometry construction.