55 : theAdjointRunManager(pAdjointRunManager)
56{
59 "Control of the adjoint or reverse monte carlo simulation");
60
61
62
63
64 beamOnCmd =
new G4UIcommand(
"/adjoint/start_run",
this);
66 beamOnCmd->
SetGuidance(
"Default number of events to be processed is 1.");
72
73
74
75
77
79
81
83
85
87
88 DefineSpherExtSourceCmd =
89 new G4UIcommand(
"/adjoint/DefineSphericalExtSource",
this);
90 DefineSpherExtSourceCmd->
SetGuidance(
"Define a spherical external source.");
96
99
100 DefineSpherExtSourceCenteredOnAVolumeCmd =
101 new G4UIcommand(
"/adjoint/DefineSphericalExtSourceCenteredOnAVolume",
this);
102 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetGuidance(
103 "Define a spherical external source with the center located at the center "
104 "of a "
105 "physical volume");
106 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(phys_vol_name_par);
107 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(radius_par);
108 DefineSpherExtSourceCenteredOnAVolumeCmd->
SetParameter(unit_par);
109
111 "/adjoint/DefineExtSourceOnExtSurfaceOfAVolume", this);
112 DefineExtSourceOnAVolumeExtSurfaceCmd->
SetGuidance(
113 "Set the external source on the external surface of a physical volume");
115 false);
116
117 setExtSourceEMaxCmd =
120 "Set the maximum energy of the external source");
124
125
126
127
128 DefineSpherAdjSourceCmd =
129 new G4UIcommand(
"/adjoint/DefineSphericalAdjSource",
this);
130 DefineSpherAdjSourceCmd->
SetGuidance(
"Define a spherical adjoint source.");
136
137 DefineSpherAdjSourceCenteredOnAVolumeCmd =
138 new G4UIcommand(
"/adjoint/DefineSphericalAdjSourceCenteredOnAVolume",
this);
139 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetGuidance(
140 "Define a spherical adjoint source with the center located at the center "
141 "of a "
142 "physical volume");
143 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(phys_vol_name_par);
144 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(radius_par);
145 DefineSpherAdjSourceCenteredOnAVolumeCmd->
SetParameter(unit_par);
146
148 "/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume", this);
149 DefineAdjSourceOnAVolumeExtSurfaceCmd->
SetGuidance(
150 "Set the adjoint source on the external surface of physical volume");
152 false);
153
154 setAdjSourceEminCmd =
157 "Set the minimum energy of the adjoint source");
161
162 setAdjSourceEmaxCmd =
165 "Set the maximum energy of the adjoint source");
169
170 ConsiderParticleAsPrimaryCmd =
173 "Set the selected particle as primary");
175 ConsiderParticleAsPrimaryCmd->
SetCandidates(
"e- gamma proton ion");
176
177 NeglectParticleAsPrimaryCmd =
180 "Remove the selected particle from the list of primaries");
182 NeglectParticleAsPrimaryCmd->
SetCandidates(
"e- gamma proton ion");
183
184 setNbOfPrimaryFwdGammasPerEventCmd =
187 "Set the nb of primary fwd gamm generated on the adjoint source");
191
192 setNbOfPrimaryAdjGammasPerEventCmd =
195 "Set the nb of primary fwd gamm generated on the adjoint source");
199
201 "/adjoint/SetNbOfPrimaryAdjElectronsPerEvent", this);
202 setNbOfPrimaryAdjElectronsPerEventCmd->
SetGuidance(
203 "Set the nb of primary fwd gamm generated on the adjoint source");
204 setNbOfPrimaryAdjElectronsPerEventCmd->
SetParameterName(
"Nb_gammas",
false);
207}
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)