<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Taro!
<div><br>
</div>
<div>Look at the message it's giving you carefully, then look at your macro.</div>
<div><br>
</div>
<div>You gave an activity range data file for your phantom definition, which is wrong.</div>
<div><br>
</div>
<div>For a voxelized phantom, you need to give it an attenuation range data file. In the activity range file, there are no materials; that's why the message says it's looking for material " " in your material database.</div>
<div><br>
</div>
<div>Have a look at the Voxelized Phantom/Source example in the Gate folder. You need an activity range file and an attenuation range file.</div>
<div><br>
</div>
<div>Cheers!<br>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Marc</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>__________________________</div>
<div><br>
</div>
<div>Marc Chamberland, MSc</div>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)</div>
</span></div>
<br>
<div>
<div>Le 2012-09-09 à 10:14 PM, <<a href="mailto:dankemori@yahoo.co.jp">dankemori@yahoo.co.jp</a>></div>
<div> a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>
<div style="background-color: rgb(255, 255, 255); font-family: 'MS PGothic', sans-serif; font-size: 12pt; ">
<div style="font-family: 'MS PGothic', sans-serif; font-size: 12pt; ">Hello dear GATE users.</div>
<div style="font-family: 'MS PGothic', sans-serif; font-size: 12pt; "><br>
</div>
<div style="font-family: 'MS PGothic', sans-serif; font-size: 12pt; ">I'm trying to simulate a Voxelized Phantom(Brain Phantom) in a PET system now.</div>
<div style="font-family: 'MS PGothic', sans-serif; font-size: 12pt; ">I defined phantom and source according to Users Guide as follows</div>
<div style="font-family: 'MS PGothic', sans-serif; font-size: 12pt; "><br>
</div>
<div>
<div><font face="MS PGothic, sans-serif"># B R A I N P H A N T O M</font></div>
<div><font face="MS PGothic, sans-serif">/gate/world/daughters/name hoffman</font></div>
<div><font face="MS PGothic, sans-serif">/gate/world/daughters/insert parameterizedBoxMatrix</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/geometry/insertReader interfile</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/interfileReader/insertTranslator range</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/interfileReader/rangeTranslator/readTable activityRange.dat</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/interfileReader/rangeTranslator/describe 1</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/interfileReader/readFile hof3.h33</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/placement/setTranslation 0. 0. 0. mm</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/placement/setRotationAxis 1 0 0</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/placement/setRotationAngle 0 deg</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/attachVoxelPhantomSD</font></div>
<div><font face="MS PGothic,
sans-serif"><br>
</font></div>
<div><font face="MS PGothic, sans-serif">/gate/hoffman/addOutput doseOutput</font></div>
<div><font face="MS PGothic, sans-serif">/gate/output/doseOutput/saveUncertainty true</font></div>
<div><font face="MS PGothic, sans-serif">/gate/output/doseOutput/setFileName hoffman_paraDose.bin</font></div>
<div><font face="MS PGothic, sans-serif"><br>
</font></div>
<div><font face="MS PGothic, sans-serif">
<div>#<span class="Apple-tab-span" style="white-space:pre"> </span>B R A I N </div>
<div>/gate/source/addSource voxel voxel</div>
<div>/gate/source/voxel/reader/insert interfile </div>
<div>/gate/source/voxel/interfileReader/translator/insert range</div>
<div>/gate/source/voxel/interfileReader/rangeTranslator/readTable activityRange.dat</div>
<div>/gate/source/voxel/interfileReader/rangeTranslator/describe 1</div>
<div>/gate/source/voxel/interfileReader/readFile hof.h33</div>
<div>/gate/source/voxel/interfileReader/verbose 1</div>
<div>/gate/source/voxel/setType backtoback</div>
<div>/gate/source/voxel/setAccolinearityFlag true</div>
<div>/gate/source/voxel/setAccoValue 0.5 deg</div>
<div>/gate/source/voxel/gps/particle gamma</div>
<div>/gate/source/voxel/gps/energytype Mono</div>
<div>/gate/source/voxel/gps/monoenergy 0.511 MeV</div>
<div>/gate/source/voxel/gps/angtype iso</div>
<div>/gate/source/voxel/gps/mintheta 0. deg</div>
<div>/gate/source/voxel/gps/maxtheta 180. deg</div>
<div>/gate/source/voxel/gps/minphi 0. deg</div>
<div>/gate/source/voxel/gps/maxphi 360. deg</div>
<div>/gate/source/voxel/gps/confine NULL</div>
<div>/gate/source/voxel/setPosition -128. -128. 0. mm</div>
<div>/gate/source/voxel/dump 1</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>But I had the following warnings:</div>
<div><br>
</div>
<div>-----------------------------------------------------------------------------------------------</div>
<div><br>
</div>
<div>
<div>PreInit> /gate/world/daughters/insert parameterizedBoxMatrix</div>
<div>/gate/world/daughters/insert parameterizedBoxMatrix</div>
<div>GateVoxelBoxParameterizedInserter::ConstructGeometry - Warning ! ConstructGeometry called without a reader</div>
<div>world_L is registered to the default region.</div>
<div> Volume of the same name and copy number ("world_P", copy 0) still exists and is being used.</div>
<div> WARNING: This does not necessarily guarantee it's the same</div>
<div> volume you originally specified in /vis/scene/add/.</div>
<div>/vis/scene/notifyHandlers scene-0</div>
<div><br>
</div>
<div>PreInit> /gate/hoffman/geometry/insertReader interfile</div>
<div>/gate/hoffman/geometry/insertReader interfile</div>
<div><br>
</div>
<div>PreInit> /gate/hoffman/interfileReader/insertTranslator range</div>
<div>/gate/hoffman/interfileReader/insertTranslator range</div>
<div><br>
</div>
<div>PreInit> /gate/hoffman/interfileReader/rangeTranslator/readTable activityRange.dat</div>
<div>/gate/hoffman/interfileReader/rangeTranslator/readTable activityRange.dat</div>
<div>GateGeometryVoxelRangeTranslator::ReadFile : fileName: activityRange.dat</div>
<div> GateMDBFile::ReadItem: I could not find the item '' in section [Materials] of the material database. </div>
<div> GateMaterialDatabase: could not download the definition for ''</div>
<div>GateMaterialDatabase: failed to read the material '' in the database file!</div>
<div><br>
</div>
<div>PreInit> /gate/hoffman/interfileReader/rangeTranslator/describe 1</div>
<div>/gate/hoffman/interfileReader/rangeTranslator/describe 1</div>
<div> Range Translator</div>
<div><br>
</div>
<div>!!! GateMDBFile::LookForElementIndbStream: </div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>I could not find any section [Materials] in the material database file. </div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>You should check the database file.</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Computation aborted!!!</div>
<div><br>
</div>
<div><br>
</div>
<div>*** G4Exception: Aborting execution ***</div>
<div>Aborted</div>
<div><br>
</div>
<div>----------------------------------------------------------------------------------------------- <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Any kind of hints or solutions to my problem are appreciated.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you </div>
<div><br>
</div>
<div>*************************</div>
<div>Taro Kanamaru</div>
<div><br>
</div>
<div>Tohoku University Japan</div>
<div><br>
</div>
<div>email: <a href="mailto:dankemori@yahoo.co.jp">dankemori@yahoo.co.jp</a></div>
<div>************************* <br>
</div>
</div>
</font></div>
</div>
</div>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</blockquote>
</div>
<br>
</div>
</body>
</html>