Question about simulating more gamma lines with different intensities

Geant4 version: 11.1.2

OS: Windows 10, WSL Ubuntu 22.04


Hello!

I am trying to make a cylindrical gamma source that has more lines with different intensities.

For that, I created a GPS.mac file but I don’t know how to add those lines and intensities, I don’t know the syntax for that and Chatgpt gives me wrong suggestions.

Here is my GPS.mac file:

/gps/verbose 0
/gps/particle gamma
/gps/pos/type Volume
/gps/pos/shape Cylinder
/gps/pos/radius 1.22 cm
/gps/pos/halfz 1.1 cm
/gps/pos/centre 0 0 -1.22 cm
/gps/ang/type iso
/gps/ene/type Mono
/gps/ene/mono 48.67 keV

Any suggestion will help me a lot.

Thank you!

Hi,

this comes without any warranty. I just found an old file of file where *I think* it does what you want it to do.

####################################
######  multiple sources     #######
####################################

### This is an example of how to define a GPS with multiple vertex
##  (more than one primary particle per event)

# source 0
/gps/source/intensity 1.
/gps/pos/centre 0. 0. 0. cm
/gps/ang/type iso
/gps/ene/mono 0.1 MeV
/gps/particle alpha

# source 1
/gps/source/add 1.
/gps/pos/centre 0. 0. 0. cm
/gps/ang/type iso
/gps/ene/mono 0.3 MeV
/gps/particle alpha

# source 2
/gps/source/add 1.
/gps/pos/centre 0. 0. 0. cm
/gps/ang/type iso
/gps/ene/mono 0.5 MeV
/gps/particle alpha

/gps/source/show

Feel free to adapt to your particular use case

/Pico