From 0240b875d1d10854aeee17523b7310d533355496 Mon Sep 17 00:00:00 2001
From: Chengdong Fu <fucd@ihep.ac.cn>
Date: Fri, 22 Oct 2021 15:21:21 +0800
Subject: [PATCH] change Hcal_endcap_center_box_size

---
 .../DetCRD/compact/CRD_common_v01/Hcal_Rpc_Endcaps_v01_01.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Detector/DetCRD/compact/CRD_common_v01/Hcal_Rpc_Endcaps_v01_01.xml b/Detector/DetCRD/compact/CRD_common_v01/Hcal_Rpc_Endcaps_v01_01.xml
index 7d23b43c..8ac66d44 100644
--- a/Detector/DetCRD/compact/CRD_common_v01/Hcal_Rpc_Endcaps_v01_01.xml
+++ b/Detector/DetCRD/compact/CRD_common_v01/Hcal_Rpc_Endcaps_v01_01.xml
@@ -1,12 +1,12 @@
 <lccdd>
   <define>
     <constant name="Hcal_endcap_nlayers" value="Hcal_nlayers"/>
-    <constant name="Hcal_endcap_center_box_size" value="700*mm"/>
+    <constant name="Hcal_endcap_center_box_size" value="Hcal_endcap_inner_radius*2"/>
   </define>
   <detectors>
     <detector id="DetID_HCAL_ENDCAP" name="HcalEndcap" type="SHcalRpc01_Endcaps" readout="HcalEndcapsCollection"  vis="SeeThrough" calorimeterType="HAD_ENDCAP">
       <comment>Hadron Calorimeter Endcap</comment>
-      <envelope vis="HCALVis">    
+      <envelope>
 	<shape type="BooleanShape" operation="Subtraction" material="Air">
           <shape type="BooleanShape" operation="Subtraction" material="Air">
             <shape type="Tube" rmin="0.0" rmax="Hcal_endcap_outer_radius + env_safety" dz="Hcal_endcap_zmax + env_safety"/>
-- 
GitLab