54 :GammaRayTelAction(GammaRayTelGun)
57 RndmCmd->SetGuidance(
"Shoot randomly the incident particle.");
58 RndmCmd->SetGuidance(
" Choice : on(default), off");
59 RndmCmd->SetParameterName(
"choice",
true);
60 RndmCmd->SetDefaultValue(
"on");
61 RndmCmd->SetCandidates(
"on off");
65 SourceTypeCmd->SetGuidance(
"Select the type of incident flux.");
66 SourceTypeCmd->SetGuidance(
" Choice : 0(default), 1(isotropic), 2(wide parallel beam)");
67 SourceTypeCmd->SetParameterName(
"choice",
true);
68 SourceTypeCmd->SetDefaultValue((
G4int)0);
72 VertexRadiusCmd->SetGuidance(
"Radius (and unit) of sphere for vertices of incident flux.");
73 VertexRadiusCmd->SetParameterName(
"choice",
true);
74 VertexRadiusCmd->SetDefaultValue((
G4double)1.*
cm);
78 SpectrumTypeCmd->SetGuidance(
"Select the type of incident spectrum.");
79 SpectrumTypeCmd->SetGuidance(
" Choice : 0(default), 1(), 2(E^{-gamma}), 3()");
80 SpectrumTypeCmd->SetParameterName(
"choice",
true);
81 SpectrumTypeCmd->SetDefaultValue((
G4int)0);
86 SourceGenCmd->SetGuidance(
"Select the native Generation");
87 SourceGenCmd->SetGuidance(
" Choice : true(native), false(GPS)");
88 SourceGenCmd->SetParameterName(
"choice",
true);
89 SourceGenCmd->SetDefaultValue((
G4bool)
true);
void SetSourceGen(G4bool val)
void SetSpectrumType(G4int val)
void SetSourceType(G4int val)
G4UIcmdWithAString * RndmCmd
static G4bool GetNewBoolValue(const char *paramString)
void SetRndmFlag(G4String val)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADoubleAndUnit * VertexRadiusCmd
G4UIcmdWithABool * SourceGenCmd
void SetNewValue(G4UIcommand *, G4String)
void SetVertexRadius(G4double val)
~GammaRayTelPrimaryGeneratorMessenger()
GammaRayTelPrimaryGeneratorAction * GammaRayTelAction
static G4int GetNewIntValue(const char *paramString)
static constexpr double cm
G4UIcmdWithAnInteger * SourceTypeCmd
GammaRayTelPrimaryGeneratorMessenger(GammaRayTelPrimaryGeneratorAction *)
G4UIcmdWithAnInteger * SpectrumTypeCmd