From a63ac53dce1ad197ed2a5d2b05204c1ec82fe4c9 Mon Sep 17 00:00:00 2001
From: Zhenyu Ye <yezhenyu@10-8-236-47.vlan877.client.wireless.uic.edu>
Date: Thu, 20 May 2021 10:45:28 -0500
Subject: [PATCH] Update Barrel TOF

---
 compact/definitions.xml | 2 +-
 compact/display.xml     | 3 +++
 compact/tof_barrel.xml  | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/compact/definitions.xml b/compact/definitions.xml
index d8dac0d..b7f329b 100644
--- a/compact/definitions.xml
+++ b/compact/definitions.xml
@@ -181,7 +181,7 @@
     <constant name="BarrelDIRC_ID" value="90"/>
     <constant name="BarrelTRD_ID"  value="91"/>
     <constant name="BarrelTOF_ID"  value="92"/>
-
+    <constant name="BarrelTOFSubAssembly_ID" value="93"/>
 
     <comment> 
       =====================================
diff --git a/compact/display.xml b/compact/display.xml
index 6275257..39ab6a5 100644
--- a/compact/display.xml
+++ b/compact/display.xml
@@ -35,6 +35,9 @@
     <vis name="SiTrackerSubAssemblyVis" alpha="1" r="0.0" g="0.99" b="0.0" showDaughters="true" visible="true"/>
     <vis name="SiTrackerLayerVis" alpha="1" r="0.0" g="1" b="0.0" showDaughters="true" visible="true"  lineStyle="solid"  drawingStyle="solid" />
 
+    <vis name="BarrelTOFVis" alpha="0.9" r="1" g="0" b="1" showDaughters="true" />
+    <vis name="BarrelTOFSubAssemblyVis" alpha="1" r="0.0" g="0.99" b="0.0" showDaughters="true" visible="true"/>
+
     <vis name="EcalVis" alpha="0.1" r="0.0" g="0.75" b="0.1" showDaughters="false"/>
     <vis name="EcalEndcapVis" alpha="1.0" r="0.0" g="0.99" b="0.0" showDaughters="false" visible="true" />
     <vis name="EcalBarrelVis" alpha="1.0" r="0.0" g="0.99" b="0.0" showDaughters="false" visible="true" />
diff --git a/compact/tof_barrel.xml b/compact/tof_barrel.xml
index 8dce1fa..732a25e 100644
--- a/compact/tof_barrel.xml
+++ b/compact/tof_barrel.xml
@@ -82,7 +82,7 @@
       </module>
 
       <comment> Layers composed of many arrayed modules  </comment>
-      <layer module="UFSD" id="1" vis="SiVertexVis">
+      <layer module="UFSD" id="1" vis="BarrelTOFVis">
         <barrel_envelope inner_r="BarrelTOFRadius-10*mm"
                          outer_r="BarrelTOFRadius+10*mm" z_length="BarrelTOFTotalLength"/>
         <rphi_layout phi_tilt="10.0*degree" nphi="BarrelTOFNModulesPhi" phi0="0.0" rc="BarrelTOFRadius" dr="0.0 * mm"/>
-- 
GitLab