Created attachment 598 [details] file containing plots, reference figure and code. Hi, I have tried to reproduce the spectrum from IC e- when shooting neutrons with 25 meV at a Gd slab, as found in https://doi.org/10.1007/s10967-014-3083-4. With Geant4 v10.3.2 it worked with G4USE_ONLY_PHOTONEVAPORATION=1, but with v10.4.0 and newer I am no longer able to reproduce the spectrum. I attached plots for the different versions, as well as the reference figure from the paper. I also included the source code I run. As can be see, only v10.3.2 can reproduce the measurement shown in the attached PNG file. Am I missing to enable/disable some more options since v10.4.0? Is this known? Or is this a bug in v10.4.0+? kind regards, Christoph
Looking through the code, it appears that the environment variable G4NEUTRONHP_USE_ONLY_PHOTONEVAPORATION must be set to 1 It looks like this is now the only way to invoke the photon evaporation code, so try setting this before you run your application. I cannot find any occurrence of G4USE_ONLY_PHOTONEVAPORATION in the latest Geant4 versions; it may have been removed in 10.4 but I can find no documentation for that.