Skip to content

rest-for-physics/detector-geometry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detector Geometry

This repository serves as a database of all serialized geometry files used in IAXO simulations (written in gdml format).

It also hosts software required to produce these files and some tools to validate or visualize them.

All gdml files are stored in the gdml directory and are all self-contained meaning they do not reference any other files and can be used directly in ROOT or Geant4.

Visualization

In order to visualize a gdml file with root one can do the following (for a file named Setup.gdml):

TGeoManager::Import("Setup.gdml");
gGeoManager->SetVisLevel(10);
gGeoManager->GetTopVolume()->Draw("ogl");

The SetVisLevel command is required to view some geometries that have nested assemblies, such as the veto system (veto < veto layer < veto group < veto system). ROOT's default value is too low.

Additionally, the macro file ViewGdml.C from the root directory can be used to visualize the gdml. To use this macro to visualize some file named Setup.gdml one could do the following from a shell that has access to the root command (not from the root prompt itself!):

root 'ViewGdml.C("Setup.gdml")'

Generation

The generator section of this repository is used to produce the gdml files. The files present in the repository should already be updated to the latest version of the generator, but you can still tweak the generator code to produce variations in the geometry more easily than to modify the GDML.

Running the generator from the command line is really easy, just go to the generator directory and type:

./gradlew run

You may need to give the script permission to run via chmod +x gradlew.

Showcase

image

Since the geometry is divided into groups, we can use the tree view to easily navigate the geometry.

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published