I saw from the book for application that geant4 can define energy spetrum using built-in function or user defined one. But how to can make it ? There is any example for defining energy spectrum? For example, I want a energy spectrum in the form as exponential function plus gauss function.
Hope you find this useful to define energy spectrum of input particles:
Hello. thanks for your advice.I will refer to the example: examples/extended/eventgenerator/exgps.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.