[Gate-users] Read a .IAEAphsp file : bug report ?

Luc SIMON uhqd75 at gmail.com
Wed May 6 23:24:26 CEST 2015


Dear Gaters

A bug report and a small question

I use Gate 7.1 for Radiotherapy

 I try to read a .IAEAphsp to use it as a source (TrueBeam) and it doesn't
work. I found an old email on this topic on GATE users list from Stathis
but it didn't help me.

I finally fixed this problem and would like to share my solution (that is
maybe not a robust one but it works for me)

For a reason I don't understand, in GateIAEARecord.cc when Gate starts to
read particles :


*if( fread(&ctmp, sizeof(char),   1, p_file) != 1)*

the p_file pointer was not at the begining of the IAEAphsp file (but at
byte 37).

I added the following:
// set the pointer at the beginning of the file
*fseek(p_file,0,SEEK_SET);*

just before the fread line and now it works!

I don't know if it is a bug or a newbee error... but maybe it could help
someone

Now a small question:

My phase space doesn't contains Z coordinates. It is a planar phase space
and the z value is constant and stored in the .IAEAheader file:
$RECORD_CONSTANT:
     24.0       // Constant Z
     1.0000     // Constant Weight

My question is: Is this z value in the header read and used by gate (I
suppose no)

And if "yes" where should I attach this phase space ?

I mean if I create a box named PhS_Plane at Z = 0

and use:
/gate/source/MyBeam/attachTo PhS_Plane

what is the Z value : 0 or 24 ?
Thank you for any help.

Luc SIMON




-- 
___________________

SIMON Luc, Physicien Médical, PhD
Département d'Ingénierie et de Physique Médicale - IUCT-Oncopole -
Toulouse, FRANCE
INSERM UMR 1037 (CRCT) - Equipe 15 - Toulouse, FRANCE
-------------- section suivante --------------
Une pi�ce jointe HTML a �t� nettoy�e...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20150506/c72564ff/attachment.html>


More information about the Gate-users mailing list