Detector Geometry and Media

Detector geometry in FairRoot can be defined via:

  • ASCII files (Hades Geometry interface)
  • Root files (TGeoManager Object in ROOT file)
  • implimented directly in FairDetector::ConstructGeometry()

by default the geometry and media files are searched for in the $VMCWORKDIR/geometry directory, however one can define the variable GEOMPATH, which will force the framework to look for the geometry file specified in the macro first in this dir and then in the default geometry directory.

The filenames for the geometry definition and the media definition must have the suffix .geo and must contain a special keyword for every set:

  • media (for all materials needed in Geant for the standard geometry)
  • cave
  • Magnet
  • STS
  • ...