-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
G4GDML: VALIDATION ERROR! when parsing Gdml in Geant4 #32
Comments
The error does not make any sense because required elements are present at given lines. My only suspects are the square brackets I use in names, I am not sure if home-made parser in the GEANT is able to understand them. Could you check if it will work with a small reproducer with square bracket in names? Also maybe @Zelenyy has some insight on that? |
The first problem: head gdml tag must include |
The second problem: empty names are not allowed, this probably occurs only for positions and rotations. (#34) |
@lobis You shouldn't define in materials tag than materials which pre-defined in GEANT4 (such as G4_AIR) and should define only unknown materials. Or you must re-define pre-defined materials fully. |
#35 as well |
I deliberately redefined them in a file called Edit: Now that I read your comment again I see I probably have not defined the NIST materials fully, I will look into this, thanks! |
I have seen the following errors when trying to parse the geometry with Geant4. To parse the geometry I have just done:
Which should load the geometry from a gdml file. They error is
G4GDML: VALIDATION ERROR!
. I have included a few lines here:Looks like they format is not compatible with the Geant4 parser? We have encountered this in the past, when I build geometries I usually test it using the root event visualizer but after doing some simulation we find additional errors. In the case of this geometry, it is correctly read from root via
TGeoManager::Import("Setup.gdml");
. I have tried modifying a few things in the .gdml that I could think of but no luck.I attach a zip of the .gdml geometry (it is the one in the gdml-script test called babyiaxo) Setup.zip
The text was updated successfully, but these errors were encountered: