Message: how to loop runs in .mac file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None how to loop runs in .mac file 

Forum: Run Management
Date: 22 Oct, 2004
From: Ma yunzhi <Ma yunzhi>

hi geant4 fans,

I want to do many runs with different beam energies. The first method I resorted to is the '/control/loop' command.

   the syntax of 'loop' is as follows

            loop macrofile loopcounter initial final step

   and the help says that loopcounter can be used as an aliased variable.

   I suceeded in looping a macro but failed to use the aliased 

   As my understanding, the aliased loopcounter can be used in the 
   looped microfile as a variable.

   I do this like this in my microfile looped.mac-
    /gun/energy $loopcounter keV

    Then I looped looped.mac in the looping macrofile
    /control/loop looped.mac loopcouter 1 3 1

    But things did not go as I expected. Why?

    Thanks for helpful discussions.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: how to loop runs in .mac file   (Makoto Asai - 22 Oct, 2004)
(_ Question: Re: how to loop runs in .mac file   (Pierre - 14 Oct, 2014)
 Add Message Add Message
to: "how to loop runs in .mac file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]