Message: problem with GPS User defined Hist and customized spectrum Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question problem with GPS User defined Hist and customized spectrum 

Forum: Event and Track Management
Date: 27 Feb, 2018
From: Giuseppe Vitucci <Giuseppe Vitucci>

Hello, i am trying to simulate the spectrum of neutrons with energy between 1 and 200 meV. I had a look at the macros placed in /extended/eventgenerator/exgps/. I took into consideration two examples: test18.mac and test19.mac.

In the first case I use the macro you see in attachment (visQT_1.mac). The strange thing is that the resulting spectrum revealed by the detector in the simulation is only a delta to the last line of the file, that is 0.000000001694 MeV. If I cancel this one, it takes the previous one (0.000000001743 MeV) and so on. So at the end I get a monochromatic beam.

If i try with the method shown in test19.mac (visQT_2.mac), by contrast there is a strage error: it says

"*** G4Exception : Event0302
      issued by : G4SPSEneDistribution::GenArbPointEnergies
Error: IntType unknown type
*** Fatal Exception *** core dump ***"

You may notice that I used the value of the flux related to each energy in my macro. I also had another try by replacing the absolute values of the flux with the normalized ones (so that the integral with respect to the energy was equal to 1) but nothing changed.

I sincerely have no idea what's wrong with this. I hope you can help.



Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: problem with GPS User defined Hist and customized spectrum   (Giuseppe Vitucci - 07 Mar, 2018)
 Add Message Add Message
to: "problem with GPS User defined Hist and customized spectrum"

 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 ]