Skip to content

Commit

Permalink
TrackerEndcapSupport_o1_v02: fix for thickness of layer volume, is Co…
Browse files Browse the repository at this point in the history
…neSeg, takes half thickness
  • Loading branch information
andresailer committed Aug 19, 2022
1 parent ead5d7c commit 2131bb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions detector/other/TrackerEndcapSupport_o1_v02.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Silicon Tracker Endcap Support Structure
//
// With respect to v01 this fixes an issue that reflected volumes had double thickness
// With respect to v01 this fixes
// * an issue that reflected volumes had double thickness
// * an issue that the whole layer volume was twice as thick as it needed to be

#include "OtherDetectorHelpers.h"

Expand Down Expand Up @@ -79,7 +81,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h e, SensitiveDetector)
// Stopping after the original if reflection is disabled
if (side > 0 && !reflect) break;

Tube l_tub(rmin, rmax, layerWidth, 2 * M_PI);
Tube l_tub(rmin, rmax, layerWidth / 2.0, 2 * M_PI);
Volume l_vol(l_nam, l_tub, air);
l_vol.setVisAttributes(theDetector, x_layer.visStr());

Expand Down

0 comments on commit 2131bb7

Please sign in to comment.