29#include "G4UIdirectory.hh"
30#include "G4UIcmdWithoutParameter.hh"
31#include "G4UIcmdWithAnInteger.hh"
32#include "G4UIcmdWithADoubleAndUnit.hh"
33#include "G4UIcmdWithAString.hh"
40 , fDetector(aDetector)
43 fExampleDir->SetGuidance(
"UI commands specific to this example");
46 fDetectorDir->SetGuidance(
"Detector construction UI commands");
49 fPrintCmd->SetGuidance(
"Print current settings.");
54 "Set tranverse size of the detector (cylinder radius)");
64 "Set length of the detector (cylinder length)");
96 fNbPhiCellsCmd->SetGuidance(
"Set number of cells in azimuthal angle.");
G4double GetLength() const
void SetNbOfLayers(G4int aNumber)
G4int GetNbOfPhiCells() const
G4int GetNbOfRhoCells() const
void SetRadius(G4double aRadius)
void SetMaterial(const G4String &aMaterial)
G4int GetNbOfLayers() const
void SetNbOfPhiCells(G4int aNumber)
void SetLength(G4double aLength)
G4String GetMaterial() const
G4double GetRadius() const
void SetNbOfRhoCells(G4int aNumber)
virtual void SetNewValue(G4UIcommand *, G4String) final
Invokes appropriate methods based on the typed command.
G4UIdirectory * fDetectorDir
Command to set the directory for detector settings /Par03/detector.
~Par03DetectorMessenger()
Par03DetectorMessenger(Par03DetectorConstruction *)
G4UIcmdWithADoubleAndUnit * fDetectorRadiusCmd
Command to set the detector radius.
G4UIcmdWithAnInteger * fNbLayersCmd
Command to set the number of layers.
G4UIcmdWithAString * fDetectorMaterialCmd
Command to set the detector material.
G4UIcmdWithAnInteger * fNbPhiCellsCmd
Command to set the number of cells in azimuthal angle.
G4UIdirectory * fExampleDir
Command to set the directory common to all messengers in this example /Par03.
G4UIcmdWithADoubleAndUnit * fDetectorLengthCmd
Command to set the detector length.
Par03DetectorConstruction * fDetector
Detector construction to setup.
G4UIcmdWithoutParameter * fPrintCmd
Command printing current settings.
G4UIcmdWithAnInteger * fNbRhoCellsCmd
Command to set the number of radial cells.
virtual G4String GetCurrentValue(G4UIcommand *) final
Retrieves the current settings.