Skip to content
Snippets Groups Projects
Commit 64d86290 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Endcaps defined with rmax as inscribed circle on outer edge

parent 58c29a77
No related branches found
No related tags found
1 merge request!187Endcaps defined with rmax as inscribed circle on outer edge
...@@ -32,7 +32,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s ...@@ -32,7 +32,7 @@ static Ref_t create_detector(Detector& description, xml_h e, SensitiveDetector s
int numsides = dim.numsides(); int numsides = dim.numsides();
xml::Component pos = x_det.position(); xml::Component pos = x_det.position();
double rmin = dim.rmin(); double rmin = dim.rmin();
double rmax = dim.rmax() * std::cos(M_PI / numsides); double rmax = dim.rmax();
double zmin = dim.zmin(); double zmin = dim.zmin();
Layering layering(x_det); Layering layering(x_det);
double totalThickness = layering.totalThickness(); double totalThickness = layering.totalThickness();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment