[Gate-users] geant4 solids, interfile reader
Patay Gergely
patay.gergely at mediso.hu
Wed Jun 18 10:54:44 CEST 2014
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
More information about the Gate-users
mailing list