Skip to content
Snippets Groups Projects

fix bug in the GDML trdHandler, where dimensions must be divided by 2

Merged Andrea Dell'Acqua requested to merge master-fix-gdml-converter into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -24,6 +24,6 @@ void trdHandler::ElementHandle()
double y2=getAttributeAsDouble("y2");
double z=getAttributeAsDouble("z");
GeoShape* trd=new GeoTrd(lunit*x1,lunit*x2,lunit*y1,lunit*y2,lunit*z);
GeoShape* trd=new GeoTrd(lunit*x1/2.,lunit*x2/2.,lunit*y1/2.,lunit*y2/2.,lunit*z/2.);
theController->saveSolid(name,trd);
}
Loading