About the Geometry

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: 11.3.2
Operating System: Windows
Compiler/Version: visula studio 17
CMake Version: 3.16


Hello, I modified example B1 by changing the geometry to a cylinder and I removed the envelope. The rest remained unchanged. But when I run my RUN, the program crashes without any error message. Could someone tell me how to solve this type of problem, please?

Hi,

It’s much easier for someone to help with these kinds of issues if you can paste the last couple lines of the output before the crash or if you paste the results when you backtrace it in a debug mode. There are thousands of different things that could cause a program crash and this will help any readers narrow it down!

The envelope logical volume is used both in the DetectorConstruction and in the PrimaryGeneratorAction and so removing the envelope completely will require care and modifying code in multiple places.

You could also just set the envelope to G4_AIR same as the world volume and nestle your volumes inside it. Then everything should be happy.

Hello, thank you for your feedback. I don’t have any line of code immediately before the crash. The crash occurs when I launch run bean 1, for example. The application closes. I found solution. Thank you very much !

(post deleted by author)