<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 04.09.2014 13:49,
<a class="moz-txt-link-abbreviated" href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a> wrote:<br>
</div>
<blockquote
cite="mid:mailman.123.1409824143.1509.gate-users@lists.opengatecollaboration.org"
type="cite">
<pre wrap="">Message: 4
Date: Thu, 4 Sep 2014 14:22:51 +0430
From: Ali User <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:gateuser2014@gmail.com"><gateuser2014@gmail.com></a>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>
Subject: [Gate-users] problem with assigning a shape to a new volume
Message-ID:
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:CAAiyeaSgWHUatD+rTPgyNZMegZjCg-rzY5-w=Qvyk+9J1q=MoA@mail.gmail.com"><CAAiyeaSgWHUatD+rTPgyNZMegZjCg-rzY5-w=Qvyk+9J1q=MoA@mail.gmail.com></a>
Content-Type: text/plain; charset="utf-8"
Hi every body,
After I enter following commands in vGate_2.1:
<b class="moz-txt-star"><span class="moz-txt-tag">*</span>Idle> gate/world/daughters/name XXX<span class="moz-txt-tag">*</span></b>
<b class="moz-txt-star"><span class="moz-txt-tag">*</span>Idle> gate/world/daughters/insert box<span class="moz-txt-tag">*</span></b>
I face this error:
*/home/gate/Progs/Gate/gate_v6.2/source/geometry/src/GateMaterialDatabase.cc
(l.132): GateMaterialDatabase: could not find the definition for material
'Vacuum' in material files*
And once I enter <b class="moz-txt-star"><span class="moz-txt-tag">*</span>Idle> /gate/geometry/setMaterialDatabase GateMaterials.db<span class="moz-txt-tag">*</span></b>
following message appears
*-------- EEEE ------- G4Exception-START -------- EEEE -------*
**** G4Exception : GateMDBFile*
* issued by : GateMDBFile::GateMDBFile*
*Could not find material database file 'GateMaterials.db'*
**** Fatal Exception *** core dump ****
*-------- EEEE -------- G4Exception-END --------- EEEE -------*
the result is the same when I type *Idle>
/gate/geometry/setMaterialDatabase data/GateMaterials.db*
what is the problem? and how can I solve this problem to define my volume?
Thank you</pre>
</blockquote>
Hello,<br>
<br>
Try copy the GateMaterials.db to the folder there are your project
macro files, and try something like:<br>
<br>
/vis/disable<br>
<br>
/gate/geometry/setMaterialDatabase GateMaterials.db<br>
<br>
/gate/world/geometry/setXLength 400. cm<br>
/gate/world/geometry/setYLength 400. cm<br>
/gate/world/geometry/setZLength 400. cm<br>
<br>
/gate/run/initialize<br>
<br>
</body>
</html>