[Gate-users] Gate problem and root problem

Marc Chamberland MarcChamberland at cmail.carleton.ca
Mon May 19 22:09:27 CEST 2014


Hi Michał,

Did you use the setMaterialDatabase and point it to your material database? The command can be found here: http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Materials#The_Gate_material_database

If you did, then I would check the line ending encoding in your file. Make sure it is Unix-style.

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: http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.0:Data_output#The_Root_output

You open your file with:

>root yourFile.root

Then on the root command line, you type:
root[1] TBrowser t


Cheers,
Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

On May 19, 2014, at 15:51, Michal Knap <michal.knap at gmail.com> wrote:

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



More information about the Gate-users mailing list