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);
100 delete VertexRadiusCmd;
101 delete SpectrumTypeCmd;
109 if( command == RndmCmd )
112 if( command == SourceTypeCmd )
115 if( command == VertexRadiusCmd )
118 if( command == SpectrumTypeCmd )
121 if( command == SourceGenCmd )
void SetSourceGen(G4bool val)
static G4int GetNewIntValue(const char *paramString)
void SetVertexRadius(G4double val)
static G4double GetNewDoubleValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
GammaRayTelPrimaryGeneratorMessenger(GammaRayTelPrimaryGeneratorAction *)
static constexpr double cm
void SetNewValue(G4UIcommand *, G4String)
~GammaRayTelPrimaryGeneratorMessenger()
void SetRndmFlag(G4String val)
void SetSpectrumType(G4int val)
void SetSourceType(G4int val)