[Gate-users] geant4 solids, interfile reader

Marc Chamberland MarcChamberland at cmail.carleton.ca
Wed Jun 18 13:41:11 CEST 2014


That's awesome! Thanks for those patches!

Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

On Jun 18, 2014, at 4:54, Patay Gergely <patay.gergely at mediso.hu<mailto:patay.gergely at mediso.hu>> wrote:

Dear Gaters,

here are a few patches against the upstream (ie. master branch) Gate source code. Since I am not a member of the collaboration, I cannot directly commit them into the git repository.

The first patch was written by Dávid Völgyes (formerly at Mediso and at COMPET). These are C++ bugfixes (unchecked ranges, memory corruptions).
[1] https://dl.dropboxusercontent.com/u/43097994/gate7/cppfix_dvolgyes.patch.gz

The second patch contains Gate wrappers to all the missing Geant4 solid objects from http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch04.html .
With this patch the following extra shapes will be available: cut tube, elliptical cone, generic trapezoid, hyperbolic tube, parallelepiped, paraboloid tube, tetrahedron, torus, twisted box, twisted trapezoid, generic twisted trapezoid and twisted tube segment.
[2] https://dl.dropboxusercontent.com/u/43097994/gate7/geant4-geometry.patch.gz

The third patch is a heavy modification of the Interfile reader. Besides some code cleaning and refactoring, it solves the following issues:
- if the key 'name of data file' is present in the header file then it won't guess the name
- the 'number of bytes per pixel' key (1,2,4,8...) is implemented
- the 'data offset in bytes' key is implemented
- the 'number format' key now accepts 'signed integer', 'unsigned integer', 'short float', 'long float' and (for convenience) 'float', as seen in the Interfile 3.3 standard.
The interfile reader thus accepts signed or unsigned 8, 16, 32 or 64 bit integer as well as 32 (float) or 64 bit (double) floating point data from little or big endian binary file.
[3] https://dl.dropboxusercontent.com/u/43097994/gate7/interfile.patch.gz

cheers,
Gergely

---
Gergely Patay
physicist
Mediso Medical Imaging Systems Ltd.
Hungary
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140618/31779901/attachment.html>


More information about the Gate-users mailing list