Skip to content
Snippets Groups Projects
Commit 538f9cec authored by Sylvester Joosten's avatar Sylvester Joosten Committed by Wouter Deconinck
Browse files

fix overlaps in disk support plugin

parent 4cfbd061
No related branches found
No related tags found
1 merge request!5Draft: Resolve "Reparametrize, cleanup, implement inner central detector"
...@@ -49,8 +49,9 @@ namespace { ...@@ -49,8 +49,9 @@ namespace {
const double thickness = getAttrOrDefault(x_child, _U(thickness), x_support.thickness()); const double thickness = getAttrOrDefault(x_child, _U(thickness), x_support.thickness());
const double rmin = getAttrOrDefault(x_child, _U(rmin), x_support.rmin()); const double rmin = getAttrOrDefault(x_child, _U(rmin), x_support.rmin());
const double rmax = getAttrOrDefault(x_child, _U(rmax), x_support.rmax()); const double rmax = getAttrOrDefault(x_child, _U(rmax), x_support.rmax());
pos3D = pos3D + Position(0, 0, offset); pos3D = pos3D + Position(0, 0, -x_support.thickness()/2 + thickness / 2 + offset);
solid = Tube(rmin, rmax, thickness / 2); solid = Tube(rmin, rmax, thickness / 2);
std::cout << pos3D << std::endl;
} else if (type == "Cone") { } else if (type == "Cone") {
const double thickness = getAttrOrDefault(x_child, _U(thickness), x_support.thickness()); const double thickness = getAttrOrDefault(x_child, _U(thickness), x_support.thickness());
const double length = getAttrOrDefault(x_child, _U(length), x_support.length()); const double length = getAttrOrDefault(x_child, _U(length), x_support.length());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment