Re: Aborting the event stack

From: Paola Sala <>
Date: Fri, 7 Oct 2011 19:38:31 +0200 (CEST)

in principle it works. but might be dangerous. For how the code works,
particle are not tracked with continuity, they may be parked on the stack
while other particles are followed. One should know very well what is
doing. A safer way to "kill" particles could be through the usrmed
where the user can set to zero the weight of particles, thus in practice
discard them. A combination of mgdraw, for instance to set termination
flags, and usrmed to kill with checks could be a good way.

> The NOMORE argument in the source.f routine can be used to terminate a
> run. Is there something comparable that can terminate processing of the
> event stack, if a condition is met, and moving on to the next source
> particle? For example, would setting NPFLKA=0 somewhere in the mgdraw.f
> code be sufficient? Are there some subtle issues (excluding things such
> as normalizations)?
> Thank you,
> Joe Comfort

Paola Sala
INFN Milano
tel. Milano +39-0250317374
tel. CERN +41-227679148
Received on Fri Oct 07 2011 - 20:17:19 CEST

This archive was generated by hypermail 2.2.0 : Fri Oct 07 2011 - 20:17:19 CEST