From ba39a72663f64fbe133f64b0f8e5d8109ba7254f Mon Sep 17 00:00:00 2001
From: Eric Pooser <pooser@jlab.org>
Date: Tue, 21 Nov 2017 17:20:57 -0500
Subject: [PATCH] Add ROC1 FADC reference time to HMS maps (#272)

---
 MAPS/HMS/DETEC/AERO/haero_htrig.map | 3 +++
 MAPS/HMS/DETEC/CAL/hcal_htrig.map   | 3 +++
 MAPS/HMS/DETEC/CER/hcer_htrig.map   | 3 +++
 MAPS/HMS/DETEC/DC/hdc_htrig.map     | 3 +++
 MAPS/HMS/DETEC/HODO/hhodo_htrig.map | 3 +++
 MAPS/HMS/DETEC/STACK/hms_stack.map  | 3 +++
 MAPS/HMS/DETEC/TRIG/htrig.map       | 4 ++++
 PARAM/TRIG/thms.param               | 6 +++---
 8 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/MAPS/HMS/DETEC/AERO/haero_htrig.map b/MAPS/HMS/DETEC/AERO/haero_htrig.map
index 1fe8ba55..d94779a8 100644
--- a/MAPS/HMS/DETEC/AERO/haero_htrig.map
+++ b/MAPS/HMS/DETEC/AERO/haero_htrig.map
@@ -16,6 +16,9 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+  11,   1,   9,   0  ! hFADC_TREF_ROC1
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/CAL/hcal_htrig.map b/MAPS/HMS/DETEC/CAL/hcal_htrig.map
index c1a13ea6..2dc11b83 100644
--- a/MAPS/HMS/DETEC/CAL/hcal_htrig.map
+++ b/MAPS/HMS/DETEC/CAL/hcal_htrig.map
@@ -16,6 +16,9 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+  11,   1,   9,   0  ! hFADC_TREF_ROC1
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/CER/hcer_htrig.map b/MAPS/HMS/DETEC/CER/hcer_htrig.map
index b16f9b48..3c58ccee 100644
--- a/MAPS/HMS/DETEC/CER/hcer_htrig.map
+++ b/MAPS/HMS/DETEC/CER/hcer_htrig.map
@@ -16,6 +16,9 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+  11,   1,   9,   0  ! hFADC_TREF_ROC1
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/DC/hdc_htrig.map b/MAPS/HMS/DETEC/DC/hdc_htrig.map
index 10ba2bee..347c065f 100644
--- a/MAPS/HMS/DETEC/DC/hdc_htrig.map
+++ b/MAPS/HMS/DETEC/DC/hdc_htrig.map
@@ -16,6 +16,9 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+  11,   1,   9,   0  ! hFADC_TREF_ROC1
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/HODO/hhodo_htrig.map b/MAPS/HMS/DETEC/HODO/hhodo_htrig.map
index 1848d32a..83c1fade 100644
--- a/MAPS/HMS/DETEC/HODO/hhodo_htrig.map
+++ b/MAPS/HMS/DETEC/HODO/hhodo_htrig.map
@@ -16,6 +16,9 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+  11,   1,   9,   0  ! hFADC_TREF_ROC1
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/STACK/hms_stack.map b/MAPS/HMS/DETEC/STACK/hms_stack.map
index 472b56c3..b254257e 100644
--- a/MAPS/HMS/DETEC/STACK/hms_stack.map
+++ b/MAPS/HMS/DETEC/STACK/hms_stack.map
@@ -21,6 +21,9 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+  11,   1,   9,   0  !  hFADC_TREF_ROC1
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/TRIG/htrig.map b/MAPS/HMS/DETEC/TRIG/htrig.map
index 1aeee4cf..f8fd157d 100644
--- a/MAPS/HMS/DETEC/TRIG/htrig.map
+++ b/MAPS/HMS/DETEC/TRIG/htrig.map
@@ -20,6 +20,10 @@ SLOT=17
      14,      1,      7,     0!  hAERSUM
      15,      1,      8,     0!  hCERSUM
 
+SLOT=18
+! chan    plane     bar    sig
+     11,      1,      9,     0!  hFADC_TREF_ROC1
+
 !CAEN1190 module
 SLOT=2
 REFINDEX=0
diff --git a/PARAM/TRIG/thms.param b/PARAM/TRIG/thms.param
index 3d986888..1652ba5d 100644
--- a/PARAM/TRIG/thms.param
+++ b/PARAM/TRIG/thms.param
@@ -1,10 +1,10 @@
-t_hms_numAdc = 8
+t_hms_numAdc = 9
 t_hms_numTdc = 33
 t_hms_tdcoffset=-300.
 t_hms_tdcchanperns=0.1
 
-; bar num:          1     2     3     4     5      6      7       8
-t_hms_adcNames = "hASUM hBSUM hCSUM hDSUM hPSHWR hSHWR hAERSUM hCERSUM"
+; bar num:          1     2     3     4     5      6      7       8           9
+t_hms_adcNames = "hASUM hBSUM hCSUM hDSUM hPSHWR hSHWR hAERSUM hCERSUM hFADC_TREF_ROC1"
 
 ; bar num:         1   2   3   4   5   6   7    8     9     10    11     12       13      14      15       16    17    18      19      20      21      22     23     24     25     26     27     28     29     30     31     32     33
 t_hms_tdcNames = "h1X h1Y h2X h2Y h1T h2T hT1 hASUM hBSUM hCSUM hDSUM hPSHWRLO hPSHWRHI hSHWR hHODO_EDTM hCERSUM hT2 hDCREF1 hDCREF2 hDCREF3 hDCREF4 hTRIG1 hTRIG2 hTRIG3 hTRIG4 hTRIG5 hTRIG6 pTRIG1 pTRIG2 pTRIG3 pTRIG4 pTRIG5 pTRIG6"
\ No newline at end of file
-- 
GitLab