55 : theAdjointRunManager(pAdjointRunManager)
56{
58 AdjointSimDir->
SetGuidance(
"Control of the adjoint or reverse monte carlo simulation");
59
60
61
62
63 beamOnCmd =
new G4UIcommand(
"/adjoint/start_run",
this);
65 beamOnCmd->
SetGuidance(
"Default number of events to be processed is 1.");
68 p1->SetDefaultValue(1);
69 p1->SetParameterRange("numberOfEvent >= 0");
71
72
73
74
76
78
80
82
83 radius_par->SetParameterRange("R >= 0");
84
86
87 DefineSpherExtSourceCmd =
new G4UIcommand(
"/adjoint/DefineSphericalExtSource",
this);
88 DefineSpherExtSourceCmd->
SetGuidance(
"Define a spherical external source.");
94
95 auto phys_vol_name_par =
new G4UIparameter(
"phys_vol_name",
's',
true);
96
97 DefineSpherExtSourceCenteredOnAVolumeCmd =
98 new G4UIcommand(
"/adjoint/DefineSphericalExtSourceCenteredOnAVolume",
this);
99 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetGuidance(
100 "Define a spherical external source with the center located at the center "
101 "of a "
102 "physical volume");
103 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(phys_vol_name_par);
104 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(radius_par);
105 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(unit_par);
106
107 DefineExtSourceOnAVolumeExtSurfaceCmd =
109 DefineExtSourceOnAVolumeExtSurfaceCmd->
SetGuidance(
110 "Set the external source on the external surface of a physical volume");
111 DefineExtSourceOnAVolumeExtSurfaceCmd->
SetParameterName(
"phys_vol_name",
false);
112
114 setExtSourceEMaxCmd->
SetGuidance(
"Set the maximum energy of the external source");
118
119
120
121
122 DefineSpherAdjSourceCmd =
new G4UIcommand(
"/adjoint/DefineSphericalAdjSource",
this);
123 DefineSpherAdjSourceCmd->
SetGuidance(
"Define a spherical adjoint source.");
129
130 DefineSpherAdjSourceCenteredOnAVolumeCmd =
131 new G4UIcommand(
"/adjoint/DefineSphericalAdjSourceCenteredOnAVolume",
this);
132 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetGuidance(
133 "Define a spherical adjoint source with the center located at the center "
134 "of a "
135 "physical volume");
136 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(phys_vol_name_par);
137 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(radius_par);
138 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(unit_par);
139
140 DefineAdjSourceOnAVolumeExtSurfaceCmd =
142 DefineAdjSourceOnAVolumeExtSurfaceCmd->
SetGuidance(
143 "Set the adjoint source on the external surface of physical volume");
144 DefineAdjSourceOnAVolumeExtSurfaceCmd->
SetParameterName(
"phys_vol_name",
false);
145
147 setAdjSourceEminCmd->
SetGuidance(
"Set the minimum energy of the adjoint source");
151
153 setAdjSourceEmaxCmd->
SetGuidance(
"Set the maximum energy of the adjoint source");
157
158 ConsiderParticleAsPrimaryCmd =
new G4UIcmdWithAString(
"/adjoint/ConsiderAsPrimary",
this);
159 ConsiderParticleAsPrimaryCmd->
SetGuidance(
"Set the selected particle as primary");
161 ConsiderParticleAsPrimaryCmd->
SetCandidates(
"e- gamma proton ion");
162
163 NeglectParticleAsPrimaryCmd =
new G4UIcmdWithAString(
"/adjoint/NeglectAsPrimary",
this);
165 "Remove the selected particle from the list of primaries");
167 NeglectParticleAsPrimaryCmd->
SetCandidates(
"e- gamma proton ion");
168
169 setNbOfPrimaryFwdGammasPerEventCmd =
172 "Set the nb of primary fwd gamm generated on the adjoint source");
175
176 setNbOfPrimaryAdjGammasPerEventCmd =
179 "Set the nb of primary fwd gamm generated on the adjoint source");
182
183 setNbOfPrimaryAdjElectronsPerEventCmd =
185 setNbOfPrimaryAdjElectronsPerEventCmd->
SetGuidance(
186 "Set the nb of primary fwd gamm generated on the adjoint source");
187 setNbOfPrimaryAdjElectronsPerEventCmd->
SetParameterName(
"Nb_gammas",
false);
189}
void SetUnitCategory(const char *unitCategory)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)