The LCDD geometry needs to be dumped to plain GDML to be loaded by ROOT.
You can use Assuming that there is a file called test.gdml in the current directory, a script similar to the following to will load a plain GDML file into ROOT.
No Format |
---|
void gdmlTest() { char* testfile="./test.gdml"; gSystem->Load("libGeom"); gSystem->Load("libGdml"); TGeoManager::Import(testfile); TGeoManager::Import("test.gdml"); gGeoManager->GetTopVolume()->Draw("ogl"); } |
This command should display the ROOT OpenGL viewer with the geometry from the test.gdml file.