Skip to content

Possible now to change the default VecGeom length unit before loading from GDML.

Andrei Gheata requested to merge length_units_gdml into master

GeoManager statically holds now the value corresponding to 1 mm (0.1 by default, i.e. cm is the default unit). This can be changed using vecgeom::GeoManager::SetMillimeterUnit(1.) before invoking vgdml::Frontend::Load to change the internal unit to mm. This is important for all VecGeom clients dealing with units, to allow correct interpretation from the GDML format without extra run-time conversions. vgdml::Middleware prints the millimeter representation before loading any GDML file.

Note: the change does not affect conversions coming from ROOT and Geant4 transient models yet, but only those from GDML. This will be done in a separate PR.

Merge request reports