From 6dbdba166699c29cfac858e71ee467ab19b313f9 Mon Sep 17 00:00:00 2001
From: Marshall Scott <mbscott@anl.gov>
Date: Thu, 22 Apr 2021 17:47:54 -0400
Subject: [PATCH] Cleaned up .xml file

---
 compact/ffi_ZDC_HCAL.xml | 102 +++------------------------------------
 1 file changed, 8 insertions(+), 94 deletions(-)

diff --git a/compact/ffi_ZDC_HCAL.xml b/compact/ffi_ZDC_HCAL.xml
index fe30314..3fe5746 100644
--- a/compact/ffi_ZDC_HCAL.xml
+++ b/compact/ffi_ZDC_HCAL.xml
@@ -8,37 +8,16 @@
         url="https://eicweb.phy.anl.gov/EIC/detectors/reference_detector.git"
         status="development"
         version="v1 2021-04-20">
-      <comment>Zero Degree Calorimeter detector</comment>
+       <comment>Zero Degree Calorimeter detector</comment>
        <comment>Copied from https://eicweb.phy.anl.gov/EIC/NPDet/-/blob/master/src/detectors/calorimeters/compact/ZDC_example.xml</comment>   
-    </info>
+  </info>
 
     <!-- Use DD4hep elements and materials definitions -->
-    <includes>
-    </includes>
+  <includes>
+  </includes>
 
-    <!-- Define the dimensions of the world volume -->
-    <define>
-    <!--  
-        <constant name="world_side" value="50*m"/>
-        <constant name="world_x" value="world_side"/>
-        <constant name="world_y" value="world_side"/>
-        <constant name="world_z" value="world_side"/>
-    
-        <constant name="CrossingAngle" value="0.020*rad"/>
-        <constant name="tracker_region_zmax" value="5*m"/>
-        <constant name="tracker_region_rmax" value="5*m"/>
-
-        <constant name="offset_ZDC"    value="5.0*mm"/>
-        <constant name="st_length"     value="20.0*mm"/>
-        <constant name="lt_length"     value="40.0*mm"/>
-        <constant name="st_ZDC_x_pos"  value="0.60*m"/>
-        <constant name="st_ZDC_y_pos"  value="0.0*m"/>
-        <constant name="st_ZDC_z_pos"  value="34.0*m"/>
-        <constant name="lt_ZDC_x_pos"  value="0.60*m"/>
-        <constant name="lt_ZDC_y_pos"  value="offset_ZDC + (st_length+lt_length)/sqrt(2)"/>
-        <constant name="lt_ZDC_z_pos"  value="34.0*m"/>
-    -->
-    </define>
+  <define>
+  </define>
 
   <limits>
   </limits>
@@ -46,76 +25,11 @@
   <regions>
   </regions>
 
-    <!-- Common Generic visualization attributes -->
-    <comment>Common Generic visualization attributes</comment>
-    <display>
-      <!--
-      <vis name="InvisibleNoDaughters"      showDaughters="false" visible="false"/>
-      <vis name="InvisibleWithDaughters"    showDaughters="true" visible="false"/>
-      <vis name="GreenVis"       alpha="0.5"  r= "0.0" g="1.0" b="0.0" showDaughters="true" visible="true"/>
-      <vis name="RedVis"         alpha="0.5"  r= "1.0" g="0.0" b="0.0" showDaughters="true" visible="true"/>
-      <vis name="BlueVis"        alpha="0.5"  r= "0.0" g="0.0" b="1.0" showDaughters="true" visible="true"/>
-      <vis name="OrangeVis"      alpha="0.5"  r= "1.0" g="0.45" b="0.0" showDaughters="true" visible="true"/>
-      <vis name="RedGreenVis"    alpha="0.5"  r= "1.0" g="1.0" b="0.0" showDaughters="true" visible="true"/>
-      <vis name="BlueGreenVis"   alpha="0.5"  r= "0.0" g="1.0" b="1.0" showDaughters="true" visible="true"/>
-      <vis name="PurpleVis"      alpha="0.5"  r= "1.0" g="0.0" b="1.0" showDaughters="true" visible="true"/>
-      <vis name="DoubleRedG"     alpha="0.5"  r= "2.0" g=".10" b="0.0" showDaughters="true" visible="true"/>
-      <vis name="RBG015"         alpha="0.5"  r= "0.0" g=".2"  b="1.0" showDaughters="true" visible="true"/>
-      <vis name="RBG510"         alpha="0.5"  r= "1.0" g=".2"  b="0.0" showDaughters="true" visible="true"/>
-      <vis name="RBG"            alpha="0.5"  r= "1.0" g="1.0" b="1.0" showDaughters="true" visible="true"/>
-      <vis name="GrayVis"        alpha="0.5"  r= "0.75" g="0.75" b="0.75" showDaughters="true" visible="true"/>
-    -->
-    </display>
+  <display>
+  </display>
 
   <!-- Define detector -->
   <detectors>
