[Gate-users] problem when creating a wedge

Javier Ors Anía Javier.Ors at ific.uv.es
Wed Sep 22 16:39:20 CEST 2010


Your problem is that wedge geometry commands are placed directly
under /gate/<wedge name>/, not under /gate/<wedge name>/geometry/. Just
change your lines to:

/gate/scanner/daughters/name wedge0
/gate/scanner/daughters/insert wedge
/gate/wedge0/setXLength 10 mm
/gate/wedge0/setNarrowerXLength 8.921 mm
/gate/wedge0/setYLength 2.1620 mm
/gate/wedge0/setZLength 2.1620 mm
/gate/wedge0/setMaterial Air
/gate/wedge0/vis/setColor yellow

In order to solve this kind of problems by yourself you should run
interactively you macro, you may invoke Gate without parameters and then
run /control/execute <your-macro-name>. After the error you can navigate
the whole command tree with 'cd' and 'ls' commands, so you can check
which commands are there, you can also use 'help' keyword to get a brief
description of the command and the arguments it accepts.

El mié, 22-09-2010 a las 11:50 +0100, zine ddine elghribi escribió:
> Hello Gaters,
> 
> When I want to create a Wadge, I have this problem for both version of gate
> (Gate_v6.0.0) and (gate_v6.0.0_p01)
> 
> G4] / tracking / storeTrajectory 1
> [G4-cerr] ***** COMMAND NOT FOUND </ gate/wedge0/geometry/setXLength
> 10 mm> *****
> [Gate] Sorry, error in a macro command: abort.
> 
> -----------------------------------------------------
> /gate/scanner/daughters/name wedge0
> /gate/scanner/daughters/insert wedge
> /gate/wedge0/geometry/setXLength 10 mm
> /gate/wedge0/geometry/setNarrowerXLength 8.921 mm
> /gate/wedge0/geometry/setYLength 2.1620 mm
> /gate/wedge0/geometry/setZLength 2.1620 mm
> /gate/wedge0/setMaterial Air
> /gate/wedge0/vis/setColor yellow
> -------------------------------------------------------
> 




More information about the Gate-users mailing list