[Gate-users] Running one macro after another

Maxime Toussaint Maxime.Toussaint at USherbrooke.ca
Fri Mar 13 13:31:27 CET 2020


Greetings,

This feature is available in Gate and it is explained in the documentation (see [1]). Be sure to read carefully the introduction of that section.

Do not hesitate to consult the documentation next time you wonder about a feature! If you encounter any problem or have a question, you can also look into the archive of the mailing list using the trick explained in [2] to see if it was already answered.

Bests,
Maxime Toussaint

[1] https://opengate.readthedocs.io/en/latest/defining_a_geometry.html#moving-a-volume
[2] http://www.opengatecollaboration.org/mailinglist


________________________________
De : Gate-users <gate-users-bounces at lists.opengatecollaboration.org> de la part de Moo, Joshua <joshua.moo at kcl.ac.uk>
Envoyé : 13 mars 2020 07:33
À : gate-users at lists.opengatecollaboration.org <gate-users at lists.opengatecollaboration.org>
Objet : [Gate-users] Running one macro after another

Hi all,

I would like to run a simulation where a source is moved across a detector at different positions. I would only like to have outputs when the source is at discrete positions (so any motion/velocity of the source does not need to be included in the simulation). My idea is to run the macro once, change the source position and re-run the same macro. However, this would be very time consuming if the step size of the detector is very small. I wanted to ask if there's any way to do this automatically? Perhaps running several macros after another which each one having a different source position. I've tried this by running a macro consisting of :

/control/execute position1.mac
/control/execute position2.mac
/control/execute position3.mac

but GATE gives me "GateSourceMgr::CheckSourceName : ERROR : source name <source1> already exists error. Perhaps I need to clear all source initialisations before running the next macro?

Regards,
Joshua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200313/fe194a4e/attachment.html>


More information about the Gate-users mailing list