Message: Re: How to use and normalise an energy spectrum as input Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to use and normalise an energy spectrum as input 

Forum: Space Applications
Re: Question How to use and normalise an energy spectrum as input (Germßn Ros)
Date: 28 Jul, 2016
From: Svetlana Shasharina <Svetlana Shasharina>

Hi German,
I think if you used Spenvis, you should run Gras (with a gps file for the source).  It works in conjunction of other norm factors, which are specific for Gras.  I might be wrong...

iSveta

> On Jul 27, 2016, at 10:07 AM, Germán Ros <german.ros@uah.es> wrote:
> 
> 
> *** Discussion title: Space Applications
> 
> Hello!
> 
> I am trying to use an energy spectrum as an input and I have seen the
> example called "radioprotection" in the G4 advanced examples where this
> is done using the configuration file "primary.mac". Unfortunately I have
> several problems and things I do not really understand and I have not
> found the answer in Geant4 forum or elsewhere.
> 
> I would be very grateful if someone could help me.
> 
> I have the differential and integral spectrum of galactic cosmic rays
> obtained from SPENVIS. I have found an excel file that is used by
> several people in this forum to create the G4 configuration file given
> an energy spectrum, exactly what I need.
> 
> http://geant4.esa.int/tl_files/geant4/resources/CREME_M1_GCR_Flux_Spectra.xlt
> 
> Using it, I have created my configuration file that it is attached
> (GCRs_Carbon.mac). But I have several problems:
> 
> 1) Following the .xls file, in the .mac file I have defined two
> histograms, one with the differential spectrum and a second one with the
> probabilities and weights for each energy. However in primary.mac only
> the first histo is defined, so ┬┐is the second one really needed?
> 
> 2) Again, following the .xls file, I have calculated a normalization
> factor (at the end of GCRs_Carbon.mac). However, again in primary.mac a
> normalization factor is not used. I think it is needed since I have to
> simulate several nuclei and compare the different components, but ┬┐am I
> correct or this factor is not needed?
> 
> 3) Why in the .xls file the normalization factor has /cm2/s as units but
> when translated to G4 code is set as cm2?
> 
> 4) When trying to run geant4 with my GCRs_Carbon.mac the line
> /analysis/normalise 7.305E+08 give me a core dump with no other
> information. ┬┐Do you know what am I doing wrong?
> 
> 5) A more general question. When you use a spectrum as input, how are
> particles simulated in time? I mean, all of them are thrown at the same
> time, uniformly in a time interval that should be defined (how?) or
> something else?
> 
> Thank you very much in advanced
> 
> Best Regards,
> 
> Germán Ros
> 
>   Attachment:
>      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/07/27/09.02-52585-GCRs_Carbon.mac
> 
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/space_app/124.html 
> 

 Add Message Add Message
to: "Re: How to use and normalise an energy spectrum as input"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]