I was building my detector based on the example B1, and I changed the length unit of cm to nm. When I run the the code, it says as follows. Can you tell me how to figure this out? Thanks a lot.
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : GeomSolids0002
issued by : G4GenericPolycone::Create()
Illegal input parameters - head
R/Z cross section is zero or near zero: -1.28e-10
*** Fatal Error In Argument *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE -------
*** G4Exception: Aborting execution ***
Please fill out the following information to help in answering your question, and also see tips for posting code snippets
_Operating System:_red hat-64bit
G4GenericPolycone is a body that is constructed by rotating a polygon around Z-axis. The error message says that the area of the polygon is too small,
1.28e-10 mm^2 (negative sign can be ignored)
Thank you for your reply, Sir. So, what should I do if I want to build a detector in a size of nm?
What shape you defined with G4GenericPolycone?
Actually, I am not sure which shape is defined with G4GenericPolycone. I think that I just changed some shape and the length unit of example B1. But as I checked the B1detectorconstruction, it does not show any G4GenericPolycone inside.
As far as I knows the example B1 uses G4Box, G4Cons and G4Trd.
Anyway, it’s looks a bit strange to construct a detector in nanometer scale. 1 nm is a size of 10 hydrogen atoms lined up, 1000 nm is a size of a cell.
I understand. Thank you for your help.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.