From 1e0c9cee3a70c9f60a624572876a4b973c99bfcc Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Thu, 3 Dec 2020 22:37:36 -0600
Subject: [PATCH] Put back segmentation 	modified:   topside/ecal.xml

---
 .gitlab-ci.yml   | 22 ++++++++++++++++++++++
 topside/ecal.xml |  4 ++--
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5b437c..729e151 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,10 +8,20 @@ default:
 
 stages:
   - build
+  - docs
   - test 
 
 compile:
   stage: build
+  tags:
+    - silicon
+  script:
+    - echo "Build successful."
+
+dawn_views:
+  stage: docs
+  needs:
+    - ["compile"]
   tags:
     - silicon
   artifacts:
@@ -33,3 +43,15 @@ overlap_check:
     - cat doc/overlap_check.out
   allow_failure: true
 
+
+topside:config_testing:
+  stage: test
+  tags:
+    - silicon
+  needs: 
+    - ["compile"]
+  script:
+    #- $(exit $(checkOverlaps -c topside.xml  | tee doc/overlap_check.out | wc -l ))
+    - checkOverlaps -c topside.xml  | tee doc/overlap_check.out | wc -l
+    - cat doc/overlap_check.out
+  allow_failure: true
diff --git a/topside/ecal.xml b/topside/ecal.xml
index b04a4f9..b1e8ba6 100644
--- a/topside/ecal.xml
+++ b/topside/ecal.xml
@@ -171,8 +171,8 @@
   <!--  Definition of the readout segmentation/definition  -->
   <readouts>
     <readout name="CrystalEcalHits">
-      <segmentation type="NoSegmentation" />
-      <id>system:8,sector:4,module:20</id>
+      <segmentation type="CartesianGridXY" grid_size_x="CrystalBox_x_length" grid_size_y="CrystalBox_y_length" />
+      <id>system:8,sector:4,module:20,x:48:-8,y:-8</id>
     </readout>
     <readout name="EcalBarrelHits">
       <segmentation type="CartesianGridXY" grid_size_x="3.5 * mm" grid_size_y="3.5 * mm"/>
-- 
GitLab