<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>
> Hi,<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>