[gate-users] Error when using voxelized phantoms

Jose L. Rubio jlrubio at die.upm.es
Mon Apr 11 21:56:08 CEST 2005


Hello,

I am trying to run a simulation based on one of the examples distributed 
with GATE, the one in the directory 
"examples/example_PHAMTOM_SOURCE/Voxelized_Phantom_Source", and I get 
the following error when the simulation starts:

    
********************************************************************************
    * G4Track Information:   Particle = gamma,   Track ID = 2,   Parent 
ID = 0
    
********************************************************************************

    Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng 
TrackLeng  NextVolu me ProcName
        0     59.1     4.83     39.1     0.511        0        0         
0    voxels   _P initStep
        1       60     5.43     39.1     0.511        0     1.05      
1.05    voxels   _P Transportation
   
     *** Break *** segmentation violation
    Aborted (core dumped)


The simulation is using both voxelized phantom and source, based on the 
example files "VoxelizedPhantom.mac" and "VoxelizedSource.mac", and it 
seems that the problem arises from the Voxelized Phantom, as when I 
substitute it for a cylinder the error disappears and the simulation 
runs withou any problem.

I attach the full macro that I am using, just in case it helps, but 
probably the mistake is in the lines related with the phantom:

    # Insert a replica-based voxel-matrix geometry
    /gate/world/daughters/insert replicaMatrix
    /gate/replicaMatrix/geometry/insertReader interfile
    /gate/replicaMatrix/interfileReader/insertTranslator range
    /gate/replicaMatrix/interfileReader/rangeTranslator/readTable 
range_vox.dat
    /gate/replicaMatrix/interfileReader/rangeTranslator/describe 1
    # Hoffman Brain Phantom - Interfile format
    /gate/replicaMatrix/interfileReader/readFile hof3.h33
    /gate/replicaMatrix/interfileReader/describe 1
    /gate/replicaMatrix/attachPhantomSD

If anybody knows what I am doing wrong, or has succesfully run a 
simulation with voxelized phantom, I would appreciate any help!

By the way, what is the difference between the object "replicaMatrix" 
and "matrix"? Can the later also be used for reading voxelized phantoms 
from Interfile files?

Thanks in advance!!

Regards,

    Jose L. Rubio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VoxelizedPhantomSource.mac
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20050411/7b3a0920/attachment.txt>


More information about the Gate-users mailing list