RE: accessing weights in user routines

From: Santana, Mario <msantana_at_SLAC.Stanford.EDU>
Date: Thu, 28 Apr 2011 16:16:12 -0700

Olaf,

I don't quite understand your approach, since what you want is the weight,
why do you want to print the lam-bias card (which is constant)?
Anyway, I think that if you want to pull that value (LAM-BIAS WHAT2) from
withing a subroutine, you should include the common block (EMFSWT) and
call for the variable Emfbia

Check if Emfbia or 1/Emfbia coincides with What(2) of your LAM-BIAS card.

Mario
________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] On Behalf Of Olaf Hartmann [olaf.hartmann_at_lnf.infn.it]
Sent: Wednesday, April 27, 2011 1:22 AM
To: fluka-discuss_at_mi.infn.it
Cc: Santana, Mario
Subject: Re: accessing weights in user routines

Hi,

yes, that's right, Wtrack contains the particle's weight. To be more
precise:
Since in my case the weight is apparently the same for all particles
within one run, I would like to put this information into the header of
my outputfile, which is written from USRINI.F. So, what I would need
there, is the value of WHAT(2) of the LAM-BIAS card. It should be in
some common block, right? How is it called?

Cheers
Olaf.

On 04/21/2011 06:22 PM, Santana, Mario wrote:
> The variable Wtrack contains the weight of the particle. This variable
> is within the common TRACKR which in by default included (INCLUDE
> '(TRACKR)') at the beginning of the mgdraw routine.
>
>
>
> -----Original Message-----
> From: owner-fluka-discuss_at_mi.infn.it
> [mailto:owner-fluka-discuss_at_mi.infn.it] On Behalf Of Olaf Hartmann
> Sent: Wednesday, April 20, 2011 7:38 AM
> To: fluka-discuss_at_mi.infn.it
> Subject: accessing weights in user routines
>
> Dear all,
>
> I'm writing an external output file from FLUKA by using the mgdraw.f
> user routine. Now, I introduced a BIASING card into the FLUKA input. Is
> there an (easy) possibility to access this information inside mgdraw?
> I would like to write a weight factor automatically to my output file.
>
> Ciao,
> Olaf.
>
Received on Fri Apr 29 2011 - 09:09:31 CEST

This archive was generated by hypermail 2.2.0 : Fri Apr 29 2011 - 09:09:40 CEST