_ROOT Version: 6.24/08
_Compiler: g++ 4.8.5
Dear ROOT experts,
i am building detector structures with GEANT4 and want to export these geometries to ROOT geometries. I am building straw like chambers which are very repetitive and i am using my own parameterisation to place these chambers within a holding volume, i.e. i have my own class build on G4VPVParameterisation.
I now export this geometry to a gdml file and want to read this gdml file again with ROOT. This is needed, because the analysis program i use is requiring ROOT and can not be linked against GEANT4. Therefore, the geometry has to be exported to ROOT.
GDMLGeometry.tar.gz (6.2 KB)
The gdml file is to large to be posted here so i wraped it in a tar archive.
You may visualize the geometry with the following code:
And if you want to have a look within the ROOT geometry, you may export to ROOT and use rootbrowse.
Unfortunately, the parameterised structures are not visible / present anymore, after the root import.
If you are courious, you may find a way to visualize the structure with geant4 in the next tar archive to be convinced, that there are indeed sub structures within the gdml geometry. Instructions on how to compile are in the README.md. It is super light weight and only requires a geant4 installation.
VisGDMLGeometry.tar.gz (8.5 KB)
My question is now, if there is a way to convert this GEANT4 structures to ROOT?
Or is there something i missed?
Thank you for your help!