PlasmaMLPALLAS
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PlasmaMLPALLASGeometryMessenger Class Reference

UI messenger for the Geometry constrcution in PALLAS simulation. More...

#include <PlasmaMLPALLASGeometryMessenger.hh>

Inheritance diagram for PlasmaMLPALLASGeometryMessenger:
Inheritance graph
[legend]
Collaboration diagram for PlasmaMLPALLASGeometryMessenger:
Collaboration graph
[legend]

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.
 

Detailed Description

UI messenger for the Geometry constrcution in PALLAS simulation.

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

Provides UI commands to setup detector and readout geometry (prior to initialization). Length, distance, gradients and display can be changed.

Constructor & Destructor Documentation

◆ PlasmaMLPALLASGeometryMessenger()

PlasmaMLPALLASGeometryMessenger::PlasmaMLPALLASGeometryMessenger ( PlasmaMLPALLASGeometryConstruction aDetector)

Constructor.

Parameters
aDetectorPointer 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)

  • 0: Disable Full PALLAS Geometry Display
  • 1: Enable Full PALLAS Geometry Display

Command to enable/disable display of Quadrupoles geometries

Parameter: StatusDisplayQuadrupolesGeometry (0 or 1)

  • 0: Disable Quadrupoles Display
  • 1: Enable Quadrupoles Display

Command to enable/disable display of Collimators geometries

Parameter: StatusDisplayCollimatorsGeometry (0 or 1)

  • 0: Disable Collimators Display
  • 1: Enable Collimators Display

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)

  • 0: Disable Map B Field
  • 1: Enable Map B Field

Command to set the Constant Dipole spectrometer B Field Value if Status Map B Field is disabled.

Parameter: ConstantDipoleBField (double) in tesla

◆ ~PlasmaMLPALLASGeometryMessenger()

PlasmaMLPALLASGeometryMessenger::~PlasmaMLPALLASGeometryMessenger ( )

Destructor.

Deletes all UI commands to free memory.

Member Function Documentation

◆ GetCurrentValue()

G4String PlasmaMLPALLASGeometryMessenger::GetCurrentValue ( G4UIcommand *  aCommand)
finalvirtual

Retrieves the current settings.

Get the current value of a UI command.

Parameters
aCommandPointer to the UI command.
Returns
Current value of the command as a string.

Retrieves the current value from the geometry construction and converts it to a string for display in the UI.

◆ SetNewValue()

void PlasmaMLPALLASGeometryMessenger::SetNewValue ( G4UIcommand *  aCommand,
G4String  aNewValue 
)
finalvirtual

Invokes appropriate methods based on the typed command.

Apply a new value from the UI command.

Parameters
aCommandPointer to the UI command used.
aNewValueNew value as string from the UI.

Converts the string to the appropriate type and sets it in the geometry construction.


The documentation for this class was generated from the following files: