[Castor-users] castor-GATEMacToGeom/GATERootToCastor questions

niccolo camarlinghi niccolo.camarlinghi at gmail.com
Thu Jun 15 11:15:48 CEST 2017


Dear Thibaut,

that indeed solved the problem.
I'll let you know if find some other problems.


best regards and thank you

Niccolò

Il 14 giu 2017 20:30, "tmerlin" <Thibaut.Merlin at univ-brest.fr> ha scritto:

Hi Niccolo,

Thank you for your helpful remarks. The GATE utilities indeed require some
corrections and will be patched soon (current month). For the moment,
please try the code in the zip file enclosed to this mail which should
address point 1) and 2).

For 3), there is no current plan to support aliases. I will look if it is
possible to implement it in the next patch though.

4) seems looks like a path issue indeed. We'll have a look at it for the
next patch. For the moment, absolute patch should work fine.

Best regards,

Thibaut




On 14/06/2017 16:21, CASToR wrote:

Dear Castor users and developers,

I'm trying to reconstruct the data coming from a scanner I simulated with
gate (MyScanner.mac).
When I use the  castor-GATEMacToGeom the conversion goes fine but I think
there is something strange in the converted .geom file (Myscanner.geom):

1) The  .geom file generated by the utility contains the following lines

layers size depth                : 12

layers size transaxial          : 1.6

layers size axial                 : 1.6

I think that they should be like this:

crystals size depth                : 12

crystals size trans               : 1.6

crystals size axial                 : 1.6


2) In the .mac file I provided you, the original rsector offset is 61.4 mm
from the center of the FOV.

/gate/rsector/placement/setTranslation 61.4 mm

In the .geom file the scanner radius is reported as

scanner radius : 61.4
However, If I understood correctly, the scanner radius should be
61.4- crystals size depth/2.0.


3) I noticed that the utility doesn't support the /control/alias statement
of GATE is there any plan to implement it?


4) Minor thing:

When I run the  GATERootToCastor utily

./castor-GATERootToCastor -i ~/prova_nick/PointSource_X0_Y0_Z0.root -m
~/MyScanner/MyScanner/example_castor.mac -o ./test-output -s MyScanner

I got this error

0 : /home/nick/MyScanner/MyScanner/example_castor.mac

1 : /home/nick/MyScanner/MyScanner//home/nick/MyScanner/MyScanner/MyScanner/
MyScanner_geometry_castor.mac

2 : /home/nick/MyScanner/MyScanner//home/nick/MyScanner/MyScanner/MyScanner/
NEMACubePhantom.mac

3 : /home/nick/MyScanner/MyScanner//home/nick/MyScanner/MyScanner/MyScanner/
NEMACubeSource.mac

4 : /home/nick/MyScanner/MyScanner//home/nick/MyScanner/MyScanner/MyScanner/
MyScanner_digitizer.mac

5 : /home/nick/MyScanner/MyScanner//home/nick/MyScanner/MyScanner/MyScanner/
MyScanner_physics_castor.mac

***** GetGATESystemType() -> Error : Couldn't open mac file
/home/nick/MyScanner/MyScanner//home/nick/MyScanner/MyScanner/MyScanner/MyScanner_geometry_castor.mac
!

***** castor-GATERootToCastor :: GATE system type not found :

                           This script only supports conversion for
cylindricalPET and ecat systems

                           The system type is recovered from the lines
'/gate/systems/...'

***** Exit function called. Abort with code 1.

I think that this is due to the path of the file
~/MyScanner/MyScanner/example_castor.mac
begin process in a wrong way.


Thank you for your support and best regards


Niccolo' Camarlinghi


_______________________________________________
Castor-users mailing
listCastor-users at lists.castor-project.orghttp://lists.castor-project.org/listinfo/castor-users


-- 
Thibaut MERLIN -- PhD

Docteur en Imagerie Médicale au Laboratoire de Traitement de
l'Information Medicale (LaTIM - INSERM UMR 1101)
Bâtiment 1
CHRU Morvan - 2, Av. Foch
29609 Brest CEDEX - FRANCE
Tel: 06.75.12.24.90


_______________________________________________
Castor-users mailing list
Castor-users at lists.castor-project.org
http://lists.castor-project.org/listinfo/castor-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.castor-project.org/pipermail/castor-users/attachments/20170615/87fcd9e0/attachment.html>


More information about the Castor-users mailing list