Message: Re: does the /gps/hist/point have an implicit limit to the number of points allowed? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Agree Re: does the /gps/hist/point have an implicit limit to the number of points allowed? 

Forum: Particles
Re: None does the /gps/hist/point have an implicit limit to the number of points allowed? (Anthony Villano)
Date: 09 Jun, 2016
From: Michael H. Kelsey <Michael H. Kelsey>

On Wed, 08 Jun 2016 21:12:35 GMT, Anthony Villano wrote:
> I have been trying to use a GPS particle source with a user-defined
> energy spectrum for neutrons.
[...]
> If I remove all but 1024 elements, it works. In fact it seems 1024 is
> the maximum number of elements. Is this a known thing and that's just
> the maximum an energy distribution can have?

See section 2.7.2.5 of the App Guide, "Currently histograms are limited to 1024 bins." It would probably be nice if GPS used std::vector for the histogram instead of an array, but the code has no active maintainer to implement and validate such changes.

  -- Michael Kelsey

 Add Message Add Message
to: "Re: does the /gps/hist/point have an implicit limit to the number of points allowed?"

 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 ]