In one of the user routines (magfld.f) there is a variable IDISC
which, if set = 1, makes the particle to be discarded.
Otherwise, set the particle's weight to zero:
WTRACK = ZERZER
(you need to have an INCLUDE '(TRACKR)' at the beginning of
the routine)
Alberto
On Sat, 14 Feb 2009, Alex Himmel wrote:
> Hi,
>
> Is there any way to kill a particle (stop it from it continuing to
> propagate) from within a user routine?
>
> Thank you,
> -Alex Himmel
-- Alberto Fasso` SLAC-RP, MS 48, 2575 Sand Hill Road, Menlo Park CA 94025 Phone: (1 650) 926 4762 Fax: (1 650) 926 3569 fasso_at_slac.stanford.eduReceived on Sun Feb 15 2009 - 22:21:15 CET
This archive was generated by hypermail 2.2.0 : Sun Feb 15 2009 - 22:21:18 CET