<div dir="ltr"><div><div><div>Dear Knap,<br><br></div>Can you send  to me your macro file so that I can debug it. I am also simulating a mini-gamma camera with position-sensitive photomultipliers. I had also faced the same error. I simply copied the GateMaterials.db file to my working directory and then it worked. Also  please send me your directory tree.<br>

<br></div>Cheers,<br><br></div>deba999<br><div><div><br><br><br> <br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 1:39 AM, Marc Chamberland <span dir="ltr"><<a href="mailto:MarcChamberland@cmail.carleton.ca" target="_blank">MarcChamberland@cmail.carleton.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi MichaÅ‚,<br>
<br>
Did you use the setMaterialDatabase and point it to your material database? The command can be found here: <a href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Materials#The_Gate_material_database" target="_blank">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Materials#The_Gate_material_database</a><br>


<br>
If you did, then I would check the line ending encoding in your file. Make sure it is Unix-style.<br>
<br>
As for Root, what are you trying to do? If you want to read a Root output file with a GUI, then see the user's guide: <a href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Data_output#The_Root_output" target="_blank">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Data_output#The_Root_output</a><br>


<br>
You open your file with:<br>
<br>
>root yourFile.root<br>
<br>
Then on the root command line, you type:<br>
root[1] TBrowser t<br>
<br>
<br>
Cheers,<br>
Marc<br>
<br>
<br>
<br>
__________________________<br>
<br>
Marc Chamberland, MSc<br>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)<br>
<br>
On May 19, 2014, at 15:51, Michal Knap <<a href="mailto:michal.knap@gmail.com">michal.knap@gmail.com</a>> wrote:<br>
<br>
> H​i,<br>
> I'm doing a minigammacamera â€‹with Gate. I have problem with "materials"? Why Gate dont see "vacuum"? I have everything in one direction (/home/mknap/Simulation).<br>
><br>
> mknap@mknap-HP:~$ cd Simulation<br>
> mknap@mknap-HP:~/Simulation$ ls<br>
> 2.1.3.1 Â  Â  Â  Â  Â gate.7.0-build Â  Â geant4.9.6.p03 Â  Â  Â  Â  Â Minigamma1pointonsourcecollimator Â your_file.bashrc~<br>
> 2.1.3.1-build Â  Â gate.7.0-install Â geant4.9.6.p03-build Â  Â root<br>
> 2.1.3.1-install Â gate_v7.0 Â  Â  Â  Â  geant4.9.6.p03-install Â your_file.bashrc<br>
> mknap@mknap-HP:~/Simulation$ source your_file.bashrc<br>
><br>
> my your_file.bashrc file :<br>
><br>
> source /home/mknap/Simulation/root/bin/thisroot.sh<br>
> export PATH=$PATH:/home/mknap/Simulation/<a href="http://2.1.3.1/CLHEP/bin" target="_blank">2.1.3.1/CLHEP/bin</a><br>
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mknap/Simulation/<a href="http://2.1.3.1/CLHEP/lib" target="_blank">2.1.3.1/CLHEP/lib</a><br>
> source /home/mknap/Simulation/geant4.9.6.p03-install/bin/geant4.sh<br>
> export PATH=$PATH:/home/mknap/Simulation/gate.7.0-install/bin<br>
><br>
><br>
> I can run Gate:<br>
> mknap@mknap-HP:~/Simulation$ Gate<br>
><br>
> *************************************************************<br>
> Â Geant4 version Name: geant4-09-06-patch-03 Â  Â (14-March-2014)<br>
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Copyright : Geant4 Collaboration<br>
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Reference : NIM A 506 (2003), 250-303<br>
> Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  WWW : <a href="http://cern.ch/geant4" target="_blank">http://cern.ch/geant4</a><br>
> *************************************************************<br>
><br>
> Visualization Manager instantiating with verbosity "warnings (3)"...<br>
> Visualization Manager initialising...<br>
> Registering graphics systems...<br>
><br>
> You have successfully registered the following graphics systems.<br>
> Current available graphics systems are:<br>
> Â  ASCIITree (ATree)<br>
> Â  DAWNFILE (DAWNFILE)<br>
> Â  G4HepRep (HepRepXML)<br>
> Â  G4HepRepFile (HepRepFile)<br>
> Â  OpenGLImmediateX (OGLI, OGLIX)<br>
> Â  OpenGLStoredX (OGL, OGLS, OGLSX)<br>
> Â  RayTracer (RayTracer)<br>
> Â  VRML1FILE (VRML1FILE)<br>
> Â  VRML2FILE (VRML2FILE)<br>
> Â  gMocrenFile (gMocrenFile)<br>
><br>
> Registering model factories...<br>
><br>
> You have successfully registered the following model factories.<br>
> Registered model factories:<br>
> Â  generic<br>
> Â  drawByCharge<br>
> Â  drawByParticleID<br>
> Â  drawByOriginVolume<br>
> Â  drawByAttribute<br>
><br>
> Registered filter factories:<br>
> Â  chargeFilter<br>
> Â  particleFilter<br>
> Â  originVolumeFilter<br>
> Â  attributeFilter<br>
><br>
> You have successfully registered the following user vis actions.<br>
> Run Duration User Vis Actions: none<br>
> End of Event User Vis Actions: none<br>
> End of Run User Vis Actions: none<br>
><br>
> Some /vis commands (optionally) take a string to specify colour.<br>
> Available colours:<br>
> Â  black, blue, brown, cyan, gray, green, grey, magenta, red, white, yellow<br>
><br>
> [Core-0] Initialization of geometry<br>
> [Core-0] Initialization of physics<br>
> [Physic-0] WARNING: manual physic lists are being deprecated.<br>
> Please, use physic list builder mechanism instead. Related documentation can be found at:<br>
> <a href="http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Setting_up_the_physics" target="_blank">http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Setting_up_the_physics</a><br>
> [Core-0] Initialization of actors<br>
> [Core-0]<br>
> [Core-0] **********************************************************************<br>
> [Core-0] Â GATE version name: gate_v7.0<br>
> [Core-0] Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Copyright : OpenGATE Collaboration<br>
> [Core-0] Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Reference : Phys. Med. Biol. 49 (2004) 4543-4561<br>
> [Core-0] Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Reference : Phys. Med. Biol. 56 (2011) 881-901<br>
> [Core-0] Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  WWW : <a href="http://www.opengatecollaboration.org" target="_blank">http://www.opengatecollaboration.org</a><br>
> [Core-0] **********************************************************************<br>
> [Core-0]<br>
> [Core-0] You are using Geant4 version 9.6.3<br>
> Idle><br>
><br>
> and when i try to run script i get this message :<br>
><br>
><br>
> /gate/world/daughters/name SPECThead<br>
> /gate/world/daughters/insert box<br>
> GateMaterialDatabase.cc (l.131): GateMaterialDatabase: could not find the definition for material 'Vacuum' in material files<br>
> mknap@mknap-HP:~/Simulation$<br>
><br>
><br>
> â€‹What i have wrong? Why Gate doesn't see "Vacuum"?<br>
><br>
> And another problem with root. I have root 5.34.18.<br>
> I/m trying to run root and i cant get gui.<br>
><br>
> â€‹mknap@mknap-HP:~/Simulation$ root<br>
> Â  *******************************************<br>
> Â  * Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  *<br>
> Â  * Â  Â  Â  Â W E L C O M E Â to Â R O O T Â  Â  Â  *<br>
> Â  * Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  *<br>
> Â  * Â  Version Â  5.34/18 Â  Â  14 March 2014 Â  *<br>
> Â  * Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  *<br>
> Â  * Â You are welcome to visit our Web site Â *<br>
> Â  * Â  Â  Â  Â  Â <a href="http://root.cern.ch" target="_blank">http://root.cern.ch</a> Â  Â  Â  Â  Â  Â *<br>
> Â  * Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  *<br>
> Â  *******************************************<br>
><br>
> ROOT 5.34/18 (v5-34-18@v5-34-18, Mar 14 2014, 16:29:50 on linux)<br>
><br>
> CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010<br>
> Type ? for help. Commands must be C++ statements.<br>
> Enclose multiple statements between { }.<br>
> root [0]<br>
><br>
> How i can get gui in root?<br>
><br>
> Thank all in advance<br>
><br>
> Regards<br>
> MichaÅ‚ Knap<br>
> _______________________________________________<br>
> Gate-users mailing list<br>
> <a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
> <a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></blockquote></div><br><br clear="all"><br>-- <br><i><b>Dr Debendranath Sahoo</b></i><br>

Honorary Professor<br>Physics Department<br>Sri Sathya Sai Institute of Higher Learning<br>Prashanthi Nilayam<br>Puttaparthy<br>A.P. 515 134<br>e-mail: <a href="mailto:deba999@gmail.com" target="_blank">deba999@gmail.com</a><br>

Mobile: <b>094945-43026</b><br><br>
</div>