[Gate-users] parameterized macros SOLVED?
Esteban Venialgo
venialgo at cae.cnea.gov.ar
Mon Apr 12 20:47:53 CEST 2010
Dear Gaters.
I tried with Gate6.0_p01 and it didn't work either, but works on Gate3.1.2.
So, I decided to re-compile gate3.1.2 and Gate6.0_p01 in debug mode by
adding this flags in the GNUmakefile and the .gmk file: -O0 -g3 and -g -O2.
I compared Gate3.1.2 and Gate6.0_p01 with kgdb, and I realized that the
function ExecuteCommandQueue(); wasn't being called in Gate6.0p01 main
function to execute the aliases that were pushed before in the
commandQueue by the function DecodeArguments();
Finally I added the call to the function ExecuteCommandQueue(); in the
line 292 of the Gate.cc file.
And now, It seems to be working after re-compiling.
could someone check if the call to the function ExecuteCommandQueue() is
in the right place. ?
P.D.: I've attached the modified file Gate.cc
Bye, Esteban
Esteban Venialgo wrote:
> Hi all,
>
> I'm having a problem when I try to run gate using a macro file with
> some aliases.
>
> I have defined this two aliases in my file SimulacionLuzDetallada.mac:
> /gate/source/cesio1/gps/centre {Xsource} {Ysource} -27 mm
>
> and When I run gate6.0.0 by typing this:
> $ Gate SimulacionLuzDetallada.mac -a Xsource 5 -a Ysource 5
>
> This is the error message:
> [G4-cerr] Alias <Xsource> not found -- command ignored
> [G4-cerr] ***** Illegal parameter (0) </gate/source/cesio1/gps/centre
> {Xsource} {Ysource} -27 mm> *****
>
>
> P.S.1: Running in batch mode doesn't work either (Gate -a Xsource 5
> -a Ysource 5 < SimulacionLuzDetallada.mac).
>
> P.S.2: I'm using gate6.0.0/geant4.9.2p02/CLHEP2.0.4.2/Debian5.0
>
> Thanks in advance. Esteban Venialgo.
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gate.cc
Type: text/x-c++src
Size: 12308 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20100412/a0ca3528/attachment.cc>
More information about the Gate-users
mailing list