From e99cd9e1aa159ba3744230970793a552dbfee4ef Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Fri, 6 Aug 2021 20:33:17 +0000
Subject: [PATCH] Fix the readout for the endcaps

The segmentation should be X**Z**. This is because of how the trd is constructed (with z along the normal y direction).
---
 compact/central_tracker.xml | 4 ++--
 compact/vertex_tracker.xml  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/compact/central_tracker.xml b/compact/central_tracker.xml
index aa1e1822..d44b47ce 100644
--- a/compact/central_tracker.xml
+++ b/compact/central_tracker.xml
@@ -425,8 +425,8 @@
       <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,y:-16</id>
     </readout>
     <readout name="TrackerEndcapHits">
-      <segmentation type="CartesianGridXY" grid_size_x="0.20*mm" grid_size_y="0.20*mm" />
-      <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,y:-16</id>
+      <segmentation type="CartesianGridXZ" grid_size_x="0.20*mm" grid_size_z="0.20*mm" />
+      <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
     </readout>
   </readouts>
 
diff --git a/compact/vertex_tracker.xml b/compact/vertex_tracker.xml
index d6a8660e..dc9fd190 100644
--- a/compact/vertex_tracker.xml
+++ b/compact/vertex_tracker.xml
@@ -206,8 +206,8 @@
       <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,y:-16</id>
     </readout>
     <readout name="VertexEndcapHits">
-      <segmentation type="CartesianGridXY" grid_size_x="0.20*mm" grid_size_y="0.20*mm" />
-      <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,y:-16</id>
+      <segmentation type="CartesianGridXZ" grid_size_x="0.20*mm" grid_size_z="0.20*mm" />
+      <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,z:-16</id>
     </readout>
   </readouts>
 
-- 
GitLab