From d276c7ed1970cacdf90c625c4af264aecca7aa1b Mon Sep 17 00:00:00 2001
From: Marshall Scott <mbscott@anl.gov>
Date: Tue, 25 May 2021 15:36:19 -0400
Subject: [PATCH] Checking layer thickness 2

---
 src/ffi_ZDC_HCAL.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ffi_ZDC_HCAL.cpp b/src/ffi_ZDC_HCAL.cpp
index b8051b7..2332a9d 100644
--- a/src/ffi_ZDC_HCAL.cpp
+++ b/src/ffi_ZDC_HCAL.cpp
@@ -36,6 +36,7 @@ static Ref_t createDetector(Detector& lcdd, xml_h e, SensitiveDetector sens) {
 	int layer_num = 1;
 	int slice_num = 1;
 	double totWidth = Layering(x_det).totalThickness();
+	totWidth += 2*13;
 	Box envelope (pixel_x/2.0, pixel_y/2.0, totWidth/2.0);
 	Volume envelopeVol(det_name+"_envelope", envelope, air); 
 	PlacedVolume pv;
-- 
GitLab