Created attachment 691 [details] An example of stepped-shape beta-energy spectrum with its macro-file. The Beta-ray spectrum shows a stepped shape when the distribution was scored with fine binning and enough number of events. This is caused by the resolution of calculated energy distribution in G4BetaMinusDecay::SetUpBetaSpectrumSampler(). (e.g. fixed by G4int npti=100 ). The attached slide shows the beta energy spectrum using examples/extended/raioactivedecay/rdecay01 with the C14.mac. Because the required resolution will depend on each application, the number (npti) in G4BetaMinusDecay::SetUpBetaSpectrumSampler() need to be modified by users via UI-command or public method.
Sampling of binned spectral shape now done assuming sloped lines instead of flat. Stair-step structure removed.