Errors importing GDML tessellated solid with ROOT

Hello.

I am trying to import a geometry generated with the G4GDMLParser Write() command in GEANT4.

Following some examples, I came up with the following ROOT code:

{
TGeoManager::Import(“Padme.gdml”);
TFile *_file0 = TFile::Open(“Padme.root”,“RECREATE”);
gGeoManager->Write();
_file0->Close();
}

I tried to run the program on a SLC6 node with the precompiled ROOT versions 6.06.08 and 5.34.36 from the /cvmfs/sft.cern.ch/lcg/app/releases/ROOT repository but in both cases I got a long list of errors related to Unsupported GDML Tags and then root crashed:

[leonardi@atlaswn180 test]$ ./G4GeometryToRoot.csh
Info in : Reading geometry from file: Padme.gdml
Info in : Geometry GDMLImport, Geometry imported from GDML created
Error: Unsupported GDML Tag Used :matrix. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :matrix. Please Check Geometry/Schema.
Error in : Isotope with the same name: N14 already in table. Not adding.
Error in : Isotope with the same name: N15 already in table. Not adding.
Error in : Isotope with the same name: O16 already in table. Not adding.
Error in : Isotope with the same name: O17 already in table. Not adding.
Error in : Isotope with the same name: O18 already in table. Not adding.
Error: Unsupported GDML Tag Used :tessellated. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :quadrangular. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :quadrangular. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :quadrangular. Please Check Geometry/Schema.
...
Error: Unsupported GDML Tag Used :quadrangular. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :quadrangular. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :quadrangular. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :triangular. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :triangular. Please Check Geometry/Schema.
Fatal in : Incomplete solid VCExt00x1447f00, missing shape components
aborting
#0  0x00000033772ac7be in waitpid () from /lib64/libc.so.6
#1  0x000000337723e5c9 in do_system () from /lib64/libc.so.6
#2  0x00007f9a0c92a0ff in TUnixSystem::StackTrace() () from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc48-opt/root/lib/libCore.so
#3  0x00007f9a0c842f91 in DefaultErrorHandler(int, bool, char const*, char const*) () from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc48-opt/root/lib/libCore.so
#4  0x00007f9a0c842a0a in ErrorHandler () from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc48-opt/root/lib/libCore.so
#5  0x00007f9a0c8694b4 in TObject::Fatal(char const*, char const*, ...) const () from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc48-opt/root/lib/libCore.so
#6  0x00007f9a01cfd9d7 in TGDMLParse::BooSolid(TXMLEngine*, void*, void*, int) () from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc48-opt/root/lib/libGdml.so
#7  0x00007f9a01d028aa in TGDMLParse::ParseGDML(TXMLEngine*, void*) () from /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc48-opt/root/lib/libGdml.so
etc.etc.

How can I check what is wrong with my GDML file and how can I fix it?

Thank you

Emanuele Leonardi

Hi Emanuele,

Looks like you are trying to read a GDML file containing a tessellated shape, that ROOT geometry does not currently support.

Best, Andrei

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.