-    <!--
-    <detector id="ffi_ZDC_HCAL_ID" name="smallZDC" type="ZDC" readout="ZDCHits" vis="RedVis">
-      <position x="ffi_ZDC_HCAL_st_x_pos" y="ffi_ZDC_HCAL_st_y_pos" z="ffi_ZDC_HCAL_st_z_pos"/>
-      <dimensions x = "ffi_ZDC_HCAL_st_length" y = "ffi_ZDC_HCAL_st_length"/>
-      <layer repeat="2">
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-        <slice name="Scint_slice"    material="PlasticScint"   thickness="3*mm" vis = "BlueVis" sensitive = "true"/>
-      </layer>
-      <layer repeat="1">
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-        <slice name="SciFi_belt"     material="PlasticScint"   thickness="1*mm" vis = "RedVis"  sensitive = "true"/>
-        <slice name="SciFi_belt"     material="PlasticScint"   thickness="1*mm" vis = "RedVis"  sensitive = "true"/>
-      </layer>  
-      <layer repeat="2">
-        <slice name="Scint_slice"    material="PlasticScint"   thickness="3*mm" vis = "BlueVis" sensitive = "true"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-      </layer>  
-      <layer repeat="2">
-        <slice name="SciFi_belt"     material="PlasticScint"   thickness="1*mm" vis = "RedVis"  sensitive = "true"/>
-      </layer>  
-      <layer repeat="7">
-        <slice name="Scint_slice"    material="PlasticScint"   thickness="3*mm" vis = "BlueVis" sensitive = "true"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-      </layer>
-      <layer repeat="1">
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-        <slice name="Scint_slice"    material="PlasticScint"   thickness="3*mm" vis = "BlueVis" sensitive = "true"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-      </layer>
-      <layer repeat="2">
-        <slice name="SciFi_belt"     material="PlasticScint"   thickness="1*mm" vis = "RedVis"  sensitive = "true"/>
-      </layer>
-      <layer repeat="3">
-        <slice name="Scint_slice"    material="PlasticScint"   thickness="3*mm" vis = "BlueVis" sensitive = "true"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-      </layer>
-      <layer repeat="2">
-        <slice name="SciFi_belt"     material="PlasticScint"   thickness="1*mm" vis = "RedVis"  sensitive = "true"/>
-      </layer>
-      <layer repeat="1">
-        <slice name="Scint_slice"    material="PlasticScint"   thickness="3*mm" vis = "BlueVis" sensitive = "true"/>
-        <slice name="Tungsten_slice" material="TungstenDens24" thickness="7*mm" vis = "GrayVis"/>
-      </layer>
-    </detector>
-  -->
     <detector id="ffi_ZDC_HCAL_ID" name="largeZDC" type="ZDC" readout="ZDCHits" vis="RedVis">
       <position x="ffi_ZDC_HCAL_lt_x_pos" y="ffi_ZDC_HCAL_lt_y_pos" z="ffi_ZDC_HCAL_lt_z_pos"/>
       <dimensions x = "ffi_ZDC_HCAL_lt_length" y = "ffi_ZDC_HCAL_lt_length"/>
-- 
GitLab