Skip to content
Snippets Groups Projects
Commit fe7db153 authored by Marshall Scott's avatar Marshall Scott
Browse files

Changed Box z dimension to dim/2.0

parent dbf838e3
Branches
Tags
No related merge requests found
Pipeline #8515 failed
...@@ -36,7 +36,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) { ...@@ -36,7 +36,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
int layer_num = 1; int layer_num = 1;
int slice_num = 1; int slice_num = 1;
double totWidth = Layering(x_det).totalThickness(); double totWidth = Layering(x_det).totalThickness();
Box envelope (pixel_x/2.0, pixel_y/2.0,totWidth); Box envelope (pixel_x/2.0, pixel_y/2.0,totWidth/2.0);
Volume envelopeVol(det_name+"_envelope",envelope,air); Volume envelopeVol(det_name+"_envelope",envelope,air);
PlacedVolume pv; PlacedVolume pv;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment