From 3570e610c7a60419f8be9d59dee3e36a7165e24c Mon Sep 17 00:00:00 2001
From: Chengdong Fu <fucd@ihep.ac.cn>
Date: Thu, 3 Dec 2020 10:27:40 +0800
Subject: [PATCH] change constan field to overlay field

---
 Detector/DetCEPCv4/compact/CepC_v4-onlyTracker.xml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/Detector/DetCEPCv4/compact/CepC_v4-onlyTracker.xml b/Detector/DetCEPCv4/compact/CepC_v4-onlyTracker.xml
index 586e4a1f..7610072d 100644
--- a/Detector/DetCEPCv4/compact/CepC_v4-onlyTracker.xml
+++ b/Detector/DetCEPCv4/compact/CepC_v4-onlyTracker.xml
@@ -75,12 +75,13 @@
   <include ref="Field_AntiDID_Map_s.xml"/>
   <include ref="Field_FwdMagnets_Ideal_1000GeV.xml"/-->
 
-
   <fields>
-
-    <field name="MagnetFields_Constant" type="ConstantField" field="magnetic">
-      <strength x="0" y="0" z="3.0*tesla"/>
+    <field name="GlobalSolenoid" type="solenoid"
+           inner_field="Field_nominal_value"
+           outer_field="outerField_nominal_value"
+           zmax="TPC_Ecal_Hcal_barrel_halfZ + Coil_extra_size"
+           outer_radius="Hcal_outer_radius + Coil_thickness/2">
     </field>
-
   </fields>
+
 </lccdd>
-- 
GitLab