Re: source.f energy spectrum

From: Alberto Fasso' <fasso_at_SLAC.Stanford.EDU>
Date: Mon, 1 Aug 2011 07:19:29 -0700 (PDT)

On Fri, 29 Jul 2011, Patrick Dethlof wrote:

> Is there a way to score the spectrum generated by my source?

You can put a WRITE statement in the ENTRY SODRAW of the mgdraw user
That ENTRY is called every time a source particle is taken from stack.
Actually a WRITE statement is already present in the default version
that is present in your usermvax directory:
       & SNGL (WEIPRI)
It writes in binary form the current number of beam particles followed,
the Fluka stack pointer,the highest value of the stack pointer ever reached
in the run, the total kinetic energy of the primaries of the user written
source, and the total weight of the primaries handled.
You can replace it by a statement writing in ASCII format the energy and
the weight of each source particle: TKEFLK(NPFLKA), WTFLK(NPFLKA).
And you must activate the call with a command USERDUMP with WHAT(1)=100.
and WHAT(3)=1.

But it is much simpler to put a WRITE statement directly in the source

Received on Wed Aug 03 2011 - 09:35:08 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 03 2011 - 09:35:08 CEST