Error: Unsupported GDML Tag Used :loop. Please Check Geometry/Schema

REST version : v2.3.15
REST commit : c4db1698
Root version : 6.26/10

Hi everyone,

I am trying to create a geometry using loops in gdml.

You can find here a simple example of what I’m trying to do:
box.gdml (2.4 KB)

In a new restRoot -m 1 session, I run REST_Geant4_ViewGeometry("box.gdml") and here is the output:

Filename : box.gdml
TRestGDMLParser: Initializing variables
TRestGDMLParser: Replacing expressions in GDML
TRestGDMLParser: Replacing entity: materials, file: https://rest-for-physics.github.io/materials/materials.xml
TRestGDMLParser: Creating temporary file at: "/uni-mainz.de/homes/cgirardc/.rest/gdml/PID655383_box.gdml"
Info in <TGeoManager::Import>: Reading geometry from file: /uni-mainz.de/homes/cgirardc/.rest/gdml/PID655383_box.gdml
Info in <TGeoManager::TGeoManager>: Geometry GDMLImport, Geometry imported from GDML created
Error: Unsupported GDML Tag Used :loop. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :loop. Please Check Geometry/Schema.
Info in <TGeoManager::SetTopVolume>: Top volume is World. Master volume is World
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::CheckGeometry>: Fixing runtime shapes...
Info in <TGeoManager::CheckGeometry>: ...Nothing to fix
Info in <TGeoManager::CloseGeometry>: Counting nodes...
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CloseGeometry>: Building cache...
Info in <TGeoManager::CountLevels>: max level = 1, max placements = 1
Info in <TGeoManager::CloseGeometry>: 2 nodes/ 3 volume UID's in Geometry imported from GDML
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
(int) 0

and the vessels do not appear in the visualization.

Loops are definitely supported by GDML (see documentation section 3.5.1 Loops).

Am I missing something?

Thank you for your help

There is an error message.

Error: Unsupported GDML Tag Used :loop. Please Check Geometry/Schema.
Error: Unsupported GDML Tag Used :loop. Please Check Geometry/Schema.

It might be that the TGeoManager from ROOT does not support loops, or that schema file does not correpond with the documentation version.

Perhaps @lobis gets a better idea.

I believe the best is to ask directly at https://root-forum.cern.ch/ attaching the file produced by TRestGdmlParser /uni-mainz.de/homes/cgirardc/.rest/gdml/PID655383_box.gdml.

I remember myself having problems using loops on GDML. Check for example how we generated rings inside the PandaX-III geometry.

restG4/examples/05.PandaXIII/geometry

Thanks.
I asked the question here.

1 Like

Hello @girardcarillo,

I answered the question in the root forum post, but basically the answer says loops are not working due to the root parser unfortunatelly.

1 Like

Thanks for the support!