/gps/source/

Commands

add
list
clear
show
set
delete
intensity
multiplevertex
flatsampling

add [addsource]

Add a new source definition to the particle gun
with the specified intensity

Range : addsource > 0.

Available at all Geant4 states.

Parameters
addsource type d

list

List the defined particle sources

Available at all Geant4 states.

clear

Remove all the defined particle sources

Available at all Geant4 states.

show

Show the current source index and intensity

Available at all Geant4 states.

set [setsource]

Set the indexed source as the current one
so one can change its source definition

Range : setsource >= 0

Available at all Geant4 states.

Parameters
setsource type i

delete [deletesource]

Delete the indexed source from the list

Range : deletesource > 0

Available at all Geant4 states.

Parameters
deletesource type i

intensity [setintensity]

Reset the current source to the specified intensity

Range : setintensity > 0.

Available at all Geant4 states.

Parameters
setintensity type d

multiplevertex [multiplevertex]

True for simultaneous generation multiple vertex
Default is false

Available at all Geant4 states.

Parameters
multiplevertex type b Omittable : default value = 0

flatsampling [flatsampling]

True for applying flat (biased) sampling among the sources
Default is false

Available at all Geant4 states.

Parameters
flatsampling type b Omittable : default value = 0