Neutron Detector

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!
_Geant4 Version:_geant4 v11.1.2
_Operating System:_Macos
_Compiler/Version:_BBedit
_CMake Version:_3.28.0

I simulated neutron particle and set neutron detector made of li6Material, the code actually runs fine but when I start particle event to be detected it quits unexpectedly, what should I do?

To help further, we’d need to see what the output to terminal looks like, and what you’d expect to see. If it’s erroring out or saying something like “segmentation fault”, then it’s probably best to compile the application in Debug mode and then run it through a debugger like lldb to see where/why the error occurs.

Terminal Saved Output.txt (8.8 KB)
this is what am getting!

I want the neutron source to be detected and later analyse in graphs

MyDetectorConstruction.cc (2.6 KB)
this is the construction!