Dear All
I have a simple question. The source_newgen.f says that
" ! 3.4.4. Sampling from histogram
! ------
! Possible [unit]s: “TeV”, “GeV”, “MeV”, “keV” “eV”
! “TeV/c”, “GeV/c”, “MeV/c”, “keV/c”, “eV/c”
! “J”
! Histogram file has to have 3 columns:
! - Emin (of the bin)
! - Emax (of the bin)
! - dN/dE (bin height; NOTE: doesn’t need to be normalized)
! Sampling from different files treated separately, up to 100 files.
it seems one can sample from 100 different files. so, how to do that? Do i have to include multiple source_newgen.f and compile? Or I can do that in a single source_newgen.f file? Can someone give a sample code please?
thanks & regards
saurabh
Dear David
thanks for the quick reply. One question please. This " l_electron == true" , is this an argument that I can pass through FLAIR? Say, i loop my run over some parameter that I introduce through ‘define’ card.
regards
saurabh
no, the l_electron variable is just a dummy logical flag used in the example. You need to program your logic selecting particles, etc. in the source routine.
You may pass variables via the SOURCE card to the source routine, and use them with WHASOU(1) .. WHASOU(18).