[Gate-users] Problem with launching examples in vGATE (?????? ??????)

Nada Fakhoury nfachour at physics.auth.gr
Sat Nov 29 19:11:02 CET 2014


*sorry to resend this email, I made a few mistakes*

  Hello Leonid,

  this reminds me of my first struggle with running an example in GATE.
  So, first of all, I found that the contents of every example file is
  not "properly" set up to just run. What I mean is that you need to
  check that in your mac code every other .mac file gets called from
  where it is.

  For example, in the radiotherapy examples, I found that there are 3
  sub folders labeled output, mac and data.
  So when you open the main.mac, which is placed in the mac folder, it
  tries calling up for example the GateMaterials.db from the data
  folder. The problem is that the data folder isn't in the mac folder.

  So, if you catch my drift, the easiest thing to do in this case is to
  just move your main.mac in the general folder, ie the example folder,
  so it can properly call all other files from the folders.

  Hope this helps you out,
  Nada.

>> Message: 2
>> Date: Fri, 28 Nov 2014 23:31:27 +0300
>> From: ?????? ?????? <leonid78.lenya at mail.ru>
>> To: gate-users at lists.opengatecollaboration.org
>> Subject: [Gate-users] Problem with launching examples in vGATE
>> Message-ID: <1417206687.608969387 at f327.i.mail.ru>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Hello! I want to explain my situation. My OS is Windows7. I have  
>> installed?VirtualBox-4.3.6-91406. Then I have installed vGATE 1.0  
>> and vGATE 2.1. After that I have tried to launch examples in these  
>> versions of vGATE. All examples don't work. The most common  
>> mistakes: 1.?Can not open a macro file <Verbose.mac>; 2.?Could not  
>> find material database file 'GateMaterials.db'; 3. Can not open a  
>> macro file <Visu.mac>; 4. Can not open Materials.xml. Several times  
>> I have seen such mistake: Can not find material "Water" in  
>> GateMaterials.db (Although record with all necessary information  
>> about this material is written in GateMaterials.db). I launch  
>> examples in Terminal in the following manner:?
>> gate at vgate:~$ Gate  
>> /home/gate/Progs/Gate/gate_v6.2/examples/example_Radiotherapy/example1/mac/main.mac
>> (It is one of the examples, main.mac is name of general macros in  
>> this case).
>> Below I give a response to my attempt to launch main.mac in  
>> Terminal in vGATE 2.1 (It is example1 in the folder  
>> example_Radiotherapy):
>>
>> gate at vgate:~$ Gate  
>> /home/gate/Progs/Gate/gate_v6.2/examples/example_Radiotherapy/example1/mac/main.mac
>> [G4]
>> [G4] *************************************************************
>> [G4] Geant4 version Name: geant4-09-05-patch-01 (20-March-2012)
>> [G4] Copyright : Geant4 Collaboration
>> [G4] Reference : NIM A 506 (2003), 250-303
>> [G4] WWW : http://cern.ch/geant4
>> [G4] *************************************************************
>> [G4]
>> [Core-0] Initialization of geometry
>> [Core-0] Initialization of physics
>> [Core-0] Initialization of actors
>> [Core-0]
>> [Core-0]  
>> **********************************************************************
>> [Core-0] GATE version name: gate_v6.2
>> [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] Starting macro  
>> /home/gate/Progs/Gate/gate_v6.2/examples/example_Radiotherapy/example1/mac/main.mac
>> ***** Can not open a macro file <verbose.mac>
>> -------- EEEE ------- G4Exception-START -------- EEEE -------
>> *** G4Exception : GateMDBFile
>> issued by : GateMDBFile::GateMDBFile
>> Could not find material database file 'data/GateMaterials.db'
>> *** Fatal Exception *** core dump ***
>> -------- EEEE -------- G4Exception-END --------- EEEE -------
>>
>> *** G4Exception: Aborting execution ***
>> Aborted (core dumped) Also I decided to realise a code which is  
>> introduced in next file: HandsOnRTLM.pdf (I downloaded it from?  
>> http://www.opengatecollaboration.org/TrainingMaterials ?)
>> I started text editor with a command gedit in Terminal and wrote  
>> the code from the first part of abovementioned file (1 - RT Beam in  
>> a water phantom). I tried to launch it with no changes and with my  
>> some corrections but in both cases it doesn't work (I didn't forget  
>> to allow executing file as program and I wrote in the name an  
>> extension .mac).
>> Below I give a response to my attempt to launch My_attempt_1.mac in  
>> Terminal in vGATE 2.1 (It is my example, which is based on the  
>> file?HandsOnRTLM.pdf; I have created this example in the folder  
>> example_Radiotherapy):
>>
>> gate at vgate:~$ Gate  
>> /home/gate/Progs/Gate/gate_v6.2/examples/example_Radiotherapy/My_attempt_1.mac
>> [G4]
>> [G4] *************************************************************
>> [G4] Geant4 version Name: geant4-09-05-patch-01 (20-March-2012)
>> [G4] Copyright : Geant4 Collaboration
>> [G4] Reference : NIM A 506 (2003), 250-303
>> [G4] WWW : http://cern.ch/geant4
>> [G4] *************************************************************
>> [G4]
>> [Core-0] Initialization of geometry
>> [Core-0] Initialization of physics
>> [Core-0] Initialization of actors
>> [Core-0]
>> [Core-0]  
>> **********************************************************************
>> [Core-0] GATE version name: gate_v6.2
>> [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] Starting macro  
>> /home/gate/Progs/Gate/gate_v6.2/examples/example_Radiotherapy/My_attempt_1.mac
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--10-100-75-75-m-60-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--11-80-100-100-m-60-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--14-100-100-100-m-90-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--17-120-100-100-m-100-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--18-180-75-75-m-110-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--20-140-100-100-m-110-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--24-240-75-75-m-150-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso8859-1
>> G4OpenGLXViewer: XLoadQueryFont failed for font
>> -adobe-courier-bold-r-normal--34-240-100-100-m-200-iso8859-1
>> ERROR: "volume" not recognised. Looking for 'w' or 's' first character.
>> /tracking/storeTrajectory 1
>> Attributes available for modeling and filtering with
>> "/vis/modeling/trajectories/create/drawByAttribute" and
>> "/vis/filtering/trajectories/create/attributeFilter" commands:
>> G4Trajectory:
>> Charge (Ch): unit: e+ (G4double)
>> Track ID (ID): G4int
>> Initial kinetic energy (IKE): G4BestUnit (G4double)
>> Initial momentum magnitude (IMag): G4BestUnit (G4double)
>> Initial momentum (IMom): G4BestUnit (G4ThreeVector)
>> No. of points (NTP): G4int
>> PDG Encoding (PDG): G4int
>> Parent ID (PID): G4int
>> Particle Name (PN): G4String
>> G4TrajectoryPoint:
>> Position (Pos): G4BestUnit (G4ThreeVector)
>> WARNING: Trajectory storing has been requested. This action may be
>> reversed with "/tracking/storeTrajectory 0".
>> WARNING: The vis manager will keep up to 100 events.
>> This may use a lot of memory.
>> It may be changed with, e.g., "/vis/scene/endOfEventAction accumulate 10".
>> -------- 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 -------
>>
>> *** G4Exception: Aborting execution ***
>> Aborted (core dumped)
>>
>> Please advise me what I can to do to solve these problems. Thanks  
>> in advance. P.S. In attachment of this letter there are next  
>> archives: "example1", "My example" and file "HandsOnRTLM.pdf".
>>
>> --
>> Best regards, Leonid.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:  
>> <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141128/162451d3/attachment.html>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: My example.rar
>> Type: application/octet-stream
>> Size: 1926 bytes
>> Desc: not available
>> URL:  
>> <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141128/162451d3/attachment.obj>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: example1.rar
>> Type: application/octet-stream
>> Size: 993817 bytes
>> Desc: not available
>> URL:  
>> <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141128/162451d3/attachment-0001.obj>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: HandsOnRTLM.pdf
>> Type: application/pdf
>> Size: 625970 bytes
>> Desc: not available
>> URL:  
>> <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20141128/162451d3/attachment.pdf>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>> End of Gate-users Digest, Vol 102, Issue 31
>> *******************************************








More information about the Gate-users mailing list