95 if ( theInstance != 0 ) {
104 : fGPS(fPtclGun),fParticleGun(0),fShootIon(
false),
105 fAtomicNumber(0),fAtomicMass(0),fIonCharge(0),fIonExciteEnergy(0.),
106 fShootIonL(0),fAtomicNumberL(0),fAtomicMassL(0),fIonChargeL(0),fIonEnergyLevel(0)
120 commandsShouldBeInMaster =
true;
131 gpsDirectory->SetGuidance(
"General Paricle Source control commands.");
136 sourceDirectory->SetGuidance(
"Multiple source control sub-directory");
139 addsourceCmd->SetGuidance(
"add a new source defintion to the particle gun with the specified intensity");
140 addsourceCmd->SetParameterName(
"addsource",
false,
false);
141 addsourceCmd->SetRange(
"addsource > 0.");
144 listsourceCmd->SetGuidance(
"List the defined particle sources");
147 clearsourceCmd->SetGuidance(
"Remove all the defined particle sources");
150 getsourceCmd->SetGuidance(
"Show the current source index and intensity");
153 setsourceCmd->SetGuidance(
"set the indexed source as the current one");
154 setsourceCmd->SetGuidance(
" so one can change its source definition");
155 setsourceCmd->SetParameterName(
"setsource",
false,
false);
156 setsourceCmd->SetRange(
"setsource >= 0");
159 deletesourceCmd->SetGuidance(
"delete the indexed source from the list");
160 deletesourceCmd->SetParameterName(
"deletesource",
false,
false);
161 deletesourceCmd->SetRange(
"deletesource > 0");
164 setintensityCmd->SetGuidance(
"reset the current source to the specified intensity");
165 setintensityCmd->SetParameterName(
"setintensity",
false,
false);
166 setintensityCmd->SetRange(
"setintensity > 0.");
168 multiplevertexCmd =
new G4UIcmdWithABool(
"/gps/source/multiplevertex",
this);
169 multiplevertexCmd->SetGuidance(
"true for simulaneous generation mutiple vertex");
170 multiplevertexCmd->SetGuidance(
"Default is false");
171 multiplevertexCmd->SetParameterName(
"multiplevertex",
true);
172 multiplevertexCmd->SetDefaultValue(
false);
175 flatsamplingCmd->SetGuidance(
"true for applying flat (biased) sampling among the sources");
176 flatsamplingCmd->SetGuidance(
"Default is false");
177 flatsamplingCmd->SetParameterName(
"flatsampling",
true);
178 flatsamplingCmd->SetDefaultValue(
false);
183 listCmd->SetGuidance(
"List available particles.");
184 listCmd->SetGuidance(
" Invoke G4ParticleTable.");
187 particleCmd->SetGuidance(
"Set particle to be generated.");
188 particleCmd->SetGuidance(
" (geantino is default)");
189 particleCmd->SetGuidance(
" (ion can be specified for shooting ions)");
190 particleCmd->SetParameterName(
"particleName",
true);
191 particleCmd->SetDefaultValue(
"geantino");
193 G4int nPtcl = particleTable->entries();
194 for(
G4int i=0;i<nPtcl;i++)
196 candidateList += particleTable->GetParticleName(i);
197 candidateList +=
" ";
199 candidateList +=
"ion ";
200 particleCmd->SetCandidates(candidateList);
203 directionCmd->SetGuidance(
"Set momentum direction.");
204 directionCmd->SetGuidance(
"Direction needs not to be a unit vector.");
205 directionCmd->SetGuidance(
"Angular distribution type is set to planar.");
206 directionCmd->SetParameterName(
"Px",
"Py",
"Pz",
false,
false);
207 directionCmd->SetRange(
"Px != 0 || Py != 0 || Pz != 0");
210 energyCmd->SetGuidance(
"Set kinetic energy.");
211 energyCmd->SetParameterName(
"Energy",
false,
false);
212 energyCmd->SetDefaultUnit(
"GeV");
217 positionCmd->SetGuidance(
"Set starting position of the particle for a Point like source.");
218 positionCmd->SetGuidance(
"Same effect as the two /gps/pos/type Point /gps/pos/centre commands.");
219 positionCmd->SetParameterName(
"X",
"Y",
"Z",
false,
false);
220 positionCmd->SetDefaultUnit(
"cm");
225 ionCmd->SetGuidance(
"Set properties of ion to be generated.");
226 ionCmd->SetGuidance(
"[usage] /gps/ion Z A Q E");
227 ionCmd->SetGuidance(
" Z:(int) AtomicNumber");
228 ionCmd->SetGuidance(
" A:(int) AtomicMass");
229 ionCmd->SetGuidance(
" Q:(int) Charge of Ion (in unit of e)");
230 ionCmd->SetGuidance(
" E:(double) Excitation energy (in keV)");
235 ionCmd->SetParameter(param);
238 ionCmd->SetParameter(param);
241 ionCmd->SetParameter(param);
244 ionCmd->SetParameter(param);
247 ionLvlCmd->SetGuidance(
"Set properties of ion to be generated.");
248 ionLvlCmd->SetGuidance(
"[usage] /gps/ion Z A Q Lvl");
249 ionLvlCmd->SetGuidance(
" Z:(int) AtomicNumber");
250 ionLvlCmd->SetGuidance(
" A:(int) AtomicMass");
251 ionLvlCmd->SetGuidance(
" Q:(int) Charge of Ion (in unit of e)");
252 ionLvlCmd->SetGuidance(
" Lvl:(int) Number of metastable state excitation level (0-9)");
257 ionLvlCmd->SetParameter(paramL);
260 ionLvlCmd->SetParameter(paramL);
263 ionLvlCmd->SetParameter(paramL);
266 ionLvlCmd->SetParameter(paramL);
269 timeCmd->SetGuidance(
"Set initial time of the particle.");
270 timeCmd->SetParameterName(
"t0",
false,
false);
271 timeCmd->SetDefaultUnit(
"ns");
276 polCmd->SetGuidance(
"Set polarization.");
277 polCmd->SetParameterName(
"Px",
"Py",
"Pz",
false,
false);
278 polCmd->SetRange(
"Px>=-1.&&Px<=1.&&Py>=-1.&&Py<=1.&&Pz>=-1.&&Pz<=1.");
281 numberCmd->SetGuidance(
"Set number of particles to be generated per vertex.");
282 numberCmd->SetParameterName(
"N",
false,
false);
283 numberCmd->SetRange(
"N>0");
287 verbosityCmd->SetGuidance(
"Set Verbose level for GPS");
288 verbosityCmd->SetGuidance(
" 0 : Silent");
289 verbosityCmd->SetGuidance(
" 1 : Limited information");
290 verbosityCmd->SetGuidance(
" 2 : Detailed information");
291 verbosityCmd->SetParameterName(
"level",
false);
292 verbosityCmd->SetRange(
"level>=0 && level <=2");
297 positionDirectory->SetGuidance(
"Positional commands sub-directory");
300 typeCmd1->SetGuidance(
"Sets source distribution type.");
301 typeCmd1->SetGuidance(
"Either Point, Beam, Plane, Surface or Volume");
302 typeCmd1->SetParameterName(
"DisType",
false,
false);
303 typeCmd1->SetDefaultValue(
"Point");
304 typeCmd1->SetCandidates(
"Point Beam Plane Surface Volume");
307 shapeCmd1->SetGuidance(
"Sets source shape for Plan, Surface or Volume type source.");
308 shapeCmd1->SetParameterName(
"Shape",
false,
false);
309 shapeCmd1->SetDefaultValue(
"NULL");
310 shapeCmd1->SetCandidates(
"Circle Annulus Ellipse Square Rectangle Sphere Ellipsoid Cylinder Para");
313 centreCmd1->SetGuidance(
"Set centre coordinates of source.");
315 centreCmd1->SetParameterName(
"X",
"Y",
"Z",
false,
false);
316 centreCmd1->SetDefaultUnit(
"cm");
320 posrot1Cmd1->SetGuidance(
"Set the 1st vector defining the rotation matrix'.");
321 posrot1Cmd1->SetGuidance(
"It does not need to be a unit vector.");
322 posrot1Cmd1->SetParameterName(
"R1x",
"R1y",
"R1z",
false,
false);
323 posrot1Cmd1->SetRange(
"R1x != 0 || R1y != 0 || R1z != 0");
326 posrot2Cmd1->SetGuidance(
"Set the 2nd vector defining the rotation matrix'.");
327 posrot2Cmd1->SetGuidance(
"It does not need to be a unit vector.");
328 posrot2Cmd1->SetParameterName(
"R2x",
"R2y",
"R2z",
false,
false);
329 posrot2Cmd1->SetRange(
"R2x != 0 || R2y != 0 || R2z != 0");
332 halfxCmd1->SetGuidance(
"Set x half length of source.");
333 halfxCmd1->SetParameterName(
"Halfx",
false,
false);
334 halfxCmd1->SetDefaultUnit(
"cm");
338 halfyCmd1->SetGuidance(
"Set y half length of source.");
339 halfyCmd1->SetParameterName(
"Halfy",
false,
false);
340 halfyCmd1->SetDefaultUnit(
"cm");
344 halfzCmd1->SetGuidance(
"Set z half length of source.");
345 halfzCmd1->SetParameterName(
"Halfz",
false,
false);
346 halfzCmd1->SetDefaultUnit(
"cm");
350 radiusCmd1->SetGuidance(
"Set radius of source.");
351 radiusCmd1->SetParameterName(
"Radius",
false,
false);
352 radiusCmd1->SetDefaultUnit(
"cm");
356 radius0Cmd1->SetGuidance(
"Set inner radius of source when required.");
357 radius0Cmd1->SetParameterName(
"Radius0",
false,
false);
358 radius0Cmd1->SetDefaultUnit(
"cm");
362 possigmarCmd1->SetGuidance(
"Set standard deviation in radial of the beam positional profile");
363 possigmarCmd1->SetGuidance(
" applicable to Beam type source only");
364 possigmarCmd1->SetParameterName(
"Sigmar",
false,
false);
365 possigmarCmd1->SetDefaultUnit(
"cm");
369 possigmaxCmd1->SetGuidance(
"Set standard deviation of beam positional profile in x-dir");
370 possigmaxCmd1->SetGuidance(
" applicable to Beam type source only");
371 possigmaxCmd1->SetParameterName(
"Sigmax",
false,
false);
372 possigmaxCmd1->SetDefaultUnit(
"cm");
376 possigmayCmd1->SetGuidance(
"Set standard deviation of beam positional profile in y-dir");
377 possigmayCmd1->SetGuidance(
" applicable to Beam type source only");
378 possigmayCmd1->SetParameterName(
"Sigmay",
false,
false);
379 possigmayCmd1->SetDefaultUnit(
"cm");
383 paralpCmd1->SetGuidance(
"Angle from y-axis of y' in Para");
384 paralpCmd1->SetParameterName(
"paralp",
false,
false);
385 paralpCmd1->SetDefaultUnit(
"rad");
389 partheCmd1->SetGuidance(
"Polar angle through centres of z faces");
390 partheCmd1->SetParameterName(
"parthe",
false,
false);
391 partheCmd1->SetDefaultUnit(
"rad");
395 parphiCmd1->SetGuidance(
"Azimuth angle through centres of z faces");
396 parphiCmd1->SetParameterName(
"parphi",
false,
false);
397 parphiCmd1->SetDefaultUnit(
"rad");
401 confineCmd1->SetGuidance(
"Confine source to volume (NULL to unset).");
402 confineCmd1->SetGuidance(
"usage: confine VolName");
403 confineCmd1->SetParameterName(
"VolName",
false,
false);
404 confineCmd1->SetDefaultValue(
"NULL");
408 typeCmd->SetGuidance(
"Sets source distribution type. (obsolete!)");
409 typeCmd->SetGuidance(
"Either Point, Beam, Plane, Surface or Volume");
410 typeCmd->SetParameterName(
"DisType",
false,
false);
411 typeCmd->SetDefaultValue(
"Point");
412 typeCmd->SetCandidates(
"Point Beam Plane Surface Volume");
415 shapeCmd->SetGuidance(
"Sets source shape type.(obsolete!)");
416 shapeCmd->SetParameterName(
"Shape",
false,
false);
417 shapeCmd->SetDefaultValue(
"NULL");
418 shapeCmd->SetCandidates(
"Circle Annulus Ellipse Square Rectangle Sphere Ellipsoid Cylinder Para");
421 centreCmd->SetGuidance(
"Set centre coordinates of source.(obsolete!)");
422 centreCmd->SetParameterName(
"X",
"Y",
"Z",
false,
false);
423 centreCmd->SetDefaultUnit(
"cm");
427 posrot1Cmd->SetGuidance(
"Set rotation matrix of x'.(obsolete!)");
428 posrot1Cmd->SetGuidance(
"Posrot1 does not need to be a unit vector.");
429 posrot1Cmd->SetParameterName(
"R1x",
"R1y",
"R1z",
false,
false);
430 posrot1Cmd->SetRange(
"R1x != 0 || R1y != 0 || R1z != 0");
433 posrot2Cmd->SetGuidance(
"Set rotation matrix of y'.(obsolete!)");
434 posrot2Cmd->SetGuidance(
"Posrot2 does not need to be a unit vector.");
435 posrot2Cmd->SetParameterName(
"R2x",
"R2y",
"R2z",
false,
false);
436 posrot2Cmd->SetRange(
"R2x != 0 || R2y != 0 || R2z != 0");
439 halfxCmd->SetGuidance(
"Set x half length of source.(obsolete!)");
440 halfxCmd->SetParameterName(
"Halfx",
false,
false);
441 halfxCmd->SetDefaultUnit(
"cm");
445 halfyCmd->SetGuidance(
"Set y half length of source.(obsolete!)");
446 halfyCmd->SetParameterName(
"Halfy",
false,
false);
447 halfyCmd->SetDefaultUnit(
"cm");
451 halfzCmd->SetGuidance(
"Set z half length of source.(obsolete!)");
452 halfzCmd->SetParameterName(
"Halfz",
false,
false);
453 halfzCmd->SetDefaultUnit(
"cm");
457 radiusCmd->SetGuidance(
"Set radius of source.(obsolete!)");
458 radiusCmd->SetParameterName(
"Radius",
false,
false);
459 radiusCmd->SetDefaultUnit(
"cm");
463 radius0Cmd->SetGuidance(
"Set inner radius of source.(obsolete!)");
464 radius0Cmd->SetParameterName(
"Radius0",
false,
false);
465 radius0Cmd->SetDefaultUnit(
"cm");
469 possigmarCmd->SetGuidance(
"Set standard deviation of beam position in radial(obsolete!)");
470 possigmarCmd->SetParameterName(
"Sigmar",
false,
false);
471 possigmarCmd->SetDefaultUnit(
"cm");
475 possigmaxCmd->SetGuidance(
"Set standard deviation of beam position in x-dir(obsolete!)");
476 possigmaxCmd->SetParameterName(
"Sigmax",
false,
false);
477 possigmaxCmd->SetDefaultUnit(
"cm");
481 possigmayCmd->SetGuidance(
"Set standard deviation of beam position in y-dir(obsolete!)");
482 possigmayCmd->SetParameterName(
"Sigmay",
false,
false);
483 possigmayCmd->SetDefaultUnit(
"cm");
487 paralpCmd->SetGuidance(
"Angle from y-axis of y' in Para(obsolete!)");
488 paralpCmd->SetParameterName(
"paralp",
false,
false);
489 paralpCmd->SetDefaultUnit(
"rad");
493 partheCmd->SetGuidance(
"Polar angle through centres of z faces(obsolete!)");
494 partheCmd->SetParameterName(
"parthe",
false,
false);
495 partheCmd->SetDefaultUnit(
"rad");
499 parphiCmd->SetGuidance(
"Azimuth angle through centres of z faces(obsolete!)");
500 parphiCmd->SetParameterName(
"parphi",
false,
false);
501 parphiCmd->SetDefaultUnit(
"rad");
505 confineCmd->SetGuidance(
"Confine source to volume (NULL to unset)(obsolete!) .");
506 confineCmd->SetGuidance(
"usage: confine VolName");
507 confineCmd->SetParameterName(
"VolName",
false,
false);
508 confineCmd->SetDefaultValue(
"NULL");
512 angularDirectory->SetGuidance(
"Angular commands sub-directory");
515 angtypeCmd1->SetGuidance(
"Sets angular source distribution type");
516 angtypeCmd1->SetGuidance(
"Possible variables are: iso, cos, planar, beam1d, beam2d, focused or user");
517 angtypeCmd1->SetParameterName(
"AngDis",
false,
false);
518 angtypeCmd1->SetDefaultValue(
"iso");
519 angtypeCmd1->SetCandidates(
"iso cos planar beam1d beam2d focused user");
522 angrot1Cmd1->SetGuidance(
"Sets the 1st vector for angular distribution rotation matrix");
523 angrot1Cmd1->SetGuidance(
"Need not be a unit vector");
524 angrot1Cmd1->SetParameterName(
"AR1x",
"AR1y",
"AR1z",
false,
false);
525 angrot1Cmd1->SetRange(
"AR1x != 0 || AR1y != 0 || AR1z != 0");
528 angrot2Cmd1->SetGuidance(
"Sets the 2nd vector for angular distribution rotation matrix");
529 angrot2Cmd1->SetGuidance(
"Need not be a unit vector");
530 angrot2Cmd1->SetParameterName(
"AR2x",
"AR2y",
"AR2z",
false,
false);
531 angrot2Cmd1->SetRange(
"AR2x != 0 || AR2y != 0 || AR2z != 0");
534 minthetaCmd1->SetGuidance(
"Set minimum theta");
535 minthetaCmd1->SetParameterName(
"MinTheta",
false,
false);
536 minthetaCmd1->SetDefaultValue(0.);
537 minthetaCmd1->SetDefaultUnit(
"rad");
541 maxthetaCmd1->SetGuidance(
"Set maximum theta");
542 maxthetaCmd1->SetParameterName(
"MaxTheta",
false,
false);
543 maxthetaCmd1->SetDefaultValue(
pi);
544 maxthetaCmd1->SetDefaultUnit(
"rad");
548 minphiCmd1->SetGuidance(
"Set minimum phi");
549 minphiCmd1->SetParameterName(
"MinPhi",
false,
false);
550 minphiCmd1->SetDefaultUnit(
"rad");
554 maxphiCmd1->SetGuidance(
"Set maximum phi");
555 maxphiCmd1->SetParameterName(
"MaxPhi",
false,
false);
556 maxphiCmd1->SetDefaultValue(
pi);
557 maxphiCmd1->SetDefaultUnit(
"rad");
561 angsigmarCmd1->SetGuidance(
"Set standard deviation in direction for 1D beam.");
562 angsigmarCmd1->SetParameterName(
"Sigmara",
false,
false);
563 angsigmarCmd1->SetDefaultUnit(
"rad");
567 angsigmaxCmd1->SetGuidance(
"Set standard deviation in direction in x-direc. for 2D beam");
568 angsigmaxCmd1->SetParameterName(
"Sigmaxa",
false,
false);
569 angsigmaxCmd1->SetDefaultUnit(
"rad");
573 angsigmayCmd1->SetGuidance(
"Set standard deviation in direction in y-direc. for 2D beam");
574 angsigmayCmd1->SetParameterName(
"Sigmaya",
false,
false);
575 angsigmayCmd1->SetDefaultUnit(
"rad");
579 angfocusCmd->SetGuidance(
"Set the focusing point for the beam");
580 angfocusCmd->SetParameterName(
"x",
"y",
"z",
false,
false);
581 angfocusCmd->SetDefaultUnit(
"cm");
585 useuserangaxisCmd1->SetGuidance(
"true for using user defined angular co-ordinates");
586 useuserangaxisCmd1->SetGuidance(
"Default is false");
587 useuserangaxisCmd1->SetParameterName(
"useuserangaxis",
true);
588 useuserangaxisCmd1->SetDefaultValue(
false);
591 surfnormCmd1->SetGuidance(
"Makes a user-defined distribution with respect to surface normals rather than x,y,z axes.");
592 surfnormCmd1->SetGuidance(
"Default is false");
593 surfnormCmd1->SetParameterName(
"surfnorm",
true);
594 surfnormCmd1->SetDefaultValue(
false);
598 angtypeCmd->SetGuidance(
"Sets angular source distribution type (obsolete!)");
599 angtypeCmd->SetGuidance(
"Possible variables are: iso, cos planar beam1d beam2d or user");
600 angtypeCmd->SetParameterName(
"AngDis",
false,
false);
601 angtypeCmd->SetDefaultValue(
"iso");
602 angtypeCmd->SetCandidates(
"iso cos planar beam1d beam2d user");
605 angrot1Cmd->SetGuidance(
"Sets the x' vector for angular distribution(obsolete!) ");
606 angrot1Cmd->SetGuidance(
"Need not be a unit vector");
607 angrot1Cmd->SetParameterName(
"AR1x",
"AR1y",
"AR1z",
false,
false);
608 angrot1Cmd->SetRange(
"AR1x != 0 || AR1y != 0 || AR1z != 0");
611 angrot2Cmd->SetGuidance(
"Sets the y' vector for angular distribution (obsolete!)");
612 angrot2Cmd->SetGuidance(
"Need not be a unit vector");
613 angrot2Cmd->SetParameterName(
"AR2x",
"AR2y",
"AR2z",
false,
false);
614 angrot2Cmd->SetRange(
"AR2x != 0 || AR2y != 0 || AR2z != 0");
617 minthetaCmd->SetGuidance(
"Set minimum theta (obsolete!)");
618 minthetaCmd->SetParameterName(
"MinTheta",
false,
false);
619 minthetaCmd->SetDefaultUnit(
"rad");
623 maxthetaCmd->SetGuidance(
"Set maximum theta (obsolete!)");
624 maxthetaCmd->SetParameterName(
"MaxTheta",
false,
false);
625 maxthetaCmd->SetDefaultValue(3.1416);
626 maxthetaCmd->SetDefaultUnit(
"rad");
630 minphiCmd->SetGuidance(
"Set minimum phi (obsolete!)");
631 minphiCmd->SetParameterName(
"MinPhi",
false,
false);
632 minphiCmd->SetDefaultUnit(
"rad");
636 maxphiCmd->SetGuidance(
"Set maximum phi(obsolete!)");
637 maxphiCmd->SetParameterName(
"MaxPhi",
false,
false);
638 maxphiCmd->SetDefaultUnit(
"rad");
642 angsigmarCmd->SetGuidance(
"Set standard deviation of beam direction in radial(obsolete!).");
643 angsigmarCmd->SetParameterName(
"Sigmara",
false,
false);
644 angsigmarCmd->SetDefaultUnit(
"rad");
648 angsigmaxCmd->SetGuidance(
"Set standard deviation of beam direction in x-direc(obsolete!).");
649 angsigmaxCmd->SetParameterName(
"Sigmaxa",
false,
false);
650 angsigmaxCmd->SetDefaultUnit(
"rad");
654 angsigmayCmd->SetGuidance(
"Set standard deviation of beam direction in y-direc.(obsolete!)");
655 angsigmayCmd->SetParameterName(
"Sigmaya",
false,
false);
656 angsigmayCmd->SetDefaultUnit(
"rad");
660 useuserangaxisCmd->SetGuidance(
"true for using user defined angular co-ordinates(obsolete!)");
661 useuserangaxisCmd->SetGuidance(
"Default is false");
662 useuserangaxisCmd->SetParameterName(
"useuserangaxis",
true);
663 useuserangaxisCmd->SetDefaultValue(
false);
666 surfnormCmd->SetGuidance(
"Makes a user-defined distribution with respect to surface normals rather than x,y,z axes (obsolete!).");
667 surfnormCmd->SetGuidance(
"Default is false");
668 surfnormCmd->SetParameterName(
"surfnorm",
true);
669 surfnormCmd->SetDefaultValue(
false);
674 energyDirectory->SetGuidance(
"Spectral commands sub-directory");
677 energytypeCmd1->SetGuidance(
"Sets energy distribution type");
678 energytypeCmd1->SetParameterName(
"EnergyDis",
false,
false);
679 energytypeCmd1->SetDefaultValue(
"Mono");
680 energytypeCmd1->SetCandidates(
"Mono Lin Pow Exp Gauss Brem Bbody Cdg User Arb Epn");
683 eminCmd1->SetGuidance(
"Sets minimum energy");
684 eminCmd1->SetParameterName(
"emin",
false,
false);
685 eminCmd1->SetDefaultUnit(
"keV");
689 emaxCmd1->SetGuidance(
"Sets maximum energy");
690 emaxCmd1->SetParameterName(
"emax",
false,
false);
691 emaxCmd1->SetDefaultUnit(
"keV");
695 monoenergyCmd1->SetGuidance(
"Sets a monocromatic energy (same as gps/energy)");
696 monoenergyCmd1->SetParameterName(
"monoenergy",
false,
false);
697 monoenergyCmd1->SetDefaultUnit(
"keV");
701 engsigmaCmd1->SetGuidance(
"Sets the standard deviation for Gaussian energy dist.");
702 engsigmaCmd1->SetParameterName(
"Sigmae",
false,
false);
703 engsigmaCmd1->SetDefaultUnit(
"keV");
707 alphaCmd1->SetGuidance(
"Sets Alpha (index) for power-law energy dist.");
708 alphaCmd1->SetParameterName(
"alpha",
false,
false);
711 tempCmd1->SetGuidance(
"Sets the temperature for Brem and BBody distributions (in Kelvin)");
712 tempCmd1->SetParameterName(
"temp",
false,
false);
715 ezeroCmd1->SetGuidance(
"Sets E_0 for exponential distribution (in MeV)");
716 ezeroCmd1->SetParameterName(
"ezero",
false,
false);
719 gradientCmd1->SetGuidance(
"Sets the gradient for Lin distribution (in 1/MeV)");
720 gradientCmd1->SetParameterName(
"gradient",
false,
false);
723 interceptCmd1->SetGuidance(
"Sets the intercept for Lin distributions (in MeV)");
724 interceptCmd1->SetParameterName(
"intercept",
false,
false);
727 arbeintCmd1->SetGuidance(
"Set the power-law index for the energy sampling distri. )");
728 arbeintCmd1->SetParameterName(
"arbeint",
false,
false);
731 calculateCmd1->SetGuidance(
"Calculates the distributions for Cdg and BBody");
734 energyspecCmd1->SetGuidance(
"True for energy and false for momentum spectra");
735 energyspecCmd1->SetParameterName(
"energyspec",
true);
736 energyspecCmd1->SetDefaultValue(
true);
739 diffspecCmd1->SetGuidance(
"True for differential and flase for integral spectra");
740 diffspecCmd1->SetParameterName(
"diffspec",
true);
741 diffspecCmd1->SetDefaultValue(
true);
745 energytypeCmd->SetGuidance(
"Sets energy distribution type (obsolete!)");
746 energytypeCmd->SetParameterName(
"EnergyDis",
false,
false);
747 energytypeCmd->SetDefaultValue(
"Mono");
748 energytypeCmd->SetCandidates(
"Mono Lin Pow Exp Gauss Brem Bbody Cdg User Arb Epn");
751 eminCmd->SetGuidance(
"Sets Emin (obsolete!)");
752 eminCmd->SetParameterName(
"emin",
false,
false);
753 eminCmd->SetDefaultUnit(
"keV");
757 emaxCmd->SetGuidance(
"Sets Emax (obsolete!)");
758 emaxCmd->SetParameterName(
"emax",
false,
false);
759 emaxCmd->SetDefaultUnit(
"keV");
763 monoenergyCmd->SetGuidance(
"Sets Monoenergy (obsolete, use gps/energy instead!)");
764 monoenergyCmd->SetParameterName(
"monoenergy",
false,
false);
765 monoenergyCmd->SetDefaultUnit(
"keV");
769 engsigmaCmd->SetGuidance(
"Sets the standard deviation for Gaussian energy dist.(obsolete!)");
770 engsigmaCmd->SetParameterName(
"Sigmae",
false,
false);
771 engsigmaCmd->SetDefaultUnit(
"keV");
775 alphaCmd->SetGuidance(
"Sets Alpha (index) for power-law energy dist(obsolete!).");
776 alphaCmd->SetParameterName(
"alpha",
false,
false);
779 tempCmd->SetGuidance(
"Sets the temperature for Brem and BBody (in Kelvin)(obsolete!)");
780 tempCmd->SetParameterName(
"temp",
false,
false);
783 ezeroCmd->SetGuidance(
"Sets ezero exponential distributions (in MeV)(obsolete!)");
784 ezeroCmd->SetParameterName(
"ezero",
false,
false);
787 gradientCmd->SetGuidance(
"Sets the gradient for Lin distributions (in 1/MeV)(obsolete!)");
788 gradientCmd->SetParameterName(
"gradient",
false,
false);
791 interceptCmd->SetGuidance(
"Sets the intercept for Lin distributions (in MeV)(obsolete!)");
792 interceptCmd->SetParameterName(
"intercept",
false,
false);
795 calculateCmd->SetGuidance(
"Calculates distributions for Cdg and BBody(obsolete!)");
798 energyspecCmd->SetGuidance(
"True for energy and false for momentum spectra(obsolete!)");
799 energyspecCmd->SetParameterName(
"energyspec",
true);
800 energyspecCmd->SetDefaultValue(
true);
803 diffspecCmd->SetGuidance(
"True for differential and flase for integral spectra(obsolete!)");
804 diffspecCmd->SetParameterName(
"diffspec",
true);
805 diffspecCmd->SetDefaultValue(
true);
809 histDirectory->SetGuidance(
"Histogram, biasing commands sub-directory");
812 histnameCmd1->SetGuidance(
"Sets histogram type");
813 histnameCmd1->SetParameterName(
"HistType",
false,
false);
814 histnameCmd1->SetDefaultValue(
"biasx");
815 histnameCmd1->SetCandidates(
"biasx biasy biasz biast biasp biase biaspt biaspp theta phi energy arb epn");
818 resethistCmd1->SetGuidance(
"Reset (clean) the histogram ");
819 resethistCmd1->SetParameterName(
"HistType",
false,
false);
820 resethistCmd1->SetDefaultValue(
"energy");
821 resethistCmd1->SetCandidates(
"biasx biasy biasz biast biasp biase biaspt biaspp theta phi energy arb epn");
824 histpointCmd1->SetGuidance(
"Allows user to define a histogram");
825 histpointCmd1->SetGuidance(
"Enter: Ehi Weight");
826 histpointCmd1->SetParameterName(
"Ehi",
"Weight",
"Junk",
true,
true);
827 histpointCmd1->SetRange(
"Ehi >= 0. && Weight >= 0.");
830 histfileCmd1->SetGuidance(
"import the arb energy hist in an ASCII file");
831 histfileCmd1->SetParameterName(
"HistFile",
false,
false);
834 arbintCmd1->SetGuidance(
"Sets the interpolation method for arbitrary distribution.");
835 arbintCmd1->SetParameterName(
"int",
false,
false);
836 arbintCmd1->SetDefaultValue(
"Lin");
837 arbintCmd1->SetCandidates(
"Lin Log Exp Spline");
841 histnameCmd->SetGuidance(
"Sets histogram type (obsolete!)");
842 histnameCmd->SetParameterName(
"HistType",
false,
false);
843 histnameCmd->SetDefaultValue(
"biasx");
844 histnameCmd->SetCandidates(
"biasx biasy biasz biast biasp biase biaspt biaspp theta phi energy arb epn");
848 resethistCmd->SetGuidance(
"Re-Set the histogram (obsolete!)");
849 resethistCmd->SetParameterName(
"HistType",
false,
false);
850 resethistCmd->SetDefaultValue(
"energy");
851 resethistCmd->SetCandidates(
"biasx biasy biasz biast biasp biase biaspt biaspp theta phi energy arb epn");
854 histpointCmd->SetGuidance(
"Allows user to define a histogram (obsolete!)");
855 histpointCmd->SetGuidance(
"Enter: Ehi Weight");
856 histpointCmd->SetParameterName(
"Ehi",
"Weight",
"Junk",
false,
false);
857 histpointCmd->SetRange(
"Ehi >= 0. && Weight >= 0.");
860 arbintCmd->SetGuidance(
"Sets Arbitrary Interpolation type.(obsolete!) ");
861 arbintCmd->SetParameterName(
"int",
false,
false);
862 arbintCmd->SetDefaultValue(
"NULL");
863 arbintCmd->SetCandidates(
"Lin Log Exp Spline");
999 #define CHECKPG() { if (fParticleGun==NULL) { \
1000 G4ExceptionDescription msg; \
1001 msg << "Command "<< command->GetCommandPath()<<"/";\
1002 msg<<command->GetCommandName() << " used but no particle sources are set.";\
1003 msg <<" Add at least a source with: /gps/source/add.";\
1004 G4Exception("G4GeneralParticleSourceMessenger::SetNewValue","G4GPS003",\
1005 FatalException,msg); return;\
1013 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1014 <<
" The command is obsolete and will be removed soon." <<
G4endl
1015 <<
" Please try to use the new structured commands!" <<
G4endl;
1020 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1021 <<
" The command is obsolete and will be removed soon." <<
G4endl
1022 <<
" Please try to use the new structured commands!" <<
G4endl;
1027 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1028 <<
" The command is obsolete and will be removed soon." <<
G4endl
1029 <<
" Please try to use the new structured commands!" <<
G4endl;
1034 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1035 <<
" The command is obsolete and will be removed soon." <<
G4endl
1036 <<
" Please try to use the new structured commands!" <<
G4endl;
1041 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1042 <<
" The command is obsolete and will be removed soon." <<
G4endl
1043 <<
" Please try to use the new structured commands!" <<
G4endl;
1048 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1049 <<
" The command is obsolete and will be removed soon." <<
G4endl
1050 <<
" Please try to use the new structured commands!" <<
G4endl;
1055 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1056 <<
" The command is obsolete and will be removed soon." <<
G4endl
1057 <<
" Please try to use the new structured commands!" <<
G4endl;
1062 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1063 <<
" The command is obsolete and will be removed soon." <<
G4endl
1064 <<
" Please try to use the new structured commands!" <<
G4endl;
1069 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1070 <<
" The command is obsolete and will be removed soon." <<
G4endl
1071 <<
" Please try to use the new structured commands!" <<
G4endl;
1076 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1077 <<
" The command is obsolete and will be removed soon." <<
G4endl
1078 <<
" Please try to use the new structured commands!" <<
G4endl;
1083 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1084 <<
" The command is obsolete and will be removed soon." <<
G4endl
1085 <<
" Please try to use the new structured commands!" <<
G4endl;
1090 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1091 <<
" The command is obsolete and will be removed soon." <<
G4endl
1092 <<
" Please try to use the new structured commands!" <<
G4endl;
1097 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1098 <<
" The command is obsolete and will be removed soon." <<
G4endl
1099 <<
" Please try to use the new structured commands!" <<
G4endl;
1104 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1105 <<
" The command is obsolete and will be removed soon." <<
G4endl
1106 <<
" Please try to use the new structured commands!" <<
G4endl;
1111 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1112 <<
" The command is obsolete and will be removed soon." <<
G4endl
1113 <<
" Please try to use the new structured commands!" <<
G4endl;
1118 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1119 <<
" The command is obsolete and will be removed soon." <<
G4endl
1120 <<
" Please try to use the new structured commands!" <<
G4endl;
1125 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1126 <<
" The command is obsolete and will be removed soon." <<
G4endl
1127 <<
" Please try to use the new structured commands!" <<
G4endl;
1132 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1133 <<
" The command is obsolete and will be removed soon." <<
G4endl
1134 <<
" Please try to use the new structured commands!" <<
G4endl;
1141 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1142 <<
" The command is obsolete and will be removed soon." <<
G4endl
1143 <<
" Please try to use the new structured commands!" <<
G4endl;
1150 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1151 <<
" The command is obsolete and will be removed soon." <<
G4endl
1152 <<
" Please try to use the new structured commands!" <<
G4endl;
1157 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1158 <<
" The command is obsolete and will be removed soon." <<
G4endl
1159 <<
" Please try to use the new structured commands!" <<
G4endl;
1164 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1165 <<
" The command is obsolete and will be removed soon." <<
G4endl
1166 <<
" Please try to use the new structured commands!" <<
G4endl;
1171 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1172 <<
" The command is obsolete and will be removed soon." <<
G4endl
1173 <<
" Please try to use the new structured commands!" <<
G4endl;
1178 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1179 <<
" The command is obsolete and will be removed soon." <<
G4endl
1180 <<
" Please try to use the new structured commands!" <<
G4endl;
1185 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1186 <<
" The command is obsolete and will be removed soon." <<
G4endl
1187 <<
" Please try to use the new structured commands!" <<
G4endl;
1192 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1193 <<
" The command is obsolete and will be removed soon." <<
G4endl
1194 <<
" Please try to use the new structured commands!" <<
G4endl;
1199 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1200 <<
" The command is obsolete and will be removed soon." <<
G4endl
1201 <<
" Please try to use the new structured commands!" <<
G4endl;
1206 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1207 <<
" The command is obsolete and will be removed soon." <<
G4endl
1208 <<
" Please try to use the new structured commands!" <<
G4endl;
1213 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1214 <<
" The command is obsolete and will be removed soon." <<
G4endl
1215 <<
" Please try to use the new structured commands!" <<
G4endl;
1220 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1221 <<
" The command is obsolete and will be removed soon." <<
G4endl
1222 <<
" Please try to use the new structured commands!" <<
G4endl;
1227 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1228 <<
" The command is obsolete and will be removed soon." <<
G4endl
1229 <<
" Please try to use the new structured commands!" <<
G4endl;
1234 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1235 <<
" The command is obsolete and will be removed soon." <<
G4endl
1236 <<
" Please try to use the new structured commands!" <<
G4endl;
1241 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1242 <<
" The command is obsolete and will be removed soon." <<
G4endl
1243 <<
" Please try to use the new structured commands!" <<
G4endl;
1248 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1249 <<
" The command is obsolete and will be removed soon." <<
G4endl
1250 <<
" Please try to use the new structured commands!" <<
G4endl;
1255 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1256 <<
" The command is obsolete and will be removed soon." <<
G4endl
1257 <<
" Please try to use the new structured commands!" <<
G4endl;
1262 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1263 <<
" The command is obsolete and will be removed soon." <<
G4endl
1264 <<
" Please try to use the new structured commands!" <<
G4endl;
1269 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1270 <<
" The command is obsolete and will be removed soon." <<
G4endl
1271 <<
" Please try to use the new structured commands!" <<
G4endl;
1276 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1277 <<
" The command is obsolete and will be removed soon." <<
G4endl
1278 <<
" Please try to use the new structured commands!" <<
G4endl;
1283 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1284 <<
" The command is obsolete and will be removed soon." <<
G4endl
1285 <<
" Please try to use the new structured commands!" <<
G4endl;
1290 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1291 <<
" The command is obsolete and will be removed soon." <<
G4endl
1292 <<
" Please try to use the new structured commands!" <<
G4endl;
1297 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1298 <<
" The command is obsolete and will be removed soon." <<
G4endl
1299 <<
" Please try to use the new structured commands!" <<
G4endl;
1304 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1305 <<
" The command is obsolete and will be removed soon." <<
G4endl
1306 <<
" Please try to use the new structured commands!" <<
G4endl;
1311 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1312 <<
" The command is obsolete and will be removed soon." <<
G4endl
1313 <<
" Please try to use the new structured commands!" <<
G4endl;
1340 G4cout <<
" G4GeneralParticleSourceMessenger - Warning: The command is obsolete and will be removed soon. Please try to use the new structured commands!" <<
G4endl;
1345 if(newValues ==
"theta" || newValues ==
"phi") {
1347 }
else if (newValues ==
"energy" || newValues ==
"arb" || newValues ==
"epn") {
1352 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1353 <<
" The command is obsolete and will be removed soon." <<
G4endl
1354 <<
" Please try to use the new structured commands!" <<
G4endl;
1360 G4cout <<
" G4GeneralParticleSourceMessenger - Warning:" <<
G4endl
1361 <<
" The command is obsolete and will be removed soon." <<
G4endl
1362 <<
" Please try to use the new structured commands!" <<
G4endl;
1390 if (newValues ==
"ion") {
1401 else if( command==
polCmd )
1405 else if( command==
ionCmd )
1703 if(newValues ==
"theta" || newValues ==
"phi") {
1705 }
else if (newValues ==
"energy" || newValues ==
"arb" || newValues ==
"epn") {
1738 cv =
"Not implemented yet";
1786 G4cout <<
"Set /gps/particle to ion before using /gps/ion command";
1824 G4cout <<
"Set /gps/particle to ion before using /gps/ionLvl command";
void IonCommand(G4String newValues)
static G4GeneralParticleSourceMessenger * GetInstance(G4GeneralParticleSource *)
void SetBeamSigmaInE(G4double)
G4SPSAngDistribution * GetAngDist() const
G4UIcmdWithADoubleAndUnit * maxphiCmd
G4UIcmdWithADoubleAndUnit * possigmaxCmd1
G4SPSEneDistribution * GetEneDist() const
G4UIcmdWithABool * diffspecCmd1
G4UIdirectory * gpsDirectory
G4UIcmdWith3Vector * angrot2Cmd1
void SetParticleTime(G4double aTime)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
~G4GeneralParticleSourceMessenger()
G4UIcmdWith3VectorAndUnit * angfocusCmd
G4UIcmdWithAString * histnameCmd
G4UIcmdWithADoubleAndUnit * possigmayCmd
void AddaSource(G4double)
G4SPSPosDistribution * GetPosDist() const
G4UIcmdWithoutParameter * calculateCmd1
void DumpTable(const G4String &particle_name="ALL")
void SetPosDisType(G4String)
Important: This is a shared class between threads.
void SetParTheta(G4double)
G4UIcmdWithADoubleAndUnit * maxthetaCmd
std::ostringstream G4ExceptionDescription
void SetBeamSigmaInX(G4double)
G4UIcmdWith3Vector * angrot1Cmd1
G4UIcmdWithADouble * arbeintCmd1
void ArbEnergyHisto(G4ThreeVector)
G4UIcmdWithADoubleAndUnit * halfzCmd
G4UIcmdWithADouble * gradientCmd1
static G4int GetNewIntValue(const char *paramString)
G4UIcmdWithAString * confineCmd
void SetBeamSigmaInAngR(G4double)
G4UIcmdWithADoubleAndUnit * radius0Cmd1
G4UIcmdWith3VectorAndUnit * centreCmd
G4UIcmdWithADouble * interceptCmd1
Andrea Dotti Feb 2015 GPS messenger design requires some explanation for what distributions parameter...
G4int GetCurrentSourceIndex() const
G4UIcmdWithAString * particleCmd
G4UIcmdWithAString * histfileCmd1
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4UIcmdWithADoubleAndUnit * paralpCmd1
G4UIcmdWith3Vector * angrot2Cmd
void SetMultipleVertex(G4bool av)
G4UIcmdWith3Vector * histpointCmd1
G4UIcmdWithADoubleAndUnit * parphiCmd1
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetDefaultValue(const char *theDefaultValue)
void SetParAlpha(G4double)
G4UIcmdWithADouble * gradientCmd
G4UIcmdWithADoubleAndUnit * paralpCmd
G4UIcmdWithADoubleAndUnit * halfxCmd1
void SetBeamSigmaInAngY(G4double)
G4UIdirectory * sourceDirectory
G4UIcmdWithADoubleAndUnit * minthetaCmd
void SetMinTheta(G4double)
void SetEnergyBias(G4ThreeVector)
void SetNewValue(G4UIcommand *command, G4String newValues)
void SetUseUserAngAxis(G4bool)
void SetYBias(G4ThreeVector)
G4UIcmdWithAString * angtypeCmd1
G4UIcmdWithADoubleAndUnit * emaxCmd1
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithABool * useuserangaxisCmd1
G4UIcmdWithAnInteger * setsourceCmd
void SetCurrentSourceIntensity(G4double)
void SetPosThetaBias(G4ThreeVector)
G4UIcmdWithoutParameter * clearsourceCmd
G4UIcmdWithABool * energyspecCmd1
G4UIcmdWithADouble * setintensityCmd
static G4bool GetNewBoolValue(const char *paramString)
#define G4MUTEX_INITIALIZER
G4UIcmdWithABool * multiplevertexCmd
void SetVerbosity(G4int i)
void SetThetaBias(G4ThreeVector)
G4UIdirectory * positionDirectory
G4ParticleTable * particleTable
void SetZBias(G4ThreeVector)
void SetXBias(G4ThreeVector)
G4UIcmdWithAString * shapeCmd
G4UIcmdWithADouble * interceptCmd
G4UIdirectory * energyDirectory
G4UIcmdWithADoubleAndUnit * minphiCmd
G4UIcmdWithADouble * tempCmd
G4UIcmdWithAnInteger * numberCmd
G4UIcmdWithADoubleAndUnit * angsigmarCmd1
G4UIcmdWithADoubleAndUnit * possigmarCmd1
G4UIcmdWithABool * surfnormCmd1
void UserDefAngPhi(G4ThreeVector)
G4UIcmdWith3Vector * polCmd
G4UIcmdWithAString * arbintCmd1
void UserDefAngTheta(G4ThreeVector)
G4GLOB_DLL std::ostream G4cout
G4UIcmdWith3Vector * directionCmd
void SetCentreCoords(G4ThreeVector)
G4UIcmdWithABool * flatsamplingCmd
static G4ThreeVector GetNew3VectorValue(const char *paramString)
G4UIcmdWithADoubleAndUnit * angsigmayCmd1
G4UIcmdWith3Vector * angrot1Cmd
void SetEnergyDisType(G4String)
void SetBeamSigmaInR(G4double)
G4UIcmdWith3VectorAndUnit * positionCmd
G4UIcmdWithADoubleAndUnit * angsigmaxCmd1
G4UIcmdWithoutParameter * listsourceCmd
G4UIcmdWithADoubleAndUnit * angsigmaxCmd
G4UIcmdWithoutParameter * listCmd
G4UIcmdWithADoubleAndUnit * maxthetaCmd1
G4UIcmdWithABool * diffspecCmd
G4SPSRandomGenerator * GetBiasRndm() const
G4GeneralParticleSourceMessenger(G4GeneralParticleSource *)
G4UIcmdWith3Vector * posrot1Cmd1
G4UIcmdWithAString * shapeCmd1
static G4double GetNewDoubleValue(const char *paramString)
G4GeneralParticleSource * fGPS
G4UIcmdWithADoubleAndUnit * energyCmd
void DefineAngRefAxes(G4String, G4ThreeVector)
void SetParticlePolarization(G4ThreeVector aVal)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
void SetPosRot1(G4ThreeVector)
const G4String & GetCommandPath() const
G4UIdirectory * histDirectory
G4UIcmdWithAString * histnameCmd1
G4UIcmdWithAnInteger * verbosityCmd
G4UIcmdWithADoubleAndUnit * radiusCmd
G4UIcmdWithADoubleAndUnit * possigmayCmd1
G4double GetCurrentSourceIntensity() const
void IonLvlCommand(G4String newValues)
void SetPosDisShape(G4String)
G4UIcmdWithoutParameter * getsourceCmd
G4UIcmdWithADoubleAndUnit * parphiCmd
G4UIcmdWithADoubleAndUnit * monoenergyCmd
G4UIcmdWithADoubleAndUnit * halfyCmd1
static G4IonTable * GetIonTable()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void ArbInterpolate(G4String)
void EpnEnergyHisto(G4ThreeVector)
G4String GetCurrentValue(G4UIcommand *command)
G4double fIonExciteEnergy
const G4String & GetCommandName() const
G4UIcmdWithADoubleAndUnit * angsigmayCmd
void SetPhiBias(G4ThreeVector)
G4UIcmdWithABool * energyspecCmd
G4UIcmdWith3Vector * posrot1Cmd
G4UIcmdWithADoubleAndUnit * engsigmaCmd1
void InputEnergySpectra(G4bool)
G4UIcmdWith3VectorAndUnit * centreCmd1
G4UIcmdWithADouble * tempCmd1
G4UIcmdWithAString * arbintCmd
G4UIcmdWithAString * confineCmd1
void SetAngDistType(G4String)
G4UIcmdWithADoubleAndUnit * halfzCmd1
Andrea Dotti Feb 2015 GPS messenger design requires some explanation for what distributions parameter...
G4UIcmdWithADoubleAndUnit * partheCmd1
G4UIcmdWithABool * useuserangaxisCmd
static G4ParticleTable * GetParticleTable()
G4SingleParticleSource * fParticleGun
G4UIcmdWithAString * typeCmd
G4UIcmdWithADoubleAndUnit * maxphiCmd1
G4UIcmdWith3Vector * histpointCmd
G4UIcmdWithADoubleAndUnit * partheCmd
G4UIcmdWithADoubleAndUnit * eminCmd
void SetGradient(G4double)
void UserEnergyHisto(G4ThreeVector)
G4double StoD(G4String s)
void SetPosRot2(G4ThreeVector)
G4UIcmdWith3Vector * posrot2Cmd1
void SetInterCept(G4double)
G4UIcmdWith3Vector * posrot2Cmd
void InputDifferentialSpectra(G4bool)
void SetFocusPoint(G4ThreeVector)
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
G4UIcmdWithAString * typeCmd1
G4UIcmdWithADoubleAndUnit * radius0Cmd
G4UIcmdWithoutParameter * calculateCmd
G4UIcmdWithADoubleAndUnit * possigmaxCmd
G4UIcmdWithADoubleAndUnit * halfxCmd
G4UIcmdWithADouble * alphaCmd1
G4UIcmdWithABool * surfnormCmd
void SetBiasAlpha(G4double)
G4UIcmdWithADoubleAndUnit * minphiCmd1
void DeleteaSource(G4int)
G4UIcmdWithADoubleAndUnit * eminCmd1
G4UIcmdWithADouble * ezeroCmd1
G4UIcmdWithADoubleAndUnit * minthetaCmd1
G4UIcmdWithADoubleAndUnit * radiusCmd1
G4UIcmdWithADoubleAndUnit * halfyCmd
G4UIcmdWithADouble * addsourceCmd
void SetCurrentSourceto(G4int)
G4UIcmdWithADoubleAndUnit * emaxCmd
G4UIcmdWithAString * angtypeCmd
void ArbEnergyHistoFile(G4String)
void SetUserWRTSurface(G4bool)
void SetParticleCharge(G4double aCharge)
G4UIcmdWithADoubleAndUnit * engsigmaCmd
G4UIcmdWithAnInteger * deletesourceCmd
G4UIcmdWithAString * energytypeCmd
static const double eplus
void ConfineSourceToVolume(G4String)
void SetFlatSampling(G4bool av)
void SetMaxTheta(G4double)
G4UIcmdWithADoubleAndUnit * monoenergyCmd1
G4UIcmdWithAString * energytypeCmd1
G4UIcmdWithAString * resethistCmd1
void SetRadius0(G4double)
G4UIcmdWithADoubleAndUnit * angsigmarCmd
G4int GetNumberofSource()
G4UIcmdWithADouble * ezeroCmd
G4UIcmdWithADoubleAndUnit * possigmarCmd
G4UIcmdWithAString * resethistCmd
void SetBeamSigmaInY(G4double)
G4UIcmdWithADoubleAndUnit * timeCmd
void SetNumberOfParticles(G4int i)
void SetMonoEnergy(G4double)
G4UIdirectory * angularDirectory
void SetPosPhiBias(G4ThreeVector)
void SetBeamSigmaInAngX(G4double)
G4UIcmdWithADouble * alphaCmd