58 : theAdjointRunManager(pAdjointRunManager)
59
60
61
62
63
64
65{
68 "Control of the adjoint or reverse monte carlo simulation");
69
70
71
72
73
74 beamOnCmd =
new G4UIcommand(
"/adjoint/start_run",
this);
76 beamOnCmd->
SetGuidance(
"Default number of events to be processed is 1.");
82
83
84
85
86
88
90
92
94
96
98
99 DefineSpherExtSourceCmd =
100 new G4UIcommand(
"/adjoint/DefineSphericalExtSource",
this);
101 DefineSpherExtSourceCmd->
SetGuidance(
"Define a spherical external source.");
107
110
111 DefineSpherExtSourceCenteredOnAVolumeCmd =
112 new G4UIcommand(
"/adjoint/DefineSphericalExtSourceCenteredOnAVolume",
this);
113 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetGuidance(
114 "Define a spherical external source with the center located at the center "
115 "of a "
116 "physical volume");
117 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(phys_vol_name_par);
118 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(radius_par);
119 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(unit_par);
120
122 "/adjoint/DefineExtSourceOnExtSurfaceOfAVolume", this);
123 DefineExtSourceOnAVolumeExtSurfaceCmd->
SetGuidance(
124 "Set the external source on the external surface of a physical volume");
126 false);
127
128 setExtSourceEMaxCmd =
131 "Set the maximum energy of the external source");
135
136
137
138
139 DefineSpherAdjSourceCmd =
140 new G4UIcommand(
"/adjoint/DefineSphericalAdjSource",
this);
141 DefineSpherAdjSourceCmd->
SetGuidance(
"Define a spherical adjoint source.");
147
148 DefineSpherAdjSourceCenteredOnAVolumeCmd =
149 new G4UIcommand(
"/adjoint/DefineSphericalAdjSourceCenteredOnAVolume",
this);
150 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetGuidance(
151 "Define a spherical adjoint source with the center located at the center "
152 "of a "
153 "physical volume");
154 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(phys_vol_name_par);
155 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(radius_par);
156 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(unit_par);
157
159 "/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume", this);
160 DefineAdjSourceOnAVolumeExtSurfaceCmd->
SetGuidance(
161 "Set the adjoint source on the external surface of physical volume");
163 false);
164
165 setAdjSourceEminCmd =
168 "Set the minimum energy of the adjoint source");
172
173 setAdjSourceEmaxCmd =
176 "Set the maximum energy of the adjoint source");
180
181 ConsiderParticleAsPrimaryCmd =
184 "Set the selected particle as primary");
186 ConsiderParticleAsPrimaryCmd->
SetCandidates(
"e- gamma proton ion");
187
188 NeglectParticleAsPrimaryCmd =
191 "Remove the selected particle from the list of primaries");
193 NeglectParticleAsPrimaryCmd->
SetCandidates(
"e- gamma proton ion");
194
195 setNbOfPrimaryFwdGammasPerEventCmd =
198 "Set the nb of primary fwd gamm generated on the adjoint source");
202
203 setNbOfPrimaryAdjGammasPerEventCmd =
206 "Set the nb of primary fwd gamm generated on the adjoint source");
210
212 "/adjoint/SetNbOfPrimaryAdjElectronsPerEvent", this);
213 setNbOfPrimaryAdjElectronsPerEventCmd->
SetGuidance(
214 "Set the nb of primary fwd gamm generated on the adjoint source");
215 setNbOfPrimaryAdjElectronsPerEventCmd->
SetParameterName(
"Nb_gammas",
false);
218}
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)
void SetDefaultValue(const char *theDefaultValue)
void SetParameterRange(const char *theRange)