<div class="gmail_quote">Dear Marcin, <br>here are all files in a zip file! I removed the directory structure, so the files need only be in the same directory. CameraTest.mac is a copy of the benchmarkPET camera setup, with some slight modifications to get rid of geometry test errors. I for example changed <br>
<br><span style="color: rgb(51, 51, 255);">/gate/module/geometry/setYLength 8 cm</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">/gate/module/geometry/setZLength 10 cm</span><br><br>to<br>
<br><span style="color: rgb(51, 51, 255);">/gate/module/geometry/setYLength 7.999999 cm</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">/gate/module/geometry/setZLength 9.999999 cm</span><br>
<br><br>Regarding the warnings about the materials, I have some added posts in my "GateMaterials.db", such as<br><br><span style="color: rgb(51, 51, 255);">Spleen: d=1.06 g/cm3 ; n=9</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> +el: name=Hydrogen ; f=0.103</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> +el: name=Carbon ; f=0.113</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> +el: name=Nitrogen ; f=0.032</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> +el: name=Oxygen ; f=0.741</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> +el: name=Sodium ; f=0.001</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> +el: name=Phosphor ; f=0.003</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> +el: name=Sulfur ; f=0.002</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> +el: name=Chlorine ; f=0.002</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> +el: name=Potassium ; f=0.003</span><br><br>and more... These new materials are not added in my "Materials.xml" however (only the defaults, LSO, Air and Epoxy are defined here). I added the .db file in the zip-file as well, just in case. <br>
<br>Thanks!<br>Ida<br><br><div class="gmail_quote">Den 3 oktober 2009 18.34 skrev Marcin Balcerzyk <span dir="ltr"><<a href="mailto:m.balcerzyk@pluri.ucm.es" target="_blank">m.balcerzyk@pluri.ucm.es</a>></span>:<div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Dear Ida.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I tried to run your Main.mac on my Gate 5 for Windows, but there
is no CameraTest.mac in what you provided. Could you send it? Visu.mac is in
your example, I guess. ZIP the required files with directory structure, as you
use subdirectories in your MAC.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">My experience with Gate is that it gives very unexpected stupid
errors. For example in ver. 3.0.0 I could not specify longer filenames then 8
characters for root files. So if you cannot use visualization OGLSX, don’t
use it!. There is one which worked for me, when I did not have OpenGL system: VRML2FILE
– it creates WRL files whenever you visualize the thing. Use your viewer
of choice, in case you do not have, use <a href="http://webdav.nencki.gov.pl/mbalcerzyk/Albira/MYRIAD3DReader.exe" target="_blank">http://webdav.nencki.gov.pl/mbalcerzyk/Albira/MYRIAD3DReader.exe</a>
with 1 year free license. I have seen weird things in WRL files, like intermediate
shapes of Gate which should not exist. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I would put all files in the current directory of your simulation,
where you invoke Gate, as it seems for me, there is sparking between Gate and
GEANT4. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I got the following message from Gate 5, with CameraTest.mac
missing (which is weird enough already) from your Main.mac:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">PreInit> /control/execute Main.mac</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">***** Can not open a macro file <CameraTest.mac></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> GateMaterialDatabase: did not load properties table for
material 'Vacuum'.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> This is only a problem when OPTICAL PHOTONS are transported
in this materia</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">l.'</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">GateGeometryVoxelTabulatedTranslator::ReadFile : fileName:
testPhantom/range.dat</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">nTotCol: 1</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> imageValue: 1241208 material: , visible true, rgba(0.5,0,0,1)</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> GateMDBFile::ReadItem: I could not find the item '' in
section [Materials] of</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> the material database.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> GateMaterialDatabase: could not download the definition for
''</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">GateMaterialDatabase: failed to read the material '' in the
database file!</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">GateSourceVoxelImageReader::ReadFile : fileName:
testPhantom/smallVoxelPhantom.d</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">at</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">nx ny nz: 2002806303 0 2002807037</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">This application has requested the Runtime to terminate it in an
unusual way.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Please contact the application's support team for more
information.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">C:\Users\mbalcerzyk\Documents\... \BugExample></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Marcin Balcerzyk</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Ida Häggström
[mailto:<a href="mailto:ida.haggstrom@gmail.com" target="_blank">ida.haggstrom@gmail.com</a>] <br>
<b>Sent:</b> Friday, October 02, 2009 12:42 PM<br>
<b>To:</b> gate-users<br>
<b>Cc:</b> <a href="mailto:m.balcerzyk@pluri.ucm.es" target="_blank">m.balcerzyk@pluri.ucm.es</a>; <a href="mailto:gate.stute@gmail.com" target="_blank">gate.stute@gmail.com</a>;
<a href="mailto:rehfeld@imnc.in2p3.fr" target="_blank">rehfeld@imnc.in2p3.fr</a><br>
<b>Subject:</b> Possibly a bug in GATE geometry check?</span></p>
</div><div><div></div><div>
<p> </p>
<p>Dear all, <br>
<br>
I've recently posted some questions regarding segmentation violations, geometry
test errors and voxelized phantoms. I've experienced a lot of problems with
getting a proper run from GATE, and I've spent many hours (piuh!)
troubleshooting! =) Anyway, I discovered something that I'm not sure is a bug
in GATE or if it's my code that is erroneous...<br>
<br>
I run a geometry check as I initialize my run, to check that there are no
geometry overlaps etc since I believe this can cause segmentation violations
which aborts the entire run. <br>
<span style="color: rgb(51, 51, 255);">-------------<br>
/run/initialize<br>
/geometry/test/recursive_test</span><br>
-------------<br>
I usually keep the visualization disabled since this saves a lot of time for
longer runs:<br>
<span style="color: rgb(51, 51, 255);">-------------<br>
/vis/disable</span><br>
-------------<br>
I noticed that I get errors regarding my voxelized phantom (overshooting
daughter volume) which I don't think should be there (emphasis on THINK!). When
I turn the visualization ON however, the errors disappear and I only get
results like:<br>
----------<br>
<span style="color: rgb(51, 51, 255);">GeomTest: no daughter volume extending outside
mother detected.<br>
GeomTest: no overlapping daughters detected.</span><br>
---------<br>
from the geometry check. My visualization macro is very simple:<br>
----------<br>
<span style="color: rgb(51, 51, 255);"># Visualization.mac</span><br>
<span style="color: rgb(51, 51, 255);">/vis/open OGLSX<br>
/vis/viewer/reset<br>
/vis/drawView 45 45<br>
/vis/viewer/zoom 2<br>
/vis/viewer/set/style surface<br>
/vis/drawVolume<br>
/tracking/storeTrajectory 1<br>
/vis/scene/endOfEventAction accumulate<br>
/vis/viewer/update</span><br>
------------<br>
and I don't think the visualization should have anything to do with the
geometry setup at all?(!) Can this be a GATE bug? Note that the only thing I
change in my main macro is changing<span style="color: black;">
"/vis/disable" to</span><span style="color: rgb(51, 51, 255);"><br>
----------<br>
#/vis/disable<br>
/control/execute Visualization.mac</span><br>
----------<br>
and I get no errors. I've also tried to disable all visualization of the
phantom (in the range.dat file, setting visualization to "false") but
this has no affect on the run results (no matter if I have the main
visualization on or off).<br>
<br>
I have attached my main macro, GATE run output log, voxelized phantom macro
with related .dat files and a screenshot of my setup with camera and phantom.<br>
<br>
Please, if anyone has any idea what could cause these problems, please let me
know! I'm really running out of ideas... =) It's not a good option to always
have to run with visualization on for longer runs...<br>
Thanks!<br>
Ida</p>
</div></div></div>
</div>
</blockquote></div></div></div><br>
</div><br>