|Message: Re: How to use and normalise an energy spectrum as input||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
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 <email@example.com> 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 >