Created attachment 340 [details] G4PhotoNuclearProcess class with the old process name I am simulating a medical LINAC, and I am interested in the neutron photoproducion through the Giant Dipole Resonance. This process is handled by the Bertini cascade model through the classes G4BertiniElectroNuclearBuilder and G4PhotoNuclearProcess. To speed-up the simulation I want to bias the GDR cross section using the G4HadronicProcess built-in method BiasCrossSectionByFactor(). The problem is that since Geant4 10.0 this method checks if the name of the process to be biased is of the type “PhotonInelastic”, “ElectroNuclear” or “PositronNuclear”, while the name of the process hard-coded in G4PhotoNuclearProcess.hh is still “photonNuclear”, as it was in Geant4 9.4 and before. This inconsistency throws an exception and the program crashes.
Thanks for your report. This is now fixed and the corrected version will appear in release 10.2 in December.