[Gate-users] New way to describe a source with histogram...am I wrong

Luc SIMON uhqd75 at gmail.com
Mon Feb 14 17:05:33 CET 2022

Dear gaters, dear developpers
I want to model a source with a user spectrum type in a very simple macro
(attached). It works with the 'old style' commands but I try what I think
is the 'new style' and it doesn't work.
Is there anyone that tried that?
See macro attached and in particular this section hereafter.

Thank you

# S O U R C E
/gate/source/addSource myGps gps
/gate/source/myGps/gps/particle gamma

# Source mono energy (new school, works fine)
#/gate/source/myGps/gps/ene/type Mono
#/gate/source/myGps/gps/energy 1.0 MeV

# Old school
/gate/source/myGps/gps/energytype UserSpectrum
/gate/source/myGps/gps/setSpectrumFile data/mySpectrum.txt

# new school (doesn't work)
#/gate/source/myGps/gps/ene/type User
#/gate/source/myGps/gps/setSpectrumFile data/mySpectrum.txt


SIMON Luc, Physicien Médical, PhD, HDR
Département d'Ingénierie et de Physique Médicale - IUCT-Oncopole -
Toulouse, FRANCE
INSERM UMR 1037 (CRCT) - Equipe 15 - Toulouse, FRANCE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220214/c835827f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: macro.tar.gz
Type: application/x-gzip
Size: 4524 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20220214/c835827f/attachment.bin>

More information about the Gate-users mailing list