30#include "DetectorMessenger.hh"
32#include "G4UIcmdWith3VectorAndUnit.hh"
33#include "G4UIcmdWithADoubleAndUnit.hh"
34#include "G4UIcmdWithAString.hh"
35#include "G4UIcommand.hh"
36#include "G4UIdirectory.hh"
37#include "G4UIparameter.hh"
39#include "DetectorConstruction.hh"
49 fGeometryDir->SetGuidance(
"commands to change geometry material and size");
52 fMaterCmd->SetGuidance(
"Select material of the box.");
53 fMaterCmd->SetParameterName(
"choice",
false);
54 fMaterCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
58 fSizeCmd->SetGuidance(
"Set size of the cubic box");
59 fSizeCmd->SetParameterName(
"Size",
false);
62 fSizeCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
67 fSizeVectorCmd->SetParameterName(
"SizeAlongX",
"SizeAlongY",
"SizeAlongZ",
false);
68 fSizeVectorCmd->SetRange(
"SizeAlongX>0. && SizeAlongY>0. && SizeAlongZ>0.");
74 fSizeXCmd->SetGuidance(
"Set X size of the box");
75 fSizeXCmd->SetParameterName(
"Size",
false);
78 fSizeXCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
82 fSizeYCmd->SetGuidance(
"Set Y size of the box");
83 fSizeYCmd->SetParameterName(
"Size",
false);
86 fSizeYCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
90 fSizeZCmd->SetGuidance(
"Set Z size of the box");
91 fSizeZCmd->SetParameterName(
"Size",
false);
94 fSizeZCmd->AvailableForStates(G4State_PreInit, G4State_Idle);
Mandatory class for the construction of geometry.
void SetSizeY(G4double y)
Method to set the Y width of the world volume.
void SetSize(G4double)
Method to set the world volume to be cubical with given side.
void SetSizeZ(G4double z)
Method to set the Z width of the world volume.
void SetSizeX(G4double x)
Method to set the X width of the world volume.
void SetMaterial(G4String mat)
Method to set the world material.
G4UIcmdWithAString * fMaterCmd
G4UIcmdWithADoubleAndUnit * fSizeYCmd
DetectorMessenger(DetectorConstruction *)
~DetectorMessenger() override
G4UIcmdWithADoubleAndUnit * fSizeCmd
G4UIcmdWithADoubleAndUnit * fSizeXCmd
G4UIcmdWith3VectorAndUnit * fSizeVectorCmd
G4UIcmdWithADoubleAndUnit * fSizeZCmd
DetectorConstruction * fDetector
void SetNewValue(G4UIcommand *, G4String) override
G4UIdirectory * fGeometryDir