From 49064b4b92b95e648004e72bb9822414f7b6b1f9 Mon Sep 17 00:00:00 2001
From: Buddhini Waidyawansa <buddhini@jlab.org>
Date: Thu, 27 Feb 2014 17:38:00 -0500
Subject: [PATCH] THcRaster minor changse, files prefixed with raster_ for
 testing.

  Files with the prefix raster_ are coppies of original *.database,
  and *.param files which now includes changes nessacery for
  decoding raster data. I created seperate files for these because I
  need to merge this code upstream before I can compare the raster
  decoding results with that of the analyzer. For e.g. the map files are
  different from the original map files. So Steve needs to create a perl
  script that can propgate these changes in the map files to the map
  file of the analyzer inorder for me to do the analyzer hcana
  comparision. Once the comparision is done and we are satisifies with
  the results, we will merge the changes with the original files and
  remove the files with the prefix raster_*.

  gbeam.param now included by general.param.  No need to load
  a separate parameter set to test raster/BPM code.

  examples/MAPS/raster_jun04.map adds new detector IDs for the raster
  and BPMs as follows:

Add the following IDs to the misc elements,
BEAM
 RASTER_ID= 18          ADC
 BPM_ID= 19             ADC

In the channel section did the following modification:
 sub , plane, counter, sig
  14, 1, 13, 1 !ADC ROC#1 Sl#15 Ch#14 Fast Raster X-sync
  15, 1, 14, 2 !ADC ROC#1 Sl#15 Ch#15 Fast Raster X-signal
  12, 1, 15, 3 !ADC ROC#1 Sl#15 Ch#12 Fast Raster Y-sync
  13, 1, 16, 4 !ADC ROC#1 Sl#15 Ch#13 Fast Raster Y-signal
---
 examples/DBASE/raster_test.database |   22 +
 examples/MAPS/raster_jun04.map      | 3261 +++++++++++++++++++++++++++
 examples/PARAM/general.param        |    1 +
 examples/output_bpw.def             |  181 ++
 examples/raster_test.C              |   10 +-
 src/THcRaster.cxx                   |  289 ++-
 src/THcRaster.h                     |   27 +-
 src/THcRasterRawHit.cxx             |    9 +-
 src/THcRasterRawHit.h               |    1 -
 src/THcRasteredBeam.cxx             |    2 +-
 10 files changed, 3662 insertions(+), 141 deletions(-)
 create mode 100644 examples/DBASE/raster_test.database
 create mode 100644 examples/MAPS/raster_jun04.map
 create mode 100644 examples/output_bpw.def

diff --git a/examples/DBASE/raster_test.database b/examples/DBASE/raster_test.database
new file mode 100644
index 0000000..3769ec8
--- /dev/null
+++ b/examples/DBASE/raster_test.database
@@ -0,0 +1,22 @@
+# ENGINE style parameter vs. run number database
+# buddhini - coppied from test.database to setup the raster decoding.
+# 
+50017
+g_ctp_parm_filename="PARAM/general.param"
+g_decode_map_filename="MAPS/raster_jun04.map"
+# Values taken from Logbook.  Not necessarily official.
+gpbeam    = 4.015
+hpcentral = 2.074
+htheta_lab = 10.99
+hpartmass = 0.13957
+52949
+g_ctp_parm_filename="PARAM/52949/general.param"
+g_decode_map_filename="MAPS/july04.map"
+# From DBASE/online04.kinematics_online.
+gpbeam    = 1.2048
+hpcentral = 0.811
+htheta_lab = 55.
+hpartmass = 0.00051099
+47000-48000
+g_ctp_parm_filename="PARAM/general.param"
+g_decode_map_filename="MAPS/jan03.map"
diff --git a/examples/MAPS/raster_jun04.map b/examples/MAPS/raster_jun04.map
new file mode 100644
index 0000000..439afcb
--- /dev/null
+++ b/examples/MAPS/raster_jun04.map
@@ -0,0 +1,3261 @@
+! Updated to reflect new TDC for HMS aerogel and proper mapping of misc
+! trigger signals in SOS.  Dave G (5/5/2003)
+!
+!
+       help       !lists available keywords
+       NOecho     !copies input lines to tty output
+       NOdebug    !turn on input debugging
+       override   !skip over errors
+!
+! hall C encode/decode configuration file
+! giving the FASTBUS geographical to standard
+! hall C COMMONs location as described by
+! "gen_data_structures.cmn"      K.B.Beard 13jun94
+!      10/19/94 (jra) Change ch1 roc to 8 (from 1), hms roc to 7 (from 2).
+!
+!       6/24/94 (SAW) Turn on lines for miscleaneous TDC's
+!                     Change ch1 roc to 1 (from 0), hms roc to 2 (from 1).
+!		      Disable last 16 channels of miscleaneous TDC
+!    
+!       1/23/2014 (buddhini) Added a new IDs for raster and BPMs.
+!		  	     Added the detector ID = 18 before raster channel information.
+!			     Changed the raster plane, counter and signal columns to enable hit readout via the C++ anakysis
+!			     hit handling method. Under this, the raster has plane NO 1, counter numbers 13 to 15 and signals
+!			     1 - X sync, 2- X-sig, 3- Y-sync, 4-Y-sig
+! standard id numbers
+!                       signals
+!HMS:
+! HDC_ID= 1               TDC
+! HSCIN_ID= 2             ADC+,ADC-,TDC+,TDC-
+! HCER_ID= 3              ADC
+! HCAL_ID= 4              ADC
+! HMISC_ID= 5             TDC,(ADC)
+!GEN:
+! GMISC_ID= 6             (TDC),ADC
+! HAERO_ID= 7             (TDC),ADC
+!SOS:
+! SDC_ID= 11              TDC
+! SSCIN_ID= 12            ADC+,ADC-,TDC+,TDC-
+! SCER_ID= 13             ADC
+! SCAL_ID= 14             ADC
+! SMISC_ID= 15            TDC,(ADC)
+! SAER_ID= 16             ADC
+! SLUC_ID=17		 ADC
+!BEAM:
+! RASTER_ID= 18          ADC
+! BPM_ID= 19             ADC
+!
+!   consider subadd equiv. to channel
+!
+!  specify: subadd, plane, element, signal
+!            a,      p,     e,       s
+!            0-      1-     1-       0-3
+![if there is only signal 0 (DC,CER,CAL) it may be ommitted]
+!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!
+!     HMS upstairs and downstairs map    K.B.Beard 13-Jun-1994
+!         for Jun94 run
+!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!
+!      HMS downstairs (HDC) map           K.B.Beard & S.Avery 13-Jun-1994
+!					  revised by A. Johnson 4-Feb-1999	
+!   								
+! vvvvvvvvvvvvvvvvvvvvvv Wire chambers start here vvvvvvvvvvvvvvvvvvvvvvvvv
+  ROC= 2             !ReadOutController (crate) for HMS wire chambers
+!
+!
+!         TDC modules are Lecroy 1877
+    Nsubadd= 96               
+    MASK= FFFFx       !hex mask 
+    BSUB= 17           !start channel in bit#17
+!
+  detector= 1       !HDC
+!
+!                             1st HDC chamber - (2nd in position) - planes7-12  
+Slot= 2
+0, 8, 1	             !TDC ROC#2 Sl#2 Ch#0 HDC pl#8 [Y1] wire#1
+1, 8, 2              !TDC ROC#2 Sl#2 Ch#1 HDC pl#8 [Y1] wire#2
+2, 8, 3	             !TDC ROC#2 Sl#2 Ch#2 HDC pl#8 [Y1] wire#3
+3, 8, 4	             !TDC ROC#2 Sl#2 Ch#3 HDC pl#8 [Y1] wire#4
+4, 8, 5	             !TDC ROC#2 Sl#2 Ch#4 HDC pl#8 [Y1] wire#5
+5, 8, 6	             !TDC ROC#2 Sl#2 Ch#5 HDC pl#8 [Y1] wire#6
+6, 8, 7	             !TDC ROC#2 Sl#2 Ch#6 HDC pl#8 [Y1] wire#7
+7, 8, 8	             !TDC ROC#2 Sl#2 Ch#7 HDC pl#8 [Y1] wire#8
+8, 8, 9	             !TDC ROC#2 Sl#2 Ch#8 HDC pl#8 [Y1] wire#9
+9, 8, 10             !TDC ROC#2 Sl#2 Ch#9 HDC pl#8 [Y1] wire#10
+10, 8, 11            !TDC ROC#2 Sl#2 Ch#10 HDC pl#8 [Y1] wire#11
+11, 8, 12            !TDC ROC#2 Sl#2 Ch#11 HDC pl#8 [Y1] wire#12
+12, 8, 13            !TDC ROC#2 Sl#2 Ch#12 HDC pl#8 [Y1] wire#13
+!13 !TDC ROC#2 Sl#2 Ch#13 unused
+!14 !TDC ROC#2 Sl#2 Ch#14 unused
+!15 !TDC ROC#2 Sl#2 Ch#15 unused
+16, 11, 40           !TDC ROC#2 Sl#2 Ch#16 HDC pl#11 [Y2] wire#40
+17, 11, 41           !TDC ROC#2 Sl#2 Ch#17 HDC pl#11 [Y2] wire#41
+18, 11, 42           !TDC ROC#2 Sl#2 Ch#18 HDC pl#11 [Y2] wire#42
+19, 11, 43           !TDC ROC#2 Sl#2 Ch#19 HDC pl#11 [Y2] wire#43
+20, 11, 44           !TDC ROC#2 Sl#2 Ch#20 HDC pl#11 [Y2] wire#44
+21, 11, 45           !TDC ROC#2 Sl#2 Ch#21 HDC pl#11 [Y2] wire#45
+22, 11, 46           !TDC ROC#2 Sl#2 Ch#22 HDC pl#11 [Y2] wire#46
+23, 11, 47           !TDC ROC#2 Sl#2 Ch#23 HDC pl#11 [Y2] wire#47
+24, 11, 48           !TDC ROC#2 Sl#2 Ch#24 HDC pl#11 [Y2] wire#48
+25, 11, 49           !TDC ROC#2 Sl#2 Ch#25 HDC pl#11 [Y2] wire#49
+26, 11, 50           !TDC ROC#2 Sl#2 Ch#26 HDC pl#11 [Y2] wire#50
+27, 11, 51           !TDC ROC#2 Sl#2 Ch#27 HDC pl#11 [Y2] wire#51
+28, 11, 52           !TDC ROC#2 Sl#2 Ch#28 HDC pl#11 [Y2] wire#52
+!29 !TDC ROC#2 Sl#2 Ch#29 unused
+!30 !TDC ROC#2 Sl#2 Ch#30 unused
+!31 !TDC ROC#2 Sl#2 Ch#31 unused
+32, 8, 14            !TDC ROC#2 Sl#2 Ch#32 HDC pl#8 [Y1] wire#14
+33, 8, 15            !TDC ROC#2 Sl#2 Ch#33 HDC pl#8 [Y1] wire#15
+34, 8, 16            !TDC ROC#2 Sl#2 Ch#34 HDC pl#8 [Y1] wire#16
+35, 8, 17            !TDC ROC#2 Sl#2 Ch#35 HDC pl#8 [Y1] wire#17
+36, 8, 18            !TDC ROC#2 Sl#2 Ch#36 HDC pl#8 [Y1] wire#18
+37, 8, 19            !TDC ROC#2 Sl#2 Ch#37 HDC pl#8 [Y1] wire#19
+38, 8, 20            !TDC ROC#2 Sl#2 Ch#38 HDC pl#8 [Y1] wire#20
+39, 8, 21            !TDC ROC#2 Sl#2 Ch#39 HDC pl#8 [Y1] wire#21
+40, 8, 22            !TDC ROC#2 Sl#2 Ch#40 HDC pl#8 [Y1] wire#22
+41, 8, 23            !TDC ROC#2 Sl#2 Ch#41 HDC pl#8 [Y1] wire#23
+42, 8, 24            !TDC ROC#2 Sl#2 Ch#42 HDC pl#8 [Y1] wire#24
+43, 8, 25            !TDC ROC#2 Sl#2 Ch#43 HDC pl#8 [Y1] wire#25
+44, 8, 26            !TDC ROC#2 Sl#2 Ch#44 HDC pl#8 [Y1] wire#26
+!45 !TDC ROC#2 Sl#2 Ch#45 unused
+!46 !TDC ROC#2 Sl#2 Ch#46 unused
+!47 !TDC ROC#2 Sl#2 Ch#47 unused
+48, 11, 27           !TDC ROC#2 Sl#2 Ch#48 HDC pl#11 [Y2] wire#27
+49, 11, 28           !TDC ROC#2 Sl#2 Ch#49 HDC pl#11 [Y2] wire#28
+50, 11, 29           !TDC ROC#2 Sl#2 Ch#50 HDC pl#11 [Y2] wire#29
+51, 11, 30           !TDC ROC#2 Sl#2 Ch#51 HDC pl#11 [Y2] wire#30
+52, 11, 31           !TDC ROC#2 Sl#2 Ch#52 HDC pl#11 [Y2] wire#31
+53, 11, 32           !TDC ROC#2 Sl#2 Ch#53 HDC pl#11 [Y2] wire#32
+54, 11, 33           !TDC ROC#2 Sl#2 Ch#54 HDC pl#11 [Y2] wire#33
+55, 11, 34           !TDC ROC#2 Sl#2 Ch#55 HDC pl#11 [Y2] wire#34
+56, 11, 35           !TDC ROC#2 Sl#2 Ch#56 HDC pl#11 [Y2] wire#35
+57, 11, 36           !TDC ROC#2 Sl#2 Ch#57 HDC pl#11 [Y2] wire#36
+58, 11, 37           !TDC ROC#2 Sl#2 Ch#58 HDC pl#11 [Y2] wire#37
+59, 11, 38           !TDC ROC#2 Sl#2 Ch#59 HDC pl#11 [Y2] wire#38
+60, 11, 39           !TDC ROC#2 Sl#2 Ch#60 HDC pl#11 [Y2] wire#39
+!61 !TDC ROC#2 Sl#2 Ch#61 unused
+!62 !TDC ROC#2 Sl#2 Ch#62 unused
+!63 !TDC ROC#2 Sl#2 Ch#63 unused
+64, 8, 27            !TDC ROC#2 Sl#2 Ch#64 HDC pl#8 [Y1] wire#27
+65, 8, 28            !TDC ROC#2 Sl#2 Ch#65 HDC pl#8 [Y1] wire#28
+66, 8, 29            !TDC ROC#2 Sl#2 Ch#66 HDC pl#8 [Y1] wire#29
+67, 8, 30            !TDC ROC#2 Sl#2 Ch#67 HDC pl#8 [Y1] wire#30
+68, 8, 31            !TDC ROC#2 Sl#2 Ch#68 HDC pl#8 [Y1] wire#31
+69, 8, 32            !TDC ROC#2 Sl#2 Ch#69 HDC pl#8 [Y1] wire#32
+70, 8, 33            !TDC ROC#2 Sl#2 Ch#70 HDC pl#8 [Y1] wire#33
+71, 8, 34            !TDC ROC#2 Sl#2 Ch#71 HDC pl#8 [Y1] wire#34
+72, 8, 35            !TDC ROC#2 Sl#2 Ch#72 HDC pl#8 [Y1] wire#35
+73, 8, 36            !TDC ROC#2 Sl#2 Ch#73 HDC pl#8 [Y1] wire#36
+74, 8, 37            !TDC ROC#2 Sl#2 Ch#74 HDC pl#8 [Y1] wire#37
+75, 8, 38            !TDC ROC#2 Sl#2 Ch#75 HDC pl#8 [Y1] wire#38
+76, 8, 39            !TDC ROC#2 Sl#2 Ch#76 HDC pl#8 [Y1] wire#39
+!77 !TDC ROC#2 Sl#2 Ch#77 unused
+!78 !TDC ROC#2 Sl#2 Ch#78 unused
+!79 !TDC ROC#2 Sl#2 Ch#79 unused
+80, 11, 14           !TDC ROC#2 Sl#2 Ch#80 HDC pl#11 [Y2] wire#14
+81, 11, 15           !TDC ROC#2 Sl#2 Ch#81 HDC pl#11 [Y2] wire#15
+82, 11, 16           !TDC ROC#2 Sl#2 Ch#82 HDC pl#11 [Y2] wire#16
+83, 11, 17           !TDC ROC#2 Sl#2 Ch#83 HDC pl#11 [Y2] wire#17
+84, 11, 18           !TDC ROC#2 Sl#2 Ch#84 HDC pl#11 [Y2] wire#18
+85, 11, 19           !TDC ROC#2 Sl#2 Ch#85 HDC pl#11 [Y2] wire#19
+86, 11, 20           !TDC ROC#2 Sl#2 Ch#86 HDC pl#11 [Y2] wire#20
+87, 11, 21           !TDC ROC#2 Sl#2 Ch#87 HDC pl#11 [Y2] wire#21
+88, 11, 22           !TDC ROC#2 Sl#2 Ch#88 HDC pl#11 [Y2] wire#22
+89, 11, 23           !TDC ROC#2 Sl#2 Ch#89 HDC pl#11 [Y2] wire#23
+90, 11, 24           !TDC ROC#2 Sl#2 Ch#90 HDC pl#11 [Y2] wire#24
+91, 11, 25           !TDC ROC#2 Sl#2 Ch#91 HDC pl#11 [Y2] wire#25
+92, 11, 26           !TDC ROC#2 Sl#2 Ch#92 HDC pl#11 [Y2] wire#26
+!93 !TDC ROC#2 Sl#2 Ch#93 unused
+!94 !TDC ROC#2 Sl#2 Ch#94 unused
+!95 !TDC ROC#2 Sl#2 Ch#95 unused
+
+Slot= 3
+0, 8, 40             !TDC ROC#2 Sl#3 Ch#0 HDC pl#8 [Y1] wire#40
+1, 8, 41             !TDC ROC#2 Sl#3 Ch#1 HDC pl#8 [Y1] wire#41
+2, 8, 42             !TDC ROC#2 Sl#3 Ch#2 HDC pl#8 [Y1] wire#42
+3, 8, 43             !TDC ROC#2 Sl#3 Ch#3 HDC pl#8 [Y1] wire#43
+4, 8, 44             !TDC ROC#2 Sl#3 Ch#4 HDC pl#8 [Y1] wire#44
+5, 8, 45             !TDC ROC#2 Sl#3 Ch#5 HDC pl#8 [Y1] wire#45
+6, 8, 46             !TDC ROC#2 Sl#3 Ch#6 HDC pl#8 [Y1] wire#46
+7, 8, 47             !TDC ROC#2 Sl#3 Ch#7 HDC pl#8 [Y1] wire#47
+8, 8, 48             !TDC ROC#2 Sl#3 Ch#8 HDC pl#8 [Y1] wire#48
+9, 8, 49             !TDC ROC#2 Sl#3 Ch#9 HDC pl#8 [Y1] wire#49
+10, 8, 50            !TDC ROC#2 Sl#3 Ch#10 HDC pl#8 [Y1] wire#50
+11, 8, 51            !TDC ROC#2 Sl#3 Ch#11 HDC pl#8 [Y1] wire#51
+12, 8, 52            !TDC ROC#2 Sl#3 Ch#12 HDC pl#8 [Y1] wire#52
+!13 !TDC ROC#2 Sl#3 Ch#13 
+!14 !TDC ROC#2 Sl#3 Ch#14 
+!15 !TDC ROC#2 Sl#3 Ch#15 
+16, 11, 1            !TDC ROC#2 Sl#3 Ch#16 HDC pl#11 [Y2] wire#1
+17, 11, 2            !TDC ROC#2 Sl#3 Ch#17 HDC pl#11 [Y2] wire#2
+18, 11, 3            !TDC ROC#2 Sl#3 Ch#18 HDC pl#11 [Y2] wire#3
+19, 11, 4            !TDC ROC#2 Sl#3 Ch#19 HDC pl#11 [Y2] wire#4
+20, 11, 5            !TDC ROC#2 Sl#3 Ch#20 HDC pl#11 [Y2] wire#5
+21, 11, 6            !TDC ROC#2 Sl#3 Ch#21 HDC pl#11 [Y2] wire#6
+22, 11, 7            !TDC ROC#2 Sl#3 Ch#22 HDC pl#11 [Y2] wire#7
+23, 11, 8            !TDC ROC#2 Sl#3 Ch#23 HDC pl#11 [Y2] wire#8
+24, 11, 9            !TDC ROC#2 Sl#3 Ch#24 HDC pl#11 [Y2] wire#9
+25, 11, 10           !TDC ROC#2 Sl#3 Ch#25 HDC pl#11 [Y2] wire#10
+26, 11, 11           !TDC ROC#2 Sl#3 Ch#26 HDC pl#11 [Y2] wire#11
+27, 11, 12           !TDC ROC#2 Sl#3 Ch#27 HDC pl#11 [Y2] wire#12
+28, 11, 13           !TDC ROC#2 Sl#3 Ch#28 HDC pl#11 [Y2] wire#13
+! 29 !TDC ROC#2 Sl#3 Ch#29 unused
+! 30 !TDC ROC#2 Sl#3 Ch#30 unused
+! 31 !TDC ROC#2 Sl#3 Ch#31 unused
+32, 10, 92           !TDC ROC#2 Sl#3 Ch#32 HDC pl#10 [V] wire#92
+33, 10, 93           !TDC ROC#2 Sl#3 Ch#33 HDC pl#10 [V] wire#93
+34, 10, 94           !TDC ROC#2 Sl#3 Ch#34 HDC pl#10 [V] wire#94
+35, 10, 95           !TDC ROC#2 Sl#3 Ch#35 HDC pl#10 [V] wire#95
+36, 10, 96           !TDC ROC#2 Sl#3 Ch#36 HDC pl#10 [V] wire#96
+37, 10, 97           !TDC ROC#2 Sl#3 Ch#37 HDC pl#10 [V] wire#97
+38, 10, 98           !TDC ROC#2 Sl#3 Ch#38 HDC pl#10 [V] wire#98
+39, 10, 99           !TDC ROC#2 Sl#3 Ch#39 HDC pl#10 [V] wire#99
+40, 10, 100          !TDC ROC#2 Sl#3 Ch#40 HDC pl#10 [V] wire#100
+41, 10, 101          !TDC ROC#2 Sl#3 Ch#41 HDC pl#10 [V] wire#101
+42, 10, 102          !TDC ROC#2 Sl#3 Ch#42 HDC pl#10 [V] wire#102
+43, 10, 103          !TDC ROC#2 Sl#3 Ch#43 HDC pl#10 [V] wire#103
+44, 10, 104          !TDC ROC#2 Sl#3 Ch#44 HDC pl#10 [V] wire#104
+45, 10, 105	     !TDC ROC#2 Sl#3 Ch#45 HDC pl#10 [V] wire#105
+46, 10, 106          !TDC ROC#2 Sl#3 Ch#46 HDC pl#10 [V] wire#106
+47, 10, 107	     !TDC ROC#2 Sl#3 Ch#47 HDC pl#10 [V] wire#107
+48, 7, 97            !TDC ROC#2 Sl#3 Ch#48 HDC pl#7 [X1] wire#97
+49, 7, 98            !TDC ROC#2 Sl#3 Ch#49 HDC pl#7 [X1] wire#98
+50, 7, 99            !TDC ROC#2 Sl#3 Ch#50 HDC pl#7 [X1] wire#99
+51, 7, 100           !TDC ROC#2 Sl#3 Ch#51 HDC pl#7 [X1] wire#100
+52, 7, 101           !TDC ROC#2 Sl#3 Ch#52 HDC pl#7 [X1] wire#101
+53, 7, 102           !TDC ROC#2 Sl#3 Ch#53 HDC pl#7 [X1] wire#102
+54, 7, 103           !TDC ROC#2 Sl#3 Ch#54 HDC pl#7 [X1] wire#103
+55, 7, 104           !TDC ROC#2 Sl#3 Ch#55 HDC pl#7 [X1] wire#104
+56, 7, 105           !TDC ROC#2 Sl#3 Ch#56 HDC pl#7 [X1] wire#105
+57, 7, 106           !TDC ROC#2 Sl#3 Ch#57 HDC pl#7 [X1] wire#106
+58, 7, 107           !TDC ROC#2 Sl#3 Ch#58 HDC pl#7 [X1] wire#107
+59, 7, 108           !TDC ROC#2 Sl#3 Ch#59 HDC pl#7 [X1] wire#108
+60, 7, 109           !TDC ROC#2 Sl#3 Ch#60 HDC pl#7 [X1] wire#109
+61, 7, 110           !TDC ROC#2 Sl#3 Ch#61 HDC pl#7 [X1] wire#110
+62, 7, 111           !TDC ROC#2 Sl#3 Ch#62 HDC pl#7 [X1] wire#111
+63, 7, 112           !TDC ROC#2 Sl#3 Ch#63 HDC pl#7 [X1] wire#112
+64, 12, 1            !TDC ROC#2 Sl#3 Ch#64 HDC pl#12 [X2] wire#1
+65, 12, 2            !TDC ROC#2 Sl#3 Ch#65 HDC pl#12 [X2] wire#2
+66, 12, 3            !TDC ROC#2 Sl#3 Ch#66 HDC pl#12 [X2] wire#3
+67, 12, 4            !TDC ROC#2 Sl#3 Ch#67 HDC pl#12 [X2] wire#4
+68, 12, 5            !TDC ROC#2 Sl#3 Ch#68 HDC pl#12 [X2] wire#5
+69, 12, 6            !TDC ROC#2 Sl#3 Ch#69 HDC pl#12 [X2] wire#6
+70, 12, 7            !TDC ROC#2 Sl#3 Ch#70 HDC pl#12 [X2] wire#7
+71, 12, 8            !TDC ROC#2 Sl#3 Ch#71 HDC pl#12 [X2] wire#8
+72, 12, 9            !TDC ROC#2 Sl#3 Ch#72 HDC pl#12 [X2] wire#9
+73, 12, 10           !TDC ROC#2 Sl#3 Ch#73 HDC pl#12 [X2] wire#10
+74, 12, 11           !TDC ROC#2 Sl#3 Ch#74 HDC pl#12 [X2] wire#11
+75, 12, 12           !TDC ROC#2 Sl#3 Ch#75 HDC pl#12 [X2] wire#12
+76, 12, 13           !TDC ROC#2 Sl#3 Ch#76 HDC pl#12 [X2] wire#13
+77, 12, 14           !TDC ROC#2 Sl#3 Ch#77 HDC pl#12 [X2] wire#14
+78, 12, 15           !TDC ROC#2 Sl#3 Ch#78 HDC pl#12 [X2] wire#15
+79, 12, 16           !TDC ROC#2 Sl#3 Ch#79 HDC pl#12 [X2] wire#16
+80, 7, 113           !TDC ROC#2 Sl#3 Ch#80 HDC pl#7 [X1] wire#113
+! 81 !TDC ROC#2 Sl#3 Ch#81 unused
+82, 9, 1             !TDC ROC#2 Sl#3 Ch#82 HDC pl#9 [U] wire#1
+83, 9, 2             !TDC ROC#2 Sl#3 Ch#83 HDC pl#9 [U] wire#2
+84, 9, 3             !TDC ROC#2 Sl#3 Ch#84 HDC pl#9 [U] wire#3
+85, 9, 4             !TDC ROC#2 Sl#3 Ch#85 HDC pl#9 [U] wire#4
+86, 9, 5             !TDC ROC#2 Sl#3 Ch#86 HDC pl#9 [U] wire#5
+87, 9, 6             !TDC ROC#2 Sl#3 Ch#87 HDC pl#9 [U] wire#6
+88, 9, 7             !TDC ROC#2 Sl#3 Ch#88 HDC pl#9 [U] wire#7
+89, 9, 8             !TDC ROC#2 Sl#3 Ch#89 HDC pl#9 [U] wire#8
+90, 9, 9             !TDC ROC#2 Sl#3 Ch#90 HDC pl#9 [U] wire#9
+91, 9, 10            !TDC ROC#2 Sl#3 Ch#91 HDC pl#9 [U] wire#10
+92, 9, 11            !TDC ROC#2 Sl#3 Ch#92 HDC pl#9 [U] wire#11
+93, 9, 12            !TDC ROC#2 Sl#3 Ch#93 HDC pl#9 [U] wire#12
+94, 9, 13            !TDC ROC#2 Sl#3 Ch#94 HDC pl#9 [U] wire#13
+95, 9, 14            !TDC ROC#2 Sl#3 Ch#95 HDC pl#9 [U] wire#14
+Slot= 5
+0, 10, 77            !TDC ROC#2 Sl#5 Ch#0 HDC pl#10 [V] wire#77
+1, 10, 78            !TDC ROC#2 Sl#5 Ch#1 HDC pl#10 [V] wire#78
+2, 10, 79            !TDC ROC#2 Sl#5 Ch#2 HDC pl#10 [V] wire#79
+3, 10, 80            !TDC ROC#2 Sl#5 Ch#3 HDC pl#10 [V] wire#80
+4, 10, 81            !TDC ROC#2 Sl#5 Ch#4 HDC pl#10 [V] wire#81
+5, 10, 82            !TDC ROC#2 Sl#5 Ch#5 HDC pl#10 [V] wire#82
+6, 10, 83            !TDC ROC#2 Sl#5 Ch#6 HDC pl#10 [V] wire#83
+7, 10, 84            !TDC ROC#2 Sl#5 Ch#7 HDC pl#10 [V] wire#84
+8, 10, 85            !TDC ROC#2 Sl#5 Ch#8 HDC pl#10 [V] wire#85
+9, 10, 86            !TDC ROC#2 Sl#5 Ch#9 HDC pl#10 [V] wire#86
+10, 10, 87           !TDC ROC#2 Sl#5 Ch#10 HDC pl#10 [V] wire#87
+11, 10, 88           !TDC ROC#2 Sl#5 Ch#11 HDC pl#10 [V] wire#88
+12, 10, 89           !TDC ROC#2 Sl#5 Ch#12 HDC pl#10 [V] wire#89
+13, 10, 90           !TDC ROC#2 Sl#5 Ch#13 HDC pl#10 [V] wire#90
+14, 10, 91           !TDC ROC#2 Sl#5 Ch#14 HDC pl#10 [V] wire#91
+! 15 !TDC ROC#2 Sl#5 Ch#15 unused
+16, 7, 81            !TDC ROC#2 Sl#5 Ch#16 HDC pl#7 [X1] wire#81
+17, 7, 82            !TDC ROC#2 Sl#5 Ch#17 HDC pl#7 [X1] wire#82
+18, 7, 83            !TDC ROC#2 Sl#5 Ch#18 HDC pl#7 [X1] wire#83
+19, 7, 84            !TDC ROC#2 Sl#5 Ch#19 HDC pl#7 [X1] wire#84
+20, 7, 85            !TDC ROC#2 Sl#5 Ch#20 HDC pl#7 [X1] wire#85
+21, 7, 86            !TDC ROC#2 Sl#5 Ch#21 HDC pl#7 [X1] wire#86
+22, 7, 87            !TDC ROC#2 Sl#5 Ch#22 HDC pl#7 [X1] wire#87
+23, 7, 88            !TDC ROC#2 Sl#5 Ch#23 HDC pl#7 [X1] wire#88
+24, 7, 89            !TDC ROC#2 Sl#5 Ch#24 HDC pl#7 [X1] wire#89
+25, 7, 90            !TDC ROC#2 Sl#5 Ch#25 HDC pl#7 [X1] wire#90
+26, 7, 91            !TDC ROC#2 Sl#5 Ch#26 HDC pl#7 [X1] wire#91
+27, 7, 92            !TDC ROC#2 Sl#5 Ch#27 HDC pl#7 [X1] wire#92
+28, 7, 93            !TDC ROC#2 Sl#5 Ch#28 HDC pl#7 [X1] wire#93
+29, 7, 94            !TDC ROC#2 Sl#5 Ch#29 HDC pl#7 [X1] wire#94
+30, 7, 95            !TDC ROC#2 Sl#5 Ch#30 HDC pl#7 [X1] wire#95
+31, 7, 96            !TDC ROC#2 Sl#5 Ch#31 HDC pl#7 [X1] wire#96
+32, 12, 17           !TDC ROC#2 Sl#5 Ch#32 HDC pl#12 [X2] wire#17
+33, 12, 18           !TDC ROC#2 Sl#5 Ch#33 HDC pl#12 [X2] wire#18
+34, 12, 19           !TDC ROC#2 Sl#5 Ch#34 HDC pl#12 [X2] wire#19
+35, 12, 20           !TDC ROC#2 Sl#5 Ch#35 HDC pl#12 [X2] wire#20
+36, 12, 21           !TDC ROC#2 Sl#5 Ch#36 HDC pl#12 [X2] wire#21
+37, 12, 22           !TDC ROC#2 Sl#5 Ch#37 HDC pl#12 [X2] wire#22
+38, 12, 23           !TDC ROC#2 Sl#5 Ch#38 HDC pl#12 [X2] wire#23
+39, 12, 24           !TDC ROC#2 Sl#5 Ch#39 HDC pl#12 [X2] wire#24
+40, 12, 25           !TDC ROC#2 Sl#5 Ch#40 HDC pl#12 [X2] wire#25
+41, 12, 26           !TDC ROC#2 Sl#5 Ch#41 HDC pl#12 [X2] wire#26
+42, 12, 27           !TDC ROC#2 Sl#5 Ch#42 HDC pl#12 [X2] wire#27
+43, 12, 28           !TDC ROC#2 Sl#5 Ch#43 HDC pl#12 [X2] wire#28
+44, 12, 29           !TDC ROC#2 Sl#5 Ch#44 HDC pl#12 [X2] wire#29
+45, 12, 30           !TDC ROC#2 Sl#5 Ch#45 HDC pl#12 [X2] wire#30
+46, 12, 31           !TDC ROC#2 Sl#5 Ch#46 HDC pl#12 [X2] wire#31
+47, 12, 32           !TDC ROC#2 Sl#5 Ch#47 HDC pl#12 [X2] wire#32
+48, 9, 15            !TDC ROC#2 Sl#5 Ch#48 HDC pl#9 [U] wire#15
+49, 9, 16            !TDC ROC#2 Sl#5 Ch#49 HDC pl#9 [U] wire#16
+50, 9, 17            !TDC ROC#2 Sl#5 Ch#50 HDC pl#9 [U] wire#17
+51, 9, 18            !TDC ROC#2 Sl#5 Ch#51 HDC pl#9 [U] wire#18
+52, 9, 19            !TDC ROC#2 Sl#5 Ch#52 HDC pl#9 [U] wire#19
+53, 9, 20            !TDC ROC#2 Sl#5 Ch#53 HDC pl#9 [U] wire#20
+54, 9, 21            !TDC ROC#2 Sl#5 Ch#54 HDC pl#9 [U] wire#21
+55, 9, 22            !TDC ROC#2 Sl#5 Ch#55 HDC pl#9 [U] wire#22
+56, 9, 23            !TDC ROC#2 Sl#5 Ch#56 HDC pl#9 [U] wire#23
+57, 9, 24            !TDC ROC#2 Sl#5 Ch#57 HDC pl#9 [U] wire#24
+58, 9, 25            !TDC ROC#2 Sl#5 Ch#58 HDC pl#9 [U] wire#25
+59, 9, 26            !TDC ROC#2 Sl#5 Ch#59 HDC pl#9 [U] wire#26
+60, 9, 27            !TDC ROC#2 Sl#5 Ch#60 HDC pl#9 [U] wire#27
+61, 9, 28            !TDC ROC#2 Sl#5 Ch#61 HDC pl#9 [U] wire#28
+62, 9, 29            !TDC ROC#2 Sl#5 Ch#62 HDC pl#9 [U] wire#29
+!63 !TDC ROC#2 Sl#5 Ch#63 unused
+64, 10, 61           !TDC ROC#2 Sl#5 Ch#64 HDC pl#10 [V] wire#61
+65, 10, 62           !TDC ROC#2 Sl#5 Ch#65 HDC pl#10 [V] wire#62
+66, 10, 63           !TDC ROC#2 Sl#5 Ch#66 HDC pl#10 [V] wire#63
+67, 10, 64           !TDC ROC#2 Sl#5 Ch#67 HDC pl#10 [V] wire#64
+68, 10, 65           !TDC ROC#2 Sl#5 Ch#68 HDC pl#10 [V] wire#65
+69, 10, 66           !TDC ROC#2 Sl#5 Ch#69 HDC pl#10 [V] wire#66
+70, 10, 67           !TDC ROC#2 Sl#5 Ch#70 HDC pl#10 [V] wire#67
+71, 10, 68           !TDC ROC#2 Sl#5 Ch#71 HDC pl#10 [V] wire#68
+72, 10, 69           !TDC ROC#2 Sl#5 Ch#72 HDC pl#10 [V] wire#69
+73, 10, 70           !TDC ROC#2 Sl#5 Ch#73 HDC pl#10 [V] wire#70
+74, 10, 71           !TDC ROC#2 Sl#5 Ch#74 HDC pl#10 [V] wire#71
+75, 10, 72           !TDC ROC#2 Sl#5 Ch#75 HDC pl#10 [V] wire#72
+76, 10, 73           !TDC ROC#2 Sl#5 Ch#76 HDC pl#10 [V] wire#73
+77, 10, 74           !TDC ROC#2 Sl#5 Ch#77 HDC pl#10 [V] wire#74
+78, 10, 75           !TDC ROC#2 Sl#5 Ch#78 HDC pl#10 [V] wire#75
+79, 10, 76           !TDC ROC#2 Sl#5 Ch#79 HDC pl#10 [V] wire#76
+80, 7, 65            !TDC ROC#2 Sl#5 Ch#80 HDC pl#7 [X1] wire#65
+81, 7, 66            !TDC ROC#2 Sl#5 Ch#81 HDC pl#7 [X1] wire#66
+82, 7, 67            !TDC ROC#2 Sl#5 Ch#82 HDC pl#7 [X1] wire#67
+83, 7, 68            !TDC ROC#2 Sl#5 Ch#83 HDC pl#7 [X1] wire#68
+84, 7, 69            !TDC ROC#2 Sl#5 Ch#84 HDC pl#7 [X1] wire#69
+85, 7, 70	     !TDC ROC#2 Sl#5 Ch#85 HDC pl#7 [X1] wire#70
+86, 7, 71            !TDC ROC#2 Sl#5 Ch#86 HDC pl#7 [X1] wire#71
+87, 7, 72            !TDC ROC#2 Sl#5 Ch#87 HDC pl#7 [X1] wire#72
+88, 7, 73            !TDC ROC#2 Sl#5 Ch#88 HDC pl#7 [X1] wire#73
+89, 7, 74            !TDC ROC#2 Sl#5 Ch#89 HDC pl#7 [X1] wire#74
+90, 7, 75            !TDC ROC#2 Sl#5 Ch#90 HDC pl#7 [X1] wire#75
+91, 7, 76	     !TDC ROC#2 Sl#5 Ch#91 HDC pl#7 [X1] wire#76
+92, 7, 77            !TDC ROC#2 Sl#5 Ch#92 HDC pl#7 [X1] wire#77
+93, 7, 78            !TDC ROC#2 Sl#5 Ch#93 HDC pl#7 [X1] wire#78
+94, 7, 79            !TDC ROC#2 Sl#5 Ch#94 HDC pl#7 [X1] wire#79
+95, 7, 80            !TDC ROC#2 Sl#5 Ch#95 HDC pl#7 [X1] wire#80
+Slot= 6
+0, 12, 33            !TDC ROC#2 Sl#6 Ch#0 HDC pl#12 [X2] wire#33
+1, 12, 34 	     !TDC ROC#2 Sl#6 Ch#1 HDC pl#12 [X2] wire#34
+2, 12, 35            !TDC ROC#2 Sl#6 Ch#2 HDC pl#12 [X2] wire#35
+3, 12, 36            !TDC ROC#2 Sl#6 Ch#3 HDC pl#12 [X2] wire#36
+4, 12, 37            !TDC ROC#2 Sl#6 Ch#4 HDC pl#12 [X2] wire#37
+5, 12, 38            !TDC ROC#2 Sl#6 Ch#5 HDC pl#12 [X2] wire#38
+6, 12, 39            !TDC ROC#2 Sl#6 Ch#6 HDC pl#12 [X2] wire#39
+7, 12, 40            !TDC ROC#2 Sl#6 Ch#7 HDC pl#12 [X2] wire#40
+8, 12, 41            !TDC ROC#2 Sl#6 Ch#8 HDC pl#12 [X2] wire#41
+9, 12, 42            !TDC ROC#2 Sl#6 Ch#9 HDC pl#12 [X2] wire#42
+10, 12, 43           !TDC ROC#2 Sl#6 Ch#10 HDC pl#12 [X2] wire#43
+11, 12, 44           !TDC ROC#2 Sl#6 Ch#11 HDC pl#12 [X2] wire#44
+12, 12, 45           !TDC ROC#2 Sl#6 Ch#12 HDC pl#12 [X2] wire#45
+13, 12, 46           !TDC ROC#2 Sl#6 Ch#13 HDC pl#12 [X2] wire#46
+14, 12, 47           !TDC ROC#2 Sl#6 Ch#14 HDC pl#12 [X2] wire#47
+15, 12, 48           !TDC ROC#2 Sl#6 Ch#15 HDC pl#12 [X2] wire#48
+16, 9, 30            !TDC ROC#2 Sl#6 Ch#16 HDC pl#9 [U] wire#30
+17, 9, 31            !TDC ROC#2 Sl#6 Ch#17 HDC pl#9 [U] wire#31
+18, 9, 32            !TDC ROC#2 Sl#6 Ch#18 HDC pl#9 [U] wire#32
+19, 9, 33            !TDC ROC#2 Sl#6 Ch#19 HDC pl#9 [U] wire#33
+20, 9, 34            !TDC ROC#2 Sl#6 Ch#20 HDC pl#9 [U] wire#34
+21, 9, 35            !TDC ROC#2 Sl#6 Ch#21 HDC pl#9 [U] wire#35
+22, 9, 36            !TDC ROC#2 Sl#6 Ch#22 HDC pl#9 [U] wire#36
+23, 9, 37            !TDC ROC#2 Sl#6 Ch#23 HDC pl#9 [U] wire#37
+24, 9, 38            !TDC ROC#2 Sl#6 Ch#24 HDC pl#9 [U] wire#38
+25, 9, 39            !TDC ROC#2 Sl#6 Ch#25 HDC pl#9 [U] wire#39
+26, 9, 40            !TDC ROC#2 Sl#6 Ch#26 HDC pl#9 [U] wire#40
+27, 9, 41            !TDC ROC#2 Sl#6 Ch#27 HDC pl#9 [U] wire#41
+28, 9, 42            !TDC ROC#2 Sl#6 Ch#28 HDC pl#9 [U] wire#42
+29, 9, 43            !TDC ROC#2 Sl#6 Ch#29 HDC pl#9 [U] wire#43
+30, 9, 44            !TDC ROC#2 Sl#6 Ch#30 HDC pl#9 [U] wire#44
+31, 9, 45            !TDC ROC#2 Sl#6 Ch#31 HDC pl#9 [U] wire#45
+32, 10, 46           !TDC ROC#2 Sl#6 Ch#32 HDC pl#10 [V] wire#46
+33, 10, 47           !TDC ROC#2 Sl#6 Ch#33 HDC pl#10 [V] wire#47
+34, 10, 48           !TDC ROC#2 Sl#6 Ch#34 HDC pl#10 [V] wire#48
+35, 10, 49           !TDC ROC#2 Sl#6 Ch#35 HDC pl#10 [V] wire#49
+36, 10, 50           !TDC ROC#2 Sl#6 Ch#36 HDC pl#10 [V] wire#50
+37, 10, 51           !TDC ROC#2 Sl#6 Ch#37 HDC pl#10 [V] wire#51
+38, 10, 52           !TDC ROC#2 Sl#6 Ch#38 HDC pl#10 [V] wire#52
+39, 10, 53           !TDC ROC#2 Sl#6 Ch#39 HDC pl#10 [V] wire#53
+40, 10, 54           !TDC ROC#2 Sl#6 Ch#40 HDC pl#10 [V] wire#54
+41, 10, 55           !TDC ROC#2 Sl#6 Ch#41 HDC pl#10 [V] wire#55
+42, 10, 56           !TDC ROC#2 Sl#6 Ch#42 HDC pl#10 [V] wire#56
+43, 10, 57           !TDC ROC#2 Sl#6 Ch#43 HDC pl#10 [V] wire#57
+44, 10, 58           !TDC ROC#2 Sl#6 Ch#44 HDC pl#10 [V] wire#58
+45, 10, 59           !TDC ROC#2 Sl#6 Ch#45 HDC pl#10 [V] wire#59
+46, 10, 60           !TDC ROC#2 Sl#6 Ch#46 HDC pl#10 [V] wire#60
+!47 !TDC ROC#2 Sl#6 Ch#47 HDC unused
+48, 7, 49           !TDC ROC#2 Sl#6 Ch#48 HDC pl#7 [X1] wire#49
+49, 7, 50           !TDC ROC#2 Sl#6 Ch#49 HDC pl#7 [X1] wire#50
+50, 7, 51           !TDC ROC#2 Sl#6 Ch#50 HDC pl#7 [X1] wire#51
+51, 7, 52           !TDC ROC#2 Sl#6 Ch#51 HDC pl#7 [X1] wire#52
+52, 7, 53           !TDC ROC#2 Sl#6 Ch#52 HDC pl#7 [X1] wire#53
+53, 7, 54           !TDC ROC#2 Sl#6 Ch#53 HDC pl#7 [X1] wire#54
+54, 7, 55           !TDC ROC#2 Sl#6 Ch#54 HDC pl#7 [X1] wire#55
+55, 7, 56           !TDC ROC#2 Sl#6 Ch#55 HDC pl#7 [X1] wire#56
+56, 7, 57           !TDC ROC#2 Sl#6 Ch#56 HDC pl#7 [X1] wire#57
+57, 7, 58           !TDC ROC#2 Sl#6 Ch#57 HDC pl#7 [X1] wire#58
+58, 7, 59           !TDC ROC#2 Sl#6 Ch#58 HDC pl#7 [X1] wire#59
+59, 7, 60           !TDC ROC#2 Sl#6 Ch#59 HDC pl#7 [X1] wire#60
+60, 7, 61           !TDC ROC#2 Sl#6 Ch#60 HDC pl#7 [X1] wire#61
+61, 7, 62           !TDC ROC#2 Sl#6 Ch#61 HDC pl#7 [X1] wire#62
+62, 7, 63           !TDC ROC#2 Sl#6 Ch#62 HDC pl#7 [X1] wire#63
+63, 7, 64           !TDC ROC#2 Sl#6 Ch#63 HDC pl#7 [X1] wire#64
+64, 12, 49          !TDC ROC#2 Sl#6 Ch#64 HDC pl#12 [X2] wire#49
+65, 12, 50          !TDC ROC#2 Sl#6 Ch#65 HDC pl#12 [X2] wire#50
+66, 12, 51          !TDC ROC#2 Sl#6 Ch#66 HDC pl#12 [X2] wire#51
+67, 12, 52          !TDC ROC#2 Sl#6 Ch#67 HDC pl#12 [X2] wire#52
+68, 12, 53          !TDC ROC#2 Sl#6 Ch#68 HDC pl#12 [X2] wire#53
+69, 12, 54          !TDC ROC#2 Sl#6 Ch#69 HDC pl#12 [X2] wire#54
+70, 12, 55          !TDC ROC#2 Sl#6 Ch#70 HDC pl#12 [X2] wire#55
+71, 12, 56          !TDC ROC#2 Sl#6 Ch#71 HDC pl#12 [X2] wire#56
+72, 12, 57          !TDC ROC#2 Sl#6 Ch#72 HDC pl#12 [X2] wire#57
+73, 12, 58          !TDC ROC#2 Sl#6 Ch#73 HDC pl#12 [X2] wire#58
+74, 12, 59          !TDC ROC#2 Sl#6 Ch#74 HDC pl#12 [X2] wire#59
+75, 12, 60          !TDC ROC#2 Sl#6 Ch#75 HDC pl#12 [X2] wire#60
+76, 12, 61          !TDC ROC#2 Sl#6 Ch#76 HDC pl#12 [X2] wire#61
+77, 12, 62          !TDC ROC#2 Sl#6 Ch#77 HDC pl#12 [X2] wire#62
+78, 12, 63          !TDC ROC#2 Sl#6 Ch#78 HDC pl#12 [X2] wire#63
+79, 12, 64          !TDC ROC#2 Sl#6 Ch#79 HDC pl#12 [X2] wire#64
+80, 10, 30          !TDC ROC#2 Sl#6 Ch#80 HDC pl#10 [V] wire#30
+81, 10, 31          !TDC ROC#2 Sl#6 Ch#81 HDC pl#10 [V] wire#31
+82, 10, 32          !TDC ROC#2 Sl#6 Ch#82 HDC pl#10 [V] wire#32
+83, 10, 33          !TDC ROC#2 Sl#6 Ch#83 HDC pl#10 [V] wire#33
+84, 10, 34          !TDC ROC#2 Sl#6 Ch#84 HDC pl#10 [V] wire#34
+85, 10, 35          !TDC ROC#2 Sl#6 Ch#85 HDC pl#10 [V] wire#35
+86, 10, 36          !TDC ROC#2 Sl#6 Ch#86 HDC pl#10 [V] wire#36
+87, 10, 37          !TDC ROC#2 Sl#6 Ch#87 HDC pl#10 [V] wire#37
+88, 10, 38          !TDC ROC#2 Sl#6 Ch#88 HDC pl#10 [V] wire#38
+89, 10, 39          !TDC ROC#2 Sl#6 Ch#89 HDC pl#10 [V] wire#39
+90, 10, 40          !TDC ROC#2 Sl#6 Ch#90 HDC pl#10 [V] wire#40
+91, 10, 41          !TDC ROC#2 Sl#6 Ch#91 HDC pl#10 [V] wire#41
+92, 10, 42          !TDC ROC#2 Sl#6 Ch#92 HDC pl#10 [V] wire#42
+93, 10, 43          !TDC ROC#2 Sl#6 Ch#93 HDC pl#10 [V] wire#43
+94, 10, 44          !TDC ROC#2 Sl#6 Ch#94 HDC pl#10 [V] wire#44
+95, 10, 45          !TDC ROC#2 Sl#6 Ch#95 HDC pl#10 [V] wire#45
+Slot= 8
+0, 9, 46            !TDC ROC#2 Sl#8 Ch#0 HDC pl#9 [U] wire#46
+1, 9, 47            !TDC ROC#2 Sl#8 Ch#1 HDC pl#9 [U] wire#47
+2, 9, 48            !TDC ROC#2 Sl#8 Ch#2 HDC pl#9 [U] wire#48
+3, 9, 49            !TDC ROC#2 Sl#8 Ch#3 HDC pl#9 [U] wire#49
+4, 9, 50            !TDC ROC#2 Sl#8 Ch#4 HDC pl#9 [U] wire#50
+5, 9, 51            !TDC ROC#2 Sl#8 Ch#5 HDC pl#9 [U] wire#51
+6, 9, 52            !TDC ROC#2 Sl#8 Ch#6 HDC pl#9 [U] wire#52
+7, 9, 53            !TDC ROC#2 Sl#8 Ch#7 HDC pl#9 [U] wire#53
+8, 9, 54            !TDC ROC#2 Sl#8 Ch#8 HDC pl#9 [U] wire#54
+9, 9, 55            !TDC ROC#2 Sl#8 Ch#9 HDC pl#9 [U] wire#55
+10, 9, 56           !TDC ROC#2 Sl#8 Ch#10 HDC pl#9 [U] wire#56
+11, 9, 57           !TDC ROC#2 Sl#8 Ch#11 HDC pl#9 [U] wire#57
+12, 9, 58           !TDC ROC#2 Sl#8 Ch#12 HDC pl#9 [U] wire#58
+13, 9, 59           !TDC ROC#2 Sl#8 Ch#13 HDC pl#9 [U] wire#59
+14, 9, 60           !TDC ROC#2 Sl#8 Ch#14 HDC pl#9 [U] wire#60
+!15 !TDC ROC#2 Sl#8 Ch#15 unused
+16, 7, 33           !TDC ROC#2 Sl#8 Ch#16 HDC pl#7 [X1] wire#33
+17, 7, 34           !TDC ROC#2 Sl#8 Ch#17 HDC pl#7 [X1] wire#34
+18, 7, 35           !TDC ROC#2 Sl#8 Ch#18 HDC pl#7 [X1] wire#35
+19, 7, 36           !TDC ROC#2 Sl#8 Ch#19 HDC pl#7 [X1] wire#36
+20, 7, 37           !TDC ROC#2 Sl#8 Ch#20 HDC pl#7 [X1] wire#37
+21, 7, 38           !TDC ROC#2 Sl#8 Ch#21 HDC pl#7 [X1] wire#38
+22, 7, 39           !TDC ROC#2 Sl#8 Ch#22 HDC pl#7 [X1] wire#39
+23, 7, 40           !TDC ROC#2 Sl#8 Ch#23 HDC pl#7 [X1] wire#40
+24, 7, 41           !TDC ROC#2 Sl#8 Ch#24 HDC pl#7 [X1] wire#41
+25, 7, 42           !TDC ROC#2 Sl#8 Ch#25 HDC pl#7 [X1] wire#42
+26, 7, 43           !TDC ROC#2 Sl#8 Ch#26 HDC pl#7 [X1] wire#43
+27, 7, 44           !TDC ROC#2 Sl#8 Ch#27 HDC pl#7 [X1] wire#44
+28, 7, 45           !TDC ROC#2 Sl#8 Ch#28 HDC pl#7 [X1] wire#45
+29, 7, 46           !TDC ROC#2 Sl#8 Ch#29 HDC pl#7 [X1] wire#46
+30, 7, 47           !TDC ROC#2 Sl#8 Ch#30 HDC pl#7 [X1] wire#47
+31, 7, 48           !TDC ROC#2 Sl#8 Ch#31 HDC pl#7 [X1] wire#48
+32, 12, 65          !TDC ROC#2 Sl#8 Ch#32 HDC pl#12 [X2] wire#65
+33, 12, 66          !TDC ROC#2 Sl#8 Ch#33 HDC pl#12 [X2] wire#66
+34, 12, 67          !TDC ROC#2 Sl#8 Ch#34 HDC pl#12 [X2] wire#67
+35, 12, 68          !TDC ROC#2 Sl#8 Ch#35 HDC pl#12 [X2] wire#68
+36, 12, 69          !TDC ROC#2 Sl#8 Ch#36 HDC pl#12 [X2] wire#69
+37, 12, 70          !TDC ROC#2 Sl#8 Ch#37 HDC pl#12 [X2] wire#70
+38, 12, 71          !TDC ROC#2 Sl#8 Ch#38 HDC pl#12 [X2] wire#71
+39, 12, 72          !TDC ROC#2 Sl#8 Ch#39 HDC pl#12 [X2] wire#72
+40, 12, 73          !TDC ROC#2 Sl#8 Ch#40 HDC pl#12 [X2] wire#73
+41, 12, 74          !TDC ROC#2 Sl#8 Ch#41 HDC pl#12 [X2] wire#74
+42, 12, 75          !TDC ROC#2 Sl#8 Ch#42 HDC pl#12 [X2] wire#75
+43, 12, 76          !TDC ROC#2 Sl#8 Ch#43 HDC pl#12 [X2] wire#76
+44, 12, 77          !TDC ROC#2 Sl#8 Ch#44 HDC pl#12 [X2] wire#77
+45, 12, 78          !TDC ROC#2 Sl#8 Ch#45 HDC pl#12 [X2] wire#78
+46, 12, 79          !TDC ROC#2 Sl#8 Ch#46 HDC pl#12 [X2] wire#79
+47, 12, 80	    !TDC ROC#2 Sl#8 Ch#47 HDC pl#12 [X2] wire#80
+48, 9, 61           !TDC ROC#2 Sl#8 Ch#48 HDC pl#9 [U] wire#61
+49, 9, 62           !TDC ROC#2 Sl#8 Ch#49 HDC pl#9 [U] wire#62
+50, 9, 63           !TDC ROC#2 Sl#8 Ch#50 HDC pl#9 [U] wire#63
+51, 9, 64           !TDC ROC#2 Sl#8 Ch#51 HDC pl#9 [U] wire#64
+52, 9, 65           !TDC ROC#2 Sl#8 Ch#52 HDC pl#9 [U] wire#65
+53, 9, 66           !TDC ROC#2 Sl#8 Ch#53 HDC pl#9 [U] wire#66
+54, 9, 67           !TDC ROC#2 Sl#8 Ch#54 HDC pl#9 [U] wire#67
+55, 9, 68           !TDC ROC#2 Sl#8 Ch#55 HDC pl#9 [U] wire#68
+56, 9, 69           !TDC ROC#2 Sl#8 Ch#56 HDC pl#9 [U] wire#69
+57, 9, 70           !TDC ROC#2 Sl#8 Ch#57 HDC pl#9 [U] wire#70
+58, 9, 71           !TDC ROC#2 Sl#8 Ch#58 HDC pl#9 [U] wire#71
+59, 9, 72           !TDC ROC#2 Sl#8 Ch#59 HDC pl#9 [U] wire#72
+60, 9, 73           !TDC ROC#2 Sl#8 Ch#60 HDC pl#9 [U] wire#73
+61, 9, 74           !TDC ROC#2 Sl#8 Ch#61 HDC pl#9 [U] wire#74
+62, 9, 75           !TDC ROC#2 Sl#8 Ch#62 HDC pl#9 [U] wire#75
+63, 9, 76           !TDC ROC#2 Sl#8 Ch#63 HDC pl#9 [U] wire#76
+64, 10, 15          !TDC ROC#2 Sl#8 Ch#64 HDC pl#10 [V] wire#15
+65, 10, 16          !TDC ROC#2 Sl#8 Ch#65 HDC pl#10 [V] wire#16
+66, 10, 17          !TDC ROC#2 Sl#8 Ch#66 HDC pl#10 [V] wire#17
+67, 10, 18          !TDC ROC#2 Sl#8 Ch#67 HDC pl#10 [V] wire#18
+68, 10, 19          !TDC ROC#2 Sl#8 Ch#68 HDC pl#10 [V] wire#19
+69, 10, 20          !TDC ROC#2 Sl#8 Ch#69 HDC pl#10 [V] wire#20
+70, 10, 21          !TDC ROC#2 Sl#8 Ch#70 HDC pl#10 [V] wire#21
+71, 10, 22          !TDC ROC#2 Sl#8 Ch#71 HDC pl#10 [V] wire#22
+72, 10, 23          !TDC ROC#2 Sl#8 Ch#72 HDC pl#10 [V] wire#23
+73, 10, 24          !TDC ROC#2 Sl#8 Ch#73 HDC pl#10 [V] wire#24
+74, 10, 25          !TDC ROC#2 Sl#8 Ch#74 HDC pl#10 [V] wire#25
+75, 10, 26          !TDC ROC#2 Sl#8 Ch#75 HDC pl#10 [V] wire#26
+76, 10, 27          !TDC ROC#2 Sl#8 Ch#76 HDC pl#10 [V] wire#27
+77, 10, 28          !TDC ROC#2 Sl#8 Ch#77 HDC pl#10 [V] wire#28
+78, 10, 29          !TDC ROC#2 Sl#8 Ch#78 HDC pl#10 [V] wire#29
+! 79 !TDC ROC#2 Sl#8 Ch#79 unused
+80, 7, 17           !TDC ROC#2 Sl#8 Ch#80 HDC pl#7 [X1] wire#17
+81, 7, 18           !TDC ROC#2 Sl#8 Ch#81 HDC pl#7 [X1] wire#18
+82, 7, 19           !TDC ROC#2 Sl#8 Ch#82 HDC pl#7 [X1] wire#19
+83, 7, 20           !TDC ROC#2 Sl#8 Ch#83 HDC pl#7 [X1] wire#20
+84, 7, 21           !TDC ROC#2 Sl#8 Ch#84 HDC pl#7 [X1] wire#21
+85, 7, 22           !TDC ROC#2 Sl#8 Ch#85 HDC pl#7 [X1] wire#22
+86, 7, 23           !TDC ROC#2 Sl#8 Ch#86 HDC pl#7 [X1] wire#23
+87, 7, 24           !TDC ROC#2 Sl#8 Ch#87 HDC pl#7 [X1] wire#24
+88, 7, 25           !TDC ROC#2 Sl#8 Ch#88 HDC pl#7 [X1] wire#25
+89, 7, 26           !TDC ROC#2 Sl#8 Ch#89 HDC pl#7 [X1] wire#26
+90, 7, 27           !TDC ROC#2 Sl#8 Ch#90 HDC pl#7 [X1] wire#27
+91, 7, 28           !TDC ROC#2 Sl#8 Ch#91 HDC pl#7 [X1] wire#28
+92, 7, 29           !TDC ROC#2 Sl#8 Ch#92 HDC pl#7 [X1] wire#29
+93, 7, 30           !TDC ROC#2 Sl#8 Ch#93 HDC pl#7 [X1] wire#30
+94, 7, 31           !TDC ROC#2 Sl#8 Ch#94 HDC pl#7 [X1] wire#31
+95, 7, 32           !TDC ROC#2 Sl#8 Ch#95 HDC pl#7 [X1] wire#32
+Slot= 9
+0, 12, 81           !TDC ROC#2 Sl#9 Ch#0 HDC pl#12 [X2] wire#81
+1, 12, 82           !TDC ROC#2 Sl#9 Ch#1 HDC pl#12 [X2] wire#82
+2, 12, 83           !TDC ROC#2 Sl#9 Ch#2 HDC pl#12 [X2] wire#83
+3, 12, 84           !TDC ROC#2 Sl#9 Ch#3 HDC pl#12 [X2] wire#84
+4, 12, 85           !TDC ROC#2 Sl#9 Ch#4 HDC pl#12 [X2] wire#85
+5, 12, 86           !TDC ROC#2 Sl#9 Ch#5 HDC pl#12 [X2] wire#86
+6, 12, 87           !TDC ROC#2 Sl#9 Ch#6 HDC pl#12 [X2] wire#87
+7, 12, 88           !TDC ROC#2 Sl#9 Ch#7 HDC pl#12 [X2] wire#88
+8, 12, 89           !TDC ROC#2 Sl#9 Ch#8 HDC pl#12 [X2] wire#89
+9, 12, 90           !TDC ROC#2 Sl#9 Ch#9 HDC pl#12 [X2] wire#90
+10, 12, 91          !TDC ROC#2 Sl#9 Ch#10 HDC pl#12 [X2] wire#91
+11, 12, 92          !TDC ROC#2 Sl#9 Ch#11 HDC pl#12 [X2] wire#92
+12, 12, 93          !TDC ROC#2 Sl#9 Ch#12 HDC pl#12 [X2] wire#93
+13, 12, 94          !TDC ROC#2 Sl#9 Ch#13 HDC pl#12 [X2] wire#94
+14, 12, 95          !TDC ROC#2 Sl#9 Ch#14 HDC pl#12 [X2] wire#95
+15, 12, 96          !TDC ROC#2 Sl#9 Ch#15 HDC pl#12 [X2] wire#96
+16, 9, 77           !TDC ROC#2 Sl#9 Ch#16 HDC pl#9 [U] wire#77
+17, 9, 78           !TDC ROC#2 Sl#9 Ch#17 HDC pl#9 [U] wire#78
+18, 9, 79           !TDC ROC#2 Sl#9 Ch#18 HDC pl#9 [U] wire#79
+19, 9, 80           !TDC ROC#2 Sl#9 Ch#19 HDC pl#9 [U] wire#80
+20, 9, 81           !TDC ROC#2 Sl#9 Ch#20 HDC pl#9 [U] wire#81
+21, 9, 82           !TDC ROC#2 Sl#9 Ch#21 HDC pl#9 [U] wire#82
+22, 9, 83           !TDC ROC#2 Sl#9 Ch#22 HDC pl#9 [U] wire#83
+23, 9, 84           !TDC ROC#2 Sl#9 Ch#23 HDC pl#9 [U] wire#84
+24, 9, 85           !TDC ROC#2 Sl#9 Ch#24 HDC pl#9 [U] wire#85
+25, 9, 86           !TDC ROC#2 Sl#9 Ch#25 HDC pl#9 [U] wire#86
+26, 9, 87           !TDC ROC#2 Sl#9 Ch#26 HDC pl#9 [U] wire#87
+27, 9, 88           !TDC ROC#2 Sl#9 Ch#27 HDC pl#9 [U] wire#88
+28, 9, 89           !TDC ROC#2 Sl#9 Ch#28 HDC pl#9 [U] wire#89
+29, 9, 90           !TDC ROC#2 Sl#9 Ch#29 HDC pl#9 [U] wire#90
+30, 9, 91           !TDC ROC#2 Sl#9 Ch#30 HDC pl#9 [U] wire#91
+!31 !TDC ROC#2 Sl#9 Ch#31 unused
+32, 12, 113         !TDC ROC#2 Sl#9 Ch#32 HDC pl#12 [X2] wire#113
+!33 !TDC ROC#2 Sl#9 Ch#33 unused
+34, 10, 1           !TDC ROC#2 Sl#9 Ch#34 HDC pl#10 [V] wire#1
+35, 10, 2           !TDC ROC#2 Sl#9 Ch#35 HDC pl#10 [V] wire#2
+36, 10, 3           !TDC ROC#2 Sl#9 Ch#36 HDC pl#10 [V] wire#3
+37, 10, 4           !TDC ROC#2 Sl#9 Ch#37 HDC pl#10 [V] wire#4
+38, 10, 5           !TDC ROC#2 Sl#9 Ch#38 HDC pl#10 [V] wire#5
+39, 10, 6           !TDC ROC#2 Sl#9 Ch#39 HDC pl#10 [V] wire#6
+40, 10, 7           !TDC ROC#2 Sl#9 Ch#40 HDC pl#10 [V] wire#7
+41, 10, 8           !TDC ROC#2 Sl#9 Ch#41 HDC pl#10 [V] wire#8
+42, 10, 9           !TDC ROC#2 Sl#9 Ch#42 HDC pl#10 [V] wire#9
+43, 10, 10          !TDC ROC#2 Sl#9 Ch#43 HDC pl#10 [V] wire#10
+44, 10, 11          !TDC ROC#2 Sl#9 Ch#44 HDC pl#10 [V] wire#11
+45, 10, 12          !TDC ROC#2 Sl#9 Ch#45 HDC pl#10 [V] wire#12
+46, 10, 13          !TDC ROC#2 Sl#9 Ch#46 HDC pl#10 [V] wire#13
+47, 10, 14          !TDC ROC#2 Sl#9 Ch#47 HDC pl#10 [V] wire#14
+48, 7, 1            !TDC ROC#2 Sl#9 Ch#48 HDC pl#7 [X1] wire#1
+49, 7, 2            !TDC ROC#2 Sl#9 Ch#49 HDC pl#7 [X1] wire#2
+50, 7, 3            !TDC ROC#2 Sl#9 Ch#50 HDC pl#7 [X1] wire#3
+51, 7, 4            !TDC ROC#2 Sl#9 Ch#51 HDC pl#7 [X1] wire#4
+52, 7, 5            !TDC ROC#2 Sl#9 Ch#52 HDC pl#7 [X1] wire#5
+53, 7, 6            !TDC ROC#2 Sl#9 Ch#53 HDC pl#7 [X1] wire#6
+54, 7, 7            !TDC ROC#2 Sl#9 Ch#54 HDC pl#7 [X1] wire#7
+55, 7, 8            !TDC ROC#2 Sl#9 Ch#55 HDC pl#7 [X1] wire#8
+56, 7, 9            !TDC ROC#2 Sl#9 Ch#56 HDC pl#7 [X1] wire#9
+57, 7, 10           !TDC ROC#2 Sl#9 Ch#57 HDC pl#7 [X1] wire#10
+58, 7, 11           !TDC ROC#2 Sl#9 Ch#58 HDC pl#7 [X1] wire#11
+59, 7, 12           !TDC ROC#2 Sl#9 Ch#59 HDC pl#7 [X1] wire#12
+60, 7, 13           !TDC ROC#2 Sl#9 Ch#60 HDC pl#7 [X1] wire#13
+61, 7, 14           !TDC ROC#2 Sl#9 Ch#61 HDC pl#7 [X1] wire#14
+62, 7, 15           !TDC ROC#2 Sl#9 Ch#62 HDC pl#7 [X1] wire#15
+63, 7, 16           !TDC ROC#2 Sl#9 Ch#63 HDC pl#7 [X1] wire#16
+64, 12, 97          !TDC ROC#2 Sl#9 Ch#64 HDC pl#12 [X2] wire#97
+65, 12, 98          !TDC ROC#2 Sl#9 Ch#65 HDC pl#12 [X2] wire#98
+66, 12, 99          !TDC ROC#2 Sl#9 Ch#66 HDC pl#12 [X2] wire#99
+67, 12, 100         !TDC ROC#2 Sl#9 Ch#67 HDC pl#12 [X2] wire#100
+68, 12, 101         !TDC ROC#2 Sl#9 Ch#68 HDC pl#12 [X2] wire#101
+69, 12, 102         !TDC ROC#2 Sl#9 Ch#69 HDC pl#12 [X2] wire#102
+70, 12, 103         !TDC ROC#2 Sl#9 Ch#70 HDC pl#12 [X2] wire#103
+71, 12, 104         !TDC ROC#2 Sl#9 Ch#71 HDC pl#12 [X2] wire#104
+72, 12, 105         !TDC ROC#2 Sl#9 Ch#72 HDC pl#12 [X2] wire#105
+73, 12, 106         !TDC ROC#2 Sl#9 Ch#73 HDC pl#12 [X2] wire#106
+74, 12, 107         !TDC ROC#2 Sl#9 Ch#74 HDC pl#12 [X2] wire#107
+75, 12, 108         !TDC ROC#2 Sl#9 Ch#75 HDC pl#12 [X2] wire#108
+76, 12, 109         !TDC ROC#2 Sl#9 Ch#76 HDC pl#12 [X2] wire#109
+77, 12, 110         !TDC ROC#2 Sl#9 Ch#77 HDC pl#12 [X2] wire#110
+78, 12, 111         !TDC ROC#2 Sl#9 Ch#78 HDC pl#12 [X2] wire#111
+79, 12, 112         !TDC ROC#2 Sl#9 Ch#79 HDC pl#12 [X2] wire#112
+80, 9, 92           !TDC ROC#2 Sl#9 Ch#80 HDC pl#9 [U] wire#92
+81, 9, 93           !TDC ROC#2 Sl#9 Ch#81 HDC pl#9 [U] wire#93
+82, 9, 94           !TDC ROC#2 Sl#9 Ch#82 HDC pl#9 [U] wire#94
+83, 9, 95           !TDC ROC#2 Sl#9 Ch#83 HDC pl#9 [U] wire#95
+84, 9, 96           !TDC ROC#2 Sl#9 Ch#84 HDC pl#9 [U] wire#96
+85, 9, 97           !TDC ROC#2 Sl#9 Ch#85 HDC pl#9 [U] wire#97
+86, 9, 98           !TDC ROC#2 Sl#9 Ch#86 HDC pl#9 [U] wire#98
+87, 9, 99           !TDC ROC#2 Sl#9 Ch#87 HDC pl#9 [U] wire#99
+88, 9, 100          !TDC ROC#2 Sl#9 Ch#88 HDC pl#9 [U] wire#100
+89, 9, 101          !TDC ROC#2 Sl#9 Ch#89 HDC pl#9 [U] wire#101
+90, 9, 102          !TDC ROC#2 Sl#9 Ch#90 HDC pl#9 [U] wire#102
+91, 9, 103          !TDC ROC#2 Sl#9 Ch#91 HDC pl#9 [U] wire#103
+92, 9, 104          !TDC ROC#2 Sl#9 Ch#92 HDC pl#9 [U] wire#104
+93, 9, 105          !TDC ROC#2 Sl#9 Ch#93 HDC pl#9 [U] wire#105
+94, 9, 106          !TDC ROC#2 Sl#9 Ch#94 HDC pl#9 [U] wire#106
+95, 9, 107          !TDC ROC#2 Sl#9 Ch#95 HDC pl#9 [U] wire#107
+!
+!
+!                               2nd HDC chamber  planes1-6     
+Slot= 15
+0, 1, 1            !TDC ROC#2 Sl#11 Ch#0 HDC pl#7 [X1] wire#1
+1, 1, 2            !TDC ROC#2 Sl#11 Ch#1 HDC pl#7 [X1] wire#2
+2, 1, 3            !TDC ROC#2 Sl#11 Ch#2 HDC pl#7 [X1] wire#3
+3, 1, 4            !TDC ROC#2 Sl#11 Ch#3 HDC pl#7 [X1] wire#4
+4, 1, 5            !TDC ROC#2 Sl#11 Ch#4 HDC pl#7 [X1] wire#5
+5, 1, 6            !TDC ROC#2 Sl#11 Ch#5 HDC pl#7 [X1] wire#6
+6, 1, 7            !TDC ROC#2 Sl#11 Ch#6 HDC pl#7 [X1] wire#7
+7, 1, 8            !TDC ROC#2 Sl#11 Ch#7 HDC pl#7 [X1] wire#8
+8, 1, 9            !TDC ROC#2 Sl#11 Ch#8 HDC pl#7 [X1] wire#9
+9, 1, 10           !TDC ROC#2 Sl#11 Ch#9 HDC pl#7 [X1] wire#10
+10, 1, 11          !TDC ROC#2 Sl#11 Ch#10 HDC pl#7 [X1] wire#11
+11, 1, 12          !TDC ROC#2 Sl#11 Ch#11 HDC pl#7 [X1] wire#12
+12, 1, 13          !TDC ROC#2 Sl#11 Ch#12 HDC pl#7 [X1] wire#13
+13, 1, 14          !TDC ROC#2 Sl#11 Ch#13 HDC pl#7 [X1] wire#14
+14, 1, 15          !TDC ROC#2 Sl#11 Ch#14 HDC pl#7 [X1] wire#15
+15, 1, 16          !TDC ROC#2 Sl#11 Ch#15 HDC pl#7 [X1] wire#16
+16, 1, 17          !TDC ROC#2 Sl#11 Ch#16 HDC pl#7 [X1] wire#17
+17, 1, 18          !TDC ROC#2 Sl#11 Ch#17 HDC pl#7 [X1] wire#18
+18, 1, 19          !TDC ROC#2 Sl#11 Ch#18 HDC pl#7 [X1] wire#19
+19, 1, 20          !TDC ROC#2 Sl#11 Ch#19 HDC pl#7 [X1] wire#20
+20, 1, 21          !TDC ROC#2 Sl#11 Ch#20 HDC pl#7 [X1] wire#21
+21, 1, 22          !TDC ROC#2 Sl#11 Ch#21 HDC pl#7 [X1] wire#22
+22, 1, 23          !TDC ROC#2 Sl#11 Ch#22 HDC pl#7 [X1] wire#23
+23, 1, 24          !TDC ROC#2 Sl#11 Ch#23 HDC pl#7 [X1] wire#24
+24, 1, 25          !TDC ROC#2 Sl#11 Ch#24 HDC pl#7 [X1] wire#25
+25, 1, 26          !TDC ROC#2 Sl#11 Ch#25 HDC pl#7 [X1] wire#26
+26, 1, 27          !TDC ROC#2 Sl#11 Ch#26 HDC pl#7 [X1] wire#27
+27, 1, 28          !TDC ROC#2 Sl#11 Ch#27 HDC pl#7 [X1] wire#28
+28, 1, 29          !TDC ROC#2 Sl#11 Ch#28 HDC pl#7 [X1] wire#29
+29, 1, 30          !TDC ROC#2 Sl#11 Ch#29 HDC pl#7 [X1] wire#30
+30, 1, 31          !TDC ROC#2 Sl#11 Ch#30 HDC pl#7 [X1] wire#31
+31, 1, 32          !TDC ROC#2 Sl#11 Ch#31 HDC pl#7 [X1] wire#32
+32, 1, 33          !TDC ROC#2 Sl#11 Ch#32 HDC pl#7 [X1] wire#33
+33, 1, 34          !TDC ROC#2 Sl#11 Ch#33 HDC pl#7 [X1] wire#34
+34, 1, 35          !TDC ROC#2 Sl#11 Ch#34 HDC pl#7 [X1] wire#35
+35, 1, 36          !TDC ROC#2 Sl#11 Ch#35 HDC pl#7 [X1] wire#36
+36, 1, 37          !TDC ROC#2 Sl#11 Ch#36 HDC pl#7 [X1] wire#37
+37, 1, 38          !TDC ROC#2 Sl#11 Ch#37 HDC pl#7 [X1] wire#38
+38, 1, 39          !TDC ROC#2 Sl#11 Ch#38 HDC pl#7 [X1] wire#39
+39, 1, 40          !TDC ROC#2 Sl#11 Ch#39 HDC pl#7 [X1] wire#40
+40, 1, 41          !TDC ROC#2 Sl#11 Ch#40 HDC pl#7 [X1] wire#41
+41, 1, 42          !TDC ROC#2 Sl#11 Ch#41 HDC pl#7 [X1] wire#42
+42, 1, 43          !TDC ROC#2 Sl#11 Ch#42 HDC pl#7 [X1] wire#43
+43, 1, 44          !TDC ROC#2 Sl#11 Ch#43 HDC pl#7 [X1] wire#44
+44, 1, 45          !TDC ROC#2 Sl#11 Ch#44 HDC pl#7 [X1] wire#45
+45, 1, 46          !TDC ROC#2 Sl#11 Ch#45 HDC pl#7 [X1] wire#46
+46, 1, 47          !TDC ROC#2 Sl#11 Ch#46 HDC pl#7 [X1] wire#47
+47, 1, 48          !TDC ROC#2 Sl#11 Ch#47 HDC pl#7 [X1] wire#48
+48, 1, 49          !TDC ROC#2 Sl#11 Ch#48 HDC pl#7 [X1] wire#49
+49, 1, 50          !TDC ROC#2 Sl#11 Ch#49 HDC pl#7 [X1] wire#50
+50, 1, 51          !TDC ROC#2 Sl#11 Ch#50 HDC pl#7 [X1] wire#51
+51, 1, 52          !TDC ROC#2 Sl#11 Ch#51 HDC pl#7 [X1] wire#52
+52, 1, 53          !TDC ROC#2 Sl#11 Ch#52 HDC pl#7 [X1] wire#53
+53, 1, 54          !TDC ROC#2 Sl#11 Ch#53 HDC pl#7 [X1] wire#54
+54, 1, 55          !TDC ROC#2 Sl#11 Ch#54 HDC pl#7 [X1] wire#55
+55, 1, 56          !TDC ROC#2 Sl#11 Ch#55 HDC pl#7 [X1] wire#56
+56, 1, 57          !TDC ROC#2 Sl#11 Ch#56 HDC pl#7 [X1] wire#57
+57, 1, 58          !TDC ROC#2 Sl#11 Ch#57 HDC pl#7 [X1] wire#58
+58, 1, 59          !TDC ROC#2 Sl#11 Ch#58 HDC pl#7 [X1] wire#59
+59, 1, 60          !TDC ROC#2 Sl#11 Ch#59 HDC pl#7 [X1] wire#60
+60, 1, 61          !TDC ROC#2 Sl#11 Ch#60 HDC pl#7 [X1] wire#61
+61, 1, 62          !TDC ROC#2 Sl#11 Ch#61 HDC pl#7 [X1] wire#62
+62, 1, 63          !TDC ROC#2 Sl#11 Ch#62 HDC pl#7 [X1] wire#63
+63, 1, 64          !TDC ROC#2 Sl#11 Ch#63 HDC pl#7 [X1] wire#64
+64, 1, 65          !TDC ROC#2 Sl#11 Ch#64 HDC pl#7 [X1] wire#65
+65, 1, 66          !TDC ROC#2 Sl#11 Ch#65 HDC pl#7 [X1] wire#66
+66, 1, 67          !TDC ROC#2 Sl#11 Ch#66 HDC pl#7 [X1] wire#67
+67, 1, 68          !TDC ROC#2 Sl#11 Ch#67 HDC pl#7 [X1] wire#68
+68, 1, 69          !TDC ROC#2 Sl#11 Ch#68 HDC pl#7 [X1] wire#69
+69, 1, 70          !TDC ROC#2 Sl#11 Ch#69 HDC pl#7 [X1] wire#70
+70, 1, 71          !TDC ROC#2 Sl#11 Ch#70 HDC pl#7 [X1] wire#71
+71, 1, 72          !TDC ROC#2 Sl#11 Ch#71 HDC pl#7 [X1] wire#72
+72, 1, 73          !TDC ROC#2 Sl#11 Ch#72 HDC pl#7 [X1] wire#73
+73, 1, 74          !TDC ROC#2 Sl#11 Ch#73 HDC pl#7 [X1] wire#74
+74, 1, 75          !TDC ROC#2 Sl#11 Ch#74 HDC pl#7 [X1] wire#75
+75, 1, 76          !TDC ROC#2 Sl#11 Ch#75 HDC pl#7 [X1] wire#76
+76, 1, 77          !TDC ROC#2 Sl#11 Ch#76 HDC pl#7 [X1] wire#77
+77, 1, 78          !TDC ROC#2 Sl#11 Ch#77 HDC pl#7 [X1] wire#78
+78, 1, 79          !TDC ROC#2 Sl#11 Ch#78 HDC pl#7 [X1] wire#79
+79, 1, 80          !TDC ROC#2 Sl#11 Ch#79 HDC pl#7 [X1] wire#80
+80, 1, 81          !TDC ROC#2 Sl#11 Ch#80 HDC pl#7 [X1] wire#81
+81, 1, 82          !TDC ROC#2 Sl#11 Ch#81 HDC pl#7 [X1] wire#82
+82, 1, 83          !TDC ROC#2 Sl#11 Ch#82 HDC pl#7 [X1] wire#83
+83, 1, 84          !TDC ROC#2 Sl#11 Ch#83 HDC pl#7 [X1] wire#84
+84, 1, 85          !TDC ROC#2 Sl#11 Ch#84 HDC pl#7 [X1] wire#85
+85, 1, 86          !TDC ROC#2 Sl#11 Ch#85 HDC pl#7 [X1] wire#86
+86, 1, 87          !TDC ROC#2 Sl#11 Ch#86 HDC pl#7 [X1] wire#87
+87, 1, 88          !TDC ROC#2 Sl#11 Ch#87 HDC pl#7 [X1] wire#88
+88, 1, 89          !TDC ROC#2 Sl#11 Ch#88 HDC pl#7 [X1] wire#89
+89, 1, 90          !TDC ROC#2 Sl#11 Ch#89 HDC pl#7 [X1] wire#90
+90, 1, 91          !TDC ROC#2 Sl#11 Ch#90 HDC pl#7 [X1] wire#91
+91, 1, 92          !TDC ROC#2 Sl#11 Ch#91 HDC pl#7 [X1] wire#92
+92, 1, 93          !TDC ROC#2 Sl#11 Ch#92 HDC pl#7 [X1] wire#93
+93, 1, 94          !TDC ROC#2 Sl#11 Ch#93 HDC pl#7 [X1] wire#94
+94, 1, 95          !TDC ROC#2 Sl#11 Ch#94 HDC pl#7 [X1] wire#95
+95, 1, 96          !TDC ROC#2 Sl#11 Ch#95 HDC pl#7 [X1] wire#96
+Slot= 16
+0, 1, 97           !TDC ROC#2 Sl#12 Ch#0 HDC pl#7 [X1] wire#97
+1, 1, 98           !TDC ROC#2 Sl#12 Ch#1 HDC pl#7 [X1] wire#98
+2, 1, 99           !TDC ROC#2 Sl#12 Ch#2 HDC pl#7 [X1] wire#99
+3, 1, 100          !TDC ROC#2 Sl#12 Ch#3 HDC pl#7 [X1] wire#100
+4, 1, 101          !TDC ROC#2 Sl#12 Ch#4 HDC pl#7 [X1] wire#101
+5, 1, 102          !TDC ROC#2 Sl#12 Ch#5 HDC pl#7 [X1] wire#102
+6, 1, 103          !TDC ROC#2 Sl#12 Ch#6 HDC pl#7 [X1] wire#103
+7, 1, 104          !TDC ROC#2 Sl#12 Ch#7 HDC pl#7 [X1] wire#104
+8, 1, 105          !TDC ROC#2 Sl#12 Ch#8 HDC pl#7 [X1] wire#105
+9, 1, 106          !TDC ROC#2 Sl#12 Ch#9 HDC pl#7 [X1] wire#106
+10, 1, 107         !TDC ROC#2 Sl#12 Ch#10 HDC pl#7 [X1] wire#107
+11, 1, 108         !TDC ROC#2 Sl#12 Ch#11 HDC pl#7 [X1] wire#108
+12, 1, 109         !TDC ROC#2 Sl#12 Ch#12 HDC pl#7 [X1] wire#109
+13, 1, 110         !TDC ROC#2 Sl#12 Ch#13 HDC pl#7 [X1] wire#110
+14, 1, 111         !TDC ROC#2 Sl#12 Ch#14 HDC pl#7 [X1] wire#111
+15, 1, 112         !TDC ROC#2 Sl#12 Ch#15 HDC pl#7 [X1] wire#112
+16, 2, 1           !TDC ROC#2 Sl#12 Ch#16 HDC pl#8 [Y1] wire#1
+17, 2, 2           !TDC ROC#2 Sl#12 Ch#17 HDC pl#8 [Y1] wire#2
+18, 2, 3           !TDC ROC#2 Sl#12 Ch#18 HDC pl#8 [Y1] wire#3
+19, 2, 4           !TDC ROC#2 Sl#12 Ch#19 HDC pl#8 [Y1] wire#4
+20, 2, 5           !TDC ROC#2 Sl#12 Ch#20 HDC pl#8 [Y1] wire#5
+21, 2, 6           !TDC ROC#2 Sl#12 Ch#21 HDC pl#8 [Y1] wire#6
+22, 2, 7           !TDC ROC#2 Sl#12 Ch#22 HDC pl#8 [Y1] wire#7
+23, 2, 8           !TDC ROC#2 Sl#12 Ch#23 HDC pl#8 [Y1] wire#8
+24, 2, 9           !TDC ROC#2 Sl#12 Ch#24 HDC pl#8 [Y1] wire#9
+25, 2, 10          !TDC ROC#2 Sl#12 Ch#25 HDC pl#8 [Y1] wire#10
+26, 2, 11          !TDC ROC#2 Sl#12 Ch#26 HDC pl#8 [Y1] wire#11
+27, 2, 12          !TDC ROC#2 Sl#12 Ch#27 HDC pl#8 [Y1] wire#12
+28, 2, 13          !TDC ROC#2 Sl#12 Ch#28 HDC pl#8 [Y1] wire#13
+! 29  !TDC ROC#2 Sl#12 Ch#29 unused
+! 30  !TDC ROC#2 Sl#12 Ch#30 unused
+! 31  !TDC ROC#2 Sl#12 Ch#31 unused
+32, 2, 14          !TDC ROC#2 Sl#12 Ch#32 HDC pl#8 [Y1] wire#14
+33, 2, 15          !TDC ROC#2 Sl#12 Ch#33 HDC pl#8 [Y1] wire#15
+34, 2, 16          !TDC ROC#2 Sl#12 Ch#34 HDC pl#8 [Y1] wire#16
+35, 2, 17          !TDC ROC#2 Sl#12 Ch#35 HDC pl#8 [Y1] wire#17
+36, 2, 18          !TDC ROC#2 Sl#12 Ch#36 HDC pl#8 [Y1] wire#18
+37, 2, 19          !TDC ROC#2 Sl#12 Ch#37 HDC pl#8 [Y1] wire#19
+38, 2, 20          !TDC ROC#2 Sl#12 Ch#38 HDC pl#8 [Y1] wire#20
+39, 2, 21          !TDC ROC#2 Sl#12 Ch#39 HDC pl#8 [Y1] wire#21
+40, 2, 22          !TDC ROC#2 Sl#12 Ch#40 HDC pl#8 [Y1] wire#22
+41, 2, 23          !TDC ROC#2 Sl#12 Ch#41 HDC pl#8 [Y1] wire#23
+42, 2, 24          !TDC ROC#2 Sl#12 Ch#42 HDC pl#8 [Y1] wire#24
+43, 2, 25          !TDC ROC#2 Sl#12 Ch#43 HDC pl#8 [Y1] wire#25
+44, 2, 26          !TDC ROC#2 Sl#12 Ch#44 HDC pl#8 [Y1] wire#26
+! 45 !TDC ROC#2 Sl#12 Ch#45 unused
+! 46 !TDC ROC#2 Sl#12 Ch#46 unused
+! 47 !TDC ROC#2 Sl#12 Ch#47 unused
+48, 2, 27          !TDC ROC#2 Sl#12 Ch#48 HDC pl#8 [Y1] wire#27
+49, 2, 28          !TDC ROC#2 Sl#12 Ch#49 HDC pl#8 [Y1] wire#28
+50, 2, 29          !TDC ROC#2 Sl#12 Ch#50 HDC pl#8 [Y1] wire#29
+51, 2, 30          !TDC ROC#2 Sl#12 Ch#51 HDC pl#8 [Y1] wire#30
+52, 2, 31          !TDC ROC#2 Sl#12 Ch#52 HDC pl#8 [Y1] wire#31
+53, 2, 32          !TDC ROC#2 Sl#12 Ch#53 HDC pl#8 [Y1] wire#32
+54, 2, 33          !TDC ROC#2 Sl#12 Ch#54 HDC pl#8 [Y1] wire#33
+55, 2, 34          !TDC ROC#2 Sl#12 Ch#55 HDC pl#8 [Y1] wire#34
+56, 2, 35          !TDC ROC#2 Sl#12 Ch#56 HDC pl#8 [Y1] wire#35
+57, 2, 36          !TDC ROC#2 Sl#12 Ch#57 HDC pl#8 [Y1] wire#36
+58, 2, 37          !TDC ROC#2 Sl#12 Ch#58 HDC pl#8 [Y1] wire#37
+59, 2, 38          !TDC ROC#2 Sl#12 Ch#59 HDC pl#8 [Y1] wire#38
+60, 2, 39          !TDC ROC#2 Sl#12 Ch#60 HDC pl#8 [Y1] wire#39
+! 61 !TDC ROC#2 Sl#12 Ch#61 unused
+! 62 !TDC ROC#2 Sl#12 Ch#62 unused
+! 63 !TDC ROC#2 Sl#12 Ch#63 unused
+64, 2, 40          !TDC ROC#2 Sl#12 Ch#64 HDC pl#8 [Y1] wire#40
+65, 2, 41          !TDC ROC#2 Sl#12 Ch#65 HDC pl#8 [Y1] wire#41
+66, 2, 42          !TDC ROC#2 Sl#12 Ch#66 HDC pl#8 [Y1] wire#42
+67, 2, 43          !TDC ROC#2 Sl#12 Ch#67 HDC pl#8 [Y1] wire#43
+68, 2, 44          !TDC ROC#2 Sl#12 Ch#68 HDC pl#8 [Y1] wire#44
+69, 2, 45          !TDC ROC#2 Sl#12 Ch#69 HDC pl#8 [Y1] wire#45
+70, 2, 46          !TDC ROC#2 Sl#12 Ch#70 HDC pl#8 [Y1] wire#46
+71, 2, 47          !TDC ROC#2 Sl#12 Ch#71 HDC pl#8 [Y1] wire#47
+72, 2, 48          !TDC ROC#2 Sl#12 Ch#72 HDC pl#8 [Y1] wire#48
+73, 2, 49          !TDC ROC#2 Sl#12 Ch#73 HDC pl#8 [Y1] wire#49
+74, 2, 50          !TDC ROC#2 Sl#12 Ch#74 HDC pl#8 [Y1] wire#50
+75, 2, 51          !TDC ROC#2 Sl#12 Ch#75 HDC pl#8 [Y1] wire#51
+76, 2, 52          !TDC ROC#2 Sl#12 Ch#76 HDC pl#8 [Y1] wire#52
+! 77 !TDC ROC#2 Sl#12 Ch#77 unused
+! 78 !TDC ROC#2 Sl#12 Ch#78 unused
+! 79 !TDC ROC#2 Sl#12 Ch#79 unused
+80, 1, 113         !TDC ROC#2 Sl#12 Ch#80 HDC pl#7 [X1] wire#113
+! 81 !TDC ROC#2 Sl#12 Ch#81 unused
+82, 3, 1           !TDC ROC#2 Sl#12 Ch#82 HDC pl#9 [U] wire#1
+83, 3, 2           !TDC ROC#2 Sl#12 Ch#83 HDC pl#9 [U] wire#2
+84, 3, 3           !TDC ROC#2 Sl#12 Ch#84 HDC pl#9 [U] wire#3
+85, 3, 4           !TDC ROC#2 Sl#12 Ch#85 HDC pl#9 [U] wire#4
+86, 3, 5           !TDC ROC#2 Sl#12 Ch#86 HDC pl#9 [U] wire#5
+87, 3, 6           !TDC ROC#2 Sl#12 Ch#87 HDC pl#9 [U] wire#6
+88, 3, 7           !TDC ROC#2 Sl#12 Ch#88 HDC pl#9 [U] wire#7
+89, 3, 8           !TDC ROC#2 Sl#12 Ch#89 HDC pl#9 [U] wire#8
+90, 3, 9           !TDC ROC#2 Sl#12 Ch#90 HDC pl#9 [U] wire#9
+91, 3, 10          !TDC ROC#2 Sl#12 Ch#91 HDC pl#9 [U] wire#10
+92, 3, 11          !TDC ROC#2 Sl#12 Ch#92 HDC pl#9 [U] wire#11
+93, 3, 12          !TDC ROC#2 Sl#12 Ch#93 HDC pl#9 [U] wire#12
+94, 3, 13          !TDC ROC#2 Sl#12 Ch#94 HDC pl#9 [U] wire#13
+95, 3, 14          !TDC ROC#2 Sl#12 Ch#95 HDC pl#9 [U] wire#14
+Slot= 18
+0, 3, 15           !TDC ROC#2 Sl#14 Ch#0 HDC pl#9 [U] wire#15
+1, 3, 16           !TDC ROC#2 Sl#14 Ch#1 HDC pl#9 [U] wire#16
+2, 3, 17           !TDC ROC#2 Sl#14 Ch#2 HDC pl#9 [U] wire#17
+3, 3, 18           !TDC ROC#2 Sl#14 Ch#3 HDC pl#9 [U] wire#18
+4, 3, 19           !TDC ROC#2 Sl#14 Ch#4 HDC pl#9 [U] wire#19
+5, 3, 20           !TDC ROC#2 Sl#14 Ch#5 HDC pl#9 [U] wire#20
+6, 3, 21           !TDC ROC#2 Sl#14 Ch#6 HDC pl#9 [U] wire#21
+7, 3, 22           !TDC ROC#2 Sl#14 Ch#7 HDC pl#9 [U] wire#22
+8, 3, 23           !TDC ROC#2 Sl#14 Ch#8 HDC pl#9 [U] wire#23
+9, 3, 24           !TDC ROC#2 Sl#14 Ch#9 HDC pl#9 [U] wire#24
+10, 3, 25          !TDC ROC#2 Sl#14 Ch#10 HDC pl#9 [U] wire#25
+11, 3, 26          !TDC ROC#2 Sl#14 Ch#11 HDC pl#9 [U] wire#26
+12, 3, 27          !TDC ROC#2 Sl#14 Ch#12 HDC pl#9 [U] wire#27
+13, 3, 28          !TDC ROC#2 Sl#14 Ch#13 HDC pl#9 [U] wire#28
+14, 3, 29          !TDC ROC#2 Sl#14 Ch#14 HDC pl#9 [U] wire#29
+! 15 !TDC ROC#2 Sl#14 Ch#15 unused
+16, 3, 30          !TDC ROC#2 Sl#14 Ch#16 HDC pl#9 [U] wire#30
+17, 3, 31          !TDC ROC#2 Sl#14 Ch#17 HDC pl#9 [U] wire#31
+18, 3, 32          !TDC ROC#2 Sl#14 Ch#18 HDC pl#9 [U] wire#32
+19, 3, 33          !TDC ROC#2 Sl#14 Ch#19 HDC pl#9 [U] wire#33
+20, 3, 34          !TDC ROC#2 Sl#14 Ch#20 HDC pl#9 [U] wire#34
+21, 3, 35          !TDC ROC#2 Sl#14 Ch#21 HDC pl#9 [U] wire#35
+22, 3, 36          !TDC ROC#2 Sl#14 Ch#22 HDC pl#9 [U] wire#36
+23, 3, 37          !TDC ROC#2 Sl#14 Ch#23 HDC pl#9 [U] wire#37
+24, 3, 38          !TDC ROC#2 Sl#14 Ch#24 HDC pl#9 [U] wire#38
+25, 3, 39          !TDC ROC#2 Sl#14 Ch#25 HDC pl#9 [U] wire#39
+26, 3, 40          !TDC ROC#2 Sl#14 Ch#26 HDC pl#9 [U] wire#40
+27, 3, 41          !TDC ROC#2 Sl#14 Ch#27 HDC pl#9 [U] wire#41
+28, 3, 42          !TDC ROC#2 Sl#14 Ch#28 HDC pl#9 [U] wire#42
+29, 3, 43          !TDC ROC#2 Sl#14 Ch#29 HDC pl#9 [U] wire#43
+30, 3, 44          !TDC ROC#2 Sl#14 Ch#30 HDC pl#9 [U] wire#44
+31, 3, 45          !TDC ROC#2 Sl#14 Ch#31 HDC pl#9 [U] wire#45
+32, 3, 46          !TDC ROC#2 Sl#14 Ch#32 HDC pl#9 [U] wire#46
+33, 3, 47          !TDC ROC#2 Sl#14 Ch#33 HDC pl#9 [U] wire#47
+34, 3, 48          !TDC ROC#2 Sl#14 Ch#34 HDC pl#9 [U] wire#48
+35, 3, 49          !TDC ROC#2 Sl#14 Ch#35 HDC pl#9 [U] wire#49
+36, 3, 50          !TDC ROC#2 Sl#14 Ch#36 HDC pl#9 [U] wire#50
+37, 3, 51          !TDC ROC#2 Sl#14 Ch#37 HDC pl#9 [U] wire#51
+38, 3, 52          !TDC ROC#2 Sl#14 Ch#38 HDC pl#9 [U] wire#52
+39, 3, 53          !TDC ROC#2 Sl#14 Ch#39 HDC pl#9 [U] wire#53
+40, 3, 54          !TDC ROC#2 Sl#14 Ch#40 HDC pl#9 [U] wire#54
+41, 3, 55          !TDC ROC#2 Sl#14 Ch#41 HDC pl#9 [U] wire#55
+42, 3, 56          !TDC ROC#2 Sl#14 Ch#42 HDC pl#9 [U] wire#56
+43, 3, 57          !TDC ROC#2 Sl#14 Ch#43 HDC pl#9 [U] wire#57
+44, 3, 58          !TDC ROC#2 Sl#14 Ch#44 HDC pl#9 [U] wire#58
+45, 3, 59          !TDC ROC#2 Sl#14 Ch#45 HDC pl#9 [U] wire#59
+46, 3, 60          !TDC ROC#2 Sl#14 Ch#46 HDC pl#9 [U] wire#60
+! 47 !TDC ROC#2 Sl#14 Ch#47 unused
+48, 3, 61          !TDC ROC#2 Sl#14 Ch#48 HDC pl#9 [U] wire#61
+49, 3, 62          !TDC ROC#2 Sl#14 Ch#49 HDC pl#9 [U] wire#62
+50, 3, 63          !TDC ROC#2 Sl#14 Ch#50 HDC pl#9 [U] wire#63
+51, 3, 64          !TDC ROC#2 Sl#14 Ch#51 HDC pl#9 [U] wire#64
+52, 3, 65          !TDC ROC#2 Sl#14 Ch#52 HDC pl#9 [U] wire#65
+53, 3, 66          !TDC ROC#2 Sl#14 Ch#53 HDC pl#9 [U] wire#66
+54, 3, 67          !TDC ROC#2 Sl#14 Ch#54 HDC pl#9 [U] wire#67
+55, 3, 68          !TDC ROC#2 Sl#14 Ch#55 HDC pl#9 [U] wire#68
+56, 3, 69          !TDC ROC#2 Sl#14 Ch#56 HDC pl#9 [U] wire#69
+57, 3, 70          !TDC ROC#2 Sl#14 Ch#57 HDC pl#9 [U] wire#70
+58, 3, 71          !TDC ROC#2 Sl#14 Ch#58 HDC pl#9 [U] wire#71
+59, 3, 72          !TDC ROC#2 Sl#14 Ch#59 HDC pl#9 [U] wire#72
+60, 3, 73          !TDC ROC#2 Sl#14 Ch#60 HDC pl#9 [U] wire#73
+61, 3, 74          !TDC ROC#2 Sl#14 Ch#61 HDC pl#9 [U] wire#74
+62, 3, 75          !TDC ROC#2 Sl#14 Ch#62 HDC pl#9 [U] wire#75
+63, 3, 76          !TDC ROC#2 Sl#14 Ch#63 HDC pl#9 [U] wire#76
+64, 3, 77          !TDC ROC#2 Sl#14 Ch#64 HDC pl#9 [U] wire#77
+65, 3, 78          !TDC ROC#2 Sl#14 Ch#65 HDC pl#9 [U] wire#78
+66, 3, 79          !TDC ROC#2 Sl#14 Ch#66 HDC pl#9 [U] wire#79
+67, 3, 80          !TDC ROC#2 Sl#14 Ch#67 HDC pl#9 [U] wire#80
+68, 3, 81          !TDC ROC#2 Sl#14 Ch#68 HDC pl#9 [U] wire#81
+69, 3, 82          !TDC ROC#2 Sl#14 Ch#69 HDC pl#9 [U] wire#82
+70, 3, 83          !TDC ROC#2 Sl#14 Ch#70 HDC pl#9 [U] wire#83
+71, 3, 84          !TDC ROC#2 Sl#14 Ch#71 HDC pl#9 [U] wire#84
+72, 3, 85          !TDC ROC#2 Sl#14 Ch#72 HDC pl#9 [U] wire#85
+73, 3, 86          !TDC ROC#2 Sl#14 Ch#73 HDC pl#9 [U] wire#86
+74, 3, 87          !TDC ROC#2 Sl#14 Ch#74 HDC pl#9 [U] wire#87
+75, 3, 88          !TDC ROC#2 Sl#14 Ch#75 HDC pl#9 [U] wire#88
+76, 3, 89          !TDC ROC#2 Sl#14 Ch#76 HDC pl#9 [U] wire#89
+77, 3, 90          !TDC ROC#2 Sl#14 Ch#77 HDC pl#9 [U] wire#90
+78, 3, 91          !TDC ROC#2 Sl#14 Ch#78 HDC pl#9 [U] wire#91
+!79, !unused
+80, 3, 92          !TDC ROC#2 Sl#14 Ch#80 HDC pl#9 [U] wire#92
+81, 3, 93          !TDC ROC#2 Sl#14 Ch#81 HDC pl#9 [U] wire#93
+82, 3, 94          !TDC ROC#2 Sl#14 Ch#82 HDC pl#9 [U] wire#94
+83, 3, 95          !TDC ROC#2 Sl#14 Ch#83 HDC pl#9 [U] wire#95
+84, 3, 96          !TDC ROC#2 Sl#14 Ch#84 HDC pl#9 [U] wire#96
+85, 3, 97          !TDC ROC#2 Sl#14 Ch#85 HDC pl#9 [U] wire#97
+86, 3, 98          !TDC ROC#2 Sl#14 Ch#86 HDC pl#9 [U] wire#98
+87, 3, 99          !TDC ROC#2 Sl#14 Ch#87 HDC pl#9 [U] wire#99
+88, 3, 100         !TDC ROC#2 Sl#14 Ch#88 HDC pl#9 [U] wire#100
+89, 3, 101         !TDC ROC#2 Sl#14 Ch#89 HDC pl#9 [U] wire#101
+90, 3, 102         !TDC ROC#2 Sl#14 Ch#90 HDC pl#9 [U] wire#102
+91, 3, 103         !TDC ROC#2 Sl#14 Ch#91 HDC pl#9 [U] wire#103
+92, 3, 104         !TDC ROC#2 Sl#14 Ch#92 HDC pl#9 [U] wire#104
+93, 3, 105         !TDC ROC#2 Sl#14 Ch#93 HDC pl#9 [U] wire#105
+94, 3, 106         !TDC ROC#2 Sl#14 Ch#94 HDC pl#9 [U] wire#106
+95, 3, 107         !TDC ROC#2 Sl#14 Ch#95 HDC pl#9 [U] wire#107
+Slot= 19
+0, 6, 113           !TDC ROC#2 Sl#15 Ch#0 HDC pl#12 [X2] wire#113
+!1,  !unused
+2, 4, 1           !TDC ROC#2 Sl#15 Ch#2 HDC pl#10 [V] wire#1
+3, 4, 2           !TDC ROC#2 Sl#15 Ch#3 HDC pl#10 [V] wire#2
+4, 4, 3           !TDC ROC#2 Sl#15 Ch#4 HDC pl#10 [V] wire#3
+5, 4, 4           !TDC ROC#2 Sl#15 Ch#5 HDC pl#10 [V] wire#4
+6, 4, 5           !TDC ROC#2 Sl#15 Ch#6 HDC pl#10 [V] wire#5
+7, 4, 6           !TDC ROC#2 Sl#15 Ch#7 HDC pl#10 [V] wire#6
+8, 4, 7           !TDC ROC#2 Sl#15 Ch#8 HDC pl#10 [V] wire#7
+9, 4, 8          !TDC ROC#2 Sl#15 Ch#9 HDC pl#10 [V] wire#8
+10, 4, 9          !TDC ROC#2 Sl#15 Ch#10 HDC pl#10 [V] wire#9
+11, 4, 10          !TDC ROC#2 Sl#15 Ch#11 HDC pl#10 [V] wire#10
+12, 4, 11          !TDC ROC#2 Sl#15 Ch#12 HDC pl#10 [V] wire#11
+13, 4, 12          !TDC ROC#2 Sl#15 Ch#13 HDC pl#10 [V] wire#12
+14, 4, 13          !TDC ROC#2 Sl#15 Ch#14 HDC pl#10 [V] wire#13
+15, 4, 14          !TDC ROC#2 Sl#15 Ch#15 HDC pl#10 [V] wire#14
+16, 4, 15          !TDC ROC#2 Sl#15 Ch#16 HDC pl#10 [V] wire#15
+17, 4, 16          !TDC ROC#2 Sl#15 Ch#17 HDC pl#10 [V] wire#16
+18, 4, 17          !TDC ROC#2 Sl#15 Ch#18 HDC pl#10 [V] wire#17
+19, 4, 18          !TDC ROC#2 Sl#15 Ch#19 HDC pl#10 [V] wire#18
+20, 4, 19          !TDC ROC#2 Sl#15 Ch#20 HDC pl#10 [V] wire#19
+21, 4, 20          !TDC ROC#2 Sl#15 Ch#21 HDC pl#10 [V] wire#20
+22, 4, 21          !TDC ROC#2 Sl#15 Ch#22 HDC pl#10 [V] wire#21
+23, 4, 22          !TDC ROC#2 Sl#15 Ch#23 HDC pl#10 [V] wire#22
+24, 4, 23          !TDC ROC#2 Sl#15 Ch#24 HDC pl#10 [V] wire#23
+25, 4, 24          !TDC ROC#2 Sl#15 Ch#25 HDC pl#10 [V] wire#24
+26, 4, 25          !TDC ROC#2 Sl#15 Ch#26 HDC pl#10 [V] wire#25
+27, 4, 26          !TDC ROC#2 Sl#15 Ch#27 HDC pl#10 [V] wire#26
+28, 4, 27          !TDC ROC#2 Sl#15 Ch#28 HDC pl#10 [V] wire#27
+29, 4, 28          !TDC ROC#2 Sl#15 Ch#29 HDC pl#10 [V] wire#28
+30, 4, 29          !TDC ROC#2 Sl#15 Ch#30 HDC pl#10 [V] wire#29
+! 31 !TDC ROC#2 Sl#15 Ch#31 unused
+32, 4, 30          !TDC ROC#2 Sl#15 Ch#32 HDC pl#10 [V] wire#30
+33, 4, 31          !TDC ROC#2 Sl#15 Ch#33 HDC pl#10 [V] wire#31
+34, 4, 32          !TDC ROC#2 Sl#15 Ch#34 HDC pl#10 [V] wire#32
+35, 4, 33          !TDC ROC#2 Sl#15 Ch#35 HDC pl#10 [V] wire#33
+36, 4, 34          !TDC ROC#2 Sl#15 Ch#36 HDC pl#10 [V] wire#34
+37, 4, 35          !TDC ROC#2 Sl#15 Ch#37 HDC pl#10 [V] wire#35
+38, 4, 36          !TDC ROC#2 Sl#15 Ch#38 HDC pl#10 [V] wire#36
+39, 4, 37          !TDC ROC#2 Sl#15 Ch#39 HDC pl#10 [V] wire#37
+40, 4, 38          !TDC ROC#2 Sl#15 Ch#40 HDC pl#10 [V] wire#38
+41, 4, 39          !TDC ROC#2 Sl#15 Ch#41 HDC pl#10 [V] wire#39
+42, 4, 40          !TDC ROC#2 Sl#15 Ch#42 HDC pl#10 [V] wire#40
+43, 4, 41          !TDC ROC#2 Sl#15 Ch#43 HDC pl#10 [V] wire#41
+44, 4, 42          !TDC ROC#2 Sl#15 Ch#44 HDC pl#10 [V] wire#42
+45, 4, 43          !TDC ROC#2 Sl#15 Ch#45 HDC pl#10 [V] wire#43
+46, 4, 44          !TDC ROC#2 Sl#15 Ch#46 HDC pl#10 [V] wire#44
+47, 4, 45          !TDC ROC#2 Sl#15 Ch#47 HDC pl#10 [V] wire#45
+48, 4, 46          !TDC ROC#2 Sl#15 Ch#48 HDC pl#10 [V] wire#46
+49, 4, 47          !TDC ROC#2 Sl#15 Ch#49 HDC pl#10 [V] wire#47
+50, 4, 48          !TDC ROC#2 Sl#15 Ch#50 HDC pl#10 [V] wire#48
+51, 4, 49          !TDC ROC#2 Sl#15 Ch#51 HDC pl#10 [V] wire#49
+52, 4, 50          !TDC ROC#2 Sl#15 Ch#52 HDC pl#10 [V] wire#50
+53, 4, 51          !TDC ROC#2 Sl#15 Ch#53 HDC pl#10 [V] wire#51
+54, 4, 52          !TDC ROC#2 Sl#15 Ch#54 HDC pl#10 [V] wire#52
+55, 4, 53          !TDC ROC#2 Sl#15 Ch#55 HDC pl#10 [V] wire#53
+56, 4, 54          !TDC ROC#2 Sl#15 Ch#56 HDC pl#10 [V] wire#54
+57, 4, 55          !TDC ROC#2 Sl#15 Ch#57 HDC pl#10 [V] wire#55
+58, 4, 56          !TDC ROC#2 Sl#15 Ch#58 HDC pl#10 [V] wire#56
+59, 4, 57          !TDC ROC#2 Sl#15 Ch#59 HDC pl#10 [V] wire#57
+60, 4, 58          !TDC ROC#2 Sl#15 Ch#60 HDC pl#10 [V] wire#58
+61, 4, 59          !TDC ROC#2 Sl#15 Ch#61 HDC pl#10 [V] wire#59
+62, 4, 60          !TDC ROC#2 Sl#15 Ch#62 HDC pl#10 [V] wire#60
+! 63 !TDC ROC#2 Sl#15 Ch#63 unused
+64, 4, 61          !TDC ROC#2 Sl#15 Ch#64 HDC pl#10 [V] wire#61
+65, 4, 62          !TDC ROC#2 Sl#15 Ch#65 HDC pl#10 [V] wire#62
+66, 4, 63          !TDC ROC#2 Sl#15 Ch#66 HDC pl#10 [V] wire#63
+67, 4, 64          !TDC ROC#2 Sl#15 Ch#67 HDC pl#10 [V] wire#64
+68, 4, 65          !TDC ROC#2 Sl#15 Ch#68 HDC pl#10 [V] wire#65
+69, 4, 66          !TDC ROC#2 Sl#15 Ch#69 HDC pl#10 [V] wire#66
+70, 4, 67          !TDC ROC#2 Sl#15 Ch#70 HDC pl#10 [V] wire#67
+71, 4, 68          !TDC ROC#2 Sl#15 Ch#71 HDC pl#10 [V] wire#68
+72, 4, 69          !TDC ROC#2 Sl#15 Ch#72 HDC pl#10 [V] wire#69
+73, 4, 70          !TDC ROC#2 Sl#15 Ch#73 HDC pl#10 [V] wire#70
+74, 4, 71          !TDC ROC#2 Sl#15 Ch#74 HDC pl#10 [V] wire#71
+75, 4, 72          !TDC ROC#2 Sl#15 Ch#75 HDC pl#10 [V] wire#72
+76, 4, 73          !TDC ROC#2 Sl#15 Ch#76 HDC pl#10 [V] wire#73
+77, 4, 74          !TDC ROC#2 Sl#15 Ch#77 HDC pl#10 [V] wire#74
+78, 4, 75          !TDC ROC#2 Sl#15 Ch#78 HDC pl#10 [V] wire#75
+79, 4, 76          !TDC ROC#2 Sl#15 Ch#79 HDC pl#10 [V] wire#76
+80, 4, 77          !TDC ROC#2 Sl#15 Ch#80 HDC pl#10 [V] wire#77
+81, 4, 78          !TDC ROC#2 Sl#15 Ch#81 HDC pl#10 [V] wire#78
+82, 4, 79          !TDC ROC#2 Sl#15 Ch#82 HDC pl#10 [V] wire#79
+83, 4, 80          !TDC ROC#2 Sl#15 Ch#83 HDC pl#10 [V] wire#80
+84, 4, 81          !TDC ROC#2 Sl#15 Ch#84 HDC pl#10 [V] wire#81
+85, 4, 82          !TDC ROC#2 Sl#15 Ch#85 HDC pl#10 [V] wire#82
+86, 4, 83          !TDC ROC#2 Sl#15 Ch#86 HDC pl#10 [V] wire#83
+87, 4, 84          !TDC ROC#2 Sl#15 Ch#87 HDC pl#10 [V] wire#84
+88, 4, 85          !TDC ROC#2 Sl#15 Ch#88 HDC pl#10 [V] wire#85
+89, 4, 86          !TDC ROC#2 Sl#15 Ch#89 HDC pl#10 [V] wire#86
+90, 4, 87          !TDC ROC#2 Sl#15 Ch#90 HDC pl#10 [V] wire#87
+91, 4, 88          !TDC ROC#2 Sl#15 Ch#91 HDC pl#10 [V] wire#88
+92, 4, 89          !TDC ROC#2 Sl#15 Ch#92 HDC pl#10 [V] wire#89
+93, 4, 90          !TDC ROC#2 Sl#15 Ch#93 HDC pl#10 [V] wire#90
+94, 4, 91          !TDC ROC#2 Sl#15 Ch#94 HDC pl#10 [V] wire#91
+! 95 !TDC ROC#2 Sl#15 Ch#95 unused
+Slot= 21
+0, 4, 92           !TDC ROC#2 Sl#17 Ch#0 HDC pl#10 [V] wire#92
+1, 4, 93           !TDC ROC#2 Sl#17 Ch#1 HDC pl#10 [V] wire#93
+2, 4, 94           !TDC ROC#2 Sl#17 Ch#2 HDC pl#10 [V] wire#94
+3, 4, 95           !TDC ROC#2 Sl#17 Ch#3 HDC pl#10 [V] wire#95
+4, 4, 96           !TDC ROC#2 Sl#17 Ch#4 HDC pl#10 [V] wire#96
+5, 4, 97           !TDC ROC#2 Sl#17 Ch#5 HDC pl#10 [V] wire#97
+6, 4, 98           !TDC ROC#2 Sl#17 Ch#6 HDC pl#10 [V] wire#98
+7, 4, 99           !TDC ROC#2 Sl#17 Ch#7 HDC pl#10 [V] wire#99
+8, 4, 100          !TDC ROC#2 Sl#17 Ch#8 HDC pl#10 [V] wire#100
+9, 4, 101          !TDC ROC#2 Sl#17 Ch#9 HDC pl#10 [V] wire#101
+10, 4, 102         !TDC ROC#2 Sl#17 Ch#10 HDC pl#10 [V] wire#102
+11, 4, 103         !TDC ROC#2 Sl#17 Ch#11 HDC pl#10 [V] wire#103
+12, 4, 104         !TDC ROC#2 Sl#17 Ch#12 HDC pl#10 [V] wire#104
+13, 4, 105         !TDC ROC#2 Sl#17 Ch#13 HDC pl#10 [V] wire#105
+14, 4, 106         !TDC ROC#2 Sl#17 Ch#14 HDC pl#10 [V] wire#106
+15, 4, 107         !TDC ROC#2 Sl#17 Ch#15 HDC pl#10 [V] wire#107
+16, 5, 1           !TDC ROC#2 Sl#17 Ch#16 HDC pl#11 [Y2] wire#1
+17, 5, 2           !TDC ROC#2 Sl#17 Ch#17 HDC pl#11 [Y2] wire#2
+18, 5, 3           !TDC ROC#2 Sl#17 Ch#18 HDC pl#11 [Y2] wire#3
+19, 5, 4           !TDC ROC#2 Sl#17 Ch#19 HDC pl#11 [Y2] wire#4
+20, 5, 5           !TDC ROC#2 Sl#17 Ch#20 HDC pl#11 [Y2] wire#5
+21, 5, 6           !TDC ROC#2 Sl#17 Ch#21 HDC pl#11 [Y2] wire#6
+22, 5, 7           !TDC ROC#2 Sl#17 Ch#22 HDC pl#11 [Y2] wire#7
+23, 5, 8           !TDC ROC#2 Sl#17 Ch#23 HDC pl#11 [Y2] wire#8
+24, 5, 9           !TDC ROC#2 Sl#17 Ch#24 HDC pl#11 [Y2] wire#9
+25, 5, 10          !TDC ROC#2 Sl#17 Ch#25 HDC pl#11 [Y2] wire#10
+26, 5, 11          !TDC ROC#2 Sl#17 Ch#26 HDC pl#11 [Y2] wire#11
+27, 5, 12          !TDC ROC#2 Sl#17 Ch#27 HDC pl#11 [Y2] wire#12
+28, 5, 13          !TDC ROC#2 Sl#17 Ch#28 HDC pl#11 [Y2] wire#13
+! 29 !TDC ROC#2 Sl#17 Ch#29 unused
+! 30 !TDC ROC#2 Sl#17 Ch#30 unused
+! 31 !TDC ROC#2 Sl#17 Ch#31 unused
+32, 5, 14          !TDC ROC#2 Sl#17 Ch#32 HDC pl#11 [Y2] wire#14
+33, 5, 15          !TDC ROC#2 Sl#17 Ch#33 HDC pl#11 [Y2] wire#15
+34, 5, 16          !TDC ROC#2 Sl#17 Ch#34 HDC pl#11 [Y2] wire#16
+35, 5, 17          !TDC ROC#2 Sl#17 Ch#35 HDC pl#11 [Y2] wire#17
+36, 5, 18          !TDC ROC#2 Sl#17 Ch#36 HDC pl#11 [Y2] wire#18
+37, 5, 19          !TDC ROC#2 Sl#17 Ch#37 HDC pl#11 [Y2] wire#19
+38, 5, 20          !TDC ROC#2 Sl#17 Ch#38 HDC pl#11 [Y2] wire#20
+39, 5, 21          !TDC ROC#2 Sl#17 Ch#39 HDC pl#11 [Y2] wire#21
+40, 5, 22          !TDC ROC#2 Sl#17 Ch#40 HDC pl#11 [Y2] wire#22
+41, 5, 23          !TDC ROC#2 Sl#17 Ch#41 HDC pl#11 [Y2] wire#23
+42, 5, 24          !TDC ROC#2 Sl#17 Ch#42 HDC pl#11 [Y2] wire#24
+43, 5, 25          !TDC ROC#2 Sl#17 Ch#43 HDC pl#11 [Y2] wire#25
+44, 5, 26          !TDC ROC#2 Sl#17 Ch#44 HDC pl#11 [Y2] wire#26
+! 45 !TDC ROC#2 Sl#17 Ch#45 unused
+! 46 !TDC ROC#2 Sl#17 Ch#46 unused
+! 47 !TDC ROC#2 Sl#17 Ch#47 unused
+48, 5, 27          !TDC ROC#2 Sl#17 Ch#48 HDC pl#11 [Y2] wire#27
+49, 5, 28          !TDC ROC#2 Sl#17 Ch#49 HDC pl#11 [Y2] wire#28
+50, 5, 29          !TDC ROC#2 Sl#17 Ch#50 HDC pl#11 [Y2] wire#29
+51, 5, 30          !TDC ROC#2 Sl#17 Ch#51 HDC pl#11 [Y2] wire#30
+52, 5, 31          !TDC ROC#2 Sl#17 Ch#52 HDC pl#11 [Y2] wire#31
+53, 5, 32          !TDC ROC#2 Sl#17 Ch#53 HDC pl#11 [Y2] wire#32
+54, 5, 33          !TDC ROC#2 Sl#17 Ch#54 HDC pl#11 [Y2] wire#33
+55, 5, 34          !TDC ROC#2 Sl#17 Ch#55 HDC pl#11 [Y2] wire#34
+56, 5, 35          !TDC ROC#2 Sl#17 Ch#56 HDC pl#11 [Y2] wire#35
+57, 5, 36          !TDC ROC#2 Sl#17 Ch#57 HDC pl#11 [Y2] wire#36
+58, 5, 37          !TDC ROC#2 Sl#17 Ch#58 HDC pl#11 [Y2] wire#37
+59, 5, 38          !TDC ROC#2 Sl#17 Ch#59 HDC pl#11 [Y2] wire#38
+60, 5, 39          !TDC ROC#2 Sl#17 Ch#60 HDC pl#11 [Y2] wire#39
+! 61 !TDC ROC#2 Sl#17 Ch#61 unused
+! 62 !TDC ROC#2 Sl#17 Ch#62 unused
+! 63 !TDC ROC#2 Sl#17 Ch#63 unused
+! 64 !TDC ROC#2 Sl#17 Ch#64 unused?????   JV 11/11/97
+65, 5, 40          !TDC ROC#2 Sl#17 Ch#64 HDC pl#11 [Y2] wire#40
+66, 5, 41          !TDC ROC#2 Sl#17 Ch#65 HDC pl#11 [Y2] wire#41
+67, 5, 42          !TDC ROC#2 Sl#17 Ch#66 HDC pl#11 [Y2] wire#42
+68, 5, 43          !TDC ROC#2 Sl#17 Ch#67 HDC pl#11 [Y2] wire#43
+69, 5, 44          !TDC ROC#2 Sl#17 Ch#68 HDC pl#11 [Y2] wire#44
+70, 5, 45          !TDC ROC#2 Sl#17 Ch#69 HDC pl#11 [Y2] wire#45
+71, 5, 46          !TDC ROC#2 Sl#17 Ch#70 HDC pl#11 [Y2] wire#46
+72, 5, 47          !TDC ROC#2 Sl#17 Ch#71 HDC pl#11 [Y2] wire#47
+73, 5, 48          !TDC ROC#2 Sl#17 Ch#72 HDC pl#11 [Y2] wire#48
+74, 5, 49          !TDC ROC#2 Sl#17 Ch#73 HDC pl#11 [Y2] wire#49
+75, 5, 50          !TDC ROC#2 Sl#17 Ch#74 HDC pl#11 [Y2] wire#50
+76, 5, 51          !TDC ROC#2 Sl#17 Ch#75 HDC pl#11 [Y2] wire#51
+77, 5, 52          !TDC ROC#2 Sl#17 Ch#76 HDC pl#11 [Y2] wire#52
+! 77 !TDC ROC#2 Sl#17 Ch#77 unused
+! 78 !TDC ROC#2 Sl#17 Ch#78 unused
+! 79 !TDC ROC#2 Sl#17 Ch#79 unused
+80, 6, 1           !TDC ROC#2 Sl#17 Ch#80 HDC pl#12 [X2] wire#1
+81, 6, 2           !TDC ROC#2 Sl#17 Ch#81 HDC pl#12 [X2] wire#2
+82, 6, 3           !TDC ROC#2 Sl#17 Ch#82 HDC pl#12 [X2] wire#3
+83, 6, 4           !TDC ROC#2 Sl#17 Ch#83 HDC pl#12 [X2] wire#4
+84, 6, 5           !TDC ROC#2 Sl#17 Ch#84 HDC pl#12 [X2] wire#5
+85, 6, 6           !TDC ROC#2 Sl#17 Ch#85 HDC pl#12 [X2] wire#6
+86, 6, 7           !TDC ROC#2 Sl#17 Ch#86 HDC pl#12 [X2] wire#7
+87, 6, 8           !TDC ROC#2 Sl#17 Ch#87 HDC pl#12 [X2] wire#8
+88, 6, 9           !TDC ROC#2 Sl#17 Ch#88 HDC pl#12 [X2] wire#9
+89, 6, 10          !TDC ROC#2 Sl#17 Ch#89 HDC pl#12 [X2] wire#10
+90, 6, 11          !TDC ROC#2 Sl#17 Ch#90 HDC pl#12 [X2] wire#11
+91, 6, 12          !TDC ROC#2 Sl#17 Ch#91 HDC pl#12 [X2] wire#12
+92, 6, 13          !TDC ROC#2 Sl#17 Ch#92 HDC pl#12 [X2] wire#13
+93, 6, 14          !TDC ROC#2 Sl#17 Ch#93 HDC pl#12 [X2] wire#14
+94, 6, 15          !TDC ROC#2 Sl#17 Ch#94 HDC pl#12 [X2] wire#15
+95, 6, 16          !TDC ROC#2 Sl#17 Ch#95 HDC pl#12 [X2] wire#16
+Slot= 22
+0, 6, 17           !TDC ROC#2 Sl#18 Ch#0 HDC pl#12 [X2] wire#17
+1, 6, 18           !TDC ROC#2 Sl#18 Ch#1 HDC pl#12 [X2] wire#18
+2, 6, 19           !TDC ROC#2 Sl#18 Ch#2 HDC pl#12 [X2] wire#19
+3, 6, 20           !TDC ROC#2 Sl#18 Ch#3 HDC pl#12 [X2] wire#20
+4, 6, 21           !TDC ROC#2 Sl#18 Ch#4 HDC pl#12 [X2] wire#21
+5, 6, 22           !TDC ROC#2 Sl#18 Ch#5 HDC pl#12 [X2] wire#22
+6, 6, 23           !TDC ROC#2 Sl#18 Ch#6 HDC pl#12 [X2] wire#23
+7, 6, 24           !TDC ROC#2 Sl#18 Ch#7 HDC pl#12 [X2] wire#24
+8, 6, 25           !TDC ROC#2 Sl#18 Ch#8 HDC pl#12 [X2] wire#25
+9, 6, 26           !TDC ROC#2 Sl#18 Ch#9 HDC pl#12 [X2] wire#26
+10, 6, 27          !TDC ROC#2 Sl#18 Ch#10 HDC pl#12 [X2] wire#27
+11, 6, 28          !TDC ROC#2 Sl#18 Ch#11 HDC pl#12 [X2] wire#28
+12, 6, 29          !TDC ROC#2 Sl#18 Ch#12 HDC pl#12 [X2] wire#29
+13, 6, 30          !TDC ROC#2 Sl#18 Ch#13 HDC pl#12 [X2] wire#30
+14, 6, 31          !TDC ROC#2 Sl#18 Ch#14 HDC pl#12 [X2] wire#31
+15, 6, 32          !TDC ROC#2 Sl#18 Ch#15 HDC pl#12 [X2] wire#32
+16, 6, 33          !TDC ROC#2 Sl#18 Ch#16 HDC pl#12 [X2] wire#33
+17, 6, 34          !TDC ROC#2 Sl#18 Ch#17 HDC pl#12 [X2] wire#34
+18, 6, 35          !TDC ROC#2 Sl#18 Ch#18 HDC pl#12 [X2] wire#35
+19, 6, 36          !TDC ROC#2 Sl#18 Ch#19 HDC pl#12 [X2] wire#36
+20, 6, 37          !TDC ROC#2 Sl#18 Ch#20 HDC pl#12 [X2] wire#37
+21, 6, 38          !TDC ROC#2 Sl#18 Ch#21 HDC pl#12 [X2] wire#38
+22, 6, 39          !TDC ROC#2 Sl#18 Ch#22 HDC pl#12 [X2] wire#39
+23, 6, 40          !TDC ROC#2 Sl#18 Ch#23 HDC pl#12 [X2] wire#40
+24, 6, 41          !TDC ROC#2 Sl#18 Ch#24 HDC pl#12 [X2] wire#41
+25, 6, 42          !TDC ROC#2 Sl#18 Ch#25 HDC pl#12 [X2] wire#42
+26, 6, 43          !TDC ROC#2 Sl#18 Ch#26 HDC pl#12 [X2] wire#43
+27, 6, 44          !TDC ROC#2 Sl#18 Ch#27 HDC pl#12 [X2] wire#44
+28, 6, 45          !TDC ROC#2 Sl#18 Ch#28 HDC pl#12 [X2] wire#45
+29, 6, 46          !TDC ROC#2 Sl#18 Ch#29 HDC pl#12 [X2] wire#46
+30, 6, 47          !TDC ROC#2 Sl#18 Ch#30 HDC pl#12 [X2] wire#47
+31, 6, 48          !TDC ROC#2 Sl#18 Ch#31 HDC pl#12 [X2] wire#48
+32, 6, 49          !TDC ROC#2 Sl#18 Ch#32 HDC pl#12 [X2] wire#49
+33, 6, 50          !TDC ROC#2 Sl#18 Ch#33 HDC pl#12 [X2] wire#50
+34, 6, 51          !TDC ROC#2 Sl#18 Ch#34 HDC pl#12 [X2] wire#51
+35, 6, 52          !TDC ROC#2 Sl#18 Ch#35 HDC pl#12 [X2] wire#52
+36, 6, 53          !TDC ROC#2 Sl#18 Ch#36 HDC pl#12 [X2] wire#53
+37, 6, 54          !TDC ROC#2 Sl#18 Ch#37 HDC pl#12 [X2] wire#54
+38, 6, 55          !TDC ROC#2 Sl#18 Ch#38 HDC pl#12 [X2] wire#55
+39, 6, 56          !TDC ROC#2 Sl#18 Ch#39 HDC pl#12 [X2] wire#56
+40, 6, 57          !TDC ROC#2 Sl#18 Ch#40 HDC pl#12 [X2] wire#57
+41, 6, 58          !TDC ROC#2 Sl#18 Ch#41 HDC pl#12 [X2] wire#58
+42, 6, 59          !TDC ROC#2 Sl#18 Ch#42 HDC pl#12 [X2] wire#59
+43, 6, 60          !TDC ROC#2 Sl#18 Ch#43 HDC pl#12 [X2] wire#60
+44, 6, 61          !TDC ROC#2 Sl#18 Ch#44 HDC pl#12 [X2] wire#61
+45, 6, 62          !TDC ROC#2 Sl#18 Ch#45 HDC pl#12 [X2] wire#62
+46, 6, 63          !TDC ROC#2 Sl#18 Ch#46 HDC pl#12 [X2] wire#63
+47, 6, 64          !TDC ROC#2 Sl#18 Ch#47 HDC pl#12 [X2] wire#64
+48, 6, 65          !TDC ROC#2 Sl#18 Ch#48 HDC pl#12 [X2] wire#65
+49, 6, 66          !TDC ROC#2 Sl#18 Ch#49 HDC pl#12 [X2] wire#66
+50, 6, 67          !TDC ROC#2 Sl#18 Ch#50 HDC pl#12 [X2] wire#67
+51, 6, 68          !TDC ROC#2 Sl#18 Ch#51 HDC pl#12 [X2] wire#68
+52, 6, 69          !TDC ROC#2 Sl#18 Ch#52 HDC pl#12 [X2] wire#69
+53, 6, 70          !TDC ROC#2 Sl#18 Ch#53 HDC pl#12 [X2] wire#70
+54, 6, 71          !TDC ROC#2 Sl#18 Ch#54 HDC pl#12 [X2] wire#71
+55, 6, 72          !TDC ROC#2 Sl#18 Ch#55 HDC pl#12 [X2] wire#72
+56, 6, 73          !TDC ROC#2 Sl#18 Ch#56 HDC pl#12 [X2] wire#73
+57, 6, 74          !TDC ROC#2 Sl#18 Ch#57 HDC pl#12 [X2] wire#74
+58, 6, 75          !TDC ROC#2 Sl#18 Ch#58 HDC pl#12 [X2] wire#75
+59, 6, 76          !TDC ROC#2 Sl#18 Ch#59 HDC pl#12 [X2] wire#76
+60, 6, 77          !TDC ROC#2 Sl#18 Ch#60 HDC pl#12 [X2] wire#77
+61, 6, 78          !TDC ROC#2 Sl#18 Ch#61 HDC pl#12 [X2] wire#78
+62, 6, 79          !TDC ROC#2 Sl#18 Ch#62 HDC pl#12 [X2] wire#79
+63, 6, 80          !TDC ROC#2 Sl#18 Ch#63 HDC pl#12 [X2] wire#80
+64, 6, 81          !TDC ROC#2 Sl#18 Ch#64 HDC pl#12 [X2] wire#81
+65, 6, 82          !TDC ROC#2 Sl#18 Ch#65 HDC pl#12 [X2] wire#82
+66, 6, 83          !TDC ROC#2 Sl#18 Ch#66 HDC pl#12 [X2] wire#83
+67, 6, 84          !TDC ROC#2 Sl#18 Ch#67 HDC pl#12 [X2] wire#84
+68, 6, 85          !TDC ROC#2 Sl#18 Ch#68 HDC pl#12 [X2] wire#85
+69, 6, 86          !TDC ROC#2 Sl#18 Ch#69 HDC pl#12 [X2] wire#86
+70, 6, 87          !TDC ROC#2 Sl#18 Ch#70 HDC pl#12 [X2] wire#87
+71, 6, 88          !TDC ROC#2 Sl#18 Ch#71 HDC pl#12 [X2] wire#88
+72, 6, 89          !TDC ROC#2 Sl#18 Ch#72 HDC pl#12 [X2] wire#89
+73, 6, 90          !TDC ROC#2 Sl#18 Ch#73 HDC pl#12 [X2] wire#90
+74, 6, 91          !TDC ROC#2 Sl#18 Ch#74 HDC pl#12 [X2] wire#91
+75, 6, 92          !TDC ROC#2 Sl#18 Ch#75 HDC pl#12 [X2] wire#92
+76, 6, 93          !TDC ROC#2 Sl#18 Ch#76 HDC pl#12 [X2] wire#93
+77, 6, 94          !TDC ROC#2 Sl#18 Ch#77 HDC pl#12 [X2] wire#94
+78, 6, 95          !TDC ROC#2 Sl#18 Ch#78 HDC pl#12 [X2] wire#95
+79, 6, 96          !TDC ROC#2 Sl#18 Ch#79 HDC pl#12 [X2] wire#96
+80, 6, 97          !TDC ROC#2 Sl#18 Ch#80 HDC pl#12 [X2] wire#97
+81, 6, 98          !TDC ROC#2 Sl#18 Ch#81 HDC pl#12 [X2] wire#98
+82, 6, 99          !TDC ROC#2 Sl#18 Ch#82 HDC pl#12 [X2] wire#99
+83, 6, 100         !TDC ROC#2 Sl#18 Ch#83 HDC pl#12 [X2] wire#100
+84, 6, 101         !TDC ROC#2 Sl#18 Ch#84 HDC pl#12 [X2] wire#101
+85, 6, 102         !TDC ROC#2 Sl#18 Ch#85 HDC pl#12 [X2] wire#102
+86, 6, 103         !TDC ROC#2 Sl#18 Ch#86 HDC pl#12 [X2] wire#103
+87, 6, 104         !TDC ROC#2 Sl#18 Ch#87 HDC pl#12 [X2] wire#104
+88, 6, 105         !TDC ROC#2 Sl#18 Ch#88 HDC pl#12 [X2] wire#105
+89, 6, 106         !TDC ROC#2 Sl#18 Ch#89 HDC pl#12 [X2] wire#106
+90, 6, 107         !TDC ROC#2 Sl#18 Ch#90 HDC pl#12 [X2] wire#107
+91, 6, 108         !TDC ROC#2 Sl#18 Ch#91 HDC pl#12 [X2] wire#108
+92, 6, 109         !TDC ROC#2 Sl#18 Ch#92 HDC pl#12 [X2] wire#109
+93, 6, 110         !TDC ROC#2 Sl#18 Ch#93 HDC pl#12 [X2] wire#110
+94, 6, 111         !TDC ROC#2 Sl#18 Ch#94 HDC pl#12 [X2] wire#111
+95, 6, 112         !TDC ROC#2 Sl#18 Ch#95 HDC pl#12 [X2] wire#112
+!
+!
+!   HMS upstairs (HSCIN+HCAL+HCER) map     K.B.Beard 13-Jun-1994
+!
+
+! ^^^^^^^^^^^^^^^^^^^^^ Wire chambers end here ^^^^^^^^^^^^^^^^^^^^^^
+!=============================================================================
+    ROC= 1               !upstairs HMS crate
+!
+    detector= 2 !HSCIN
+!
+!       TDC module LeCroy 1872a
+    Nsubadd= 64
+    MASK= FFFx
+    BSUB= 16
+!
+ Slot= 23 ! TDC  
+  0, 1, 1, 2 !TDC ROC#1 Sl#23 Ch#0 HSCIN pl#1 [X1] id#1 sig#2 [TDC+] (0 X1P-01)
+  1, 1, 3, 2 !TDC ROC#1 Sl#23 Ch#1 HSCIN pl#1 [X1] id#3 sig#2 [TDC+] (1 X1P-03)
+  2, 1, 5, 2 !TDC ROC#1 Sl#23 Ch#2 HSCIN pl#1 [X1] id#5 sig#2 [TDC+] (2 X1P-05)
+  3, 1, 7, 2 !TDC ROC#1 Sl#23 Ch#3 HSCIN pl#1 [X1] id#7 sig#2 [TDC+] (3 X1P-07)
+  4, 1, 9, 2 !TDC ROC#1 Sl#23 Ch#4 HSCIN pl#1 [X1] id#9 sig#2 [TDC+] (4 X1P-09)
+  5, 1, 11, 2 !TDC ROC#1 Sl#23 Ch#5 HSCIN pl#1 [X1] id#11 sig#2 [TDC+] (5 X1P-11)
+  6, 1, 13, 2 !TDC ROC#1 Sl#23 Ch#6 HSCIN pl#1 [X1] id#13 sig#2 [TDC+] (6 X1P-13)
+  7, 1, 15, 2 !TDC ROC#1 Sl#23 Ch#7 HSCIN pl#1 [X1] id#15 sig#2 [TDC+] (7 X1P-15)
+  8, 1, 2, 2 !TDC ROC#1 Sl#23 Ch#8 HSCIN pl#1 [X1] id#2 sig#2 [TDC+] (8 X1P-02)
+  9, 1, 4, 2 !TDC ROC#1 Sl#23 Ch#9 HSCIN pl#1 [X1] id#4 sig#2 [TDC+] (9 X1P-04)
+  10, 1, 6, 2 !TDC ROC#1 Sl#23 Ch#10 HSCIN pl#1 [X1] id#6 sig#2 [TDC+] (10 X1P-06)
+  11, 1, 8, 2 !TDC ROC#1 Sl#23 Ch#11 HSCIN pl#1 [X1] id#8 sig#2 [TDC+] (11 X1P-08)
+  12, 1, 10, 2 !TDC ROC#1 Sl#23 Ch#12 HSCIN pl#1 [X1] id#10 sig#2 [TDC+] (12 X1P-10)
+  13, 1, 12, 2 !TDC ROC#1 Sl#23 Ch#13 HSCIN pl#1 [X1] id#12 sig#2 [TDC+] (13 X1P-12)
+  14, 1, 14, 2 !TDC ROC#1 Sl#23 Ch#14 HSCIN pl#1 [X1] id#14 sig#2 [TDC+] (14 X1P-14)
+  15, 1, 16, 2 !TDC ROC#1 Sl#23 Ch#15 HSCIN pl#1 [X1] id#16 sig#2 [TDC+] (15 X1P-16)
+  16, 1, 1, 3 !TDC ROC#1 Sl#23 Ch#16 HSCIN pl#1 [X1] id#1 sig#3 [TDC-] (16 X1N-01)
+  17, 1, 3, 3 !TDC ROC#1 Sl#23 Ch#17 HSCIN pl#1 [X1] id#3 sig#3 [TDC-] (17 X1N-03)
+  18, 1, 5, 3 !TDC ROC#1 Sl#23 Ch#18 HSCIN pl#1 [X1] id#5 sig#3 [TDC-] (18 X1N-05)
+  19, 1, 7, 3 !TDC ROC#1 Sl#23 Ch#19 HSCIN pl#1 [X1] id#7 sig#3 [TDC-] (19 X1N-07)
+  20, 1, 9, 3 !TDC ROC#1 Sl#23 Ch#20 HSCIN pl#1 [X1] id#9 sig#3 [TDC-] (20 X1N-09)
+  21, 1, 11, 3 !TDC ROC#1 Sl#23 Ch#21 HSCIN pl#1 [X1] id#11 sig#3 [TDC-] (21 X1N-11)
+  22, 1, 13, 3 !TDC ROC#1 Sl#23 Ch#22 HSCIN pl#1 [X1] id#13 sig#3 [TDC-] (22 X1N-13)
+  23, 1, 15, 3 !TDC ROC#1 Sl#23 Ch#23 HSCIN pl#1 [X1] id#15 sig#3 [TDC-] (23 X1N-15)
+  24, 1, 2, 3 !TDC ROC#1 Sl#23 Ch#24 HSCIN pl#1 [X1] id#2 sig#3 [TDC-] (24 X1N-02)
+  25, 1, 4, 3 !TDC ROC#1 Sl#23 Ch#25 HSCIN pl#1 [X1] id#4 sig#3 [TDC-] (25 X1N-04)
+  26, 1, 6, 3 !TDC ROC#1 Sl#23 Ch#26 HSCIN pl#1 [X1] id#6 sig#3 [TDC-] (26 X1N-06)
+  27, 1, 8, 3 !TDC ROC#1 Sl#23 Ch#27 HSCIN pl#1 [X1] id#8 sig#3 [TDC-] (27 X1N-08)
+  28, 1, 10, 3 !TDC ROC#1 Sl#23 Ch#28 HSCIN pl#1 [X1] id#10 sig#3 [TDC-] (28 X1N-10)
+  29, 1, 12, 3 !TDC ROC#1 Sl#23 Ch#29 HSCIN pl#1 [X1] id#12 sig#3 [TDC-] (29 X1N-12)
+  30, 1, 14, 3 !TDC ROC#1 Sl#23 Ch#30 HSCIN pl#1 [X1] id#14 sig#3 [TDC-] (30 X1N-14)
+  31, 1, 16, 3 !TDC ROC#1 Sl#23 Ch#31 HSCIN pl#1 [X1] id#16 sig#3 [TDC-] (31 X1N-16)
+  32, 2, 1, 2 !TDC ROC#1 Sl#23 Ch#32 HSCIN pl#2 [Y1] id#1 sig#2 [TDC+] (32 Y1P-01)
+  33, 2, 3, 2 !TDC ROC#1 Sl#23 Ch#33 HSCIN pl#2 [Y1] id#3 sig#2 [TDC+] (33 Y1P-03)
+  34, 2, 5, 2 !TDC ROC#1 Sl#23 Ch#34 HSCIN pl#2 [Y1] id#5 sig#2 [TDC+] (34 Y1P-05)
+  35, 2, 7, 2 !TDC ROC#1 Sl#23 Ch#35 HSCIN pl#2 [Y1] id#7 sig#2 [TDC+] (35 Y1P-07)
+  36, 2, 9, 2 !TDC ROC#1 Sl#23 Ch#36 HSCIN pl#2 [Y1] id#9 sig#2 [TDC+] (36 Y1P-09)
+!  37 !TDC ROC#1 Sl#23 Ch#37 unused
+!  38 !TDC ROC#1 Sl#23 Ch#38 unused
+!  39 !TDC ROC#1 Sl#23 Ch#39 unused
+!!!  40, 2, 2, 2 !TDC ROC#1 Sl#23 Ch#40 HSCIN pl#2 [Y1] id#2 sig#2 [TDC+] (40 Y1P-02)
+  41, 2, 4, 2 !TDC ROC#1 Sl#23 Ch#41 HSCIN pl#2 [Y1] id#4 sig#2 [TDC+] (41 Y1P-04)
+  42, 2, 6, 2 !TDC ROC#1 Sl#23 Ch#42 HSCIN pl#2 [Y1] id#6 sig#2 [TDC+] (42 Y1P-06)
+  43, 2, 8, 2 !TDC ROC#1 Sl#23 Ch#43 HSCIN pl#2 [Y1] id#8 sig#2 [TDC+] (43 Y1P-08)
+  44, 2, 10, 2 !TDC ROC#1 Sl#23 Ch#44 HSCIN pl#2 [Y1] id#10 sig#2 [TDC+] (44 Y1P-10)
+  45, 2, 2, 2 !TDC ROC#1 Sl#23 Ch#45 HSCIN pl#2 [Y1] id#2 sig#2 [TDC+] (45 Y1P-02)
+!   h1y2+ was moved from channel 47 to 45 on 1/29/1999
+!  46 !TDC ROC#1 Sl#23 Ch#46 unused
+!  47, 2, 2, 2 !TDC ROC#1 Sl#23 Ch#40 HSCIN pl#2 [Y1] id#2 sig#2 [TDC+] (40 Y1P-02)
+!   h1y2+ was moved from channel 40 to 47 at run 6168
+  48, 2, 1, 3 !TDC ROC#1 Sl#23 Ch#48 HSCIN pl#2 [Y1] id#1 sig#3 [TDC-] (48 Y1N-01)
+  49, 2, 3, 3 !TDC ROC#1 Sl#23 Ch#49 HSCIN pl#2 [Y1] id#3 sig#3 [TDC-] (49 Y1N-03)
+  50, 2, 5, 3 !TDC ROC#1 Sl#23 Ch#50 HSCIN pl#2 [Y1] id#5 sig#3 [TDC-] (50 Y1N-05)
+  51, 2, 7, 3 !TDC ROC#1 Sl#23 Ch#51 HSCIN pl#2 [Y1] id#7 sig#3 [TDC-] (51 Y1N-07)
+  52, 2, 9, 3 !TDC ROC#1 Sl#23 Ch#52 HSCIN pl#2 [Y1] id#9 sig#3 [TDC-] (52 Y1N-09)
+!  53 !TDC ROC#1 Sl#23 Ch#53 unused
+!  54 !TDC ROC#1 Sl#23 Ch#54 unused
+!  55 !TDC ROC#1 Sl#23 Ch#55 unused
+  56, 2, 2, 3 !TDC ROC#1 Sl#23 Ch#56 HSCIN pl#2 [Y1] id#2 sig#3 [TDC-] (56 Y1N-02)
+  57, 2, 4, 3 !TDC ROC#1 Sl#23 Ch#57 HSCIN pl#2 [Y1] id#4 sig#3 [TDC-] (57 Y1N-04)
+  58, 2, 6, 3 !TDC ROC#1 Sl#23 Ch#58 HSCIN pl#2 [Y1] id#6 sig#3 [TDC-] (58 Y1N-06)
+  59, 2, 8, 3 !TDC ROC#1 Sl#23 Ch#59 HSCIN pl#2 [Y1] id#8 sig#3 [TDC-] (59 Y1N-08)
+!  60, 2, 10, 3 !TDC ROC#1 Sl#23 Ch#60 HSCIN pl#2 [Y1] id#10 sig#3 [TDC-] (60 Y1N-10)
+  61 , 2, 10, 3 !TDC ROC#1 Sl#23 Ch#61 swap location for h1y10-
+!  62 !TDC ROC#1 Sl#23 Ch#62 unused
+!  63 !TDC ROC#1 Sl#23 Ch#63 unused
+!
+ Slot= 21 ! TDC  
+! 
+  0, 3, 1, 2 !TDC ROC#1 Sl#21 Ch#0 HSCIN pl#3 [X2] id#1 sig#2 [TDC+] (0 X2P-01)
+  1, 3, 3, 2 !TDC ROC#1 Sl#21 Ch#1 HSCIN pl#3 [X2] id#3 sig#2 [TDC+] (1 X2P-03)
+  2, 3, 5, 2 !TDC ROC#1 Sl#21 Ch#2 HSCIN pl#3 [X2] id#5 sig#2 [TDC+] (2 X2P-05)
+  3, 3, 7, 2 !TDC ROC#1 Sl#21 Ch#3 HSCIN pl#3 [X2] id#7 sig#2 [TDC+] (3 X2P-07)
+  4, 3, 9, 2 !TDC ROC#1 Sl#21 Ch#4 HSCIN pl#3 [X2] id#9 sig#2 [TDC+] (4 X2P-09)
+  5, 3, 11, 2 !TDC ROC#1 Sl#21 Ch#5 HSCIN pl#3 [X2] id#11 sig#2 [TDC+] (5 X2P-11)
+  6, 3, 13, 2 !TDC ROC#1 Sl#21 Ch#6 HSCIN pl#3 [X2] id#13 sig#2 [TDC+] (6 X2P-13)
+  7, 3, 15, 2 !TDC ROC#1 Sl#21 Ch#7 HSCIN pl#3 [X2] id#15 sig#2 [TDC+] (7 X2P-15)
+!
+  8, 3, 2, 2 !TDC ROC#1 Sl#21 Ch#8 HSCIN pl#3 [X2] id#2 sig#2 [TDC+] (8 X2P-02)
+  9, 3, 4, 2 !TDC ROC#1 Sl#21 Ch#9 HSCIN pl#3 [X2] id#4 sig#2 [TDC+] (9 X2P-04)
+  10, 3, 6, 2 !TDC ROC#1 Sl#21 Ch#10 HSCIN pl#3 [X2] id#6 sig#2 [TDC+] (10 X2P-06)
+  11, 3, 8, 2 !TDC ROC#1 Sl#21 Ch#11 HSCIN pl#3 [X2] id#8 sig#2 [TDC+] (11 X2P-08)
+  12, 3, 10, 2 !TDC ROC#1 Sl#21 Ch#12 HSCIN pl#3 [X2] id#10 sig#2 [TDC+] (12 X2P-10)
+  13, 3, 12, 2 !TDC ROC#1 Sl#21 Ch#13 HSCIN pl#3 [X2] id#12 sig#2 [TDC+] (13 X2P-12)
+  14, 3, 14, 2 !TDC ROC#1 Sl#21 Ch#14 HSCIN pl#3 [X2] id#14 sig#2 [TDC+] (14 X2P-14)
+  15, 3, 16, 2 !TDC ROC#1 Sl#21 Ch#15 HSCIN pl#3 [X2] id#16 sig#2 [TDC+] (15 X2P-16)
+!
+! swapped s2x- with s2y+
+!
+  16, 4, 1, 2 !TDC ROC#1 Sl#21 Ch#32 HSCIN pl#4 [Y2] id#1 sig#2 [TDC+] (32 Y2P-01)
+  17, 4, 3, 2 !TDC ROC#1 Sl#21 Ch#33 HSCIN pl#4 [Y2] id#3 sig#2 [TDC+] (33 Y2P-03)
+  18, 4, 5, 2 !TDC ROC#1 Sl#21 Ch#34 HSCIN pl#4 [Y2] id#5 sig#2 [TDC+] (34 Y2P-05)
+  19, 4, 7, 2 !TDC ROC#1 Sl#21 Ch#35 HSCIN pl#4 [Y2] id#7 sig#2 [TDC+] (35 Y2P-07)
+  20, 4, 9, 2 !TDC ROC#1 Sl#21 Ch#36 HSCIN pl#4 [Y2] id#9 sig#2 [TDC+] (36 Y2P-09)
+!  21 !TDC ROC#1 Sl#21 Ch#37 unused
+!  22 !TDC ROC#1 Sl#21 Ch#38 unused
+!  23 !TDC ROC#1 Sl#21 Ch#39 unused
+  24, 4, 2, 2 !TDC ROC#1 Sl#21 Ch#40 HSCIN pl#4 [Y2] id#2 sig#2 [TDC+] (40 Y2P-02)
+  25, 4, 4, 2 !TDC ROC#1 Sl#21 Ch#41 HSCIN pl#4 [Y2] id#4 sig#2 [TDC+] (41 Y2P-04)
+  26, 4, 6, 2 !TDC ROC#1 Sl#21 Ch#42 HSCIN pl#4 [Y2] id#6 sig#2 [TDC+] (42 Y2P-06)
+  27, 4, 8, 2 !TDC ROC#1 Sl#21 Ch#43 HSCIN pl#4 [Y2] id#8 sig#2 [TDC+] (43 Y2P-08)
+  28, 4, 10, 2 !TDC ROC#1 Sl#21 Ch#44 HSCIN pl#4 [Y2] id#10 sig#2 [TDC+] (44 Y2P-10)
+!  29 !TDC ROC#1 Sl#21 Ch#45 unused
+!  30 !TDC ROC#1 Sl#21 Ch#46 unused
+!  31 !TDC ROC#1 Sl#21 Ch#47 unused
+!
+  32, 3, 1, 3 !TDC ROC#1 Sl#21 Ch#16 HSCIN pl#3 [X2] id#1 sig#3 [TDC-] (16 X2N-01)
+  33, 3, 3, 3 !TDC ROC#1 Sl#21 Ch#17 HSCIN pl#3 [X2] id#3 sig#3 [TDC-] (17 X2N-03)
+  34, 3, 5, 3 !TDC ROC#1 Sl#21 Ch#18 HSCIN pl#3 [X2] id#5 sig#3 [TDC-] (18 X2N-05)
+  35, 3, 7, 3 !TDC ROC#1 Sl#21 Ch#19 HSCIN pl#3 [X2] id#7 sig#3 [TDC-] (19 X2N-07)
+  36, 3, 9, 3 !TDC ROC#1 Sl#21 Ch#20 HSCIN pl#3 [X2] id#9 sig#3 [TDC-] (20 X2N-09)
+  37, 3, 11, 3 !TDC ROC#1 Sl#21 Ch#21 HSCIN pl#3 [X2] id#11 sig#3 [TDC-] (21 X2N-11)
+  38, 3, 13, 3 !TDC ROC#1 Sl#21 Ch#22 HSCIN pl#3 [X2] id#13 sig#3 [TDC-] (22 X2N-13)
+  39, 3, 15, 3 !TDC ROC#1 Sl#21 Ch#23 HSCIN pl#3 [X2] id#15 sig#3 [TDC-] (23 X2N-15)
+!
+  40, 3, 2, 3 !TDC ROC#1 Sl#21 Ch#24 HSCIN pl#3 [X2] id#2 sig#3 [TDC-] (24 X2N-02)
+  41, 3, 4, 3 !TDC ROC#1 Sl#21 Ch#25 HSCIN pl#3 [X2] id#4 sig#3 [TDC-] (25 X2N-04)
+  42, 3, 6, 3 !TDC ROC#1 Sl#21 Ch#26 HSCIN pl#3 [X2] id#6 sig#3 [TDC-] (26 X2N-06)
+  43, 3, 8, 3 !TDC ROC#1 Sl#21 Ch#27 HSCIN pl#3 [X2] id#8 sig#3 [TDC-] (27 X2N-08)
+  44, 3, 10, 3 !TDC ROC#1 Sl#21 Ch#28 HSCIN pl#3 [X2] id#10 sig#3 [TDC-] (28 X2N-10)
+  45, 3, 12, 3 !TDC ROC#1 Sl#21 Ch#29 HSCIN pl#3 [X2] id#12 sig#3 [TDC-] (29 X2N-12)
+  46, 3, 14, 3 !TDC ROC#1 Sl#21 Ch#30 HSCIN pl#3 [X2] id#14 sig#3 [TDC-] (30 X2N-14)
+  47, 3, 16, 3 !TDC ROC#1 Sl#21 Ch#31 HSCIN pl#3 [X2] id#16 sig#3 [TDC-] (31 X2N-16)
+!
+  48, 4, 1, 3 !TDC ROC#1 Sl#21 Ch#48 HSCIN pl#4 [Y2] id#1 sig#3 [TDC-] (48 Y2N-01)
+  49, 4, 3, 3 !TDC ROC#1 Sl#21 Ch#49 HSCIN pl#4 [Y2] id#3 sig#3 [TDC-] (49 Y2N-03)
+  50, 4, 5, 3 !TDC ROC#1 Sl#21 Ch#50 HSCIN pl#4 [Y2] id#5 sig#3 [TDC-] (50 Y2N-05)
+  51, 4, 7, 3 !TDC ROC#1 Sl#21 Ch#51 HSCIN pl#4 [Y2] id#7 sig#3 [TDC-] (51 Y2N-07)
+  52, 4, 9, 3 !TDC ROC#1 Sl#21 Ch#52 HSCIN pl#4 [Y2] id#9 sig#3 [TDC-] (52 Y2N-09)
+!  53 !TDC ROC#1 Sl#21 Ch#53 unused
+!  54 !TDC ROC#1 Sl#21 Ch#54 unused
+!  55 !TDC ROC#1 Sl#21 Ch#55 unused
+  56, 4, 2, 3 !TDC ROC#1 Sl#21 Ch#56 HSCIN pl#4 [Y2] id#2 sig#3 [TDC-] (56 Y2N-02)
+  57, 4, 4, 3 !TDC ROC#1 Sl#21 Ch#57 HSCIN pl#4 [Y2] id#4 sig#3 [TDC-] (57 Y2N-04)
+  58, 4, 6, 3 !TDC ROC#1 Sl#21 Ch#58 HSCIN pl#4 [Y2] id#6 sig#3 [TDC-] (58 Y2N-06)
+  59, 4, 8, 3 !TDC ROC#1 Sl#21 Ch#59 HSCIN pl#4 [Y2] id#8 sig#3 [TDC-] (59 Y2N-08)
+  60, 4, 10, 3 !TDC ROC#1 Sl#21 Ch#60 HSCIN pl#4 [Y2] id#10 sig#3 [TDC-] (60 Y2N-10)
+!  61 !TDC ROC#1 Sl#21 Ch#61 unused
+!  62 !TDC ROC#1 Sl#21 Ch#62 unused
+!  63 !TDC ROC#1 Sl#21 Ch#63 unused
+!
+!!!======================================================================
+    detector= 5 !HMISC
+
+!       TDC module LeCroy 1872a
+    Nsubadd= 64
+    MASK= FFFx
+    BSUB= 16
+
+ Slot= 19 ! TDC  
+
+0, 1, 1, 0  ! 0 !TDC ROC#1 Sl#19 Ch#0 signal     {S1X}
+1, 1, 2, 0  ! 1 !TDC ROC#1 Sl#19 Ch#1 signal     {S1Y}
+2, 1, 3, 0  ! 2 !TDC ROC#1 Sl#19 Ch#2 signal     {S2X}
+3, 1, 4, 0  ! 3 !TDC ROC#1 Sl#19 Ch#3 signal     {S2Y}
+4, 1, 5, 0  ! 4 !TDC ROC#1 Sl#19 Ch#4 signal     {S1}
+5, 1, 6 ,0  ! 5 !TDC ROC#1 Sl#19 Ch#5 signal     {S2}
+6, 1, 7, 0  ! 6 !TDC ROC#1 Sl#19 Ch#6 empty
+7, 1, 8, 0  ! 7 !TDC ROC#1 Sl#19 Ch#7 unused
+8, 1, 9, 0  ! 8 !TDC ROC#1 Sl#19 Ch#8 signal     {HMSPRE}
+9, 1, 10, 0  ! 9 !TDC ROC#1 Sl#19 Ch#9 signal    {SOSPRE}
+10, 1, 11, 0  ! 10 !TDC ROC#1 Sl#19 Ch#10 signal {COINPRE}
+11, 1, 12, 0  ! 11 !TDC ROC#1 Sl#19 Ch#11 signal {PEDPRE}
+12, 1, 13, 0  ! 12 !TDC ROC#1 Sl#19 Ch#12 signal {HMSTRG}
+13, 1, 14, 0  ! 13 !TDC ROC#1 Sl#19 Ch#13 signal {SOSTRG}
+14, 1, 15, 0  ! 14 !TDC ROC#1 Sl#19 Ch#14 signal {COINTRG}
+15, 1, 16, 0  ! 15 !TDC ROC#1 Sl#19 Ch#15 signal {PEDTRG}
+16, 1, 17, 0  ! 16 !TDC ROC#1 Sl#19 Ch#16 signal {hS1}                       
+17, 1, 18, 0  ! 17 !TDC ROC#1 Sl#19 Ch#17 signal {hPRE50}                    
+18, 1, 19, 0  ! 18 !TDC ROC#1 Sl#19 Ch#18 signal {hS2X}                      
+19, 1, 20, 0  ! 19 !TDC ROC#1 Sl#19 Ch#19 signal {hPRE150}                   
+20, 1, 21, 0  ! 20 !TDC ROC#1 Sl#19 Ch#20 signal {hS1X}                      
+21, 1, 22, 0  ! 21 !TDC ROC#1 Sl#19 Ch#21 signal {hS2Y}                      
+22, 1, 23, 0  ! 22 !TDC ROC#1 Sl#19 Ch#22 signal {hPRE100}                   
+23, 1, 24, 0  ! 23 !TDC ROC#1 Sl#19 Ch#23 signal {hS1Y}                      
+24, 1, 25, 0  ! 24 !TDC ROC#1 Sl#19 Ch#24 signal {hS2}                       
+25, 1, 26, 0  ! 25 !TDC ROC#1 Sl#19 Ch#25 signal {hPRE200}                   
+26, 1, 27, 0  ! 26 !TDC ROC#1 Sl#19 Ch#26 signal {hSTOF}                     
+27, 1, 28, 0  ! 27 !TDC ROC#1 Sl#19 Ch#27 signal {hSCIN}                     
+28, 1, 29, 0  ! 28 !TDC ROC#1 Sl#19 Ch#28 signal {hELREAL}                   
+29, 1, 30, 0  ! 29 !TDC ROC#1 Sl#19 Ch#29 signal {hPIPRE}                    
+30, 1, 31, 0  ! 30 !TDC ROC#1 Sl#19 Ch#30 signal {hELCLEAN}                  
+31, 1, 32, 0  ! 31 !TDC ROC#1 Sl#19 Ch#31 signal {hPRETRG}                   
+32, 1, 33, 0  ! 32 !TDC ROC#1 Sl#19 Ch#32 signal {PION}                      
+33, 1, 34, 0  ! 33 !TDC ROC#1 Sl#19 Ch#33 signal {CER}                       
+34, 1, 35, 0  ! 34 !TDC ROC#1 Sl#19 Ch#34 signal {hPIONHI}                  
+35, 1, 36, 0  ! 35 !TDC ROC#1 Sl#19 Ch#35 signal {hCERHI}                  
+36, 1, 37, 0  ! 36 !TDC ROC#1 Sl#19 Ch#36 signal {??}                        
+37, 1, 38, 0  ! 37 !TDC ROC#1 Sl#19 Ch#37 signal {UNSER}                     
+38, 1, 39, 0  ! 38 !TDC ROC#1 Sl#19 Ch#38 signal {BCM1}                      
+39, 1, 40, 0  ! 39 !TDC ROC#1 Sl#19 Ch#39 signal {BCM2}                      
+40, 1, 41, 0  ! 40 !TDC ROC#1 Sl#19 Ch#40 signal {hELHI}                     
+41, 1, 42, 0  ! 41 !TDC ROC#1 Sl#19 Ch#41 signal {hELLO}                     
+42, 1, 43, 0  ! 42 !TDC ROC#1 Sl#19 Ch#42 signal {hPRHI}                     
+43, 1, 44, 0  ! 43 !TDC ROC#1 Sl#19 Ch#43 signal {hPRLO}                     
+44, 1, 45, 0  ! 44 !TDC ROC#1 Sl#19 Ch#44 signal {hSHLO}                     
+45, 1, 46, 0  ! 45 !TDC ROC#1 Sl#19 Ch#45 signal {CLOCK}                     
+46, 1, 47, 0  ! 46 !TDC ROC#1 Sl#19 Ch#46 signal {BEAMGATES}                 
+47, 1, 48, 0  ! 47 !TDC ROC#1 Sl#19 Ch#47 signal {hADCGATES ? PEDS and TRIGS}
+48, 1, 49, 0  ! 48 !TDC ROC#1 Sl#19 Ch#48 RF no delay
+49, 1, 50, 0  ! 49 !TDC ROC#1 Sl#19 Ch#49 unused
+50, 1, 51, 0  ! 50 !TDC ROC#1 Sl#19 Ch#50 unused
+51, 1, 52, 0  ! 51 !TDC ROC#1 Sl#19 Ch#51 unused
+52, 1, 53, 0  ! 52 !TDC ROC#1 Sl#19 Ch#52 RF + 10 ns
+53, 1, 54, 0  ! 53 !TDC ROC#1 Sl#19 Ch#53 unused
+54, 1, 55, 0  ! 54 !TDC ROC#1 Sl#19 Ch#54 unused
+55, 1, 56, 0  ! 55 !TDC ROC#1 Sl#19 Ch#55 unused
+56, 1, 57, 0  ! 56 !TDC ROC#1 Sl#19 Ch#56 unused
+57, 1, 58, 0  ! 57 !TDC ROC#1 Sl#19 Ch#57 unused
+58, 1, 59, 0  ! 58 !TDC ROC#1 Sl#19 Ch#58 unused
+59, 1, 60, 0  ! 59 !TDC ROC#1 Sl#19 Ch#59 unused
+60, 1, 61, 0  ! 60 !TDC ROC#1 Sl#19 Ch#60 unused
+61, 1, 62, 0  ! 61 !TDC ROC#1 Sl#19 Ch#61 unused 
+62, 1, 63, 0  ! 62 !TDC ROC#1 Sl#19 Ch#62 unused
+63, 1, 64, 0  ! 63 !TDC ROC#1 Sl#19 Ch#63 unused 
+!
+!
+!=============================================================================
+!                     AEROGEL TDC
+!..............................................................................
+! For aerogel: 0-->ADC_POS
+!	       1-->ADC_NEG
+!              2-->TDC_POS      ! Check one more time (Hamlet, 2002/10/01)
+!              3-->TDC_NEG
+
+    detector= 7 ! Temporary for HAERO
+
+!       TDC module LeCroy 1872a
+
+    Nsubadd= 64
+    MASK= FFFx
+    BSUB= 16
+!!
+! S. Wood have problem to read additional TDC in Slot =18 (2002/10/18, Hamlet)
+!
+! For now I will use some other tdc channels for Aerogel
+!.......................>
+!
+ Slot= 18 ! TDC channels for HMS Aero 
+! Changed May 5, 2003 DJG
+!
+!
+! Slot= 18 !TDC
+!
+! TDC chan  for aerogel (Hamlet, 2002/10/17)
+!
+0, 1, 1, 2 !TDC ROC#1 Sl#18 Ch#0  signal pos 1
+1, 1, 2, 2 !TDC ROC#1 Sl#18 Ch#1  signal pos 2
+2, 1, 3, 2 !TDC ROC#1 Sl#18 Ch#2  signal pos 3
+3, 1, 4, 2 !TDC ROC#1 Sl#18 Ch#3  signal pos 4
+4, 1, 5, 2 !TDC ROC#1 Sl#18 Ch#4  signal pos 5
+5, 1, 6, 2 !TDC ROC#1 Sl#18 Ch#5  signal pos 6
+6, 1, 7, 2 !TDC ROC#1 Sl#18 Ch#6  signal pos 7
+7, 1, 8, 2 !TDC ROC#1 Sl#18 Ch#7  signal pos 8
+8, 1, 1, 3 !TDC ROC#1 Sl#18 Ch#8  signal neg 1
+9, 1, 2, 3 !TDC ROC#1 Sl#18 Ch#9  signal neg 2
+10, 1, 3, 3 !TDC ROC#1 Sl#18 Ch#10  signal neg 3
+11, 1, 4, 3 !TDC ROC#1 Sl#18 Ch#11  signal neg 4
+12, 1, 5, 3 !TDC ROC#1 Sl#18 Ch#12  signal neg 5
+13, 1, 6, 3 !TDC ROC#1 Sl#18 Ch#13  signal neg 6
+14, 1, 7, 3 !TDC ROC#1 Sl#18 Ch#14  signal neg 7
+15, 1, 8, 3 !TDC ROC#1 Sl#18 Ch#15  signal neg 8
+!!
+!16, 1, 17, 0  ! 16 !TDC ROC#1 Sl#19 Ch#16 unused
+!17, 1, 18, 0  ! 17 !TDC ROC#1 Sl#19 Ch#17 unused
+!18, 1, 19, 0  ! 18 !TDC ROC#1 Sl#19 Ch#18 unused
+!19, 1, 20, 0  ! 19 !TDC ROC#1 Sl#19 Ch#19 unused
+!20, 1, 21, 0  ! 20 !TDC ROC#1 Sl#19 Ch#20 unused
+!21, 1, 22, 0  ! 21 !TDC ROC#1 Sl#19 Ch#21 unused
+!22, 1, 23, 0  ! 22 !TDC ROC#1 Sl#19 Ch#22 unused
+!23, 1, 24, 0  ! 23 !TDC ROC#1 Sl#19 Ch#23 unused
+!24, 1, 25, 0  ! 24 !TDC ROC#1 Sl#19 Ch#24 unused
+!25, 1, 26, 0  ! 25 !TDC ROC#1 Sl#19 Ch#25 unused
+!26, 1, 27, 0  ! 26 !TDC ROC#1 Sl#19 Ch#26 unused
+!27, 1, 28, 0  ! 27 !TDC ROC#1 Sl#19 Ch#27 unused
+!28, 1, 29, 0  ! 28 !TDC ROC#1 Sl#19 Ch#28 unused
+!29, 1, 30, 0  ! 29 !TDC ROC#1 Sl#19 Ch#29 unused
+!30, 1, 31, 0  ! 30 !TDC ROC#1 Sl#19 Ch#30 unused
+!31, 1, 32, 0  ! 31 !TDC ROC#1 Sl#19 Ch#31 unused
+!32, 1, 33, 0  ! 32 !TDC ROC#1 Sl#19 Ch#32 unused
+!33, 1, 34, 0  ! 33 !TDC ROC#1 Sl#19 Ch#33 unused
+!34, 1, 35, 0  ! 34 !TDC ROC#1 Sl#19 Ch#34 unused
+!35, 1, 36, 0  ! 35 !TDC ROC#1 Sl#19 Ch#35 unused
+!36, 1, 37, 0  ! 36 !TDC ROC#1 Sl#19 Ch#36 unused
+!37, 1, 38, 0  ! 37 !TDC ROC#1 Sl#19 Ch#37 unused
+!38, 1, 39, 0  ! 38 !TDC ROC#1 Sl#19 Ch#38 unused
+!39, 1, 40, 0  ! 39 !TDC ROC#1 Sl#19 Ch#39 unused
+!40, 1, 41, 0  ! 40 !TDC ROC#1 Sl#19 Ch#40 unused
+!41, 1, 42, 0  ! 41 !TDC ROC#1 Sl#19 Ch#41 unused
+!42, 1, 43, 0  ! 42 !TDC ROC#1 Sl#19 Ch#42 unused
+!43, 1, 44, 0  ! 43 !TDC ROC#1 Sl#19 Ch#43 unused
+!44, 1, 45, 0  ! 44 !TDC ROC#1 Sl#19 Ch#44 unused 
+!45, 1, 46, 0  ! 45 !TDC ROC#1 Sl#19 Ch#45 unused 
+!46, 1, 47, 0  ! 46 !TDC ROC#1 Sl#19 Ch#46 unused 
+!47, 1, 48, 0  ! 47 !TDC ROC#1 Sl#19 Ch#47 unused 
+!48, 1, 49, 0  ! 48 !TDC ROC#1 Sl#19 Ch#48 unused
+!49, 1, 50, 0  ! 49 !TDC ROC#1 Sl#19 Ch#49 unused
+!50, 1, 51, 0  ! 50 !TDC ROC#1 Sl#19 Ch#50 unused
+!51, 1, 52, 0  ! 51 !TDC ROC#1 Sl#19 Ch#51 unused
+!52, 1, 53, 0  ! 52 !TDC ROC#1 Sl#19 Ch#52 unused
+!53, 1, 54, 0  ! 53 !TDC ROC#1 Sl#19 Ch#53 unused
+!54, 1, 55, 0  ! 54 !TDC ROC#1 Sl#19 Ch#54 unused
+!55, 1, 56, 0  ! 55 !TDC ROC#1 Sl#19 Ch#55 unused
+!56, 1, 57, 0  ! 56 !TDC ROC#1 Sl#19 Ch#56 unused
+!57, 1, 58, 0  ! 57 !TDC ROC#1 Sl#19 Ch#57 unused
+!58, 1, 59, 0  ! 58 !TDC ROC#1 Sl#19 Ch#58 unused
+!59, 1, 60, 0  ! 59 !TDC ROC#1 Sl#19 Ch#59 unused
+!60, 1, 61, 0  ! 60 !TDC ROC#1 Sl#19 Ch#60 unused
+!61, 1, 62, 0  ! 61 !TDC ROC#1 Sl#19 Ch#61 unused 
+!62, 1, 63, 0  ! 62 !TDC ROC#1 Sl#19 Ch#62 unused
+!63, 1, 64, 0  ! 63 !TDC ROC#1 Sl#19 Ch#63 unused 
+!
+!=============================================================================
+!       ADC module LeCroy 1881M
+    detector = 2
+    Nsubadd= 64
+    MASK= 3FFFx
+    BSUB= 17
+!
+ Slot= 9 ! ADC  
+  0, 1, 1, 0 !ADC ROC#1 Sl#9 Ch#0 HSCIN pl#1 [X1] id#1 sig#0 [ADC+] (0 X1P-01)
+  1, 1, 3, 0 !ADC ROC#1 Sl#9 Ch#1 HSCIN pl#1 [X1] id#3 sig#0 [ADC+] (1 X1P-03)
+  2, 1, 5, 0 !ADC ROC#1 Sl#9 Ch#2 HSCIN pl#1 [X1] id#5 sig#0 [ADC+] (2 X1P-05)
+  3, 1, 7, 0 !ADC ROC#1 Sl#9 Ch#3 HSCIN pl#1 [X1] id#7 sig#0 [ADC+] (3 X1P-07)
+  4, 1, 9, 0 !ADC ROC#1 Sl#9 Ch#4 HSCIN pl#1 [X1] id#9 sig#0 [ADC+] (4 X1P-09)
+  5, 1, 11, 0 !ADC ROC#1 Sl#9 Ch#5 HSCIN pl#1 [X1] id#11 sig#0 [ADC+] (5 X1P-11)
+  6, 1, 13, 0 !ADC ROC#1 Sl#9 Ch#6 HSCIN pl#1 [X1] id#13 sig#0 [ADC+] (6 X1P-13)
+  7, 1, 15, 0 !ADC ROC#1 Sl#9 Ch#7 HSCIN pl#1 [X1] id#15 sig#0 [ADC+] (7 X1P-15)
+  8, 1, 2, 0 !ADC ROC#1 Sl#9 Ch#8 HSCIN pl#1 [X1] id#2 sig#0 [ADC+] (8 X1P-02)
+  9, 1, 4, 0 !ADC ROC#1 Sl#9 Ch#9 HSCIN pl#1 [X1] id#4 sig#0 [ADC+] (9 X1P-04)
+  10, 1, 6, 0 !ADC ROC#1 Sl#9 Ch#10 HSCIN pl#1 [X1] id#6 sig#0 [ADC+] (10 X1P-06)
+  11, 1, 8, 0 !ADC ROC#1 Sl#9 Ch#11 HSCIN pl#1 [X1] id#8 sig#0 [ADC+] (11 X1P-08)
+  12, 1, 10, 0 !ADC ROC#1 Sl#9 Ch#12 HSCIN pl#1 [X1] id#10 sig#0 [ADC+] (12 X1P-10)
+  13, 1, 12, 0 !ADC ROC#1 Sl#9 Ch#13 HSCIN pl#1 [X1] id#12 sig#0 [ADC+] (13 X1P-12)
+  14, 1, 14, 0 !ADC ROC#1 Sl#9 Ch#14 HSCIN pl#1 [X1] id#14 sig#0 [ADC+] (14 X1P-14)
+  15, 1, 16, 0 !ADC ROC#1 Sl#9 Ch#15 HSCIN pl#1 [X1] id#16 sig#0 [ADC+] (15 X1P-16)
+!
+  16, 1, 1, 1 !ADC ROC#1 Sl#9 Ch#16 HSCIN pl#1 [X1] id#1 sig#1 [ADC-] (16 X1N-01)
+  17, 1, 3, 1 !ADC ROC#1 Sl#9 Ch#17 HSCIN pl#1 [X1] id#3 sig#1 [ADC-] (17 X1N-03)
+  18, 1, 5, 1 !ADC ROC#1 Sl#9 Ch#18 HSCIN pl#1 [X1] id#5 sig#1 [ADC-] (18 X1N-05)
+  19, 1, 7, 1 !ADC ROC#1 Sl#9 Ch#19 HSCIN pl#1 [X1] id#7 sig#1 [ADC-] (19 X1N-07)
+  20, 1, 9, 1 !ADC ROC#1 Sl#9 Ch#20 HSCIN pl#1 [X1] id#9 sig#1 [ADC-] (20 X1N-09)
+  21, 1, 11, 1 !ADC ROC#1 Sl#9 Ch#21 HSCIN pl#1 [X1] id#11 sig#1 [ADC-] (21 X1N-11)
+  22, 1, 13, 1 !ADC ROC#1 Sl#9 Ch#22 HSCIN pl#1 [X1] id#13 sig#1 [ADC-] (22 X1N-13)
+  23, 1, 15, 1 !ADC ROC#1 Sl#9 Ch#23 HSCIN pl#1 [X1] id#15 sig#1 [ADC-] (23 X1N-15)
+  24, 1, 2, 1 !ADC ROC#1 Sl#9 Ch#24 HSCIN pl#1 [X1] id#2 sig#1 [ADC-] (24 X1N-02)
+  25, 1, 4, 1 !ADC ROC#1 Sl#9 Ch#25 HSCIN pl#1 [X1] id#4 sig#1 [ADC-] (25 X1N-04)
+  26, 1, 6, 1 !ADC ROC#1 Sl#9 Ch#26 HSCIN pl#1 [X1] id#6 sig#1 [ADC-] (26 X1N-06)
+  27, 1, 8, 1 !ADC ROC#1 Sl#9 Ch#27 HSCIN pl#1 [X1] id#8 sig#1 [ADC-] (27 X1N-08)
+  28, 1, 10, 1 !ADC ROC#1 Sl#9 Ch#28 HSCIN pl#1 [X1] id#10 sig#1 [ADC-] (28 X1N-10)
+  29, 1, 12, 1 !ADC ROC#1 Sl#9 Ch#29 HSCIN pl#1 [X1] id#12 sig#1 [ADC-] (29 X1N-12)
+  30, 1, 14, 1 !ADC ROC#1 Sl#9 Ch#30 HSCIN pl#1 [X1] id#14 sig#1 [ADC-] (30 X1N-14)
+  31, 1, 16, 1 !ADC ROC#1 Sl#9 Ch#31 HSCIN pl#1 [X1] id#16 sig#1 [ADC-] (31 X1N-16)
+! 
+  32, 2, 1, 0 !ADC ROC#1 Sl#9 Ch#32 HSCIN pl#2 [Y1] id#1 sig#0 [ADC+] (32 Y1P-01)
+  33, 2, 3, 0 !ADC ROC#1 Sl#9 Ch#33 HSCIN pl#2 [Y1] id#3 sig#0 [ADC+] (33 Y1P-03)
+  34, 2, 5, 0 !ADC ROC#1 Sl#9 Ch#34 HSCIN pl#2 [Y1] id#5 sig#0 [ADC+] (34 Y1P-05)
+  35, 2, 7, 0 !ADC ROC#1 Sl#9 Ch#35 HSCIN pl#2 [Y1] id#7 sig#0 [ADC+] (35 Y1P-07)
+  36, 2, 9, 0 !ADC ROC#1 Sl#9 Ch#36 HSCIN pl#2 [Y1] id#9 sig#0 [ADC+] (36 Y1P-09)
+!  37 !ADC ROC#1 Sl#9 Ch#37 unused
+!  38 !ADC ROC#1 Sl#9 Ch#38 unused
+!  39 !ADC ROC#1 Sl#9 Ch#39 unused
+  40, 2, 2, 0 !ADC ROC#1 Sl#9 Ch#40 HSCIN pl#2 [Y1] id#2 sig#0 [ADC+] (40 Y1P-02)
+  41, 2, 4, 0 !ADC ROC#1 Sl#9 Ch#41 HSCIN pl#2 [Y1] id#4 sig#0 [ADC+] (41 Y1P-04)
+  42, 2, 6, 0 !ADC ROC#1 Sl#9 Ch#42 HSCIN pl#2 [Y1] id#6 sig#0 [ADC+] (42 Y1P-06)
+  43, 2, 8, 0 !ADC ROC#1 Sl#9 Ch#43 HSCIN pl#2 [Y1] id#8 sig#0 [ADC+] (43 Y1P-08)
+  44, 2, 10, 0 !ADC ROC#1 Sl#9 Ch#44 HSCIN pl#2 [Y1] id#10 sig#0 [ADC+] (44 Y1P-10)
+!  45 !ADC ROC#1 Sl#9 Ch#45 unused
+!  46 !ADC ROC#1 Sl#9 Ch#46 unused
+!  47 !ADC ROC#1 Sl#9 Ch#47 unused
+!
+  48, 2, 1, 1 !ADC ROC#1 Sl#9 Ch#48 HSCIN pl#2 [Y1] id#1 sig#1 [ADC-] (48 Y1N-01)
+  49, 2, 3, 1 !ADC ROC#1 Sl#9 Ch#49 HSCIN pl#2 [Y1] id#3 sig#1 [ADC-] (49 Y1N-03)
+  50, 2, 5, 1 !ADC ROC#1 Sl#9 Ch#50 HSCIN pl#2 [Y1] id#5 sig#1 [ADC-] (50 Y1N-05)
+  51, 2, 7, 1 !ADC ROC#1 Sl#9 Ch#51 HSCIN pl#2 [Y1] id#7 sig#1 [ADC-] (51 Y1N-07)
+  52, 2, 9, 1 !ADC ROC#1 Sl#9 Ch#52 HSCIN pl#2 [Y1] id#9 sig#1 [ADC-] (52 Y1N-09)
+!  53 !ADC ROC#1 Sl#9 Ch#53 unused
+!  54 !ADC ROC#1 Sl#9 Ch#54 unused
+!  55 !ADC ROC#1 Sl#9 Ch#55 unused
+  56, 2, 2, 1 !ADC ROC#1 Sl#9 Ch#56 HSCIN pl#2 [Y1] id#2 sig#1 [ADC-] (56 Y1N-02)
+  57, 2, 4, 1 !ADC ROC#1 Sl#9 Ch#57 HSCIN pl#2 [Y1] id#4 sig#1 [ADC-] (57 Y1N-04)
+  58, 2, 6, 1 !ADC ROC#1 Sl#9 Ch#58 HSCIN pl#2 [Y1] id#6 sig#1 [ADC-] (58 Y1N-06)
+  59, 2, 8, 1 !ADC ROC#1 Sl#9 Ch#59 HSCIN pl#2 [Y1] id#8 sig#1 [ADC-] (59 Y1N-08)
+  60, 2, 10, 1 !ADC ROC#1 Sl#9 Ch#60 HSCIN pl#2 [Y1] id#10 sig#1 [ADC-] (60 Y1N-10)
+!  61 !ADC ROC#1 Sl#9 Ch#62 unused
+!  62 !ADC ROC#1 Sl#9 Ch#62 unused
+!  63 !ADC ROC#1 Sl#9 Ch#63 unused
+!
+ Slot= 7 ! ADC  
+  0, 3, 1, 0 !ADC ROC#1 Sl#7 Ch#0 HSCIN pl#3 [X2] id#1 sig#0 [ADC+] (0 X2P-01)
+  1, 3, 3, 0 !ADC ROC#1 Sl#7 Ch#1 HSCIN pl#3 [X2] id#3 sig#0 [ADC+] (1 X2P-03)
+  2, 3, 5, 0 !ADC ROC#1 Sl#7 Ch#2 HSCIN pl#3 [X2] id#5 sig#0 [ADC+] (2 X2P-05)
+  3, 3, 7, 0 !ADC ROC#1 Sl#7 Ch#3 HSCIN pl#3 [X2] id#7 sig#0 [ADC+] (3 X2P-07)
+  4, 3, 9, 0 !ADC ROC#1 Sl#7 Ch#4 HSCIN pl#3 [X2] id#9 sig#0 [ADC+] (4 X2P-09)
+  5, 3, 11, 0 !ADC ROC#1 Sl#7 Ch#5 HSCIN pl#3 [X2] id#11 sig#0 [ADC+] (5 X2P-11)
+  6, 3, 13, 0 !ADC ROC#1 Sl#7 Ch#6 HSCIN pl#3 [X2] id#13 sig#0 [ADC+] (6 X2P-13)
+  7, 3, 15, 0 !ADC ROC#1 Sl#7 Ch#7 HSCIN pl#3 [X2] id#15 sig#0 [ADC+] (7 X2P-15)
+  8, 3, 2, 0 !ADC ROC#1 Sl#7 Ch#8 HSCIN pl#3 [X2] id#2 sig#0 [ADC+] (8 X2P-02)
+  9, 3, 4, 0 !ADC ROC#1 Sl#7 Ch#9 HSCIN pl#3 [X2] id#4 sig#0 [ADC+] (9 X2P-04)
+  10, 3, 6, 0 !ADC ROC#1 Sl#7 Ch#10 HSCIN pl#3 [X2] id#6 sig#0 [ADC+] (10 X2P-06)
+  11, 3, 8, 0 !ADC ROC#1 Sl#7 Ch#11 HSCIN pl#3 [X2] id#8 sig#0 [ADC+] (11 X2P-08)
+  12, 3, 10, 0 !ADC ROC#1 Sl#7 Ch#12 HSCIN pl#3 [X2] id#10 sig#0 [ADC+] (12 X2P-10)
+  13, 3, 12, 0 !ADC ROC#1 Sl#7 Ch#13 HSCIN pl#3 [X2] id#12 sig#0 [ADC+] (13 X2P-12)
+  14, 3, 14, 0 !ADC ROC#1 Sl#7 Ch#14 HSCIN pl#3 [X2] id#14 sig#0 [ADC+] (14 X2P-14)
+  15, 3, 16, 0 !ADC ROC#1 Sl#7 Ch#15 HSCIN pl#3 [X2] id#16 sig#0 [ADC+] (15 X2P-16)
+! 
+  16, 3, 1, 1 !ADC ROC#1 Sl#7 Ch#16 HSCIN pl#3 [X2] id#1 sig#1 [ADC-] (16 X2N-01)
+  17, 3, 3, 1 !ADC ROC#1 Sl#7 Ch#17 HSCIN pl#3 [X2] id#3 sig#1 [ADC-] (17 X2N-03)
+  18, 3, 5, 1 !ADC ROC#1 Sl#7 Ch#18 HSCIN pl#3 [X2] id#5 sig#1 [ADC-] (18 X2N-05)
+  19, 3, 7, 1 !ADC ROC#1 Sl#7 Ch#19 HSCIN pl#3 [X2] id#7 sig#1 [ADC-] (19 X2N-07)
+  20, 3, 9, 1 !ADC ROC#1 Sl#7 Ch#20 HSCIN pl#3 [X2] id#9 sig#1 [ADC-] (20 X2N-09)
+  21, 3, 11, 1 !ADC ROC#1 Sl#7 Ch#21 HSCIN pl#3 [X2] id#11 sig#1 [ADC-] (21 X2N-11)
+  22, 3, 13, 1 !ADC ROC#1 Sl#7 Ch#22 HSCIN pl#3 [X2] id#13 sig#1 [ADC-] (22 X2N-13)
+  23, 3, 15, 1 !ADC ROC#1 Sl#7 Ch#23 HSCIN pl#3 [X2] id#15 sig#1 [ADC-] (23 X2N-15)
+!
+  24, 3, 2, 1 !ADC ROC#1 Sl#7 Ch#24 HSCIN pl#3 [X2] id#2 sig#1 [ADC-] (24 X2N-02)
+  25, 3, 4, 1 !ADC ROC#1 Sl#7 Ch#25 HSCIN pl#3 [X2] id#4 sig#1 [ADC-] (25 X2N-04)
+  26, 3, 6, 1 !ADC ROC#1 Sl#7 Ch#26 HSCIN pl#3 [X2] id#6 sig#1 [ADC-] (26 X2N-06)
+  27, 3, 8, 1 !ADC ROC#1 Sl#7 Ch#27 HSCIN pl#3 [X2] id#8 sig#1 [ADC-] (27 X2N-08)
+  28, 3, 10, 1 !ADC ROC#1 Sl#7 Ch#28 HSCIN pl#3 [X2] id#10 sig#1 [ADC-] (28 X2N-10)
+  29, 3, 12, 1 !ADC ROC#1 Sl#7 Ch#29 HSCIN pl#3 [X2] id#12 sig#1 [ADC-] (29 X2N-12)
+  30, 3, 14, 1 !ADC ROC#1 Sl#7 Ch#30 HSCIN pl#3 [X2] id#14 sig#1 [ADC-] (30 X2N-14)
+  31, 3, 16, 1 !ADC ROC#1 Sl#7 Ch#31 HSCIN pl#3 [X2] id#16 sig#1 [ADC-] (31 X2N-16)
+  32, 4, 1, 0 !ADC ROC#1 Sl#7 Ch#32 HSCIN pl#4 [Y2] id#1 sig#0 [ADC+] (32 Y2P-01)
+  33, 4, 3, 0 !ADC ROC#1 Sl#7 Ch#33 HSCIN pl#4 [Y2] id#3 sig#0 [ADC+] (33 Y2P-03)
+  34, 4, 5, 0 !ADC ROC#1 Sl#7 Ch#34 HSCIN pl#4 [Y2] id#5 sig#0 [ADC+] (34 Y2P-05)
+  35, 4, 7, 0 !ADC ROC#1 Sl#7 Ch#35 HSCIN pl#4 [Y2] id#7 sig#0 [ADC+] (35 Y2P-07)
+  36, 4, 9, 0 !ADC ROC#1 Sl#7 Ch#36 HSCIN pl#4 [Y2] id#9 sig#0 [ADC+] (36 Y2P-09)
+!  37 !ADC ROC#1 Sl#7 Ch#37 unused
+!  38 !ADC ROC#1 Sl#7 Ch#38 unused
+!  39 !ADC ROC#1 Sl#7 Ch#39 unused
+  40, 4, 2, 0 !ADC ROC#1 Sl#7 Ch#40 HSCIN pl#4 [Y2] id#2 sig#0 [ADC+] (40 Y2P-02)
+  41, 4, 4, 0 !ADC ROC#1 Sl#7 Ch#41 HSCIN pl#4 [Y2] id#4 sig#0 [ADC+] (41 Y2P-04)
+  42, 4, 6, 0 !ADC ROC#1 Sl#7 Ch#42 HSCIN pl#4 [Y2] id#6 sig#0 [ADC+] (42 Y2P-06)
+  43, 4, 8, 0 !ADC ROC#1 Sl#7 Ch#43 HSCIN pl#4 [Y2] id#8 sig#0 [ADC+] (43 Y2P-08)
+  44, 4, 10, 0 !ADC ROC#1 Sl#7 Ch#44 HSCIN pl#4 [Y2] id#10 sig#0 [ADC+] (44 Y2P-10)
+!  45 !ADC ROC#1 Sl#7 Ch#45 unused
+!  46 !ADC ROC#1 Sl#7 Ch#46 unused
+!  47 !ADC ROC#1 Sl#7 Ch#47 unused
+  48, 4, 1, 1 !ADC ROC#1 Sl#7 Ch#48 HSCIN pl#4 [Y2] id#1 sig#1 [ADC-] (48 Y2N-01)
+  49, 4, 3, 1 !ADC ROC#1 Sl#7 Ch#49 HSCIN pl#4 [Y2] id#3 sig#1 [ADC-] (49 Y2N-03)
+  50, 4, 5, 1 !ADC ROC#1 Sl#7 Ch#50 HSCIN pl#4 [Y2] id#5 sig#1 [ADC-] (50 Y2N-05)
+  51, 4, 7, 1 !ADC ROC#1 Sl#7 Ch#51 HSCIN pl#4 [Y2] id#7 sig#1 [ADC-] (51 Y2N-07)
+  52, 4, 9, 1 !ADC ROC#1 Sl#7 Ch#52 HSCIN pl#4 [Y2] id#9 sig#1 [ADC-] (52 Y2N-09)
+!  53 !ADC ROC#1 Sl#7 Ch#53 unused
+!  54 !ADC ROC#1 Sl#7 Ch#54 unused
+!  55 !ADC ROC#1 Sl#7 Ch#55 unused
+  56, 4, 2, 1 !ADC ROC#1 Sl#7 Ch#56 HSCIN pl#4 [Y2] id#2 sig#1 [ADC-] (56 Y2N-02)
+  57, 4, 4, 1 !ADC ROC#1 Sl#7 Ch#57 HSCIN pl#4 [Y2] id#4 sig#1 [ADC-] (57 Y2N-04)
+  58, 4, 6, 1 !ADC ROC#1 Sl#7 Ch#58 HSCIN pl#4 [Y2] id#6 sig#1 [ADC-] (58 Y2N-06)
+  59, 4, 8, 1 !ADC ROC#1 Sl#7 Ch#59 HSCIN pl#4 [Y2] id#8 sig#1 [ADC-] (59 Y2N-08)
+  60, 4, 10, 1 !ADC ROC#1 Sl#7 Ch#60 HSCIN pl#4 [Y2] id#10 sig#1 [ADC-] (60 Y2N-10)
+!  61 !ADC ROC#1 Sl#7 Ch#61 unused
+!  62 !ADC ROC#1 Sl#7 Ch#62 unused
+!  63 !ADC ROC#1 Sl#7 Ch#63 unused
+!
+!---------------------------------------------------------------------------------
+    detector= 4 !HCAL
+!
+ Slot= 1 ! ADC  
+   0, 1, 1  !ADC ROC#1 Sl#1 Ch#0 HCAL col#1 row#1 (0 A-01)
+   1, 1, 2  !ADC ROC#1 Sl#1 Ch#1 HCAL col#1 row#2 (1 A-02)
+   2, 1, 3  !ADC ROC#1 Sl#1 Ch#2 HCAL col#1 row#3 (2 A-03)
+   3, 1, 4  !ADC ROC#1 Sl#1 Ch#3 HCAL col#1 row#4 (3 A-04)
+   4, 1, 5  !ADC ROC#1 Sl#1 Ch#4 HCAL col#1 row#5 (4 A-05)
+   5, 1, 6  !ADC ROC#1 Sl#1 Ch#5 HCAL col#1 row#6 (5 A-06)
+   6, 1, 7  !ADC ROC#1 Sl#1 Ch#6 HCAL col#1 row#7 (6 A-07)
+   7, 1, 8  !ADC ROC#1 Sl#1 Ch#7 HCAL col#1 row#8 (7 A-08)
+   8, 1, 9  !ADC ROC#1 Sl#1 Ch#8 HCAL col#1 row#9 (8 A-09)
+   9, 1, 10 !ADC ROC#1 Sl#1 Ch#9 HCAL col#1 row#10 (9 A-10)
+  10, 1, 11 !ADC ROC#1 Sl#1 Ch#10 HCAL col#1 row#11 (10 A-11)
+  11, 1, 12 !ADC ROC#1 Sl#1 Ch#11 HCAL col#1 row#12 (11 A-12)
+  12, 1, 13 !ADC ROC#1 Sl#1 Ch#12 HCAL col#1 row#13 (12 A-13)
+!   13 !ADC ROC#1 Sl#1 Ch#13 unused
+!   14 !ADC ROC#1 Sl#1 Ch#14 unused
+!   15 !ADC ROC#1 Sl#1 Ch#15 unused
+  16, 2, 1  !ADC ROC#1 Sl#1 Ch#16 HCAL col#2 row#1 (16 B-01)
+  17, 2, 2  !ADC ROC#1 Sl#1 Ch#17 HCAL col#2 row#2 (17 B-02)
+  18, 2, 3  !ADC ROC#1 Sl#1 Ch#18 HCAL col#2 row#3 (18 B-03)
+  19, 2, 4  !ADC ROC#1 Sl#1 Ch#19 HCAL col#2 row#4 (19 B-04)
+  20, 2, 5  !ADC ROC#1 Sl#1 Ch#20 HCAL col#2 row#5 (20 B-05)
+  21, 2, 6  !ADC ROC#1 Sl#1 Ch#21 HCAL col#2 row#6 (21 B-06)
+  22, 2, 7  !ADC ROC#1 Sl#1 Ch#22 HCAL col#2 row#7 (22 B-07)
+  23, 2, 8  !ADC ROC#1 Sl#1 Ch#23 HCAL col#2 row#8 (23 B-08)
+  24, 2, 9  !ADC ROC#1 Sl#1 Ch#24 HCAL col#2 row#9 (24 B-09)
+  25, 2, 10 !ADC ROC#1 Sl#1 Ch#25 HCAL col#2 row#10 (25 B-10)
+  26, 2, 11 !ADC ROC#1 Sl#1 Ch#26 HCAL col#2 row#11 (26 B-11)
+  27, 2, 12 !ADC ROC#1 Sl#1 Ch#27 HCAL col#2 row#12 (27 B-12)
+  28, 2, 13 !ADC ROC#1 Sl#1 Ch#28 HCAL col#2 row#13 (28 B-13)
+!  29 !ADC ROC#1 Sl#1 Ch#29 unused
+!  30 !ADC ROC#1 Sl#1 Ch#30 unused
+!  31 !ADC ROC#1 Sl#1 Ch#31 unused
+  32, 3, 1  !ADC ROC#1 Sl#1 Ch#32 HCAL col#3 row#1 (32 C-01)
+  33, 3, 2  !ADC ROC#1 Sl#1 Ch#33 HCAL col#3 row#2 (33 C-02)
+  34, 3, 3  !ADC ROC#1 Sl#1 Ch#34 HCAL col#3 row#3 (34 C-03)
+  35, 3, 4  !ADC ROC#1 Sl#1 Ch#35 HCAL col#3 row#4 (35 C-04)
+  36, 3, 5  !ADC ROC#1 Sl#1 Ch#36 HCAL col#3 row#5 (36 C-05)
+  37, 3, 6  !ADC ROC#1 Sl#1 Ch#37 HCAL col#3 row#6 (37 C-06)
+  38, 3, 7  !ADC ROC#1 Sl#1 Ch#38 HCAL col#3 row#7 (38 C-07)
+  39, 3, 8  !ADC ROC#1 Sl#1 Ch#39 HCAL col#3 row#8 (39 C-08)
+  40, 3, 9  !ADC ROC#1 Sl#1 Ch#40 HCAL col#3 row#9 (40 C-09)
+  41, 3, 10 !ADC ROC#1 Sl#1 Ch#41 HCAL col#3 row#10 (41 C-10)
+  42, 3, 11 !ADC ROC#1 Sl#1 Ch#42 HCAL col#3 row#11 (42 C-11)
+  43, 3, 12 !ADC ROC#1 Sl#1 Ch#43 HCAL col#3 row#12 (43 C-12)
+  44, 3, 13 !ADC ROC#1 Sl#1 Ch#44 HCAL col#3 row#13 (44 C-13)
+!  45 !ADC ROC#1 Sl#1 Ch#45 unused
+!  46 !ADC ROC#1 Sl#1 Ch#46 unused
+!  47 !ADC ROC#1 Sl#1 Ch#47 unused
+  48, 4, 1  !ADC ROC#1 Sl#1 Ch#48 HCAL col#4 row#1 (48 D-01)
+  49, 4, 2  !ADC ROC#1 Sl#1 Ch#49 HCAL col#4 row#2 (49 D-02)
+  50, 4, 3  !ADC ROC#1 Sl#1 Ch#50 HCAL col#4 row#3 (50 D-03)
+  51, 4, 4  !ADC ROC#1 Sl#1 Ch#51 HCAL col#4 row#4 (51 D-04)
+  52, 4, 5  !ADC ROC#1 Sl#1 Ch#52 HCAL col#4 row#5 (52 D-05)
+  53, 4, 6  !ADC ROC#1 Sl#1 Ch#53 HCAL col#4 row#6 (53 D-06)
+  54, 4, 7  !ADC ROC#1 Sl#1 Ch#54 HCAL col#4 row#7 (54 D-07)
+  55, 4, 8  !ADC ROC#1 Sl#1 Ch#55 HCAL col#4 row#8 (55 D-08)
+  56, 4, 9  !ADC ROC#1 Sl#1 Ch#56 HCAL col#4 row#9 (56 D-09)
+  57, 4, 10 !ADC ROC#1 Sl#1 Ch#57 HCAL col#4 row#10 (57 D-10)
+  58, 4, 11 !ADC ROC#1 Sl#1 Ch#58 HCAL col#4 row#11 (58 D-11)
+  59, 4, 12 !ADC ROC#1 Sl#1 Ch#59 HCAL col#4 row#12 (59 D-12)
+  60, 4, 13 !ADC ROC#1 Sl#1 Ch#60 HCAL col#4 row#13 (60 D-13)
+!
+!  61 !ADC ROC#1 Sl#1 Ch#61 unused
+
+    detector= 5    !HMISC - scintillator (ADCs) - behind calorimeter
+  62, 2, 1, 0 !2,1,0 stands for: 2=adc,channel#1,0=dummy(pos vs. neg).
+  63, 2, 2, 0 !
+!
+detector= 4 !HCAL
+Slot= 5 ! ADC  Second set of tubes on first two layers
+  0, 1, 1, 1 !ADC ROC#1 Sl#5 Ch#0 HCAL col#1 row#1 (0 An-01)
+  1, 1, 2, 1 !ADC ROC#1 Sl#5 Ch#1 HCAL col#1 row#2 (1 An-02)
+  2, 1, 3, 1 !ADC ROC#1 Sl#5 Ch#2 HCAL col#1 row#3 (2 An-03)
+  3, 1, 4, 1 !ADC ROC#1 Sl#5 Ch#3 HCAL col#1 row#4 (3 An-04)
+  4, 1, 5, 1 !ADC ROC#1 Sl#5 Ch#4 HCAL col#1 row#5 (4 An-05)
+  5, 1, 6, 1 !ADC ROC#1 Sl#5 Ch#5 HCAL col#1 row#6 (5 An-06)
+  6, 1, 7, 1 !ADC ROC#1 Sl#5 Ch#6 HCAL col#1 row#7 (6 An-07)
+  7, 1, 8, 1 !ADC ROC#1 Sl#5 Ch#7 HCAL col#1 row#8 (7 An-08)
+  8, 1, 9, 1 !ADC ROC#1 Sl#5 Ch#8 HCAL col#1 row#9 (8 An-09)
+  9, 1, 10, 1 !ADC ROC#1 Sl#5 Ch#9 HCAL col#1 row#10 (9 An-10)
+  10, 1, 11, 1 !ADC ROC#1 Sl#5 Ch#10 HCAL col#1 row#11 (10 An-11)
+  11, 1, 12, 1 !ADC ROC#1 Sl#5 Ch#11 HCAL col#1 row#12 (11 An-112)
+  12, 1, 13, 1 !ADC ROC#1 Sl#5 Ch#12 HCAL col#1 row#13 (12 An-13)
+!  13 !ADC ROC#1 Sl#5 Ch#13 unused
+!  14 !ADC ROC#1 Sl#5 Ch#14 unused
+!  15 !ADC ROC#1 Sl#5 Ch#15 unused
+  16, 2, 1, 1 !ADC ROC#1 Sl#5 Ch#16 HCAL col#2 row#1 (16 Bn-01)
+  17, 2, 2, 1 !ADC ROC#1 Sl#5 Ch#17 HCAL col#2 row#2 (17 Bn-02)
+  18, 2, 3, 1 !ADC ROC#1 Sl#5 Ch#18 HCAL col#2 row#3 (18 Bn-03)
+  19, 2, 4, 1 !ADC ROC#1 Sl#5 Ch#19 HCAL col#2 row#4 (19 Bn-04)
+  20, 2, 5, 1 !ADC ROC#1 Sl#5 Ch#20 HCAL col#2 row#5 (20 Bn-05)
+  21, 2, 6, 1 !ADC ROC#1 Sl#5 Ch#21 HCAL col#2 row#6 (21 Bn-06)
+  22, 2, 7, 1 !ADC ROC#1 Sl#5 Ch#22 HCAL col#2 row#7 (22 Bn-07)
+  23, 2, 8, 1 !ADC ROC#1 Sl#5 Ch#23 HCAL col#2 row#8 (23 Bn-08)
+  24, 2, 9, 1 !ADC ROC#1 Sl#5 Ch#24 HCAL col#2 row#9 (24 Bn-09)
+  25, 2, 10, 1 !ADC ROC#1 Sl#5 Ch#25 HCAL col#2 row#10 (25 Bn-10)
+  26, 2, 11, 1 !ADC ROC#1 Sl#5 Ch#26 HCAL col#2 row#11 (26 Bn-11)
+  27, 2, 12, 1 !ADC ROC#1 Sl#5 Ch#27 HCAL col#2 row#12 (27 Bn-12)
+  28, 2, 13, 1 !ADC ROC#1 Sl#5 Ch#28 HCAL col#2 row#13 (28 Bn-13)
+!  29 !ADC ROC#1 Sl#1 Ch#29 unused
+!  30 !ADC ROC#1 Sl#1 Ch#30 unused
+!  31 !ADC ROC#1 Sl#1 Ch#31 unused
+!
+!==================================================================
+!!!!!!!!!!!!!!!!!!!!!!! AEROGEL ADC !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!
+    detector = 7
+    Nsubadd= 64
+    MASK= 3FFFx
+    BSUB= 17
+!
+!Slot= 5 ! ADC  
+! May be will use spare channels HCAL ADC for aerogel (Hamlet, 2002/10/16)
+!48, 1, 1, 0 !ADC ROC#1 Sl#5 Ch#48 signal pos 1
+!49, 1, 2, 0 !ADC ROC#1 Sl#5 Ch#48signal pos 2
+!50, 1, 3, 0 !ADC ROC#1 Sl#5 Ch#50 signal pos 3
+!51, 1, 4, 0 !ADC ROC#1 Sl#5 Ch#51 signal pos 4
+!52, 1, 5, 0 !ADC ROC#1 Sl#5 Ch#52 signal pos 5
+!53, 1, 6, 0 !ADC ROC#1 Sl#5 Ch#53 signal pos 6
+!54, 1, 7, 0 !ADC ROC#1 Sl#5 Ch#54 signal pos 7
+!55, 1, 8, 0 !ADC ROC#1 Sl#5 Ch#55 signal pos 8
+!56, 1, 1, 1 !ADC ROC#1 Sl#5 Ch#56  signal neg 1
+!57, 1, 2, 1 !ADC ROC#1 Sl#5 Ch#57  signal neg 2
+!58, 1, 3, 1 !ADC ROC#1 Sl#5 Ch#58  signal neg 3
+!59, 1, 4, 1 !ADC ROC#1 Sl#5 Ch#59  signal neg 4
+!60, 1, 5, 1 !ADC ROC#1 Sl#5 Ch#60  signal neg 5
+!61, 1, 6, 1 !ADC ROC#1 Sl#5 Ch#61  signal neg 6
+!62, 1, 7, 1 !ADC ROC#1 Sl#5 Ch#62  signal neg 7
+!63, 1, 8, 1 !ADC ROC#1 Sl#5 Ch#63  signal neg 8
+!
+!   detector = 7
+!    Nsubadd= 64
+!    MASK= 3FFFx
+!    BSUB= 17
+
+  Slot= 11 ! ADC  
+! Additional new ADC for aerogel (Hamlet, 2002/10/17)
+   0, 1, 1, 0 !ADC ROC#1 Sl#11 Ch#0 signal pos 1
+   1, 1, 2, 0 !ADC ROC#1 Sl#11 Ch#1 signal pos 2
+   2, 1, 3, 0 !ADC ROC#1 Sl#11 Ch#2 signal pos 3
+   3, 1, 4, 0 !ADC ROC#1 Sl#11 Ch#3 signal pos 4
+   4, 1, 5, 0 !ADC ROC#1 Sl#11 Ch#4 signal pos 5
+   5, 1, 6, 0 !ADC ROC#1 Sl#11 Ch#5 signal pos 6
+   6, 1, 7, 0 !ADC ROC#1 Sl#11 Ch#6 signal pos 7
+   7, 1, 8, 0 !ADC ROC#1 Sl#11 Ch#7 signal pos 8
+   8, 1, 1, 1 !ADC ROC#1 Sl#11 Ch#8  signal neg 1
+   9, 1, 2, 1 !ADC ROC#1 Sl#11 Ch#9  signal neg 2
+  10, 1, 3, 1 !ADC ROC#1 Sl#11 Ch#10  signal neg 3
+  11, 1, 4, 1 !ADC ROC#1 Sl#11 Ch#11  signal neg 4
+  12, 1, 5, 1 !ADC ROC#1 Sl#11 Ch#12  signal neg 5
+  13, 1, 6, 1 !ADC ROC#1 Sl#11 Ch#13  signal neg 6
+  14, 1, 7, 1 !ADC ROC#1 Sl#11 Ch#14  signal neg 7
+  15, 1, 8, 1 !ADC ROC#1 Sl#11 Ch#15  signal neg 8
+!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!-----------------------------------------------------------------
+    detector= 3   !HCER
+!
+  Slot= 3
+   0, 1, 1 !ADC  ROC#1 Sl#3 Ch#0 HCER tube#1 (C1)
+   1, 1, 2 !ADC  ROC#1 Sl#3 Ch#1 HCER tube#2 (C2)
+!   2 !ADC ROC#1 Sl#3 Ch#2 unused
+!   3 !ADC ROC#1 Sl#3 Ch#3 unused
+!   4 !ADC ROC#1 Sl#3 Ch#4 unused
+!   5 !ADC ROC#1 Sl#3 Ch#5 unused
+!   6 !ADC ROC#1 Sl#3 Ch#6 unused
+!   7 !ADC ROC#1 Sl#3 Ch#7 unused
+!   8 !ADC ROC#1 Sl#3 Ch#8 unused
+!   9 !ADC ROC#1 Sl#3 Ch#9 unused
+!   10 !ADC ROC#1 Sl#3 Ch#10 unused
+!   11 !ADC ROC#1 Sl#3 Ch#11 unused
+!   12 !ADC ROC#1 Sl#3 Ch#12 unused
+!   13 !ADC ROC#1 Sl#3 Ch#13 unused
+!   14 !ADC ROC#1 Sl#3 Ch#14 unused
+!   15 !ADC ROC#1 Sl#3 Ch#15 unused
+!   16 !ADC ROC#1 Sl#3 Ch#16 unused
+!   17 !ADC ROC#1 Sl#3 Ch#17 unused
+!   18 !ADC ROC#1 Sl#3 Ch#18 unused
+!   19 !ADC ROC#1 Sl#3 Ch#19 unused
+!   20 !ADC ROC#1 Sl#3 Ch#20 unused
+!   21 !ADC ROC#1 Sl#3 Ch#21 unused
+!   22 !ADC ROC#1 Sl#3 Ch#22 unused
+!   23 !ADC ROC#1 Sl#3 Ch#23 unused
+!   24 !ADC ROC#1 Sl#3 Ch#24 unused
+!   25 !ADC ROC#1 Sl#3 Ch#25 unused
+!   26 !ADC ROC#1 Sl#3 Ch#26 unused
+!   27 !ADC ROC#1 Sl#3 Ch#27 unused
+!   28 !ADC ROC#1 Sl#3 Ch#28 unused
+!   29 !ADC ROC#1 Sl#3 Ch#29 unused
+!   30 !ADC ROC#1 Sl#3 Ch#30 unused
+!   31 !ADC ROC#1 Sl#3 Ch#31 unused
+!   32 !ADC ROC#1 Sl#3 Ch#32 unused
+!   33 !ADC ROC#1 Sl#3 Ch#33 unused
+!   34 !ADC ROC#1 Sl#3 Ch#34 unused
+!   35 !ADC ROC#1 Sl#3 Ch#35 unused
+!   36 !ADC ROC#1 Sl#3 Ch#36 unused
+!   37 !ADC ROC#1 Sl#3 Ch#37 unused
+!   38 !ADC ROC#1 Sl#3 Ch#38 unused
+!   39 !ADC ROC#1 Sl#3 Ch#39 unused
+!   40 !ADC ROC#1 Sl#3 Ch#40 unused
+!   41 !ADC ROC#1 Sl#3 Ch#41 unused
+!   42 !ADC ROC#1 Sl#3 Ch#42 unused
+!   43 !ADC ROC#1 Sl#3 Ch#43 unused
+!   44 !ADC ROC#1 Sl#3 Ch#44 unused
+!   45 !ADC ROC#1 Sl#3 Ch#45 unused
+!   46 !ADC ROC#1 Sl#3 Ch#46 unused
+!   47 !ADC ROC#1 Sl#3 Ch#47 unused
+!detector= 6 ! GMISC 
+!!! Use "plane" 2 for the PMT's on the floor (BLM's)
+!48, 2, 1, 0 ! Special PMT signal ch #1
+!49, 2, 2, 0 ! Special PMT signal ch #1
+!50, 2, 3, 0 ! Special PMT signal ch #1
+!51, 2, 4, 0 ! Special PMT signal ch #1
+!52, 2, 5, 0 ! Special PMT signal ch #1
+!53, 2, 6, 0 ! Special PMT signal ch #1
+!54, 2, 7, 0 ! Special PMT signal ch #1
+!55, 2, 8, 0 ! Special PMT signal ch #1
+!   48 !ADC ROC#1 Sl#3 Ch#48 unused
+!   49 !ADC ROC#1 Sl#3 Ch#49 unused
+!   50 !ADC ROC#1 Sl#3 Ch#50 unused
+!   51 !ADC ROC#1 Sl#3 Ch#51 unused
+!   52 !ADC ROC#1 Sl#3 Ch#52 unused
+!   53 !ADC ROC#1 Sl#3 Ch#53 unused
+!   54 !ADC ROC#1 Sl#3 Ch#54 unused
+!   55 !ADC ROC#1 Sl#3 Ch#55 unused
+!   56 !ADC ROC#1 Sl#3 Ch#56 unused
+!   57 !ADC ROC#1 Sl#3 Ch#57 unused
+!   58 !ADC ROC#1 Sl#3 Ch#58 unused
+!   59 !ADC ROC#1 Sl#3 Ch#59 unused
+!   60 !ADC ROC#1 Sl#3 Ch#60 unused
+!   61 !ADC ROC#1 Sl#3 Ch#61 unused
+!   62 !ADC ROC#1 Sl#3 Ch#62 unused
+!   63 !ADC ROC#1 Sl#3 Ch#63 unused
+!
+!
+  detector= 6 ! GMISC
+!
+  Slot= 13
+!
+!  0, 2, 1, 0 !ADC ROC#1 Sl#15 Ch#0
+!  1, 2, 2, 0 !ADC ROC#1 Sl#15 Ch#1
+!  2, 2, 3, 0 !ADC ROC#1 Sl#15 Ch#2
+!  3, 2, 4, 0 !ADC ROC#1 Sl#15 Ch#3
+  4, 2, 5, 0 !ADC ROC#1 Sl#15 Ch#4 H00A X+
+  5, 2, 6, 0 !ADC ROC#1 Sl#15 Ch#5 H00A X-
+  6, 2, 7, 0 !ADC ROC#1 Sl#15 Ch#6 H00A Y+
+  7, 2, 8, 0 !ADC ROC#1 Sl#15 Ch#7 H00A Y-
+  8, 2, 9, 0 !ADC ROC#1 Sl#15 Ch#8 H00B X+
+  9, 2, 10, 0 !ADC ROC#1 Sl#15 Ch#9 H00B X-
+  10, 2, 11, 0 !ADC ROC#1 Sl#15 Ch#10 H00B Y+
+  11, 2, 12, 0 !ADC ROC#1 Sl#15 Ch#11 H00B Y-
+!  12, 2, 13, 0 !ADC ROC#1 Sl#15 Ch#12 Fast Raster X-sync
+!  13, 2, 14, 0 !ADC ROC#1 Sl#15 Ch#13 Fast Raster X-signal
+!  14, 2, 15, 0 !ADC ROC#1 Sl#15 Ch#14 Fast Raster Y-sync
+!  15, 2, 16, 0 !ADC ROC#1 Sl#15 Ch#15 Fast Raster Y-signal
+! mkj switch x and y Apr 9,2003
+! bpw added the new ID for raster 01-23-2014
+!
+  detector= 18 ! RASTER
+!
+! buddhini-w :To make things easier and consistent between detectors, we now use the plane and signal to identify the different raster signals 02-12-2014
+!..............................................................................
+! For raster : 0-->ADC X-sync
+!	       1-->ADC Y-signal
+!              2-->ADC Y-sync
+!              3-->ADC Y-signal
+
+  12, 1, 1, 0 !ADC ROC#1 Sl#13 Ch#12 Fast Raster X-sync
+  13, 2, 1, 1 !ADC ROC#1 Sl#13 Ch#13 Fast Raster X-signal
+  14, 3, 1, 2 !ADC ROC#1 Sl#13 Ch#14 Fast Raster Y-sync
+  15, 4, 1, 3 !ADC ROC#1 Sl#13 Ch#15 Fast Raster Y-signal
+!
+  detector= 6 ! GMISC
+!
+  16, 2, 17, 0  !ADC ROC#1 Sl#15 Ch#16 H00C X+
+  17, 2, 18, 0  !ADC ROC#1 Sl#15 Ch#17 H00C X-
+  18, 2, 19, 0  !ADC ROC#1 Sl#15 Ch#18 H00C Y+
+  19, 2, 20, 0  !ADC ROC#1 Sl#15 Ch#19 H00C Y-
+!   20 !ADC ROC#1 Sl#15 Ch#20 unused
+!   21 !ADC ROC#1 Sl#15 Ch#21 unused
+  22, 2, 23, 0  !ADC ROC#1 Sl#15 Ch#22 Raster gate
+!   23 !ADC ROC#1 Sl#15 Ch#23 unused
+!   24 !ADC ROC#1 Sl#15 Ch#24 unused
+!   25 !ADC ROC#1 Sl#15 Ch#25 unused
+!   26 !ADC ROC#1 Sl#15 Ch#26 unused
+!   27 !ADC ROC#1 Sl#15 Ch#27 unused
+!   28 !ADC ROC#1 Sl#15 Ch#28 unused
+!   29 !ADC ROC#1 Sl#15 Ch#29 unused
+!   30 !ADC ROC#1 Sl#15 Ch#30 unused
+!   31 !ADC ROC#1 Sl#15 Ch#31 unused
+   32, 2, 32, 0  ! Paul Gueye
+   33, 2, 33, 0  ! Paul Gueye
+   34, 2, 34, 0  ! Paul Gueye
+   35, 2, 35, 0  ! Paul Gueye
+   36, 2, 36, 0  ! Paul Gueye
+   37, 2, 37, 0  ! Paul Gueye
+   38, 2, 38, 0  ! Paul Gueye
+   39, 2, 39, 0  ! Paul Gueye
+   40, 2, 40, 0  ! Paul Gueye
+   41, 2, 41, 0  ! Paul Gueye
+   42, 2, 42, 0  ! Paul Gueye
+   43, 2, 43, 0  ! Paul Gueye
+   44, 2, 44, 0  ! Paul Gueye
+   45, 2, 45, 0  ! Paul Gueye
+   46, 2, 46, 0  ! Paul Gueye
+   47, 2, 47, 0  ! Paul Gueye
+!   32 !ADC ROC#1 Sl#15 Ch#32 unused
+!   33 !ADC ROC#1 Sl#15 Ch#33 unused
+!   34 !ADC ROC#1 Sl#15 Ch#34 unused
+!   35 !ADC ROC#1 Sl#15 Ch#35 unused
+!   36 !ADC ROC#1 Sl#15 Ch#36 unused
+!   37 !ADC ROC#1 Sl#15 Ch#37 unused
+!   38 !ADC ROC#1 Sl#15 Ch#38 unused
+!   39 !ADC ROC#1 Sl#15 Ch#39 unused
+!   40 !ADC ROC#1 Sl#15 Ch#40 unused
+!   41 !ADC ROC#1 Sl#15 Ch#41 unused
+!   42 !ADC ROC#1 Sl#15 Ch#42 unused
+!   43 !ADC ROC#1 Sl#15 Ch#43 unused
+!   44 !ADC ROC#1 Sl#15 Ch#44 unused
+!   45 !ADC ROC#1 Sl#15 Ch#45 unused
+!   46 !ADC ROC#1 Sl#15 Ch#46 unused
+!   47 !ADC ROC#1 Sl#15 Ch#47 unused
+!   48 !ADC ROC#1 Sl#15 Ch#48 unused
+!   49 !ADC ROC#1 Sl#15 Ch#49 unused
+!   50 !ADC ROC#1 Sl#15 Ch#50 unused
+!   51 !ADC ROC#1 Sl#15 Ch#51 unused
+!   52 !ADC ROC#1 Sl#15 Ch#52 unused
+!   53 !ADC ROC#1 Sl#15 Ch#53 unused
+!   54 !ADC ROC#1 Sl#15 Ch#54 unused
+!   55 !ADC ROC#1 Sl#15 Ch#55 unused
+!   56 !ADC ROC#1 Sl#15 Ch#56 unused
+!   57 !ADC ROC#1 Sl#15 Ch#57 unused
+!   58 !ADC ROC#1 Sl#15 Ch#58 unused
+!   59 !ADC ROC#1 Sl#15 Ch#59 unused
+!   60 !ADC ROC#1 Sl#15 Ch#60 unused
+!   61 !ADC ROC#1 Sl#15 Ch#61 unused
+!   62 !ADC ROC#1 Sl#15 Ch#62 unused
+!   63 !ADC ROC#1 Sl#15 Ch#63 unused
+!
+!---------------------------------------------------------------------
+!=============================== SOS MAP =============================
+!............ This part copy from replay99 (Hamlet,19 Dec'02)............
+!
+!  REAL map for SOS Drift Chambers (SDC); J.R.Arrington 20-Mar-1995
+!                                               
+     ROC= 4   !ReadOutController (crate) for SOS (fbsos)
+!
+       Nsubadd= 96	!assume 96 channel modules
+       MASK= FFFFx      !hex mask - assume LeCroy masking (lowest 13 bits)
+       BSUB= 17         !begin channel info with bit#17
+!
+       detector= 11     !SDC
+!
+       slot= 1          !SDC TDC
+!
+!       SDC plane (1)
+ 0, 1, 1	!chamber 1, U plane, 48 wires.
+ 1, 1, 2
+ 2, 1, 3
+ 3, 1, 4
+ 4, 1, 5
+ 5, 1, 6
+ 6, 1, 7
+ 7, 1, 8
+ 8, 1, 9
+ 9, 1, 10
+ 10, 1, 11
+ 11, 1, 12
+ 12, 1, 13
+ 13, 1, 14
+ 14, 1, 15
+ 15, 1, 16
+ 16, 1, 17
+ 17, 1, 18
+ 18, 1, 19
+ 19, 1, 20
+ 20, 1, 21
+ 21, 1, 22
+ 22, 1, 23
+ 23, 1, 24
+ 24, 1, 25
+ 25, 1, 26
+ 26, 1, 27
+ 27, 1, 28
+ 28, 1, 29
+ 29, 1, 30
+ 30, 1, 31
+ 31, 1, 32
+ 32, 1, 33
+ 33, 1, 34
+ 34, 1, 35
+ 35, 1, 36
+ 36, 1, 37
+ 37, 1, 38
+ 38, 1, 39
+ 39, 1, 40
+ 40, 1, 41
+ 41, 1, 42
+ 42, 1, 43
+ 43, 1, 44
+ 44, 1, 45
+ 45, 1, 46
+ 46, 1, 47
+ 47, 1, 48
+ 48, 2, 1	!chamber 1, U' plane, 48 wires.
+ 49, 2, 2
+ 50, 2, 3
+ 51, 2, 4
+ 52, 2, 5
+ 53, 2, 6
+ 54, 2, 7
+ 55, 2, 8
+ 56, 2, 9
+ 57, 2, 10
+ 58, 2, 11
+ 59, 2, 12
+ 60, 2, 13
+ 61, 2, 14
+ 62, 2, 15
+ 63, 2, 16
+ 64, 2, 17
+ 65, 2, 18
+ 66, 2, 19
+ 67, 2, 20
+ 68, 2, 21
+ 69, 2, 22
+ 70, 2, 23
+ 71, 2, 24
+ 72, 2, 25
+ 73, 2, 26
+ 74, 2, 27
+ 75, 2, 28
+ 76, 2, 29
+ 77, 2, 30
+ 78, 2, 31
+ 79, 2, 32
+ 80, 2, 33
+ 81, 2, 34
+ 82, 2, 35
+ 83, 2, 36
+ 84, 2, 37
+ 85, 2, 38
+ 86, 2, 39
+ 87, 2, 40
+ 88, 2, 41
+ 89, 2, 42
+ 90, 2, 43
+ 91, 2, 44
+ 92, 2, 45
+ 93, 2, 46
+ 94, 2, 47
+ 95, 2, 48
+!
+       slot= 2          !SDC TDC
+!
+!       SDC  plane (2)
+ 0, 5, 1	!chamber 1, V plane, 48 wires.
+ 1, 5, 2
+ 2, 5, 3
+ 3, 5, 4
+ 4, 5, 5
+ 5, 5, 6
+ 6, 5, 7
+ 7, 5, 8
+ 8, 5, 9
+ 9, 5, 10
+ 10, 5, 11
+ 11, 5, 12
+ 12, 5, 13
+ 13, 5, 14
+ 14, 5, 15
+ 15, 5, 16
+ 16, 5, 17
+ 17, 5, 18
+ 18, 5, 19
+ 19, 5, 20
+ 20, 5, 21
+ 21, 5, 22
+ 22, 5, 23
+ 23, 5, 24
+ 24, 5, 25
+ 25, 5, 26
+ 26, 5, 27
+ 27, 5, 28
+ 28, 5, 29
+ 29, 5, 30
+ 30, 5, 31
+ 31, 5, 32
+ 32, 5, 33
+ 33, 5, 34
+ 34, 5, 35
+ 35, 5, 36
+ 36, 5, 37
+ 37, 5, 38
+ 38, 5, 39
+ 39, 5, 40
+ 40, 5, 41
+ 41, 5, 42
+ 42, 5, 43
+ 43, 5, 44
+ 44, 5, 45
+ 45, 5, 46
+ 46, 5, 47
+ 47, 5, 48
+ 48, 6, 1	!chamber 1, V' plane, 48 wires.
+ 49, 6, 2
+ 50, 6, 3
+ 51, 6, 4
+ 52, 6, 5
+ 53, 6, 6
+ 54, 6, 7
+ 55, 6, 8
+ 56, 6, 9
+ 57, 6, 10
+ 58, 6, 11
+ 59, 6, 12
+ 60, 6, 13
+ 61, 6, 14
+ 62, 6, 15
+ 63, 6, 16
+ 64, 6, 17
+ 65, 6, 18
+ 66, 6, 19
+ 67, 6, 20
+ 68, 6, 21
+ 69, 6, 22
+ 70, 6, 23
+ 71, 6, 24
+ 72, 6, 25
+ 73, 6, 26
+ 74, 6, 27
+ 75, 6, 28
+ 76, 6, 29
+ 77, 6, 30
+ 78, 6, 31
+ 79, 6, 32
+ 80, 6, 33
+ 81, 6, 34
+ 82, 6, 35
+ 83, 6, 36
+ 84, 6, 37
+ 85, 6, 38
+ 86, 6, 39
+ 87, 6, 40
+ 88, 6, 41
+ 89, 6, 42
+ 90, 6, 43
+ 91, 6, 44
+ 92, 6, 45
+ 93, 6, 46
+ 94, 6, 47
+ 95, 6, 48
+!
+       slot= 4          !SDC TDC
+!
+!       SDC  plane (3)
+ 0, 3, 1	!chamber 1, X plane, 64 wires.
+ 1, 3, 2
+ 2, 3, 3
+ 3, 3, 4
+ 4, 3, 5
+ 5, 3, 6
+ 6, 3, 7
+ 7, 3, 8
+ 8, 3, 9
+ 9, 3, 10
+ 10, 3, 11
+ 11, 3, 12
+ 12, 3, 13
+ 13, 3, 14
+ 14, 3, 15
+ 15, 3, 16
+ 16, 3, 17
+ 17, 3, 18
+ 18, 3, 19
+ 19, 3, 20
+ 20, 3, 21
+ 21, 3, 22
+ 22, 3, 23
+ 23, 3, 24
+ 24, 3, 25
+ 25, 3, 26
+ 26, 3, 27
+ 27, 3, 28
+ 28, 3, 29
+ 29, 3, 30
+ 30, 3, 31
+ 31, 3, 32
+ 32, 3, 33
+ 33, 3, 34
+ 34, 3, 35
+ 35, 3, 36
+ 36, 3, 37
+ 37, 3, 38
+ 38, 3, 39
+ 39, 3, 40
+ 40, 3, 41
+ 41, 3, 42
+ 42, 3, 43
+ 43, 3, 44
+ 44, 3, 45
+ 45, 3, 46
+ 46, 3, 47
+ 47, 3, 48
+ 48, 3, 49
+ 49, 3, 50
+ 50, 3, 51
+ 51, 3, 52
+ 52, 3, 53
+ 53, 3, 54
+ 54, 3, 55
+ 55, 3, 56
+ 56, 3, 57
+ 57, 3, 58
+ 58, 3, 59
+ 59, 3, 60
+ 60, 3, 61
+ 61, 3, 62
+ 62, 3, 63
+ 63, 3, 64
+!
+       slot= 5          !SDC TDC
+!
+!       SDC  plane (4)
+ 0, 4, 1	!chamber 1, X' plane, 64 wires.
+ 1, 4, 2
+ 2, 4, 3
+ 3, 4, 4
+ 4, 4, 5
+ 5, 4, 6
+ 6, 4, 7
+ 7, 4, 8
+ 8, 4, 9
+ 9, 4, 10
+ 10, 4, 11
+ 11, 4, 12
+ 12, 4, 13
+ 13, 4, 14
+ 14, 4, 15
+ 15, 4, 16
+ 16, 4, 17
+ 17, 4, 18
+ 18, 4, 19
+ 19, 4, 20
+ 20, 4, 21
+ 21, 4, 22
+ 22, 4, 23
+ 23, 4, 24
+ 24, 4, 25
+ 25, 4, 26
+ 26, 4, 27
+ 27, 4, 28
+ 28, 4, 29
+ 29, 4, 30
+ 30, 4, 31
+ 31, 4, 32
+ 32, 4, 33
+ 33, 4, 34
+ 34, 4, 35
+ 35, 4, 36
+ 36, 4, 37
+ 37, 4, 38
+ 38, 4, 39
+ 39, 4, 40
+ 40, 4, 41
+ 41, 4, 42
+ 42, 4, 43
+ 43, 4, 44
+ 44, 4, 45
+ 45, 4, 46
+ 46, 4, 47
+ 47, 4, 48
+ 48, 4, 49
+ 49, 4, 50
+ 50, 4, 51
+ 51, 4, 52
+ 52, 4, 53
+ 53, 4, 54
+ 54, 4, 55
+ 55, 4, 56
+ 56, 4, 57
+ 57, 4, 58
+ 58, 4, 59
+ 59, 4, 60
+ 60, 4, 61
+ 61, 4, 62
+ 62, 4, 63
+ 63, 4, 64
+!
+       slot= 8          !SDC TDC
+!
+!       SDC plane (1)
+ 0, 7, 1	!chamber 2, U plane, 48 wires.
+ 1, 7, 2
+ 2, 7, 3
+ 3, 7, 4
+ 4, 7, 5
+ 5, 7, 6
+ 6, 7, 7
+ 7, 7, 8
+ 8, 7, 9
+ 9, 7, 10
+ 10, 7, 11
+ 11, 7, 12
+ 12, 7, 13
+ 13, 7, 14
+ 14, 7, 15
+ 15, 7, 16
+ 16, 7, 17
+ 17, 7, 18
+ 18, 7, 19
+ 19, 7, 20
+ 20, 7, 21
+ 21, 7, 22
+ 22, 7, 23
+ 23, 7, 24
+ 24, 7, 25
+ 25, 7, 26
+ 26, 7, 27
+ 27, 7, 28
+ 28, 7, 29
+ 29, 7, 30
+ 30, 7, 31
+ 31, 7, 32
+ 32, 7, 33
+ 33, 7, 34
+ 34, 7, 35
+ 35, 7, 36
+ 36, 7, 37
+ 37, 7, 38
+ 38, 7, 39
+ 39, 7, 40
+ 40, 7, 41
+ 41, 7, 42
+ 42, 7, 43
+ 43, 7, 44
+ 44, 7, 45
+ 45, 7, 46
+ 46, 7, 47
+ 47, 7, 48
+ 48, 8, 1	!chamber 2, U' plane, 48 wires.
+ 49, 8, 2
+ 50, 8, 3
+ 51, 8, 4
+ 52, 8, 5
+ 53, 8, 6
+ 54, 8, 7
+ 55, 8, 8
+ 56, 8, 9
+ 57, 8, 10
+ 58, 8, 11
+ 59, 8, 12
+ 60, 8, 13
+ 61, 8, 14
+ 62, 8, 15
+ 63, 8, 16
+ 64, 8, 17
+ 65, 8, 18
+ 66, 8, 19
+ 67, 8, 20
+ 68, 8, 21
+ 69, 8, 22
+ 70, 8, 23
+ 71, 8, 24
+ 72, 8, 25
+ 73, 8, 26
+ 74, 8, 27
+ 75, 8, 28
+ 76, 8, 29
+ 77, 8, 30
+ 78, 8, 31
+ 79, 8, 32
+ 80, 8, 33
+ 81, 8, 34
+ 82, 8, 35
+ 83, 8, 36
+ 84, 8, 37
+ 85, 8, 38
+ 86, 8, 39
+ 87, 8, 40
+ 88, 8, 41
+ 89, 8, 42
+ 90, 8, 43
+ 91, 8, 44
+ 92, 8, 45
+ 93, 8, 46
+ 94, 8, 47
+ 95, 8, 48
+!
+       slot= 9          !SDC TDC
+!
+!       SDC  plane (2)
+ 0, 11, 1	!chamber 2, V plane, 48 wires.
+ 1, 11, 2
+ 2, 11, 3
+ 3, 11, 4
+ 4, 11, 5
+ 5, 11, 6
+ 6, 11, 7
+ 7, 11, 8
+ 8, 11, 9
+ 9, 11, 10
+ 10, 11, 11
+ 11, 11, 12
+ 12, 11, 13
+ 13, 11, 14
+ 14, 11, 15
+ 15, 11, 16
+ 16, 11, 17
+ 17, 11, 18
+ 18, 11, 19
+ 19, 11, 20
+ 20, 11, 21
+ 21, 11, 22
+ 22, 11, 23
+ 23, 11, 24
+ 24, 11, 25
+ 25, 11, 26
+ 26, 11, 27
+ 27, 11, 28
+ 28, 11, 29
+ 29, 11, 30
+ 30, 11, 31
+ 31, 11, 32
+ 32, 11, 33
+ 33, 11, 34
+ 34, 11, 35
+ 35, 11, 36
+ 36, 11, 37
+ 37, 11, 38
+ 38, 11, 39
+ 39, 11, 40
+ 40, 11, 41
+ 41, 11, 42
+ 42, 11, 43
+ 43, 11, 44
+ 44, 11, 45
+ 45, 11, 46
+ 46, 11, 47
+ 47, 11, 48
+ 48, 12, 1	!chamber 2, V' plane, 48 wires.
+ 49, 12, 2
+ 50, 12, 3
+ 51, 12, 4
+ 52, 12, 5
+ 53, 12, 6
+ 54, 12, 7
+ 55, 12, 8
+ 56, 12, 9
+ 57, 12, 10
+ 58, 12, 11
+ 59, 12, 12
+ 60, 12, 13
+ 61, 12, 14
+ 62, 12, 15
+ 63, 12, 16
+ 64, 12, 17
+ 65, 12, 18
+ 66, 12, 19
+ 67, 12, 20
+ 68, 12, 21
+ 69, 12, 22
+ 70, 12, 23
+ 71, 12, 24
+ 72, 12, 25
+ 73, 12, 26
+ 74, 12, 27
+ 75, 12, 28
+ 76, 12, 29
+ 77, 12, 30
+ 78, 12, 31
+ 79, 12, 32
+ 80, 12, 33
+ 81, 12, 34
+ 82, 12, 35
+ 83, 12, 36
+ 84, 12, 37
+ 85, 12, 38
+ 86, 12, 39
+ 87, 12, 40
+ 88, 12, 41
+ 89, 12, 42
+ 90, 12, 43
+ 91, 12, 44
+ 92, 12, 45
+ 93, 12, 46
+ 94, 12, 47
+ 95, 12, 48
+!
+       slot= 11          !SDC TDC
+!
+!       SDC  plane (3)
+ 0, 9, 1	!chamber 2, X plane, 64 wires.
+ 1, 9, 2
+ 2, 9, 3
+ 3, 9, 4
+ 4, 9, 5
+ 5, 9, 6
+ 6, 9, 7
+ 7, 9, 8
+ 8, 9, 9
+ 9, 9, 10
+ 10, 9, 11
+ 11, 9, 12
+ 12, 9, 13
+ 13, 9, 14
+ 14, 9, 15
+ 15, 9, 16
+ 16, 9, 17
+ 17, 9, 18
+ 18, 9, 19
+ 19, 9, 20
+ 20, 9, 21
+ 21, 9, 22
+ 22, 9, 23
+ 23, 9, 24
+ 24, 9, 25
+ 25, 9, 26
+ 26, 9, 27
+ 27, 9, 28
+ 28, 9, 29
+ 29, 9, 30
+ 30, 9, 31
+ 31, 9, 32
+ 32, 9, 33
+ 33, 9, 34
+ 34, 9, 35
+ 35, 9, 36
+ 36, 9, 37
+ 37, 9, 38
+ 38, 9, 39
+ 39, 9, 40
+ 40, 9, 41
+ 41, 9, 42
+ 42, 9, 43
+ 43, 9, 44
+ 44, 9, 45
+ 45, 9, 46
+ 46, 9, 47
+ 47, 9, 48
+ 48, 9, 49
+ 49, 9, 50
+ 50, 9, 51
+ 51, 9, 52
+ 52, 9, 53
+ 53, 9, 54
+ 54, 9, 55
+ 55, 9, 56
+ 56, 9, 57
+ 57, 9, 58
+ 58, 9, 59
+ 59, 9, 60
+ 60, 9, 61
+ 61, 9, 62
+ 62, 9, 63
+ 63, 9, 64
+!
+       slot= 12          !SDC TDC
+!
+!       SDC  plane (4)
+ 0, 10, 1	!chamber 2, X' plane, 64 wires.
+ 1, 10, 2
+ 2, 10, 3
+ 3, 10, 4
+ 4, 10, 5
+ 5, 10, 6
+ 6, 10, 7
+ 7, 10, 8
+ 8, 10, 9
+ 9, 10, 10
+ 10, 10, 11
+ 11, 10, 12
+ 12, 10, 13
+ 13, 10, 14
+ 14, 10, 15
+ 15, 10, 16
+ 16, 10, 17
+ 17, 10, 18
+ 18, 10, 19
+ 19, 10, 20
+ 20, 10, 21
+ 21, 10, 22
+ 22, 10, 23
+ 23, 10, 24
+ 24, 10, 25
+ 25, 10, 26
+ 26, 10, 27
+ 27, 10, 28
+ 28, 10, 29
+ 29, 10, 30
+ 30, 10, 31
+ 31, 10, 32
+ 32, 10, 33
+ 33, 10, 34
+ 34, 10, 35
+ 35, 10, 36
+ 36, 10, 37
+ 37, 10, 38
+ 38, 10, 39
+ 39, 10, 40
+ 40, 10, 41
+ 41, 10, 42
+ 42, 10, 43
+ 43, 10, 44
+ 44, 10, 45
+ 45, 10, 46
+ 46, 10, 47
+ 47, 10, 48
+ 48, 10, 49
+ 49, 10, 50
+ 50, 10, 51
+ 51, 10, 52
+ 52, 10, 53
+ 53, 10, 54
+ 54, 10, 55
+ 55, 10, 56
+ 56, 10, 57
+ 57, 10, 58
+ 58, 10, 59
+ 59, 10, 60
+ 60, 10, 61
+ 61, 10, 62
+ 62, 10, 63
+ 63, 10, 64
+!
+!   SOS upstairs (SSCIN+SCAL+SCER) map    K.B.Beard 13-Jun-1994
+!
+    ROC= 3               !upstairs SOS crate (fbch2)
+!
+    detector= 12 !SSCIN
+!
+!       TDC module LeCroy 1872a
+    Nsubadd= 64
+    MASK= FFFx
+    BSUB= 16
+!
+ Slot= 22 ! TDC  
+  0, 1, 3, 2 !TDC ROC#3 Sl#23 Ch#1 SSCIN pl#1 [X1] id sig#3 [TDC+]
+  1, 1, 5, 2 !TDC ROC#3 Sl#23 Ch#1 SSCIN pl#1 [X1] id sig#5 [TDC+]
+  2, 1, 7, 2 !TDC ROC#3 Sl#23 Ch#2 SSCIN pl#1 [X1] id sig#7 [TDC+]
+  3, 1, 9, 2 !TDC ROC#3 Sl#23 Ch#3 SSCIN pl#1 [X1] id sig#9 [TDC+]
+  4, 1, 2, 2 !TDC ROC#3 Sl#23 Ch#4 SSCIN pl#1 [X1] id sig#2 [TDC+]
+  5, 1, 4, 2 !TDC ROC#3 Sl#23 Ch#5 SSCIN pl#1 [X1] id sig#4 [TDC+]
+  6, 1, 6, 2 !TDC ROC#3 Sl#23 Ch#6 SSCIN pl#1 [X1] id sig#6 [TDC+]
+  7, 1, 8, 2 !TDC ROC#3 Sl#23 Ch#7 SSCIN pl#1 [X1] id sig#8 [TDC+]
+  8, 1, 3, 3 !TDC ROC#3 Sl#23 Ch#8 SSCIN pl#1 [X1] id sig#3 [TDC-]
+  9, 1, 5, 3 !TDC ROC#3 Sl#23 Ch#9 SSCIN pl#1 [X1] id sig#5 [TDC-]
+  10, 1, 7, 3 !TDC ROC#3 Sl#23 Ch#10 SSCIN pl#1 [X1] id sig#7 [TDC-]
+  11, 1, 9, 3 !TDC ROC#3 Sl#23 Ch#11 SSCIN pl#1 [X1] id sig#9 [TDC-]
+  12, 1, 2, 3 !TDC ROC#3 Sl#23 Ch#12 SSCIN pl#1 [X1] id sig#2 [TDC-]
+  13, 1, 4, 3 !TDC ROC#3 Sl#23 Ch#13 SSCIN pl#1 [X1] id sig#4 [TDC-]
+  14, 1, 6, 3 !TDC ROC#3 Sl#23 Ch#14 SSCIN pl#1 [X1] id sig#6 [TDC-]
+  15, 1, 8, 3 !TDC ROC#3 Sl#23 Ch#15 SSCIN pl#1 [X1] id sig#8 [TDC-]
+  16, 2, 3, 2 !TDC ROC#3 Sl#23 Ch#16 SSCIN pl#2 [Y1] id sig#3 [TDC+]
+  17, 2, 5, 2 !TDC ROC#3 Sl#23 Ch#17 SSCIN pl#2 [Y1] id sig#5 [TDC+]
+  18, 2, 7, 2 !TDC ROC#3 Sl#23 Ch#18 SSCIN pl#2 [Y1] id sig#7 [TDC+]
+  19, 2, 9, 2 !TDC ROC#3 Sl#23 Ch#19 SSCIN pl#2 [Y1] id sig#9 [TDC+]
+  20, 2, 2, 2 !TDC ROC#3 Sl#23 Ch#20 SSCIN pl#2 [Y1] id sig#2 [TDC+]
+  21, 2, 4, 2 !TDC ROC#3 Sl#23 Ch#21 SSCIN pl#2 [Y1] id sig#4 [TDC+]
+  22, 2, 6, 2 !TDC ROC#3 Sl#23 Ch#22 SSCIN pl#2 [Y1] id sig#6 [TDC+]
+  23, 2, 8, 2 !TDC ROC#3 Sl#23 Ch#23 SSCIN pl#2 [Y1] id sig#8 [TDC+]
+  24, 2, 3, 3 !TDC ROC#3 Sl#23 Ch#24 SSCIN pl#2 [Y1] id sig#3 [TDC-]
+  25, 2, 5, 3 !TDC ROC#3 Sl#23 Ch#25 SSCIN pl#2 [Y1] id sig#5 [TDC-]
+  26, 2, 7, 3 !TDC ROC#3 Sl#23 Ch#26 SSCIN pl#2 [Y1] id sig#7 [TDC-]
+  27, 2, 9, 3 !TDC ROC#3 Sl#23 Ch#27 SSCIN pl#2 [Y1] id sig#9 [TDC-]
+  28, 2, 2, 3 !TDC ROC#3 Sl#23 Ch#28 SSCIN pl#2 [Y1] id sig#2 [TDC-]
+  29, 2, 4, 3 !TDC ROC#3 Sl#23 Ch#29 SSCIN pl#2 [Y1] id sig#4 [TDC-]
+  30, 2, 6, 3 !TDC ROC#3 Sl#23 Ch#30 SSCIN pl#2 [Y1] id sig#6 [TDC-]
+  31, 2, 8, 3 !TDC ROC#3 Sl#23 Ch#31 SSCIN pl#2 [Y1] id sig#8 [TDC-]
+  32, 4, 3, 2 !TDC ROC#3 Sl#23 Ch#32 SSCIN pl#4 [Y2] id sig#3 [TDC+]
+  33, 4, 5, 2 !TDC ROC#3 Sl#23 Ch#33 SSCIN pl#4 [Y2] id sig#5 [TDC+]
+  34, 4, 7, 2 !TDC ROC#3 Sl#23 Ch#34 SSCIN pl#4 [Y2] id sig#7 [TDC+]
+  35, 4, 9, 2 !TDC ROC#3 Sl#23 Ch#35 SSCIN pl#4 [Y2] id sig#9 [TDC+]
+  36, 4, 2, 2 !TDC ROC#3 Sl#23 Ch#36 SSCIN pl#4 [Y2] id sig#2 [TDC+]
+  37, 4, 4, 2 !TDC ROC#3 Sl#23 Ch#37 SSCIN pl#4 [Y2] id sig#4 [TDC+]
+  38, 4, 6, 2 !TDC ROC#3 Sl#23 Ch#38 SSCIN pl#4 [Y2] id sig#6 [TDC+]
+  39, 4, 8, 2 !TDC ROC#3 Sl#23 Ch#39 SSCIN pl#4 [Y2] id sig#8 [TDC+]
+  40, 4, 3, 3 !TDC ROC#3 Sl#23 Ch#40 SSCIN pl#4 [Y2] id sig#3 [TDC-]
+  41, 4, 5, 3 !TDC ROC#3 Sl#23 Ch#41 SSCIN pl#4 [Y2] id sig#5 [TDC-]
+  42, 4, 7, 3 !TDC ROC#3 Sl#23 Ch#42 SSCIN pl#4 [Y2] id sig#7 [TDC-]
+  43, 4, 9, 3 !TDC ROC#3 Sl#23 Ch#43 SSCIN pl#4 [Y2] id sig#9 [TDC-]
+  44, 4, 2, 3 !TDC ROC#3 Sl#23 Ch#44 SSCIN pl#4 [Y2] id sig#2 [TDC-]
+  45, 4, 4, 3 !TDC ROC#3 Sl#23 Ch#45 SSCIN pl#4 [Y2] id sig#4 [TDC-]
+  46, 4, 6, 3 !TDC ROC#3 Sl#23 Ch#46 SSCIN pl#4 [Y2] id sig#6 [TDC-]
+  47, 4, 8, 3 !TDC ROC#3 Sl#23 Ch#47 SSCIN pl#4 [Y2] id sig#8 [TDC-]
+  48, 1, 1, 2 !TDC ROC#3 Sl#23 Ch#48 SSCIN pl#1 [X1] id sig#1 [TDC+]
+  49, 1, 1, 3 !TDC ROC#3 Sl#23 Ch#49 SSCIN pl#1 [X1] id sig#1 [TDC-]
+  50, 2, 1, 2 !TDC ROC#3 Sl#23 Ch#50 SSCIN pl#2 [Y1] id sig#1 [TDC+]
+  51, 2, 1, 3 !TDC ROC#3 Sl#23 Ch#51 SSCIN pl#2 [Y1] id sig#1 [TDC-]
+  52, 4, 1, 2 !TDC ROC#3 Sl#23 Ch#52 SSCIN pl#4 [Y2] id sig#1 [TDC+]
+  53, 4, 1, 3 !TDC ROC#3 Sl#23 Ch#53 SSCIN pl#4 [Y2] id sig#1 [TDC-]
+!  54 !TDC ROC#3 Sl#23 Ch#54 unused
+!  55 !TDC ROC#3 Sl#23 Ch#55 unused
+!  56 !TDC ROC#3 Sl#23 Ch#56 unused
+!  57 !TDC ROC#3 Sl#23 Ch#57 unused
+!  58 !TDC ROC#3 Sl#23 Ch#58 unused
+!  59 !TDC ROC#3 Sl#23 Ch#59 unused
+!  60 !TDC ROC#3 Sl#23 Ch#60 unused
+!  61 !TDC ROC#3 Sl#23 Ch#61 unused
+!  62 !TDC ROC#3 Sl#23 Ch#62 unused
+!  63 !TDC ROC#3 Sl#23 Ch#63 unused
+!
+!for run 8023, swapped HMS and SOS TDC so that TDC with first 8
+!channels dead would be here.  Moved connectors 1 and 2 to position
+!3 and 4.  Moved 3 singles channels (in connector3) to connector 2.
+
+ Slot= 20 ! TDC  
+  32, 3, 1, 2 !TDC ROC#3 Sl#21 Ch#0 SSCIN pl#3 [X2] id sig#1 [TDC+]
+  33, 3, 3, 2 !TDC ROC#3 Sl#21 Ch#1 SSCIN pl#3 [X2] id sig#3 [TDC+]
+  34, 3, 5, 2 !TDC ROC#3 Sl#21 Ch#2 SSCIN pl#3 [X2] id sig#5 [TDC+]
+  35, 3, 7, 2 !TDC ROC#3 Sl#21 Ch#3 SSCIN pl#3 [X2] id sig#7 [TDC+]
+  36, 3, 9, 2 !TDC ROC#3 Sl#21 Ch#4 SSCIN pl#3 [X2] id sig#9 [TDC+]
+  37, 3, 11, 2 !TDC ROC#3 Sl#21 Ch#5 SSCIN pl#3 [X2] id sig#11 [TDC+]
+  38, 3, 13, 2 !TDC ROC#3 Sl#21 Ch#6 SSCIN pl#3 [X2] id sig#13 [TDC+]
+  39, 3, 15, 2 !TDC ROC#3 Sl#21 Ch#7 SSCIN pl#3 [X2] id sig#15 [TDC+]
+  40, 3, 2, 2 !TDC ROC#3 Sl#21 Ch#8 SSCIN pl#3 [X2] id sig#2 [TDC+]
+  41, 3, 4, 2 !TDC ROC#3 Sl#21 Ch#9 SSCIN pl#3 [X2] id sig#4 [TDC+]
+  42, 3, 6, 2 !TDC ROC#3 Sl#21 Ch#10 SSCIN pl#3 [X2] id sig#6 [TDC+]
+  43, 3, 8, 2 !TDC ROC#3 Sl#21 Ch#11 SSCIN pl#3 [X2] id sig#8 [TDC+]
+  44, 3, 10, 2 !TDC ROC#3 Sl#21 Ch#12 SSCIN pl#3 [X2] id sig#10 [TDC+]
+  45, 3, 12, 2 !TDC ROC#3 Sl#21 Ch#13 SSCIN pl#3 [X2] id sig#12 [TDC+]
+  46, 3, 14, 2 !TDC ROC#3 Sl#21 Ch#14 SSCIN pl#3 [X2] id sig#14 [TDC+]
+  47, 3, 16, 2 !TDC ROC#3 Sl#21 Ch#15 SSCIN pl#3 [X2] id sig#16 [TDC+]
+  48, 3, 1, 3 !TDC ROC#3 Sl#21 Ch#16 SSCIN pl#3 [X2] id sig#1 [TDC-]
+  49, 3, 3, 3 !TDC ROC#3 Sl#21 Ch#17 SSCIN pl#3 [X2] id sig#3 [TDC-]
+  50, 3, 5, 3 !TDC ROC#3 Sl#21 Ch#18 SSCIN pl#3 [X2] id sig#5 [TDC-]
+  51, 3, 7, 3 !TDC ROC#3 Sl#21 Ch#19 SSCIN pl#3 [X2] id sig#7 [TDC-]
+  52, 3, 9, 3 !TDC ROC#3 Sl#21 Ch#20 SSCIN pl#3 [X2] id sig#9 [TDC-]
+  53, 3, 11, 3 !TDC ROC#3 Sl#21 Ch#21 SSCIN pl#3 [X2] id sig#11 [TDC-]
+  54, 3, 13, 3 !TDC ROC#3 Sl#21 Ch#22 SSCIN pl#3 [X2] id sig#13 [TDC-]
+  55, 3, 15, 3 !TDC ROC#3 Sl#21 Ch#23 SSCIN pl#3 [X2] id sig#15 [TDC-]
+  56, 3, 2, 3 !TDC ROC#3 Sl#21 Ch#24 SSCIN pl#3 [X2] id sig#2 [TDC-]
+  57, 3, 4, 3 !TDC ROC#3 Sl#21 Ch#25 SSCIN pl#3 [X2] id sig#4 [TDC-]
+  58, 3, 6, 3 !TDC ROC#3 Sl#21 Ch#26 SSCIN pl#3 [X2] id sig#6 [TDC-]
+  59, 3, 8, 3 !TDC ROC#3 Sl#21 Ch#27 SSCIN pl#3 [X2] id sig#8 [TDC-]
+  60, 3, 10, 3 !TDC ROC#3 Sl#21 Ch#28 SSCIN pl#3 [X2] id sig#10 [TDC-]
+  61, 3, 12, 3 !TDC ROC#3 Sl#21 Ch#29 SSCIN pl#3 [X2] id sig#12 [TDC-]
+  62, 3, 14, 3 !TDC ROC#3 Sl#21 Ch#30 SSCIN pl#3 [X2] id sig#14 [TDC-]
+  63, 3, 16, 3 !TDC ROC#3 Sl#21 Ch#31 SSCIN pl#3 [X2] id sig#16  [TDC-]
+!
+    detector= 15 !SMISC
+!
+  18, 1, 65, 0  ! 0 !TDC ROC#3 Sl#20 Ch#32 RF TDC.
+!
+    detector= 15 !SMISC
+!
+!       TDC module LeCroy 1872a
+    Nsubadd= 64
+    MASK= FFFx
+    BSUB= 16
+
+ Slot= 18 ! TDC  
+0, 1, 1, 0  ! 0 !TDC ROC#3 Sl#20 Ch#0 signal     {S1X}
+1, 1, 2, 0  ! 1 !TDC ROC#3 Sl#20 Ch#1 signal     {S1Y}
+2, 1, 3, 0  ! 2 !TDC ROC#3 Sl#20 Ch#2 signal     {S2X}
+3, 1, 4, 0  ! 3 !TDC ROC#3 Sl#20 Ch#3 signal     {S2Y}
+4, 1, 5, 0  ! 4 !TDC ROC#3 Sl#20 Ch#4 signal     {S1}
+5, 1, 6 ,0  ! 5 !TDC ROC#3 Sl#20 Ch#5 signal     {S2}
+6, 1, 7, 0  ! 6 !TDC ROC#3 Sl#20 Ch#6 unused     {MuonL}
+7, 1, 8, 0  ! 7 !TDC ROC#3 Sl#20 Ch#7 unused     {MuonR}
+8, 1, 9, 0  ! 8 !TDC ROC#3 Sl#20 Ch#8 signal     {HMSPRE}
+9, 1, 10, 0  ! 9 !TDC ROC#3 Sl#20 Ch#9 signal    {SOSPRE}
+10, 1, 11, 0  ! 10 !TDC ROC#3 Sl#20 Ch#10 signal {COINPRE}
+11, 1, 12, 0  ! 11 !TDC ROC#3 Sl#20 Ch#11 signal {PEDPRE}
+12, 1, 13, 0  ! 12 !TDC ROC#3 Sl#20 Ch#12 signal {HMSTRG}
+13, 1, 14, 0  ! 13 !TDC ROC#3 Sl#20 Ch#13 signal {SOSTRG}
+14, 1, 15, 0  ! 14 !TDC ROC#3 Sl#20 Ch#14 signal {COINTRG}
+15, 1, 16, 0  ! 15 !TDC ROC#3 Sl#20 Ch#15 signal {PEDTRG}
+
+  Slot= 18! TDC
+16, 1, 17, 0  ! 16 !TDC ROC#3 Sl#18 Ch#16 signal {sS1}           
+17, 1, 18, 0  ! 17 !TDC ROC#3 Sl#18 Ch#17 signal {sPRE50}        
+18, 1, 19, 0  ! 18 !TDC ROC#3 Sl#18 Ch#18 signal {sS2X}          
+19, 1, 20, 0  ! 19 !TDC ROC#3 Sl#18 Ch#19 signal {sPRE150}       
+20, 1, 21, 0  ! 20 !TDC ROC#3 Sl#18 Ch#20 signal {sS1X}          
+21, 1, 22, 0  ! 21 !TDC ROC#3 Sl#18 Ch#21 signal {sS2Y}          
+22, 1, 23, 0  ! 22 !TDC ROC#3 Sl#18 Ch#22 signal {sPRE100}       
+23, 1, 24, 0  ! 23 !TDC ROC#3 Sl#18 Ch#23 signal {sS1Y}          
+24, 1, 25, 0  ! 24 !TDC ROC#3 Sl#18 Ch#24 signal {sS2}           
+25, 1, 26, 0  ! 25 !TDC ROC#3 Sl#18 Ch#25 signal {sPRE200}       
+26, 1, 27, 0  ! 26 !TDC ROC#3 Sl#18 Ch#26 signal {sSTOF}         
+27, 1, 28, 0  ! 27 !TDC ROC#3 Sl#18 Ch#27 signal {sSCIN}         
+28, 1, 29, 0  ! 28 !TDC ROC#3 Sl#18 Ch#28 signal {sELREAL}       
+29, 1, 30, 0  ! 29 !TDC ROC#3 Sl#18 Ch#29 signal {sPIPRE}        
+30, 1, 31, 0  ! 30 !TDC ROC#3 Sl#18 Ch#30 signal {sELCLEAN}      
+31, 1, 32, 0  ! 31 !TDC ROC#3 Sl#18 Ch#31 signal {sPRETRG}       
+32, 1, 33, 0  ! 32 !TDC ROC#3 Sl#18 Ch#32 signal {BCM1}          
+33, 1, 34, 0  ! 33 !TDC ROC#3 Sl#18 Ch#33 signal {BCM2}          
+34, 1, 35, 0  ! 34 !TDC ROC#3 Sl#18 Ch#34 signal {BCM3}          
+35, 1, 36, 0  ! 35 !TDC ROC#3 Sl#18 Ch#35 signal {UNSER}         
+36, 1, 37, 0  ! 36 !TDC ROC#3 Sl#18 Ch#36 signal {CLOCK}         
+37, 1, 38, 0  ! 37 !TDC ROC#3 Sl#18 Ch#37 signal {1 MHz * 36??}  
+38, 1, 39, 0  ! 38 !TDC ROC#3 Sl#18 Ch#38 signal {sPICLEAN}      
+39, 1, 40, 0  ! 39 !TDC ROC#3 Sl#18 Ch#39 signal {sELCLEAN}      
+40, 1, 41, 0  ! 40 !TDC ROC#3 Sl#18 Ch#40 signal {sPION}         
+41, 1, 42, 0  ! 41 !TDC ROC#3 Sl#18 Ch#41 signal {sCER}          
+42, 1, 43, 0  ! 42 !TDC ROC#3 Sl#18 Ch#42 signal {sELHI}         
+43, 1, 44, 0  ! 43 !TDC ROC#3 Sl#18 Ch#43 signal {sELLO}         
+44, 1, 45, 0  ! 44 !TDC ROC#3 Sl#18 Ch#44 signal {sPRHI}         
+45, 1, 46, 0  ! 45 !TDC ROC#3 Sl#18 Ch#45 signal {sPRLO}         
+46, 1, 47, 0  ! 46 !TDC ROC#3 Sl#18 Ch#46 signal {sSHLO}         
+47, 1, 48, 0  ! 47 !TDC ROC#3 Sl#18 Ch#47 signal {PEDS+TRIGS?}   
+!
+!       ADC module LeCroy 1881M
+    Nsubadd= 64
+    MASK= 3FFFx
+    BSUB= 17
+!
+    detector= 12 !SSCIN
+ Slot= 9 ! ADC  
+  0, 1, 1, 0 !ADC ROC#3 Sl#9 Ch#0 SSCIN pl#1 [X1] id sig#1 [ADC+]
+  1, 1, 3, 0 !ADC ROC#3 Sl#9 Ch#1 SSCIN pl#1 [X1] id sig#3 [ADC+]
+  2, 1, 5, 0 !ADC ROC#3 Sl#9 Ch#2 SSCIN pl#1 [X1] id sig#5 [ADC+]
+  3, 1, 7, 0 !ADC ROC#3 Sl#9 Ch#3 SSCIN pl#1 [X1] id sig#7 [ADC+]
+  4, 1, 9, 0 !ADC ROC#3 Sl#9 Ch#4 SSCIN pl#1 [X1] id sig#9 [ADC+]
+!  5 !ADC ROC#3 Sl#9 Ch#5 unused
+!  6 !ADC ROC#3 Sl#9 Ch#6 unused
+!  7 !ADC ROC#3 Sl#9 Ch#7 unused
+  8, 1, 2, 0 !ADC ROC#3 Sl#9 Ch#8 SSCIN pl#1 [X1] id sig#2 [ADC+]
+  9, 1, 4, 0 !ADC ROC#3 Sl#9 Ch#9 SSCIN pl#1 [X1] id sig#4 [ADC+]
+  10, 1, 6, 0 !ADC ROC#3 Sl#9 Ch#10 SSCIN pl#1 [X1] id sig#6 [ADC+]
+  11, 1, 8, 0 !ADC ROC#3 Sl#9 Ch#11 SSCIN pl#1 [X1] id sig#8 [ADC+]
+!  12 !ADC ROC#3 Sl#9 Ch#12 unused
+!  13 !ADC ROC#3 Sl#9 Ch#13 unused
+!  14 !ADC ROC#3 Sl#9 Ch#14 unused
+!  15 !ADC ROC#3 Sl#9 Ch#15 unused
+  16, 1, 1, 1 !ADC ROC#3 Sl#9 Ch#16 SSCIN pl#1 [X1] id sig#1 [ADC-]
+  17, 1, 3, 1 !ADC ROC#3 Sl#9 Ch#17 SSCIN pl#1 [X1] id sig#3 [ADC-]
+  18, 1, 5, 1 !ADC ROC#3 Sl#9 Ch#18 SSCIN pl#1 [X1] id sig#5 [ADC-]
+  19, 1, 7, 1 !ADC ROC#3 Sl#9 Ch#19 SSCIN pl#1 [X1] id sig#7 [ADC-]
+  20, 1, 9, 1 !ADC ROC#3 Sl#9 Ch#20 SSCIN pl#1 [X1] id sig#9 [ADC-]
+!  21 !ADC ROC#3 Sl#9 Ch#21 unused
+!  22 !ADC ROC#3 Sl#9 Ch#22 unused
+!  23 !ADC ROC#3 Sl#9 Ch#23 unused
+  24, 1, 2, 1 !ADC ROC#3 Sl#9 Ch#24 SSCIN pl#1 [X1] id sig#2 [ADC-]
+  25, 1, 4, 1 !ADC ROC#3 Sl#9 Ch#25 SSCIN pl#1 [X1] id sig#4 [ADC-]
+  26, 1, 6, 1 !ADC ROC#3 Sl#9 Ch#26 SSCIN pl#1 [X1] id sig#6 [ADC-]
+  27, 1, 8, 1 !ADC ROC#3 Sl#9 Ch#27 SSCIN pl#1 [X1] id sig#8 [ADC-]
+!  28 !ADC ROC#3 Sl#9 Ch#28 unused
+!  29 !ADC ROC#3 Sl#9 Ch#29 unused
+!  30 !ADC ROC#3 Sl#9 Ch#30 unused
+!  31 !ADC ROC#3 Sl#9 Ch#31 unused
+  32, 2, 1, 0 !ADC ROC#3 Sl#9 Ch#32 SSCIN pl#2 [Y1] id sig#1 [ADC+]
+  33, 2, 3, 0 !ADC ROC#3 Sl#9 Ch#33 SSCIN pl#2 [Y1] id sig#3 [ADC+]
+  34, 2, 5, 0 !ADC ROC#3 Sl#9 Ch#34 SSCIN pl#2 [Y1] id sig#5 [ADC+]
+  35, 2, 7, 0 !ADC ROC#3 Sl#9 Ch#35 SSCIN pl#2 [Y1] id sig#7 [ADC+]
+  36, 2, 9, 0 !ADC ROC#3 Sl#9 Ch#36 SSCIN pl#2 [Y1] id sig#9 [ADC+]
+!  37 !ADC ROC#3 Sl#9 Ch#37 unused
+!  38 !ADC ROC#3 Sl#9 Ch#38 unused
+!  39 !ADC ROC#3 Sl#9 Ch#39 unused
+  40, 2, 2, 0 !ADC ROC#3 Sl#9 Ch#40 SSCIN pl#2 [Y1] id sig#2 [ADC+]
+  41, 2, 4, 0 !ADC ROC#3 Sl#9 Ch#41 SSCIN pl#2 [Y1] id sig#4 [ADC+]
+  42, 2, 6, 0 !ADC ROC#3 Sl#9 Ch#42 SSCIN pl#2 [Y1] id sig#6 [ADC+]
+  43, 2, 8, 0 !ADC ROC#3 Sl#9 Ch#43 SSCIN pl#2 [Y1] id sig#8 [ADC+]
+!  44 !ADC ROC#3 Sl#9 Ch#44 unused
+!  45 !ADC ROC#3 Sl#9 Ch#45 unused
+!  46 !ADC ROC#3 Sl#9 Ch#46 unused
+!  47 !ADC ROC#3 Sl#9 Ch#47 unused
+  48, 2, 1, 1 !ADC ROC#3 Sl#9 Ch#48 SSCIN pl#2 [Y1] id sig#1 [ADC-]
+  49, 2, 3, 1 !ADC ROC#3 Sl#9 Ch#49 SSCIN pl#2 [Y1] id sig#3 [ADC-]
+  50, 2, 5, 1 !ADC ROC#3 Sl#9 Ch#50 SSCIN pl#2 [Y1] id sig#5 [ADC-]
+  51, 2, 7, 1 !ADC ROC#3 Sl#9 Ch#51 SSCIN pl#2 [Y1] id sig#7 [ADC-]
+  52, 2, 9, 1 !ADC ROC#3 Sl#9 Ch#52 SSCIN pl#2 [Y1] id sig#9 [ADC-]
+!  53 !ADC ROC#3 Sl#9 Ch#53 unused
+!  54 !ADC ROC#3 Sl#9 Ch#54 unused
+!  55 !ADC ROC#3 Sl#9 Ch#55 unused
+  56, 2, 2, 1 !ADC ROC#3 Sl#9 Ch#56 SSCIN pl#2 [Y1] id sig#2 [ADC-]
+  57, 2, 4, 1 !ADC ROC#3 Sl#9 Ch#57 SSCIN pl#2 [Y1] id sig#4 [ADC-]
+  58, 2, 6, 1 !ADC ROC#3 Sl#9 Ch#58 SSCIN pl#2 [Y1] id sig#6 [ADC-]
+  59, 2, 8, 1 !ADC ROC#3 Sl#9 Ch#59 SSCIN pl#2 [Y1] id sig#8 [ADC-]
+!  60 !ADC ROC#3 Sl#9 Ch#60 unused
+!  61 !ADC ROC#3 Sl#9 Ch#61 unused
+!  62 !ADC ROC#3 Sl#9 Ch#62 unused
+!  63 !ADC ROC#3 Sl#9 Ch#63 unused
+!
+ Slot= 7 ! ADC  
+  0, 3, 1, 0 !ADC ROC#3 Sl#7 Ch#0 SSCIN pl#3 [X2] id sig#1 [ADC+]
+  1, 3, 3, 0 !ADC ROC#3 Sl#7 Ch#1 SSCIN pl#3 [X2] id sig#3 [ADC+]
+  2, 3, 5, 0 !ADC ROC#3 Sl#7 Ch#2 SSCIN pl#3 [X2] id sig#5 [ADC+]
+  3, 3, 7, 0 !ADC ROC#3 Sl#7 Ch#3 SSCIN pl#3 [X2] id sig#7 [ADC+]
+  4, 3, 9, 0 !ADC ROC#3 Sl#7 Ch#4 SSCIN pl#3 [X2] id sig#9 [ADC+]
+  5, 3, 11, 0 !ADC ROC#3 Sl#7 Ch#5 SSCIN pl#3 [X2] id sig#11 [ADC+]
+  6, 3, 13, 0 !ADC ROC#3 Sl#7 Ch#6 SSCIN pl#3 [X2] id sig#13 [ADC+]
+  7, 3, 15, 0 !ADC ROC#3 Sl#7 Ch#7 SSCIN pl#3 [X2] id sig#15 [ADC+]
+  8, 3, 2, 0 !ADC ROC#3 Sl#7 Ch#8 SSCIN pl#3 [X2] id sig#2 [ADC+]
+  9, 3, 4, 0 !ADC ROC#3 Sl#7 Ch#9 SSCIN pl#3 [X2] id sig#4 [ADC+]
+  10, 3, 6, 0 !ADC ROC#3 Sl#7 Ch#10 SSCIN pl#3 [X2] id sig#6 [ADC+]
+  11, 3, 8, 0 !ADC ROC#3 Sl#7 Ch#11 SSCIN pl#3 [X2] id sig#8 [ADC+]
+  12, 3, 10, 0 !ADC ROC#3 Sl#7 Ch#12 SSCIN pl#3 [X2] id sig#10 [ADC+]
+  13, 3, 12, 0 !ADC ROC#3 Sl#7 Ch#13 SSCIN pl#3 [X2] id sig#12 [ADC+]
+  14, 3, 14, 0 !ADC ROC#3 Sl#7 Ch#14 SSCIN pl#3 [X2] id sig#14 [ADC+]
+  15, 3, 16, 0 !ADC ROC#3 Sl#7 Ch#15 SSCIN pl#3 [X2] id sig#16 [ADC+]
+  16, 3, 1, 1 !ADC ROC#3 Sl#7 Ch#16 SSCIN pl#3 [X2] id sig#1 [ADC-]
+  17, 3, 3, 1 !ADC ROC#3 Sl#7 Ch#17 SSCIN pl#3 [X2] id sig#3 [ADC-]
+  18, 3, 5, 1 !ADC ROC#3 Sl#7 Ch#18 SSCIN pl#3 [X2] id sig#5 [ADC-]
+  19, 3, 7, 1 !ADC ROC#3 Sl#7 Ch#19 SSCIN pl#3 [X2] id sig#7 [ADC-]
+  20, 3, 9, 1 !ADC ROC#3 Sl#7 Ch#20 SSCIN pl#3 [X2] id sig#9 [ADC-]
+  21, 3, 11, 1 !ADC ROC#3 Sl#7 Ch#21 SSCIN pl#3 [X2] id sig#11 [ADC-]
+  22, 3, 13, 1 !ADC ROC#3 Sl#7 Ch#22 SSCIN pl#3 [X2] id sig#13 [ADC-]
+  23, 3, 15, 1 !ADC ROC#3 Sl#7 Ch#23 SSCIN pl#3 [X2] id sig#15 [ADC-]
+  24, 3, 2, 1 !ADC ROC#3 Sl#7 Ch#24 SSCIN pl#3 [X2] id sig#2 [ADC-]
+  25, 3, 4, 1 !ADC ROC#3 Sl#7 Ch#25 SSCIN pl#3 [X2] id sig#4 [ADC-]
+  26, 3, 6, 1 !ADC ROC#3 Sl#7 Ch#26 SSCIN pl#3 [X2] id sig#6 [ADC-]
+  27, 3, 8, 1 !ADC ROC#3 Sl#7 Ch#27 SSCIN pl#3 [X2] id sig#8 [ADC-]
+  28, 3, 10, 1 !ADC ROC#3 Sl#7 Ch#28 SSCIN pl#3 [X2] id sig#10 [ADC-]
+  29, 3, 12, 1 !ADC ROC#3 Sl#7 Ch#29 SSCIN pl#3 [X2] id sig#12 [ADC-]
+  30, 3, 14, 1 !ADC ROC#3 Sl#7 Ch#30 SSCIN pl#3 [X2] id sig#14 [ADC-]
+  31, 3, 16, 1 !ADC ROC#3 Sl#7 Ch#31 SSCIN pl#3 [X2] id sig#16 [ADC-]
+  32, 4, 1, 0 !ADC ROC#3 Sl#7 Ch#32 SSCIN pl#4 [Y2] id sig#1 [ADC+]
+  33, 4, 3, 0 !ADC ROC#3 Sl#7 Ch#33 SSCIN pl#4 [Y2] id sig#3 [ADC+]
+  34, 4, 5, 0 !ADC ROC#3 Sl#7 Ch#34 SSCIN pl#4 [Y2] id sig#5 [ADC+]
+  35, 4, 7, 0 !ADC ROC#3 Sl#7 Ch#35 SSCIN pl#4 [Y2] id sig#7 [ADC+]
+  36, 4, 9, 0 !ADC ROC#3 Sl#7 Ch#36 SSCIN pl#4 [Y2] id sig#9 [ADC+]
+!  37 !ADC ROC#3 Sl#7 Ch#37 unused
+!  38 !ADC ROC#3 Sl#7 Ch#38 unused
+!  39 !ADC ROC#3 Sl#7 Ch#39 unused
+  40, 4, 2, 0 !ADC ROC#3 Sl#7 Ch#40 SSCIN pl#4 [Y2] id sig#2 [ADC+]
+  41, 4, 4, 0 !ADC ROC#3 Sl#7 Ch#41 SSCIN pl#4 [Y2] id sig#4 [ADC+]
+  42, 4, 6, 0 !ADC ROC#3 Sl#7 Ch#42 SSCIN pl#4 [Y2] id sig#6 [ADC+]
+!  43, 4, 8, 0 !ADC ROC#3 Sl#7 Ch#43 SSCIN pl#4 [Y2] id sig#8 [ADC+] DEAD CH!
+!  44 !ADC ROC#3 Sl#7 Ch#44 unused
+!  45 !ADC ROC#3 Sl#7 Ch#45 unused
+!  46 !ADC ROC#3 Sl#7 Ch#46 unused
+  47, 4, 8, 0 !ADC ROC#3 Sl#7 Ch#43 SSCIN pl#4 [Y2] id sig#8 [ADC+]
+  48, 4, 1, 1 !ADC ROC#3 Sl#7 Ch#48 SSCIN pl#4 [Y2] id sig#1 [ADC-]
+  49, 4, 3, 1 !ADC ROC#3 Sl#7 Ch#49 SSCIN pl#4 [Y2] id sig#3 [ADC-]
+  50, 4, 5, 1 !ADC ROC#3 Sl#7 Ch#50 SSCIN pl#4 [Y2] id sig#5 [ADC-]
+  51, 4, 7, 1 !ADC ROC#3 Sl#7 Ch#51 SSCIN pl#4 [Y2] id sig#7 [ADC-]
+  52, 4, 9, 1 !ADC ROC#3 Sl#7 Ch#52 SSCIN pl#4 [Y2] id sig#9 [ADC-]
+!  53 !ADC ROC#3 Sl#7 Ch#53 unused
+!  54 !ADC ROC#3 Sl#7 Ch#54 unused
+!  55 !ADC ROC#3 Sl#7 Ch#55 unused
+  56, 4, 2, 1 !ADC ROC#3 Sl#7 Ch#56 SSCIN pl#4 [Y2] id sig#2 [ADC-]
+  57, 4, 4, 1 !ADC ROC#3 Sl#7 Ch#57 SSCIN pl#4 [Y2] id sig#4 [ADC-]
+  58, 4, 6, 1 !ADC ROC#3 Sl#7 Ch#58 SSCIN pl#4 [Y2] id sig#6 [ADC-]
+  59, 4, 8, 1 !ADC ROC#3 Sl#7 Ch#59 SSCIN pl#4 [Y2] id sig#8 [ADC-]
+!  60 !ADC ROC#3 Sl#7 Ch#60 unused
+!  61 !ADC ROC#3 Sl#7 Ch#61 unused
+!  62 !ADC ROC#3 Sl#7 Ch#62 unused
+!  63 !ADC ROC#3 Sl#7 Ch#63 unused
+!
+    detector= 14 !SCAL
+!
+ Slot= 1 ! ADC  
+  0, 1, 1 !ADC ROC#3 Sl#1 Ch#0 SCAL column#1 row#1
+  1, 1, 2 !ADC ROC#3 Sl#1 Ch#1 SCAL column#1 row#2
+  2, 1, 3 !ADC ROC#3 Sl#1 Ch#2 SCAL column#1 row#3
+  3, 1, 4 !ADC ROC#3 Sl#1 Ch#3 SCAL column#1 row#4
+  4, 1, 5 !ADC ROC#3 Sl#1 Ch#4 SCAL column#1 row#5
+  5, 1, 6 !ADC ROC#3 Sl#1 Ch#5 SCAL column#1 row#6
+  6, 1, 7 !ADC ROC#3 Sl#1 Ch#6 SCAL column#1 row#7
+  7, 1, 8 !ADC ROC#3 Sl#1 Ch#7 SCAL column#1 row#8
+  8, 1, 9 !ADC ROC#3 Sl#1 Ch#8 SCAL column#1 row#9
+  9, 1, 10 !ADC ROC#3 Sl#1 Ch#9 SCAL column#1 row#10
+  10, 1, 11 !ADC ROC#3 Sl#1 Ch#10 SCAL column#1 row#11
+!  11 !ADC ROC#3 Sl#1 Ch#11 unused
+!  12 !ADC ROC#3 Sl#1 Ch#12 unused
+!  13 !ADC ROC#3 Sl#1 Ch#13 unused
+!  14 !ADC ROC#3 Sl#1 Ch#14 unused
+!  15 !ADC ROC#3 Sl#1 Ch#15 unused
+  16, 2, 1 !ADC ROC#3 Sl#1 Ch#16 SCAL column#2 row#1
+  17, 2, 2 !ADC ROC#3 Sl#1 Ch#17 SCAL column#2 row#2
+  18, 2, 3 !ADC ROC#3 Sl#1 Ch#18 SCAL column#2 row#3
+  19, 2, 4 !ADC ROC#3 Sl#1 Ch#19 SCAL column#2 row#4
+  20, 2, 5 !ADC ROC#3 Sl#1 Ch#20 SCAL column#2 row#5
+  21, 2, 6 !ADC ROC#3 Sl#1 Ch#21 SCAL column#2 row#6
+  22, 2, 7 !ADC ROC#3 Sl#1 Ch#22 SCAL column#2 row#7
+  23, 2, 8 !ADC ROC#3 Sl#1 Ch#23 SCAL column#2 row#8
+  24, 2, 9 !ADC ROC#3 Sl#1 Ch#24 SCAL column#2 row#9
+  25, 2, 10 !ADC ROC#3 Sl#1 Ch#25 SCAL column#2 row#10
+  26, 2, 11 !ADC ROC#3 Sl#1 Ch#26 SCAL column#2 row#11
+!  27 !ADC ROC#3 Sl#1 Ch#27 unused
+!  28 !ADC ROC#3 Sl#1 Ch#28 unused
+!  29 !ADC ROC#3 Sl#1 Ch#29 unused
+!  30 !ADC ROC#3 Sl#1 Ch#30 unused
+!  31 !ADC ROC#3 Sl#1 Ch#31 unused
+!  32, 3, 1 !ADC ROC#3 Sl#1 Ch#32 SCAL column#3 row#1  
+  44, 3, 1 !ADC ROC#3 Sl#1 Ch#32 SCAL column#3 row#1
+  33, 3, 2 !ADC ROC#3 Sl#1 Ch#33 SCAL column#3 row#2
+  34, 3, 3 !ADC ROC#3 Sl#1 Ch#34 SCAL column#3 row#3
+  35, 3, 4 !ADC ROC#3 Sl#1 Ch#35 SCAL column#3 row#4
+  36, 3, 5 !ADC ROC#3 Sl#1 Ch#36 SCAL column#3 row#5
+  37, 3, 6 !ADC ROC#3 Sl#1 Ch#37 SCAL column#3 row#6
+  38, 3, 7 !ADC ROC#3 Sl#1 Ch#38 SCAL column#3 row#7
+  39, 3, 8 !ADC ROC#3 Sl#1 Ch#39 SCAL column#3 row#8
+  40, 3, 9 !ADC ROC#3 Sl#1 Ch#40 SCAL column#3 row#9
+  41, 3, 10 !ADC ROC#3 Sl#1 Ch#41 SCAL column#3 row#10
+  42, 3, 11 !ADC ROC#3 Sl#1 Ch#42 SCAL column#3 row#11
+!  43 !ADC ROC#3 Sl#1 Ch#43 unused
+!  44 !ADC ROC#3 Sl#1 Ch#44 unused
+!  45 !ADC ROC#3 Sl#1 Ch#45 unused
+!  46 !ADC ROC#3 Sl#1 Ch#46 unused
+!  47 !ADC ROC#3 Sl#1 Ch#47 unused
+
+!sD1 was being lost in the ADC delay lines.  Move to channel #15.
+!  48, 4, 1 !ADC ROC#3 Sl#1 Ch#48 SCAL column#4 row#1
+!
+  49, 4, 2 !ADC ROC#3 Sl#1 Ch#49 SCAL column#4 row#2
+  50, 4, 3 !ADC ROC#3 Sl#1 Ch#50 SCAL column#4 row#3
+  51, 4, 4 !ADC ROC#3 Sl#1 Ch#51 SCAL column#4 row#4
+  52, 4, 5 !ADC ROC#3 Sl#1 Ch#52 SCAL column#4 row#5
+  53, 4, 6 !ADC ROC#3 Sl#1 Ch#53 SCAL column#4 row#6
+  54, 4, 7 !ADC ROC#3 Sl#1 Ch#54 SCAL column#4 row#7
+  55, 4, 8 !ADC ROC#3 Sl#1 Ch#55 SCAL column#4 row#8
+  56, 4, 9 !ADC ROC#3 Sl#1 Ch#56 SCAL column#4 row#9
+  57, 4, 10 !ADC ROC#3 Sl#1 Ch#57 SCAL column#4 row#10
+  58, 4, 11 !ADC ROC#3 Sl#1 Ch#58 SCAL column#4 row#11
+!  59 !ADC ROC#3 Sl#1 Ch#59 unused
+!  60 !ADC ROC#3 Sl#1 Ch#60 unused
+!  61 !ADC ROC#3 Sl#1 Ch#61 unused
+!  62 !ADC ROC#3 Sl#1 Ch#62 unused
+  62, 4, 1 !ADC ROC#3 Sl#1 Ch#48 SCAL column#4 row#1
+!  63 !ADC ROC#3 Sl#1 Ch#63 unused
+ detector= 15   !smisc  -  photodiode for laser gain calibration system.
+ 63, 2, 1, 0    !2,1,0 stands for: 2=adc,channel#1,0=dummy(pos vs. neg).
+!
+detector= 14 !SCAL
+Slot= 5 ! ADC  Second set of tubes on first two layers
+!  0, 1, 1, 1 !ADC ROC#3 Sl#5 Ch#0 SCAL col#1 row#1 (0 An-01)
+  12, 1, 1, 1 !ADC ROC#3 Sl#5 Ch#0 SCAL col#1 row#1 (0 An-01)
+  1, 1, 2, 1 !ADC ROC#3 Sl#5 Ch#1 SCAL col#1 row#2 (1 An-02)
+  2, 1, 3, 1 !ADC ROC#3 Sl#5 Ch#2 SCAL col#1 row#3 (2 An-03)
+  3, 1, 4, 1 !ADC ROC#3 Sl#5 Ch#3 SCAL col#1 row#4 (3 An-04)
+  4, 1, 5, 1 !ADC ROC#3 Sl#5 Ch#4 SCAL col#1 row#5 (4 An-05)
+  5, 1, 6, 1 !ADC ROC#3 Sl#5 Ch#5 SCAL col#1 row#6 (5 An-06)
+  6, 1, 7, 1 !ADC ROC#3 Sl#5 Ch#6 SCAL col#1 row#7 (6 An-07)
+  7, 1, 8, 1 !ADC ROC#3 Sl#5 Ch#7 SCAL col#1 row#8 (7 An-08)
+  8, 1, 9, 1 !ADC ROC#3 Sl#5 Ch#8 SCAL col#1 row#9 (8 An-09)
+  9, 1, 10, 1 !ADC ROC#3 Sl#5 Ch#9 SCAL col#1 row#10 (9 An-10)
+  10, 1, 11, 1 !ADC ROC#3 Sl#5 Ch#10 SCAL col#1 row#11 (10 An-11)
+!   11 !ADC ROC#3 Sl#5 Ch#11 unused
+!   12 !ADC ROC#3 Sl#5 Ch#12 unused
+!   13 !ADC ROC#3 Sl#5 Ch#13 unused
+!   14 !ADC ROC#3 Sl#5 Ch#14 unused
+!   15 !ADC ROC#3 Sl#5 Ch#15 unused
+  16, 2, 1, 1 !ADC ROC#3 Sl#5 Ch#16 SCAL col#2 row#1 (16 Bn-01)
+  17, 2, 2, 1 !ADC ROC#3 Sl#5 Ch#17 SCAL col#2 row#2 (17 Bn-02)
+  18, 2, 3, 1 !ADC ROC#3 Sl#5 Ch#18 SCAL col#2 row#3 (18 Bn-03)
+  19, 2, 4, 1 !ADC ROC#3 Sl#5 Ch#19 SCAL col#2 row#4 (19 Bn-04)
+  20, 2, 5, 1 !ADC ROC#3 Sl#5 Ch#20 SCAL col#2 row#5 (20 Bn-05)
+  21, 2, 6, 1 !ADC ROC#3 Sl#5 Ch#21 SCAL col#2 row#6 (21 Bn-06)
+  22, 2, 7, 1 !ADC ROC#3 Sl#5 Ch#22 SCAL col#2 row#7 (22 Bn-07)
+  23, 2, 8, 1 !ADC ROC#3 Sl#5 Ch#23 SCAL col#2 row#8 (23 Bn-08)
+  24, 2, 9, 1 !ADC ROC#3 Sl#5 Ch#24 SCAL col#2 row#9 (24 Bn-09)
+  25, 2, 10, 1 !ADC ROC#3 Sl#5 Ch#25 SCAL col#2 row#10 (25 Bn-10)
+  26, 2, 11, 1 !ADC ROC#3 Sl#5 Ch#26 SCAL col#2 row#11 (26 Bn-11)
+!  27 !ADC ROC#3 Sl#5 Ch#27 unused
+!  28 !ADC ROC#3 Sl#5 Ch#28 unused
+!  29 !ADC ROC#3 Sl#5 Ch#29 unused
+!  30 !ADC ROC#3 Sl#5 Ch#30 unused
+!  31 !ADC ROC#3 Sl#5 Ch#31 unused
+!
+    detector= 13 !SCER
+!
+ Slot= 3 ! ADC  
+  0, 1, 1 !ADC ROC#3 Sl#3 Ch#0 SCER tube#1
+  1, 1, 2 !ADC ROC#3 Sl#3 Ch#1 SCER tube#2
+  2, 1, 3 !ADC ROC#3 Sl#3 Ch#2 SCER tube#3
+  3, 1, 4 !ADC ROC#3 Sl#3 Ch#3 SCER tube#4
+detector=15 ! SMISC helicity stuff mkj 5/15/03
+!           ! muon det added 6/17/03
+  4, 2, 5,0 !  4 !ADC ROC#3 Sl#3 Ch#4 unused
+  5, 2, 6,0 !  5 !ADC ROC#3 Sl#3 Ch#5 unused
+!  6 !ADC ROC#3 Sl#3 Ch#6 unused
+!  7 !ADC ROC#3 Sl#3 Ch#7 unused
+!  8 !ADC ROC#3 Sl#3 Ch#8 unused
+8,2,2,0  ! mps  clock
+!  9 !ADC ROC#3 Sl#3 Ch#9 unused
+!  10 !ADC ROC#3 Sl#3 Ch#10 unused
+!  11 !ADC ROC#3 Sl#3 Ch#11 unused
+!  12 !ADC ROC#3 Sl#3 Ch#12 unused
+12,2,3,0  ! H+ signal
+15,2,4,0  ! H- signal
+!  13 !ADC ROC#3 Sl#3 Ch#13 unused
+!  14 !ADC ROC#3 Sl#3 Ch#14 unused
+!  15 !ADC ROC#3 Sl#3 Ch#15 unused
+  ! 16 !ADC ROC#3 Sl#3 Ch#16 signal {A01}
+  ! 17 !ADC ROC#3 Sl#3 Ch#17 signal {A02}
+  ! 18 !ADC ROC#3 Sl#3 Ch#18 signal {A03}
+  ! 19 !ADC ROC#3 Sl#3 Ch#19 signal {A04}
+  ! 20 !ADC ROC#3 Sl#3 Ch#20 signal {A05}
+  ! 21 !ADC ROC#3 Sl#3 Ch#21 signal {A06}
+  ! 22 !ADC ROC#3 Sl#3 Ch#22 signal {A07}
+  ! 23 !ADC ROC#3 Sl#3 Ch#23 signal {A08}
+  ! 24 !ADC ROC#3 Sl#3 Ch#24 signal {A09}
+  ! 25 !ADC ROC#3 Sl#3 Ch#25 signal {A10}
+  ! 26 !ADC ROC#3 Sl#3 Ch#26 signal {A11}
+  ! 27 !ADC ROC#3 Sl#3 Ch#27 signal {A12}
+  ! 28 !ADC ROC#3 Sl#3 Ch#28 signal {A13}
+  ! 29 !ADC ROC#3 Sl#3 Ch#29 signal {A14}
+  ! 30 !ADC ROC#3 Sl#3 Ch#30 signal {A15}
+  ! 31 !ADC ROC#3 Sl#3 Ch#31 signal {A16}
+!
+!........................................................
+! SAER took out from SOS detector hut (Hamlet, 21 Dec'02)
+!
+!    detector= 16 !SAER
+!
+!  32 !ADC ROC#3 Sl#3 Ch#32 DEAD!!!!
+!  33 !ADC ROC#3 Sl#3 Ch#33 unused spare
+! 34, 1, 1, 0 !ADC ROC#3 Sl#3 Ch#34 signal pos 1
+! 35, 1, 2, 0 !ADC ROC#3 Sl#3 Ch#35 signal pos 2
+! 36, 1, 3, 0 !ADC ROC#3 Sl#3 Ch#36 signal pos 3
+! 37, 1, 4, 0 !ADC ROC#3 Sl#3 Ch#37 signal pos 4
+! 38, 1, 5, 0 !ADC ROC#3 Sl#3 Ch#38 signal pos 5
+! 39, 1, 6, 0 !ADC ROC#3 Sl#3 Ch#39 signal pos 6
+! 40, 1, 7, 0 !ADC ROC#3 Sl#3 Ch#40 signal pos 7
+! 41, 1, 1, 1 !ADC ROC#3 Sl#3 Ch#41 signal neg 1
+! 42, 1, 2, 1 !ADC ROC#3 Sl#3 Ch#42 signal neg 2
+! 43, 1, 3, 1 !ADC ROC#3 Sl#3 Ch#43 signal neg 3
+! 44, 1, 4, 1 !ADC ROC#3 Sl#3 Ch#44 signal neg 4
+! 45, 1, 5, 1 !ADC ROC#3 Sl#3 Ch#45 signal neg 5
+! 46, 1, 6, 1 !ADC ROC#3 Sl#3 Ch#46 signal neg 6
+! 47, 1, 7, 1 !ADC ROC#3 Sl#3 Ch#47 signal neg 7 
+! 48, 1, 8, 0 !ADC ROC#3 Sl#3 Ch#48 amplified signal pos 1
+! 49, 1, 9, 0 !ADC ROC#3 Sl#3 Ch#49 amplified signal pos 2
+! 50, 1, 10, 0 !ADC ROC#3 Sl#3 Ch#50 amplified signal pos 3
+! 51, 1, 11, 0 !ADC ROC#3 Sl#3 Ch#51 amplified signal pos 4
+! 52, 1, 12, 0 !ADC ROC#3 Sl#3 Ch#52 amplified signal pos 5
+! 53, 1, 13, 0 !ADC ROC#3 Sl#3 Ch#53 amplified signal pos 6
+! 54, 1, 14, 0 !ADC ROC#3 Sl#3 Ch#54 amplified signal pos 7
+! 55, 1, 15, 0 !ADC ROC#3 Sl#3 Ch#62 amplified signal sum 1-7
+! 56, 1, 8, 1 !ADC ROC#3 Sl#3 Ch#55 amplified signal neg 1
+! 57, 1, 9, 1 !ADC ROC#3 Sl#3 Ch#56 amplified signal neg 2
+! 58, 1, 10, 1 !ADC ROC#3 Sl#3 Ch#57 amplified signal neg 3
+! 59, 1, 11, 1 !ADC ROC#3 Sl#3 Ch#58 amplified signal neg 4
+! 60, 1, 12, 1 !ADC ROC#3 Sl#3 Ch#59 amplified signal neg 5
+! 61, 1, 13, 1 !ADC ROC#3 Sl#3 Ch#60 amplified signal neg 6
+! 62, 1, 14, 1 !ADC ROC#3 Sl#3 Ch#61 amplified signal neg 7
+! 63, 1, 15, 1 !ADC ROC#3 Sl#3 Ch#63 amplified signal sum 8-14
+!
+
+
+
+
+
+
+
+
diff --git a/examples/PARAM/general.param b/examples/PARAM/general.param
index 2b22217..5383e6c 100644
--- a/examples/PARAM/general.param
+++ b/examples/PARAM/general.param
@@ -13,6 +13,7 @@ raddeg=3.14159265/180
 #include "PARAM/stracking.param"
 
 #include "PARAM/gtarget.param"
+#include "PARAM/gbeam.param"
 ;  Can't quite handle this one
 #include "PARAM/hdc_offsets.param"
 #include "PARAM/hdc.pos"
diff --git a/examples/output_bpw.def b/examples/output_bpw.def
new file mode 100644
index 0000000..ff1e985
--- /dev/null
+++ b/examples/output_bpw.def
@@ -0,0 +1,181 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block H.dc.*
+block H.hod.*
+block H.cal.*
+block H.aero.*
+block H.cher.*
+block H.tr.*
+block RB.*
+block g.evtyp
+
+# TDC hits per paddle
+TH1F hpostdc1 'HMS s1x+ TDC hits' H.hod.1x.postdchits 16 0.5 16.5
+TH1F hnegtdc1 'HMS s1x- TDC hits' H.hod.1x.negtdchits 16 0.5 16.5
+TH1F hpostdc2 'HMS s1y+ TDC hits' H.hod.1y.postdchits 10 0.5 10.5
+TH1F hnegtdc2 'HMS s1y- TDC hits' H.hod.1y.negtdchits 10 0.5 10.5
+TH1F hpostdc3 'HMS s2x+ TDC hits' H.hod.2x.postdchits 16 0.5 16.5
+TH1F hnegtdc3 'HMS s2x- TDC hits' H.hod.2x.negtdchits 16 0.5 16.5
+TH1F hpostdc4 'HMS s2y+ TDC hits' H.hod.2y.postdchits 10 0.5 10.5
+TH1F hnegtdc4 'HMS s2y- TDC hits' H.hod.2y.negtdchits 10 0.5 10.5
+
+# ADC hits per paddle
+TH1F hposadc1 'HMS s1x+ ADC hits' H.hod.1x.posadchits 16 0.5 16.5
+TH1F hnegadc1 'HMS s1x- ADC hits' H.hod.1x.negadchits 16 0.5 16.5
+TH1F hposadc2 'HMS s1y+ ADC hits' H.hod.1y.posadchits 10 0.5 10.5
+TH1F hnegadc2 'HMS s1y- ADC hits' H.hod.1y.negadchits 10 0.5 10.5
+TH1F hposadc3 'HMS s2x+ ADC hits' H.hod.2x.posadchits 16 0.5 16.5
+TH1F hnegadc3 'HMS s2x- ADC hits' H.hod.2x.negadchits 16 0.5 16.5
+TH1F hposadc4 'HMS s2y+ ADC hits' H.hod.2y.posadchits 10 0.5 10.5
+TH1F hnegadc4 'HMS s2y- ADC hits' H.hod.2y.negadchits 10 0.5 10.5
+
+# ADC hits per Calorimeter layer
+TH1F chposadc1 'HMS Cal A+ ADC hits' H.cal.1pr.posadchits 13 0.5 13.5
+TH1F chnegadc1 'HMS Cal A- ADC hits' H.cal.1pr.negadchits 13 0.5 13.5
+TH1F chposadc2 'HMS Cal B+ ADC hits' H.cal.2ta.posadchits 13 0.5 13.5
+TH1F chnegadc2 'HMS Cal B- ADC hits' H.cal.2ta.negadchits 13 0.5 13.5
+TH1F chposadc3 'HMS Cal C+ ADC hits' H.cal.3ta.posadchits 13 0.5 13.5
+TH1F chposadc4 'HMS Cal D+ ADC hits' H.cal.4ta.posadchits 13 0.5 13.5
+
+#Calorimeter ADC channels
+TH1F hcaladc_A1p 'HMS Cal ADC A1p - PED' H.cal.1pr.apos_p[0] 150 50 500
+TH1F hcaladc_A2p 'HMS Cal ADC A2p - PED' H.cal.1pr.apos_p[1] 150 50 500
+TH1F hcaladc_A3p 'HMS Cal ADC A3p - PED' H.cal.1pr.apos_p[2] 150 50 500
+TH1F hcaladc_A4p 'HMS Cal ADC A4p - PED' H.cal.1pr.apos_p[3] 150 50 500
+TH1F hcaladc_A5p 'HMS Cal ADC A5p - PED' H.cal.1pr.apos_p[4] 150 50 500
+TH1F hcaladc_A6p 'HMS Cal ADC A6p - PED' H.cal.1pr.apos_p[5] 150 50 500
+TH1F hcaladc_A7p 'HMS Cal ADC A7p - PED' H.cal.1pr.apos_p[6] 150 50 500
+TH1F hcaladc_A8p 'HMS Cal ADC A8p - PED' H.cal.1pr.apos_p[7] 150 50 500
+TH1F hcaladc_A9p 'HMS Cal ADC A9p - PED' H.cal.1pr.apos_p[8] 150 50 500
+TH1F hcaladc_A10p 'HMS Cal ADC A10p - PED' H.cal.1pr.apos_p[9] 150 50 500
+TH1F hcaladc_A11p 'HMS Cal ADC A11p - PED' H.cal.1pr.apos_p[10] 150 50 500
+TH1F hcaladc_A12p 'HMS Cal ADC A12p - PED' H.cal.1pr.apos_p[11] 150 50 500
+TH1F hcaladc_A13p 'HMS Cal ADC A13p - PED' H.cal.1pr.apos_p[12] 150 50 500
+
+TH1F hcaladc_B1p 'HMS Cal ADC B1p - PED' H.cal.2ta.apos_p[0] 150 50 500
+TH1F hcaladc_B2p 'HMS Cal ADC B2p - PED' H.cal.2ta.apos_p[1] 150 50 500
+TH1F hcaladc_B3p 'HMS Cal ADC B3p - PED' H.cal.2ta.apos_p[2] 150 50 500
+TH1F hcaladc_B4p 'HMS Cal ADC B4p - PED' H.cal.2ta.apos_p[3] 150 50 500
+TH1F hcaladc_B5p 'HMS Cal ADC B5p - PED' H.cal.2ta.apos_p[4] 150 50 500
+TH1F hcaladc_B6p 'HMS Cal ADC B6p - PED' H.cal.2ta.apos_p[5] 150 50 500
+TH1F hcaladc_B7p 'HMS Cal ADC B7p - PED' H.cal.2ta.apos_p[6] 150 50 500
+TH1F hcaladc_B8p 'HMS Cal ADC B8p - PED' H.cal.2ta.apos_p[7] 150 50 500
+TH1F hcaladc_B9p 'HMS Cal ADC B9p - PED' H.cal.2ta.apos_p[8] 150 50 500
+TH1F hcaladc_B10p 'HMS Cal ADC B10p - PED' H.cal.2ta.apos_p[9] 150 50 500
+TH1F hcaladc_B11p 'HMS Cal ADC B11p - PED' H.cal.2ta.apos_p[10] 150 50 500
+TH1F hcaladc_B12p 'HMS Cal ADC B12p - PED' H.cal.2ta.apos_p[11] 150 50 500
+TH1F hcaladc_B13p 'HMS Cal ADC B13p - PED' H.cal.2ta.apos_p[12] 150 50 500
+
+TH1F hcaladc_C1p 'HMS Cal ADC C1p - PED' H.cal.3ta.apos_p[0] 150 50 500
+TH1F hcaladc_C2p 'HMS Cal ADC C2p - PED' H.cal.3ta.apos_p[1] 150 50 500
+TH1F hcaladc_C3p 'HMS Cal ADC C3p - PED' H.cal.3ta.apos_p[2] 150 50 500
+TH1F hcaladc_C4p 'HMS Cal ADC C4p - PED' H.cal.3ta.apos_p[3] 150 50 500
+TH1F hcaladc_C5p 'HMS Cal ADC C5p - PED' H.cal.3ta.apos_p[4] 150 50 500
+TH1F hcaladc_C6p 'HMS Cal ADC C6p - PED' H.cal.3ta.apos_p[5] 150 50 500
+TH1F hcaladc_C7p 'HMS Cal ADC C7p - PED' H.cal.3ta.apos_p[6] 150 50 500
+TH1F hcaladc_C8p 'HMS Cal ADC C8p - PED' H.cal.3ta.apos_p[7] 150 50 500
+TH1F hcaladc_C9p 'HMS Cal ADC C9p - PED' H.cal.3ta.apos_p[8] 150 50 500
+TH1F hcaladc_C10p 'HMS Cal ADC C10p - PED' H.cal.3ta.apos_p[9] 150 50 500
+TH1F hcaladc_C11p 'HMS Cal ADC C11p - PED' H.cal.3ta.apos_p[10] 150 50 500
+TH1F hcaladc_C12p 'HMS Cal ADC C12p - PED' H.cal.3ta.apos_p[11] 150 50 500
+TH1F hcaladc_C13p 'HMS Cal ADC C13p - PED' H.cal.3ta.apos_p[12] 150 50 500
+
+TH1F hcaladc_D1p 'HMS Cal ADC D1p - PED' H.cal.4ta.apos_p[0] 150 50 500
+TH1F hcaladc_D2p 'HMS Cal ADC D2p - PED' H.cal.4ta.apos_p[1] 150 50 500
+TH1F hcaladc_D3p 'HMS Cal ADC D3p - PED' H.cal.4ta.apos_p[2] 150 50 500
+TH1F hcaladc_D4p 'HMS Cal ADC D4p - PED' H.cal.4ta.apos_p[3] 150 50 500
+TH1F hcaladc_D5p 'HMS Cal ADC D5p - PED' H.cal.4ta.apos_p[4] 150 50 500
+TH1F hcaladc_D6p 'HMS Cal ADC D6p - PED' H.cal.4ta.apos_p[5] 150 50 500
+TH1F hcaladc_D7p 'HMS Cal ADC D7p - PED' H.cal.4ta.apos_p[6] 150 50 500
+TH1F hcaladc_D8p 'HMS Cal ADC D8p - PED' H.cal.4ta.apos_p[7] 150 50 500
+TH1F hcaladc_D9p 'HMS Cal ADC D9p - PED' H.cal.4ta.apos_p[8] 150 50 500
+TH1F hcaladc_D10p 'HMS Cal ADC D10p - PED' H.cal.4ta.apos_p[9] 150 50 500
+TH1F hcaladc_D11p 'HMS Cal ADC D11p - PED' H.cal.4ta.apos_p[10] 150 50 500
+TH1F hcaladc_D12p 'HMS Cal ADC D12p - PED' H.cal.4ta.apos_p[11] 150 50 500
+TH1F hcaladc_D13p 'HMS Cal ADC D13p - PED' H.cal.4ta.apos_p[12] 150 50 500
+
+TH1F hcaladc_A1n 'HMS Cal ADC A1n - PED' H.cal.1pr.aneg_p[0] 150 50 500
+TH1F hcaladc_A2n 'HMS Cal ADC A2n - PED' H.cal.1pr.aneg_p[1] 150 50 500
+TH1F hcaladc_A3n 'HMS Cal ADC A3n - PED' H.cal.1pr.aneg_p[2] 150 50 500
+TH1F hcaladc_A4n 'HMS Cal ADC A4n - PED' H.cal.1pr.aneg_p[3] 150 50 500
+TH1F hcaladc_A5n 'HMS Cal ADC A5n - PED' H.cal.1pr.aneg_p[4] 150 50 500
+TH1F hcaladc_A6n 'HMS Cal ADC A6n - PED' H.cal.1pr.aneg_p[5] 150 50 500
+TH1F hcaladc_A7n 'HMS Cal ADC A7n - PED' H.cal.1pr.aneg_p[6] 150 50 500
+TH1F hcaladc_A8n 'HMS Cal ADC A8n - PED' H.cal.1pr.aneg_p[7] 150 50 500
+TH1F hcaladc_A9n 'HMS Cal ADC A9n - PED' H.cal.1pr.aneg_p[8] 150 50 500
+TH1F hcaladc_A10n 'HMS Cal ADC A10n - PED' H.cal.1pr.aneg_p[9] 150 50 500
+TH1F hcaladc_A11n 'HMS Cal ADC A11n - PED' H.cal.1pr.aneg_p[10] 150 50 500
+TH1F hcaladc_A12n 'HMS Cal ADC A12n - PED' H.cal.1pr.aneg_p[11] 150 50 500
+TH1F hcaladc_A13n 'HMS Cal ADC A13n - PED' H.cal.1pr.aneg_p[12] 150 50 500
+
+TH1F hcaladc_B1n 'HMS Cal ADC B1n - PED' H.cal.2ta.aneg_p[0] 150 50 500
+TH1F hcaladc_B2n 'HMS Cal ADC B2n - PED' H.cal.2ta.aneg_p[1] 150 50 500
+TH1F hcaladc_B3n 'HMS Cal ADC B3n - PED' H.cal.2ta.aneg_p[2] 150 50 500
+TH1F hcaladc_B4n 'HMS Cal ADC B4n - PED' H.cal.2ta.aneg_p[3] 150 50 500
+TH1F hcaladc_B5n 'HMS Cal ADC B5n - PED' H.cal.2ta.aneg_p[4] 150 50 500
+TH1F hcaladc_B6n 'HMS Cal ADC B6n - PED' H.cal.2ta.aneg_p[5] 150 50 500
+TH1F hcaladc_B7n 'HMS Cal ADC B7n - PED' H.cal.2ta.aneg_p[6] 150 50 500
+TH1F hcaladc_B8n 'HMS Cal ADC B8n - PED' H.cal.2ta.aneg_p[7] 150 50 500
+TH1F hcaladc_B9n 'HMS Cal ADC B9n - PED' H.cal.2ta.aneg_p[8] 150 50 500
+TH1F hcaladc_B10n 'HMS Cal ADC B10n - PED' H.cal.2ta.aneg_p[9] 150 50 500
+TH1F hcaladc_B11n 'HMS Cal ADC B11n - PED' H.cal.2ta.aneg_p[10] 150 50 500
+TH1F hcaladc_B12n 'HMS Cal ADC B12n - PED' H.cal.2ta.aneg_p[11] 150 50 500
+TH1F hcaladc_B13n 'HMS Cal ADC B13n - PED' H.cal.2ta.aneg_p[12] 150 50 500
+
+#TH1F hdcrawtdc
+#TH1F hdccuttdc
+
+# Can we use variables for the constants.  In CTP we used hdc_nwire(i)
+#
+TH1F hdc1x1_wm 'HDC 1X1 Wiremap' H.dc.1x1.tdchits 113 0.5 113.5
+TH1F hdc1y1_wm 'HDC 1Y1 Wiremap' H.dc.1y1.tdchits 52 0.5 52.5
+TH1F hdc1u1_wm 'HDC 1U1 Wiremap' H.dc.1u1.tdchits 107 0.5 107.5
+TH1F hdc1v1_wm 'HDC 1V1 Wiremap' H.dc.1v1.tdchits 107 0.5 107.5
+TH1F hdc1y2_wm 'HDC 1Y2 Wiremap' H.dc.1y2.tdchits 52 0.5 52.5
+TH1F hdc1x2_wm 'HDC 1X2 Wiremap' H.dc.1x2.tdchits 113 0.5 113.5
+TH1F hdc2x1_wm 'HDC 2X1 Wiremap' H.dc.2x1.tdchits 113 0.5 113.5
+TH1F hdc2y1_wm 'HDC 2Y1 Wiremap' H.dc.2y1.tdchits 52 0.5 52.5
+TH1F hdc2u1_wm 'HDC 2U1 Wiremap' H.dc.2u1.tdchits 107 0.5 107.5
+TH1F hdc2v1_wm 'HDC 2V1 Wiremap' H.dc.2v1.tdchits 107 0.5 107.5
+TH1F hdc2y2_wm 'HDC 2Y2 Wiremap' H.dc.2y2.tdchits 52 0.5 52.5
+TH1F hdc2x2_wm 'HDC 2X2 Wiremap' H.dc.2x2.tdchits 113 0.5 113.5
+
+# Drift Time and Drift Distance Spectra
+TH1F hdc1x1_dt 'HDC 1X1 Drift Time' H.dc.1x1.time 200 -100 300
+TH1F hdc1y1_dt 'HDC 1Y1 Drift Time' H.dc.1y1.time 200 -100 300
+TH1F hdc1u1_dt 'HDC 1U1 Drift Time' H.dc.1u1.time 200 -100 300
+TH1F hdc1v1_dt 'HDC 1V1 Drift Time' H.dc.1v1.time 200 -100 300
+TH1F hdc1y2_dt 'HDC 1Y2 Drift Time' H.dc.1y2.time 200 -100 300
+TH1F hdc1x2_dt 'HDC 1X2 Drift Time' H.dc.1x2.time 200 -100 300
+TH1F hdc2x1_dt 'HDC 2X1 Drift Time' H.dc.2x1.time 200 -100 300
+TH1F hdc2y1_dt 'HDC 2Y1 Drift Time' H.dc.2y1.time 200 -100 300
+TH1F hdc2u1_dt 'HDC 2U1 Drift Time' H.dc.2u1.time 200 -100 300
+TH1F hdc2v1_dt 'HDC 2V1 Drift Time' H.dc.2v1.time 200 -100 300
+TH1F hdc2y2_dt 'HDC 2Y2 Drift Time' H.dc.2y2.time 200 -100 300
+TH1F hdc2x2_dt 'HDC 2X2 Drift Time' H.dc.2x2.time 200 -100 300
+
+TH1F hdc1x1_dd 'HDC 1X1 Drift Distance' H.dc.1x1.dist 300 -0.1 0.6
+TH1F hdc1y1_dd 'HDC 1Y1 Drift Distance' H.dc.1y1.dist 300 -0.1 0.6
+TH1F hdc1u1_dd 'HDC 1U1 Drift Distance' H.dc.1u1.dist 300 -0.1 0.6
+TH1F hdc1v1_dd 'HDC 1V1 Drift Distance' H.dc.1v1.dist 300 -0.1 0.6
+TH1F hdc1y2_dd 'HDC 1Y2 Drift Distance' H.dc.1y2.dist 300 -0.1 0.6
+TH1F hdc1x2_dd 'HDC 1X2 Drift Distance' H.dc.1x2.dist 300 -0.1 0.6
+TH1F hdc2x1_dd 'HDC 2X1 Drift Distance' H.dc.2x1.dist 300 -0.1 0.6
+TH1F hdc2y1_dd 'HDC 2Y1 Drift Distance' H.dc.2y1.dist 300 -0.1 0.6
+TH1F hdc2u1_dd 'HDC 2U1 Drift Distance' H.dc.2u1.dist 300 -0.1 0.6
+TH1F hdc2v1_dd 'HDC 2V1 Drift Distance' H.dc.2v1.dist 300 -0.1 0.6
+TH1F hdc2y2_dd 'HDC 2Y2 Drift Distance' H.dc.2y2.dist 300 -0.1 0.6
+TH1F hdc2x2_dd 'HDC 2X2 Drift Distance' H.dc.2x2.dist 300 -0.1 0.6
+
+# Focal Plane times
+TH1F hs1xfptime 'HODO s1x fptime' H.hod.1x.fptime 80 0 80 H.hod.hgoodstarttime
+TH1F hs1yfptime 'HODO s1y fptime' H.hod.1y.fptime 80 0 80 H.hod.hgoodstarttime
+TH1F hs2xfptime 'HODO s2x fptime' H.hod.2x.fptime 80 0 80 H.hod.hgoodstarttime
+TH1F hs2yfptime 'HODO s2y fptime' H.hod.2y.fptime 80 0 80 H.hod.hgoodstarttime
+TH1F starttime  'HODO start time' H.hod.starttime 80 0 80 H.hod.hgoodstarttime
+
+# Beam related ADC channels. eg. raster
+TH1F rstrx_i 'Raster X Current' RB.raster.xcurrent 4000 -2000 2000
+TH1F rstry_i 'Raster Y Current' RB.raster.ycurrent 4000 -2000 2000
+TH1F rstrx_p 'Raster X Position' RB.raster.xpos 40 -20   20
+TH1F rstry_p 'Raster Y Position' RB.raster.ypos 40 -20   20
diff --git a/examples/raster_test.C b/examples/raster_test.C
index 407b027..3a85da0 100644
--- a/examples/raster_test.C
+++ b/examples/raster_test.C
@@ -12,7 +12,7 @@
   // Open the database
   //
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/test.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/raster_test.database");
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
 
   
@@ -52,7 +52,7 @@
 
 
   // Beamline and its detectors
-  THaApparatus * BEAM = new THcRasteredBeam("rb","Beamline");
+  THaApparatus * BEAM = new THcRasteredBeam("RB","Rastered Beamline");
   gHaApps->Add( BEAM );
 
 
@@ -83,15 +83,15 @@
   // Eventually need to learn to skip over, or properly analyze
   // the pedestal events
   //
-  run->SetEventRange(1,2);//  Physics Event number, does not
+  run->SetEventRange(1,2000);//  Physics Event number, does not
                            // include scaler or control events
 
   // Define the analysis parameters
   //
   analyzer->SetEvent(event);
   analyzer->SetOutFile("raster_test.root");
-  analyzer->SetOdefFile("output.def");
-  // analyzer->SetCutFile("rastertest_cuts.def");        // optional
+  analyzer->SetOdefFile("output_bpw.def");
+  analyzer->SetCutFile("hodtest_cuts.def");        // optional
   analyzer->SetCountMode(2);// Counter event number same as gen_event_ID_number
   
   // File to record cuts accounting information
diff --git a/src/THcRaster.cxx b/src/THcRaster.cxx
index 9bc4f52..4967a9b 100644
--- a/src/THcRaster.cxx
+++ b/src/THcRaster.cxx
@@ -37,32 +37,39 @@ THcRaster::THcRaster( const char* name, const char* description,
 		      THaApparatus* apparatus ) :
   THaBeamDet(name,description,apparatus)
 {
-  fAnalyzePedestals = 0;
-  fRawPos[0]=0;
-  fRawPos[1]=0;
 
-  // fRasterXADC = new TClonesArray("THcSignalHit",16);
-  // fRasterYADC = new TClonesArray("THcSignalHit",16);
+  fAnalyzePedestals = 0;
+  fNPedestalEvents = 0;
+  fXADC = 0;
+  fYADC = 0;
+  fXpos = 0;
+  fYpos = 0;
+  fFrCalMom = 0;
+  fFrXADCperCM = 0;
+  fFrXADCperCM = 0;
+
+  for(Int_t i=0;i<2;i++){
+    fPedADC[i] = 0;
+    fAvgPedADC[i] = 0;
+  }
 }
 
 
 //_____________________________________________________________________________
 THcRaster::~THcRaster()
 {
-  // Distructor
+  delete [] fPedADC;
+  delete [] fAvgPedADC;
+
 }
 
 
-//_____________________________________________________________________________
-void THcRaster::ClearEvent(){
-  // nothing for now
-}
 
-//_____________________________________________________________________________
-void THcRaster::InitializeReconstruction()
-{
+//____________________________________________________________________________// _
+// void THcRaster::InitializeReconstruction()
+// {
 
-}
+// }
   
 
 
@@ -75,72 +82,52 @@ Int_t THcRaster::ReadDatabase( const TDatime& date )
  
   // InitializeReconstruction();
 
-  // char prefix[2];
-
-  // cout << " THcRaster::ReadDatabase GetName() called " << GetName() << endl;
+  char prefix[2];
 
-  // prefix[0]=tolower(GetName()[0]);
-  // prefix[1]='\0';
+  //cout << " THcRaster::ReadDatabase GetName() called " << GetName() << endl;
+  //  prefix[0]=tolower(GetName()[0]);
+  // bpw- The prefix is hardcoded so that we don't have to change the gbeam.param file. o/w to get the following variables, we need to change to parameter names to rfr_cal_mom, etc where "r" comes from prefix[0]=tolower(GetName()[0]).
+  prefix[0]='g';
+  prefix[1]='\0';
 
 
   // string names;
-  // DBRequest list[]={
-  //   {"raster_channel_name",&names,kString},
-  //   {"raster_channel_number",&names,kString},
-  //   {0}
-  // };
-
-  // // get the channel assignments from the parameter file
-  // gHcParms->LoadParmValues((DBRequest*)&list,prefix);
-
-  // std::cout <<"Raster channel no : " << std::endl;
-  // std::cout <<" X signal channel = "<<fChNO[0]<<std::endl;
-  // std::cout <<" Y signal channel = "<<fChNO[1]<<std::endl;
-
-
-  // std::vector<string> channel_names = vsplit(names);
-  // Int_t NChannels = channel_names.size();
-  // for(Int_t i=0;i<NChannels;i++) {
-  //   //  fPlaneNames[i] = new char[plane_names[i].length()];
-  //   //  strcpy(fPlaneNames[i], plane_names[i].c_str());
-  //   //std::cout<<" channel = "<<channel_names.at(i)<<std::endl;
-  //   std::cout<<" Channel numbers = "<<
-  // }
-
+  DBRequest list[]={
+    {"fr_cal_mom",&fFrCalMom, kDouble},
+    {"frx_adcpercm",&fFrXADCperCM, kDouble},
+    {"fry_adcpercm",&fFrYADCperCM, kDouble},
+    {0}
+  };
 
-  // Read the detector map file
+  // get the calibration factors from gbeam.param file
+   gHcParms->LoadParmValues((DBRequest*)&list,prefix);
 
-  // Based on the ungly method used in THaRaster class. I have no idea
-  // how to do this more elegantly.
-  // Buddhini
-  // const int LEN=100;
-  // char buf[LEN];
-  //  FILE* fi = OpenFile( date );
-  // if( !fi ) return kFileError;
-
-  // fDetMap->Clear();
-  // int first_chan, crate, dummy, slot, first, last, modulid;
-  // std::cout<<"$$$$$$$$$$$$ THcRaster detmap"<<std::endl;
-  // do {
-  //   fgets( buf, LEN, fi);
-  //   sscanf(buf,"%d %d %d %d %d %d %d",&first_chan, &crate, &dummy, &slot, &first, &last, &modulid);
+  return kOK;
 
-  //   std::cout<<"$$$$$$$$$$$$ "<<crate<<std::endl;
+}
 
-  //   // if (first_chan>=0) {
-  //   //   if ( fDetMap->AddModule (crate, slot, first, last, first_chan )<0) {
-  //   // 	Error( Here(here), "Couldnt add Raster to DetMap!");
-  //   // 	fclose(fi);
-  //   // 	return kInitError;
-  //   //   }
-  //   // }
-  // } while (first_chan>=0);
 
+//_____________________________________________________________________________
+Int_t THcRaster::DefineVariables( EMode mode )
+{
+  // Initialize global variables for histogramming and tree
 
+  cout << "THcRaster::DefineVariables called " << GetName() << endl;
 
+  if( mode == kDefine && fIsSetup ) return kOK;
+  fIsSetup = ( mode == kDefine );
+  
+  // Register variables in global list
 
-  return kOK;
+  RVarDef vars[] = {
+    {"xcurrent",  "Raster X current",    "fXADC"},
+    {"ycurrent",  "Raster Y current",    "fYADC"},
+    {"xpos",  "Raster X position",    "fXpos"},
+    {"ypos",  "Raster Y position",    "fYpos"},
+    { 0 }
+  };
 
+  return DefineVarsFromList( vars, mode );
 }
 
 //_____________________________________________________________________________
@@ -170,8 +157,42 @@ THaAnalysisObject::EStatus THcRaster::Init( const TDatime& date )
 //_____________________________________________________________________________
 void THcRaster::AccumulatePedestals(TClonesArray* rawhits)
 {
-  // Extract data from the hit list, accumulating into arrays for
-  // calculating pedestals
+  /*
+  Extract data from the hit list, accumulating into arrays for
+  calculating pedestals. 
+  From ENGINE/g_analyze_misc.f - 
+  
+  * JRA: Code to check FR pedestals.  Since the raster is a fixed frequency
+  * and the pedestals come at a fixed rate, it is possible to keep getting
+  * the same value for each pedestal event, and get the wrong zero value.
+  * (see HCLOG #28325).  So calculate pedestal from first 1000 REAL
+  * events and compare to value from pedestal events.  Error on each
+  * measurement is RMS/sqrt(1000), error on diff is *sqrt(2), so 3 sigma
+  * check is 3*sqrt(2)*RMS/sqrt(1000) = .13*RMS
+  !
+  ! Can't use RMS, since taking sum of pedestal**2 for these signals
+  ! gives rollover for integer*4.  Just assume signal is +/-2000
+  ! channels, gives sigma of 100 channels, so check for diff>130.
+  !
+  */
+
+  Int_t nrawhits = rawhits->GetLast()+1;
+
+  Int_t ihit=0;
+
+  while(ihit<nrawhits) {
+    THcRasterRawHit* hit = (THcRasterRawHit *) fRawHitList->At(ihit);
+    if(hit->fADC_xsig>0) {
+      fPedADC[0] += hit->fADC_xsig;
+      //std::cout<<" raster x pedestal collect "<<fPedADC[0]<<std::endl;
+    }
+    if(hit->fADC_ysig>0) {
+      fPedADC[1] += hit->fADC_ysig;
+      //std::cout<<" raster y pedestal collect "<<fPedADC[1]<<std::endl;
+    }
+
+    ihit++;
+  }
 
 }
 
@@ -179,69 +200,76 @@ void THcRaster::AccumulatePedestals(TClonesArray* rawhits)
 //_____________________________________________________________________________
 void THcRaster::CalculatePedestals( )
 {
- // Use the accumulated pedestal data to calculate pedestals
+  /*
+  Use the accumulated pedestal data to calculate pedestals
+  From ENGINE/g_analyze_misc.f - 
+  
+     if (numfr.eq.1000) then
+       avefrx = sumfrx / float(numfr)
+       avefry = sumfry / float(numfr)
+       if (abs(avefrx-gfrx_adc_ped).gt.130.) then
+         write(6,*) 'FRPED: peds give <frx>=',gfrx_adc_ped,
+  $          '  realevents give <frx>=',avefrx
+       endif
+       if (abs(avefry-gfry_adc_ped).gt.130.) then
+         write(6,*) 'FRPED: peds give <fry>=',gfry_adc_ped,
+  $          '  realevents give <fry>=',avefry
+       endif
+     endif
+  */
+  for(Int_t i=0;i<2;i++){
+    fAvgPedADC[i] = fPedADC[i]/ fNPedestalEvents; 
+    // std::cout<<" raster pedestal "<<fAvgPedADC[i]<<std::endl;
+  }
+
 }
 
 
 //_____________________________________________________________________________
 Int_t THcRaster::Decode( const THaEvData& evdata )
 {
-  cout << "THcRaster::Decode()" << endl;
 
-  // clears the event structure
   // loops over all channels defined in the detector map
   // copies raw data into local variables
   // performs pedestal subtraction
 
-  ClearEvent();
 
   // Get the Hall C style hitlist (fRawHitList) for this event
   Int_t fNhits = THcHitList::DecodeToHitList(evdata);
-  std::cout<<"$$$$ Hits.."<<fNhits<<std::endl;
-
-  // // Get the pedestals
-  // if(gHaCuts->Result("Pedestal_event")) {
-  //   Int_t nexthit = 0;
-  //   AccumulatePedestals(fRawHitList);
-    
-  //   fAnalyzePedestals = 1;	// Analyze pedestals first normal events
-  //   return(0);
-  // }
-  // if(fAnalyzePedestals) {
-  //   CalculatePedestals();
-  //   fAnalyzePedestals = 0;	// Don't analyze pedestals next event
-  // }
+  
+  // Get the pedestals from the first 1000 events
+  //if(fNPedestalEvents < 10) 
+  if((gHaCuts->Result("Pedestal_event")) & (fNPedestalEvents < 1000)){
+      AccumulatePedestals(fRawHitList);    
+      fAnalyzePedestals = 1;	// Analyze pedestals first normal events
+      fNPedestalEvents++;
+      
+      return(0);
+    }
+  if(fAnalyzePedestals) {
+    CalculatePedestals();
+    fAnalyzePedestals = 0;	// Don't analyze pedestals next event
+  }
 
   Int_t ihit = 0;
-  std::cout<<"$$$$ Hits.."<<fNhits<<std::endl;
-
+  
   while(ihit < fNhits) {
-    //std::cout<<"Get raw hit.."<<std::endl;
     THcRasterRawHit* hit = (THcRasterRawHit *) fRawHitList->At(ihit);
-    fRawADC[0] = hit->fADC_xsig;
-    fRawADC[1] = hit->fADC_ysig;
-
-    for(Int_t i=0;i<2;i++){
-      fRawPos[i] = fRawADC[i]-fPedADC[i];
-      // std::cout<<" Raw ADC = "<<fRawADC[i]
-      // 	       <<" ped = "<<fPedADC[i]
-      // 	       <<" corrected ="<<fRawPos[i]<<std::endl; 
+    
+    if(hit->fADC_xsig>0) {
+      fRawADC[0] = hit->fADC_xsig;
+      // std::cout<<" Raw X = "<<fRawADC[0]<<std::endl;
     }
-  }
-
-  for(Int_t ihit = 0; ihit < fNhits ; ihit++) {
-    THcRasterRawHit* hit = (THcRasterRawHit *) fRawHitList->At(ihit);
-    cout << ihit << " : " << hit->fPlane << ":" << hit->fCounter << " : "
-	 << hit->fADC_xsig << " " << hit->fADC_ysig << " "  <<  hit->fADC_xsync
-	 << " " <<  hit->fADC_ysync << endl;
-  }
-  cout << endl;
-
-  //Get X and Y ADC values
-
+    
+    if(hit->fADC_ysig>0) {
+      fRawADC[1] = hit->fADC_ysig;
+      // std::cout<<" Raw Y ADC = "<<fRawADC[1]<<std::endl;
+    } 
+    ihit++;
+  }  
 
   return 0;
-
+  
 }
 
 
@@ -251,23 +279,38 @@ Int_t THcRaster::Decode( const THaEvData& evdata )
 //_____________________________________________________________________________
 Int_t THcRaster::Process( ){
 
-  /*    From ENGINE/g_analyze_misc.f
-
-	Fast Raster Signals:
-	 ===================
+  Double_t tmp = 0;
+  Double_t eBeam = 0;
+  /*
+    calculate raster position from ADC value.
+    From ENGINE/g_analyze_misc.f -
+    
+    gfrx_adc = gfrx_raw_adc - gfrx_adc_ped
+    gfry_adc = gfry_raw_adc - gfry_adc_ped
+  */
 
-	 gfrx_raw_adc = gmisc_dec_data(14,2)
-	 gfry_raw_adc = gmisc_dec_data(16,2)
+  // calculate the raster currents
+  fXADC =  fRawADC[0]-fAvgPedADC[0];
+  fYADC =  fRawADC[1]-fAvgPedADC[1];
+  //std::cout<<" Raw X ADC = "<<fXADC<<" Raw Y ADC = "<<fYADC<<std::endl;
 
-	 calculate raster position from ADC value.
-	 
-	 gfrx_adc = gfrx_raw_adc - gfrx_adc_ped
-	 gfry_adc = gfry_raw_adc - gfry_adc_ped
+  /*
+    calculate the raster positions
 
+    gfrx = (gfrx_adc/gfrx_adcpercm)*(gfr_cal_mom/ebeam)
+    gfry = (gfry_adc/gfry_adcpercm)*(gfr_cal_mom/ebeam)
   */
+  // bpw- Iam not sure how to access the global variables. the below code doesnt work. so for now, hard code the beam energy.
+  if(gHcParms->Find("ebeam")){
+    tmp=*(Double_t *)gHcParms->Find("ebeam")->GetValuePointer();
+    cout <<"e Beam  = "<< tmp << endl;
+  }
+  
+  eBeam = 4.02187;
+  fXpos = (fXADC/fFrXADCperCM)*(fFrCalMom/eBeam);
+  fYpos = (fYADC/fFrYADCperCM)*(fFrCalMom/eBeam);
 
-  // empty for now while I work on reading the channel map.
-
+  // std::cout<<" X = "<<fXpos<<" Y = "<<fYpos<<std::endl;
 
   return 0;
 }
diff --git a/src/THcRaster.h b/src/THcRaster.h
index 1d9e838..9ce9ee3 100644
--- a/src/THcRaster.h
+++ b/src/THcRaster.h
@@ -35,26 +35,33 @@ class THcRaster : public THaBeamDet, public THcHitList {
 
  protected:
 
-  void InitializeReconstruction();
-  void           ClearEvent();
+  /* void InitializeReconstruction(); */
   Int_t  ReadDatabase( const TDatime& date );
+  Int_t DefineVariables( EMode mode );
 
+  Double_t       fXADC;     // X current
+  Double_t       fYADC;     // Y current
+  Double_t       fXpos;     // X position
+  Double_t       fYpos;     // Y position
+  
   Double_t       fRawADC[2];     // raw ADC values
   Double_t       fPedADC[2];     // ADC poedestals 
+  Double_t       fAvgPedADC[2];     // Avergage ADC poedestals 
 
   Double_t       fRawPos[2];     // current in Raster ADCs for position
   TVector3       fPosition[2];   // Beam position at 1st, 2nd BPM or at the target (meters)
-  TVector3  fPosPed[2]; // pedestals 
-  TVector3  fDirection;  // Beam angle at the target (meters)
+  TVector3       fDirection;
 
+ private:
+  Bool_t    fAnalyzePedestals;
+  Int_t     fNPedestalEvents;
+  Double_t  fFrCalMom;
+  Double_t  fFrXADCperCM;
+  Double_t  fFrYADCperCM;
 
-  // Array to store channel numbers corresponding to X and Ysignals. 0 - X, 1 - Y.
-  Double_t fChN0[2]; 
 
- private:
-  Bool_t fAnalyzePedestals;
-  void CalculatePedestals();
-  void AccumulatePedestals(TClonesArray* rawhits);
+  void   CalculatePedestals();
+  void   AccumulatePedestals(TClonesArray* rawhits);
 
   ClassDef(THcRaster, 0);	// add THcRaster to ROOT library
 };  
diff --git a/src/THcRasterRawHit.cxx b/src/THcRasterRawHit.cxx
index e3efc7f..3603d35 100644
--- a/src/THcRasterRawHit.cxx
+++ b/src/THcRasterRawHit.cxx
@@ -32,9 +32,16 @@ void THcRasterRawHit::SetData(Int_t signal, Int_t data) {
   } else if (signal==3) {
     fADC_ysig = data;
   }
+
+  // std::cout<<" xsync = "<<fADC_xsync
+  // 	   <<" xsig  = "<<fADC_xsig
+  // 	   <<" ysync  = "<<fADC_ysync
+  // 	   <<" ysig  = "<<fADC_ysig << std::endl;
+
 }
 
 Int_t THcRasterRawHit::GetData(Int_t signal) {
+
   if(signal==1) {
     return(fADC_xsync);
   } else if (signal==2) {
@@ -44,7 +51,7 @@ Int_t THcRasterRawHit::GetData(Int_t signal) {
   } else if (signal==4) {
     return(fADC_ysig);
   }
-  return(-1); // Actually should throw exception
+  return(-1); 
 }
 
 // Int_t THcRasterRawHit::Compare(const TObject* obj) const
diff --git a/src/THcRasterRawHit.h b/src/THcRasterRawHit.h
index e30154a..c35f51e 100644
--- a/src/THcRasterRawHit.h
+++ b/src/THcRasterRawHit.h
@@ -27,7 +27,6 @@ class THcRasterRawHit : public THcRawHit {
   
   void SetData(Int_t signal, Int_t data);
   Int_t GetData(Int_t signal);
-  //Int_t Compare(TObject* obj);
 
   // signals
   Int_t fADC_xsig;
diff --git a/src/THcRasteredBeam.cxx b/src/THcRasteredBeam.cxx
index b9f77d3..b29ce6b 100644
--- a/src/THcRasteredBeam.cxx
+++ b/src/THcRasteredBeam.cxx
@@ -21,7 +21,7 @@
 THcRasteredBeam::THcRasteredBeam( const char* name, const char* description ) :
     THaBeam( name, description ) 
 {
-  AddDetector( new THcRaster("Raster","raster",this) );
+  AddDetector( new THcRaster("raster","raster",this) );
 }
 
 
-- 
GitLab