From 96fc359a048184bd4bd00a01db9b0840899a1cce Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <zviwood@gmail.com>
Date: Sat, 12 May 2012 22:34:01 -0400
Subject: [PATCH] Put examples directory under git control.

---
 .gitignore                              |    4 +
 examples/PARAM/gbeam.param              |   96 +
 examples/PARAM/gbeam.param.bak          |   96 +
 examples/PARAM/gbeam.param.pre62812     |   96 +
 examples/PARAM/gdebug.param             |    3 +
 examples/PARAM/general.param            |   24 +
 examples/PARAM/genflags.param           |   12 +
 examples/PARAM/gscalers.param           |   98 +
 examples/PARAM/gscalers.param.bak       |   95 +
 examples/PARAM/gtarget.param            |  169 ++
 examples/PARAM/haero.param              |   27 +
 examples/PARAM/hcal.param               |  119 +
 examples/PARAM/hcal.pos                 |   81 +
 examples/PARAM/hcer.param               |   40 +
 examples/PARAM/hdc.param                |   44 +
 examples/PARAM/hdc.param.bak            |   44 +
 examples/PARAM/hdc.param_2gamma         |   44 +
 examples/PARAM/hdc.pos                  |  183 ++
 examples/PARAM/hdc_offsets.param        |  125 +
 examples/PARAM/hdeadwires.param         |   10 +
 examples/PARAM/hdebug.param             |  122 +
 examples/PARAM/hdriftmap.param          |  175 ++
 examples/PARAM/hdriftmap.param.62698    |  175 ++
 examples/PARAM/hdriftmap.param.62726    |  175 ++
 examples/PARAM/hdriftmap.param.63504    |  175 ++
 examples/PARAM/hdriftmap.param.63513    |  175 ++
 examples/PARAM/hdriftmap.param.bak      |  175 ++
 examples/PARAM/hdriftmap.param.pre62690 |  175 ++
 examples/PARAM/hhodo.param              |  331 +++
 examples/PARAM/hhodo.param.may9         |  176 ++
 examples/PARAM/hhodo.param_v1           |  472 ++++
 examples/PARAM/hhodo.pos                |   88 +
 examples/PARAM/hmsflags.param           |   52 +
 examples/PARAM/htracking.param          |   98 +
 examples/PARAM/saer.param               |   12 +
 examples/PARAM/scal.param               |  207 ++
 examples/PARAM/scal.pos                 |   72 +
 examples/PARAM/scer.param               |   39 +
 examples/PARAM/sdc.param                |   55 +
 examples/PARAM/sdc.param.bak            |   55 +
 examples/PARAM/sdc.pos                  |  216 ++
 examples/PARAM/sdc_offsets.param        |   71 +
 examples/PARAM/sdebug.param             |  127 +
 examples/PARAM/sdriftmap.param          |  343 +++
 examples/PARAM/shodo.param              |  192 ++
 examples/PARAM/shodo.pos                |  103 +
 examples/PARAM/sluc.param               |   28 +
 examples/PARAM/sosflags.param           |   42 +
 examples/PARAM/stracking.param          |   72 +
 examples/db_cratemap.dat                |   42 +
 examples/db_run.dat                     |   11 +
 examples/hitmaps.C                      |   39 +
 examples/hodtest.C                      |   50 +
 examples/july04.map                     | 3282 +++++++++++++++++++++++
 examples/make_cratemap.pl               |   70 +
 examples/output.def                     |   23 +
 56 files changed, 9125 insertions(+)
 create mode 100644 examples/PARAM/gbeam.param
 create mode 100644 examples/PARAM/gbeam.param.bak
 create mode 100644 examples/PARAM/gbeam.param.pre62812
 create mode 100644 examples/PARAM/gdebug.param
 create mode 100644 examples/PARAM/general.param
 create mode 100644 examples/PARAM/genflags.param
 create mode 100644 examples/PARAM/gscalers.param
 create mode 100644 examples/PARAM/gscalers.param.bak
 create mode 100644 examples/PARAM/gtarget.param
 create mode 100644 examples/PARAM/haero.param
 create mode 100644 examples/PARAM/hcal.param
 create mode 100644 examples/PARAM/hcal.pos
 create mode 100644 examples/PARAM/hcer.param
 create mode 100644 examples/PARAM/hdc.param
 create mode 100644 examples/PARAM/hdc.param.bak
 create mode 100644 examples/PARAM/hdc.param_2gamma
 create mode 100644 examples/PARAM/hdc.pos
 create mode 100644 examples/PARAM/hdc_offsets.param
 create mode 100644 examples/PARAM/hdeadwires.param
 create mode 100644 examples/PARAM/hdebug.param
 create mode 100644 examples/PARAM/hdriftmap.param
 create mode 100644 examples/PARAM/hdriftmap.param.62698
 create mode 100644 examples/PARAM/hdriftmap.param.62726
 create mode 100644 examples/PARAM/hdriftmap.param.63504
 create mode 100644 examples/PARAM/hdriftmap.param.63513
 create mode 100644 examples/PARAM/hdriftmap.param.bak
 create mode 100644 examples/PARAM/hdriftmap.param.pre62690
 create mode 100644 examples/PARAM/hhodo.param
 create mode 100644 examples/PARAM/hhodo.param.may9
 create mode 100644 examples/PARAM/hhodo.param_v1
 create mode 100644 examples/PARAM/hhodo.pos
 create mode 100644 examples/PARAM/hmsflags.param
 create mode 100644 examples/PARAM/htracking.param
 create mode 100644 examples/PARAM/saer.param
 create mode 100644 examples/PARAM/scal.param
 create mode 100644 examples/PARAM/scal.pos
 create mode 100644 examples/PARAM/scer.param
 create mode 100644 examples/PARAM/sdc.param
 create mode 100644 examples/PARAM/sdc.param.bak
 create mode 100644 examples/PARAM/sdc.pos
 create mode 100644 examples/PARAM/sdc_offsets.param
 create mode 100644 examples/PARAM/sdebug.param
 create mode 100644 examples/PARAM/sdriftmap.param
 create mode 100644 examples/PARAM/shodo.param
 create mode 100644 examples/PARAM/shodo.pos
 create mode 100644 examples/PARAM/sluc.param
 create mode 100644 examples/PARAM/sosflags.param
 create mode 100644 examples/PARAM/stracking.param
 create mode 100644 examples/db_cratemap.dat
 create mode 100755 examples/db_run.dat
 create mode 100644 examples/hitmaps.C
 create mode 100644 examples/hodtest.C
 create mode 100644 examples/july04.map
 create mode 100755 examples/make_cratemap.pl
 create mode 100644 examples/output.def

diff --git a/.gitignore b/.gitignore
index db15b0f..e2c1aa5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,5 +12,9 @@ hcana
 *.so
 \#.*\#
 
+# Examples directory
+examples/*.root
+examples/*.log.*
+
 # Working directory
 work
diff --git a/examples/PARAM/gbeam.param b/examples/PARAM/gbeam.param
new file mode 100644
index 0000000..a2a6aa5
--- /dev/null
+++ b/examples/PARAM/gbeam.param
@@ -0,0 +1,96 @@
+;                    BPM calibration constants
+;                    =========================
+  guse_bpm_in_recon  = 0   ; if 1 use bpm information for reconstruction
+  guse_bpmc = 1  ; if 1 use all 3 bpm info, if 0 use bpm A and B 
+  gbpm_sample  = 500 ; number of events, which are used for average 
+                     ; beam position ( <5000 ). Optimal value dep. on rate
+
+; the names are based on Paul Gueye's 'Status of the actual Beam Position
+;                   Monitors in the Hall C Beamline', December 1, 1995.
+; (mkj) apr-4-03 kappa,alpha and off for 3rd bpm are guesses,
+; need to find right values.
+;
+;  gbpm_kappa    = 1.85 ,1.85,1.85     ; sensitivity in cm
+gbpm_kappa    = 2.00 ,1.95,1.85  ; modified mkj 4/9/03
+  gbpm_alpha_x = 1.8192,0.7330 ,0.7   ; calibration gain: we may get them from the
+  gbpm_alpha_y = 1.0063,0.8935 ,0.7   ;  EPICS events, right now that's according to Paul's note
+
+; the following offsets get added to the calculated positions
+;  gbpm_x_off = -0.011,-0.004,0.      ; in cm: survey according to Paul's note
+;  gbpm_y_off = +0.052,+0.056,0.
+; From Dahlberg survey DT_C853 Apr 7, 2003
+gbpm_x_off = 0.017+.412-.094 , 0.061-.353-.055 ,0.037-0.09
+gbpm_y_off = 0.037+.381+.003 ,-0.040-.211-.033 ,0.028+.219
+
+; average beam positions: only used if 'guse_bpm_in_recon=0' 
+;  gbeam_xoff  = +0.18
+  gbeam_xoff  = +0.00
+  gbeam_xpoff = +0.00
+  gbeam_yoff  = +0.00
+  gbeam_ypoff = +0.00
+
+; spectrometers would like to see this positions (from optics studies) 
+; we treat SOS and HMS the same, however, we may change this if necessary
+;  gspec_xoff  = +0.18
+  gspec_xoff  = +0.00
+  gspec_xpoff = +0.00
+  gspec_yoff  = +0.00
+  gspec_ypoff = +0.00
+
+; Pedestals for BPM ADCs: from cosmic run #10933, 10/3/96, book XI-137
+  gbpm_xp_ped = 431.9,331.0,0.  ; these pedestals have to be determined
+  gbpm_xm_ped = 514.7,350.6,0.  ; from runs with no beam in the cavities,
+  gbpm_yp_ped = 406.9,358.8,0.  ; e.g. cosmic runs.
+  gbpm_ym_ped = 499.7,292.7,0. ;
+
+; positions of BPMs relative to target (from Paul's note)
+  gbpm_zpos = 345.5,166.3,0.   ; cm
+
+
+;             Fast Raster calibration constants
+;             =================================
+
+; Various fast raster quantities: gUse* are flags
+
+  gusefr               = 1  ; if 1 correct for FRY in reconstruction
+
+  guse_frdefault       = 1  ; if 1 do no phase correction (default)
+;      gfr_cal_mom      = 3.245  ; = beam momnetum during calibration run 
+;      gfrx_adcpercm    = 11328. ; = FR channels per cm deflection on target
+;      gfry_adcpercm    = 10708. ; from run 9981, August 25, 1996, book X-22
+
+      gfr_cal_mom      = 2.038  ; = beam momnetum during calibration run 
+      gfrx_adcpercm    = 4364.7 ; = FR channels per cm deflection on target
+      gfry_adcpercm    = 5471.9 ; from harp scan (H00A), June 19, 2004
+
+
+                            ;if 0 apply phase correction 
+      gfrx_dphase      = 0.0    ; phase shift (never measured for x so far) 
+      gFrx_synccut     = 0.     ; should be zero if applied on centered distr.
+      gfrx_adcmax      = 1000   ; ADC amplitude in channels.
+      gfrx_maxsize     = 0.1    ; fast raster amplitude in centimeter.
+
+      gfry_dphase      = 5.8    ; phase shift 
+      gFry_synccut     = 0.     ; should be zero if applied on centered distr.
+      gfry_adcmax      = 1000   ; ADC amplitude in channels.
+      gfry_maxsize     = 0.1    ; fast raster amplitude in centimeter.
+
+; The latest FR phase analysis from spring '96 showed, that there is no
+; measurable phase shift. During early running (E91-13, E89-12) the FRY-phase
+; was determined to be 5.8 degree.
+
+; positions of FR magnets relative to target
+  gfrx_dist  = 2111   ; cm
+  gfry_dist  = 2071   ; cm
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/PARAM/gbeam.param.bak b/examples/PARAM/gbeam.param.bak
new file mode 100644
index 0000000..27ca6fb
--- /dev/null
+++ b/examples/PARAM/gbeam.param.bak
@@ -0,0 +1,96 @@
+;                    BPM calibration constants
+;                    =========================
+  guse_bpm_in_recon  = 0   ; if 1 use bpm information for reconstruction
+  guse_bpmc = 1  ; if 1 use all 3 bpm info, if 0 use bpm A and B 
+  gbpm_sample  = 500 ; number of events, which are used for average 
+                     ; beam position ( <5000 ). Optimal value dep. on rate
+
+; the names are based on Paul Gueye's 'Status of the actual Beam Position
+;                   Monitors in the Hall C Beamline', December 1, 1995.
+; (mkj) apr-4-03 kappa,alpha and off for 3rd bpm are guesses,
+; need to find right values.
+;
+;  gbpm_kappa    = 1.85 ,1.85,1.85     ; sensitivity in cm
+gbpm_kappa    = 2.00 ,1.95,1.85  ; modified mkj 4/9/03
+  gbpm_alpha_x = 1.8192,0.7330 ,0.7   ; calibration gain: we may get them from the
+  gbpm_alpha_y = 1.0063,0.8935 ,0.7   ;  EPICS events, right now that's according to Paul's note
+
+; the following offsets get added to the calculated positions
+;  gbpm_x_off = -0.011,-0.004,0.      ; in cm: survey according to Paul's note
+;  gbpm_y_off = +0.052,+0.056,0.
+; From Dahlberg survey DT_C853 Apr 7, 2003
+gbpm_x_off = 0.017+.412,0.061-.353,0.037
+gbpm_y_off = 0.037+.381,-0.04-.211,0.028
+
+; average beam positions: only used if 'guse_bpm_in_recon=0' 
+;  gbeam_xoff  = +0.18
+  gbeam_xoff  = +0.00
+  gbeam_xpoff = +0.00
+  gbeam_yoff  = +0.00
+  gbeam_ypoff = +0.00
+
+; spectrometers would like to see this positions (from optics studies) 
+; we treat SOS and HMS the same, however, we may change this if necessary
+;  gspec_xoff  = +0.18
+  gspec_xoff  = +0.00
+  gspec_xpoff = +0.00
+  gspec_yoff  = +0.00
+  gspec_ypoff = +0.00
+
+; Pedestals for BPM ADCs: from cosmic run #10933, 10/3/96, book XI-137
+  gbpm_xp_ped = 431.9,331.0,0.  ; these pedestals have to be determined
+  gbpm_xm_ped = 514.7,350.6,0.  ; from runs with no beam in the cavities,
+  gbpm_yp_ped = 406.9,358.8,0.  ; e.g. cosmic runs.
+  gbpm_ym_ped = 499.7,292.7,0. ;
+
+; positions of BPMs relative to target (from Paul's note)
+  gbpm_zpos = 345.5,166.3,0.   ; cm
+
+
+;             Fast Raster calibration constants
+;             =================================
+
+; Various fast raster quantities: gUse* are flags
+
+  gusefr               = 1  ; if 1 correct for FRY in reconstruction
+
+  guse_frdefault       = 1  ; if 1 do no phase correction (default)
+;      gfr_cal_mom      = 3.245  ; = beam momnetum during calibration run 
+;      gfrx_adcpercm    = 11328. ; = FR channels per cm deflection on target
+;      gfry_adcpercm    = 10708. ; from run 9981, August 25, 1996, book X-22
+
+      gfr_cal_mom      = 2.038  ; = beam momnetum during calibration run 
+      gfrx_adcpercm    = 4364.7 ; = FR channels per cm deflection on target
+      gfry_adcpercm    = 5471.9 ; from harp scan (H00A), June 19, 2004
+
+
+                            ;if 0 apply phase correction 
+      gfrx_dphase      = 0.0    ; phase shift (never measured for x so far) 
+      gFrx_synccut     = 0.     ; should be zero if applied on centered distr.
+      gfrx_adcmax      = 1000   ; ADC amplitude in channels.
+      gfrx_maxsize     = 0.1    ; fast raster amplitude in centimeter.
+
+      gfry_dphase      = 5.8    ; phase shift 
+      gFry_synccut     = 0.     ; should be zero if applied on centered distr.
+      gfry_adcmax      = 1000   ; ADC amplitude in channels.
+      gfry_maxsize     = 0.1    ; fast raster amplitude in centimeter.
+
+; The latest FR phase analysis from spring '96 showed, that there is no
+; measurable phase shift. During early running (E91-13, E89-12) the FRY-phase
+; was determined to be 5.8 degree.
+
+; positions of FR magnets relative to target
+  gfrx_dist  = 2111   ; cm
+  gfry_dist  = 2071   ; cm
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/PARAM/gbeam.param.pre62812 b/examples/PARAM/gbeam.param.pre62812
new file mode 100644
index 0000000..27ca6fb
--- /dev/null
+++ b/examples/PARAM/gbeam.param.pre62812
@@ -0,0 +1,96 @@
+;                    BPM calibration constants
+;                    =========================
+  guse_bpm_in_recon  = 0   ; if 1 use bpm information for reconstruction
+  guse_bpmc = 1  ; if 1 use all 3 bpm info, if 0 use bpm A and B 
+  gbpm_sample  = 500 ; number of events, which are used for average 
+                     ; beam position ( <5000 ). Optimal value dep. on rate
+
+; the names are based on Paul Gueye's 'Status of the actual Beam Position
+;                   Monitors in the Hall C Beamline', December 1, 1995.
+; (mkj) apr-4-03 kappa,alpha and off for 3rd bpm are guesses,
+; need to find right values.
+;
+;  gbpm_kappa    = 1.85 ,1.85,1.85     ; sensitivity in cm
+gbpm_kappa    = 2.00 ,1.95,1.85  ; modified mkj 4/9/03
+  gbpm_alpha_x = 1.8192,0.7330 ,0.7   ; calibration gain: we may get them from the
+  gbpm_alpha_y = 1.0063,0.8935 ,0.7   ;  EPICS events, right now that's according to Paul's note
+
+; the following offsets get added to the calculated positions
+;  gbpm_x_off = -0.011,-0.004,0.      ; in cm: survey according to Paul's note
+;  gbpm_y_off = +0.052,+0.056,0.
+; From Dahlberg survey DT_C853 Apr 7, 2003
+gbpm_x_off = 0.017+.412,0.061-.353,0.037
+gbpm_y_off = 0.037+.381,-0.04-.211,0.028
+
+; average beam positions: only used if 'guse_bpm_in_recon=0' 
+;  gbeam_xoff  = +0.18
+  gbeam_xoff  = +0.00
+  gbeam_xpoff = +0.00
+  gbeam_yoff  = +0.00
+  gbeam_ypoff = +0.00
+
+; spectrometers would like to see this positions (from optics studies) 
+; we treat SOS and HMS the same, however, we may change this if necessary
+;  gspec_xoff  = +0.18
+  gspec_xoff  = +0.00
+  gspec_xpoff = +0.00
+  gspec_yoff  = +0.00
+  gspec_ypoff = +0.00
+
+; Pedestals for BPM ADCs: from cosmic run #10933, 10/3/96, book XI-137
+  gbpm_xp_ped = 431.9,331.0,0.  ; these pedestals have to be determined
+  gbpm_xm_ped = 514.7,350.6,0.  ; from runs with no beam in the cavities,
+  gbpm_yp_ped = 406.9,358.8,0.  ; e.g. cosmic runs.
+  gbpm_ym_ped = 499.7,292.7,0. ;
+
+; positions of BPMs relative to target (from Paul's note)
+  gbpm_zpos = 345.5,166.3,0.   ; cm
+
+
+;             Fast Raster calibration constants
+;             =================================
+
+; Various fast raster quantities: gUse* are flags
+
+  gusefr               = 1  ; if 1 correct for FRY in reconstruction
+
+  guse_frdefault       = 1  ; if 1 do no phase correction (default)
+;      gfr_cal_mom      = 3.245  ; = beam momnetum during calibration run 
+;      gfrx_adcpercm    = 11328. ; = FR channels per cm deflection on target
+;      gfry_adcpercm    = 10708. ; from run 9981, August 25, 1996, book X-22
+
+      gfr_cal_mom      = 2.038  ; = beam momnetum during calibration run 
+      gfrx_adcpercm    = 4364.7 ; = FR channels per cm deflection on target
+      gfry_adcpercm    = 5471.9 ; from harp scan (H00A), June 19, 2004
+
+
+                            ;if 0 apply phase correction 
+      gfrx_dphase      = 0.0    ; phase shift (never measured for x so far) 
+      gFrx_synccut     = 0.     ; should be zero if applied on centered distr.
+      gfrx_adcmax      = 1000   ; ADC amplitude in channels.
+      gfrx_maxsize     = 0.1    ; fast raster amplitude in centimeter.
+
+      gfry_dphase      = 5.8    ; phase shift 
+      gFry_synccut     = 0.     ; should be zero if applied on centered distr.
+      gfry_adcmax      = 1000   ; ADC amplitude in channels.
+      gfry_maxsize     = 0.1    ; fast raster amplitude in centimeter.
+
+; The latest FR phase analysis from spring '96 showed, that there is no
+; measurable phase shift. During early running (E91-13, E89-12) the FRY-phase
+; was determined to be 5.8 degree.
+
+; positions of FR magnets relative to target
+  gfrx_dist  = 2111   ; cm
+  gfry_dist  = 2071   ; cm
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/PARAM/gdebug.param b/examples/PARAM/gdebug.param
new file mode 100644
index 0000000..7ac0e01
--- /dev/null
+++ b/examples/PARAM/gdebug.param
@@ -0,0 +1,3 @@
+  gmisc_min_peds = 500
+
+  gelossdebug = 0	;eloss debug (0=off,1=on)
diff --git a/examples/PARAM/general.param b/examples/PARAM/general.param
new file mode 100644
index 0000000..4a50d14
--- /dev/null
+++ b/examples/PARAM/general.param
@@ -0,0 +1,24 @@
+#real raddeg
+raddeg=3.14159265/180
+
+; hms/sosflags.param include spectrometer offsets and options.
+#include "PARAM/genflags.param"
+#include "PARAM/hmsflags.param"
+#include "PARAM/sosflags.param"
+
+#include "PARAM/gdebug.param"
+#include "PARAM/hdebug.param"
+#include "PARAM/sdebug.param"
+#include "PARAM/htracking.param"
+#include "PARAM/stracking.param"
+
+#include "PARAM/gtarget.param"
+;  Can't quite handle this one
+#include "PARAM/hdc_offsets.param"
+#include "PARAM/hdc.pos"
+#include "PARAM/hhodo.pos"
+#include "PARAM/hcal.pos"
+#include "PARAM/sdc_offsets.param"
+#include "PARAM/sdc.pos"
+#include "PARAM/shodo.pos"
+#include "PARAM/scal.pos"
diff --git a/examples/PARAM/genflags.param b/examples/PARAM/genflags.param
new file mode 100644
index 0000000..122ba17
--- /dev/null
+++ b/examples/PARAM/genflags.param
@@ -0,0 +1,12 @@
+;default settings for general option flags.
+  gen_run_starting_event = 1
+  gen_run_stopping_event = 0
+  gen_run_hist_dump_interval = 25000
+
+; hack_enable             run hack_anal if .ne. 0
+  hack_enable = 0
+
+; gen_eloss_enable         (0=disabled) total_eloss.f
+  gen_eloss_enable = 1
+
+
diff --git a/examples/PARAM/gscalers.param b/examples/PARAM/gscalers.param
new file mode 100644
index 0000000..d8b4920
--- /dev/null
+++ b/examples/PARAM/gscalers.param
@@ -0,0 +1,98 @@
+; Add ability to write out the scaler rate at each scaler read
+;  for up to 10 scalers 
+; When g_writeout_scaler_filename is commented out then file
+;  is not written and other info not used.
+; To get scaler indices look in TEMPLATE/hreport.template
+;   and sreport.template .
+; In output file for each scaler read is the number of the scaler read and the
+;   time between scaler reads and then the rates for each scaler.
+ g_writeout_scaler_filename = outfiles/%d.scal
+ INDEX_WRITEOUT_SCALERS = 146,165,148,164,160,174
+ NUM_WRITEOUT_SCALERS = 6
+; Old charge calibrations from Run 16707; BCM1 in gain pos 1, BCM2 in
+; gain position 2
+
+;point to scaler indices for BCM's fro SOS scalers
+;  gbcm1_index = 321
+;  gbcm2_index = 322
+;  gbcm3_index = 323
+;  gunser_index = 324
+;point to scaler indices for BCM's for HMS scalers
+  gbcm1_index = 167
+  gbcm2_index = 168
+  gbcm3_index = 323
+  gunser_index = 166
+
+;gain factors for three cavity monitors
+; numbers from I. Albayrak - 5/11/07
+gbcm1_gain = 0.000334137            ; microA/Hz
+gbcm2_gain = 0.000373754                   ; microA/Hz
+gbcm3_gain = 0.00043343               ; microA/Hz
+gunser_gain = 0.00024980              ; microA/Hz
+; note, gbcm3_gain from: 
+; JRA - adjust calibration factors by hand
+; to get semi-sensible values (apr03)
+
+; numbers from  I. Albayrak - 5/11/07
+gbcm1_offset =  251226.              ; Hz
+gbcm2_offset =  250816.              ; Hz
+gbcm3_offset =  245437.              ; Hz
+gunser_offset = 250000.              ; TEST
+; gbcm3_offset and gunser_offset from: 
+; VALUES FROM BEAM OFF (starting point for jan99)
+
+;define the threshold current at which beam is "on". (in microamps)
+ g_beam_on_thresh_cur = 5.,5.
+ bcm_for_threshold_cut = 1
+
+
+;point to hardware clock (1MHz scaler, scaler channel 174 in HMS scalers)
+; for SOS scalers 325
+;  gclock_index = 174
+  gclock_index = 325
+  gclock_rate = 1.e+6
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; everything below this line is old js 6.22.4
+
+;gain factors for three cavity monitors
+; gbcm1_gain =  .0009435               ; microA/Hz
+; gbcm2_gain =  .0002849               ; microA/Hz
+; gbcm3_gain =  .0002537               ; microA/Hz
+; gunser_gain =  .00025000              ; microA/Hz
+;
+; From Feb99 BCM cal:
+; gbcm1_gain =  .00004811               ; microA/Hz
+; gbcm2_gain =  .00026421               ; microA/Hz
+; gbcm3_gain =  .00043343               ; microA/Hz
+; gunser_gain =  .00025000              ; microA/Hz
+
+; JRA - adjust calibration factors by hand to get semi-sensible values (apr03)
+; gbcm1_gain =  .00008685               ; microA/Hz
+; gbcm2_gain =  .00029148               ; microA/Hz
+;  gbcm3_gain =  .00043343               ; microA/Hz
+; gunser_gain =  .0002501              ; microA/Hz
+
+; BCM1 and BCM2 values updated to match what Gaskell put into the
+; ratemon code [based on hclog 70221, Dec 8, 2003]
+;gbcm1_gain =  0.001101
+;gbcm2_gain =  0.0012963
+
+;zero offsets for BCM s
+; VALUES FROM REAL FIT:
+; gbcm1_offset =  250632.              ; Hz
+; gbcm2_offset =  251195.              ; Hz
+; gbcm3_offset =  249543.              ; Hz
+;
+; VALUES FROM BEAM OFF (starting point for jan99)
+; gbcm1_offset =  244795.              ; Hz
+; gbcm2_offset =  253647.              ; Hz
+; gbcm3_offset =  245437.              ; Hz
+; gunser_offset = 250000.              ; TEST
+; gunser_offset = 545693.              ; Hz
+
+; BCM1 and BCM2 values updated to match what Gaskell put into the
+; ratemon code [based on hclog 70221, Dec 8, 2003]
+;gbcm1_offset =  250513
+;gbcm2_offset =  250463
+
diff --git a/examples/PARAM/gscalers.param.bak b/examples/PARAM/gscalers.param.bak
new file mode 100644
index 0000000..38c1f9c
--- /dev/null
+++ b/examples/PARAM/gscalers.param.bak
@@ -0,0 +1,95 @@
+; Add ability to write out the scaler rate at each scaler read
+;  for up to 10 scalers 
+; When g_writeout_scaler_filename is commented out then file
+;  is not written and other info not used.
+; To get scaler indices look in TEMPLATE/hreport.template
+;   and sreport.template .
+; In output file for each scaler read is the number of the scaler read and the
+;   time between scaler reads and then the rates for each scaler.
+ g_writeout_scaler_filename = outfiles/%d.scal
+ INDEX_WRITEOUT_SCALERS = 146,165,148,164,160,174
+ NUM_WRITEOUT_SCALERS = 6
+; Old charge calibrations from Run 16707; BCM1 in gain pos 1, BCM2 in
+; gain position 2
+
+;point to scaler indices for BCM's fro SOS scalers
+;  gbcm1_index = 321
+;  gbcm2_index = 322
+;  gbcm3_index = 323
+;  gunser_index = 324
+;point to scaler indices for BCM's for HMS scalers
+  gbcm1_index = 167
+  gbcm2_index = 168
+  gbcm3_index = 323
+  gunser_index = 166
+
+;gain factors for three cavity monitors
+; numbers from D. Mack, 6.22.4
+gbcm1_gain = 0.00108902              ; microA/Hz
+gbcm2_gain = 0.00127300              ; microA/Hz
+gbcm3_gain = 0.00043343               ; microA/Hz
+gunser_gain = 0.00024980              ; microA/Hz
+; note, gbcm3_gain from: 
+; JRA - adjust calibration factors by hand
+; to get semi-sensible values (apr03)
+
+; numbers from D. Mack, 6.22.4
+gbcm1_offset =  250346.              ; Hz
+gbcm2_offset =  250258.              ; Hz
+gbcm3_offset =  245437.              ; Hz
+gunser_offset = 250000.              ; TEST
+; gbcm3_offset and gunser_offset from: 
+; VALUES FROM BEAM OFF (starting point for jan99)
+
+;define the threshold current at which beam is "on". (in microamps)
+ g_beam_on_thresh_cur = 5.
+
+;point to hardware clock (1MHz scaler, scaler channel 174 in HMS scalers)
+; for SOS scalers 325
+  gclock_index = 174
+  gclock_rate = 1.e+6
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; everything below this line is old js 6.22.4
+
+;gain factors for three cavity monitors
+; gbcm1_gain =  .0009435               ; microA/Hz
+; gbcm2_gain =  .0002849               ; microA/Hz
+; gbcm3_gain =  .0002537               ; microA/Hz
+; gunser_gain =  .00025000              ; microA/Hz
+;
+; From Feb99 BCM cal:
+; gbcm1_gain =  .00004811               ; microA/Hz
+; gbcm2_gain =  .00026421               ; microA/Hz
+; gbcm3_gain =  .00043343               ; microA/Hz
+; gunser_gain =  .00025000              ; microA/Hz
+
+; JRA - adjust calibration factors by hand to get semi-sensible values (apr03)
+; gbcm1_gain =  .00008685               ; microA/Hz
+; gbcm2_gain =  .00029148               ; microA/Hz
+;  gbcm3_gain =  .00043343               ; microA/Hz
+; gunser_gain =  .00025000              ; microA/Hz
+
+; BCM1 and BCM2 values updated to match what Gaskell put into the
+; ratemon code [based on hclog 70221, Dec 8, 2003]
+;gbcm1_gain =  0.001101
+;gbcm2_gain =  0.0012963
+
+;zero offsets for BCM s
+; VALUES FROM REAL FIT:
+; gbcm1_offset =  250632.              ; Hz
+; gbcm2_offset =  251195.              ; Hz
+; gbcm3_offset =  249543.              ; Hz
+;
+; VALUES FROM BEAM OFF (starting point for jan99)
+; gbcm1_offset =  244795.              ; Hz
+; gbcm2_offset =  253647.              ; Hz
+; gbcm3_offset =  245437.              ; Hz
+; gunser_offset = 250000.              ; TEST
+; gunser_offset = 545693.              ; Hz
+
+; BCM1 and BCM2 values updated to match what Gaskell put into the
+; ratemon code [based on hclog 70221, Dec 8, 2003]
+;gbcm1_offset =  250513
+;gbcm2_offset =  250463
+
diff --git a/examples/PARAM/gtarget.param b/examples/PARAM/gtarget.param
new file mode 100644
index 0000000..f43b67f
--- /dev/null
+++ b/examples/PARAM/gtarget.param
@@ -0,0 +1,169 @@
+; modified for e04-001/e06-009 NucR
+;
+; This is the target parameter file.  Numbers 1-9 are solid targets,
+; and 11-16 will always be the cryotargets(H 4.5cm and 12.4cm, He 4cm and 15 cm,
+; and D 4.4 cm and 12.4cm). Some of the solid targets don't exist any more (one
+; of the Fe, the C_sl and Au_6%, the dummy-15)
+;The target order is:
+;
+;    Au_3%         Cu_2%      Fe_1%
+;    C_1%          C_3%       BeO
+;    C_0.5% (z=0)  Be         ---
+;
+;    dummy-15
+;    H  4.5cm      H  12.4cm
+;    He 4cm        He 15cm
+;    LD2  4.4cm    LD2  12.4cm
+;    dummy-4
+;    quintar(all layers)
+;    quintar     z=0cm, z=+6cm, z=+3cm, z=-3cm, z=-6cm
+;
+; non-existant targets have A=Z=M=...=0
+; empty/dummy cells have A=Z=M=...= SAME AS DEUTERIUM.
+;
+; As of now (7/13/96) the values for the BeO are guesses
+
+; 1=tuna can, 2=beer can, 21=solid
+ gtarg_type   =  21.     ,    21.     ,   21.
+	         21.     ,    21.     ,   21.
+                 21.     ,    21.     ,   21.
+                 21.
+                 1.      ,     1.
+                 1.      ,     1.
+                 1.      ,     1.
+                 21.
+                 21.
+
+  gtarg_z     = 79.0     ,    29.0    ,   26.0
+                 6.0     ,     6.0    ,   12.0
+                 6.0     ,     4.0    ,   0.0
+                 13.0
+                 1.0     ,     1.0
+                 1.0     ,     1.0
+                 1.0     ,     1.0
+                 13.0
+		 8.8
+;this is averaged z: 2x Al, 3x C
+		 6.0     ,     6.0    ,    13.0  ,  13.0  ,  6.0
+
+  gtarg_a     = 197.0     ,    64.0    ,    56.0
+                12.0     ,    12.0    ,    25.0
+                12.0     ,     9.0    ,    0.0
+                 27.0
+                 1.0     ,     1.0
+                 2.0     ,     2.0
+                 2.0     ,     2.0
+                 27.0
+		 18.0
+;this is averaged z: 2x Al, 3x C
+		 12.0    ,    12.0    ,   27.0  ,  27.0  ,  12.0
+
+  gtarg_mass  = 196.96655   ,   63.546   ,    55.845
+                12.0107   ,   12.0107   ,    25.0  
+                12.0107     ,  9.012182     ,   0.0    
+                 26.98
+                 1.00727647 ,    1.00727647 
+                 2.01355322 ,    2.01355322
+                 2.01355322 ,    2.01355322
+                 26.98
+		17.9986
+;this is averaged z: 2x Al, 3x C
+		12.011   ,   12.011   ,  26.98  ,  26.98  ,  12.011
+
+; Next is the radiation length in percent...
+  gtarg_lrad  =  3.72    ,    1.81    ,     1.0
+                 1.06     ,    2.92    ,     1.0
+                 0.50     ,    0.0     ,     0.0
+                 2.2472 
+                 0.48 ,    1.43353
+                 0.528   ,    1.982
+                 0.56 ,    1.63804
+                 2.11
+		 3.8429
+;added the radiation lengths of all five layers
+		 0.53191 , 0.53191, 1.1236 , 1.1236 , 0.53191
+		 
+
+; Next is the thickness of the target in g/cm^2...
+  gtarg_thick =  0.240  ,    0.233  ,     0.1187
+                 0.452  , 1.2454  ,     0.2
+                 0.227  ,   1.2454     ,     0.0
+                 0.529
+                 0.295   ,    0.9016
+                 0.648   ,    2.430
+                 0.681  ,    2.0808
+                 0.507
+		 1.215
+		 0.225  ,  0.225  ,  0.27  ,  0.27  ,  0.225
+
+; Finally, the density of the target in g/cm^3.  These are estimates based
+; on the nominal thickness (cm) of the targets which can be off by ~5% ...
+
+  gtarg_dens  =  19.3    ,  8.96    ,     1.3
+                 2.18   ,    2.18   ,     2.0
+                 2.0     ,   2.0     ,    0.0
+                 2.7
+                 0.0723   ,    0.0723
+                 0.167   ,    0.167
+                 0.167   ,    0.167
+                 2.68
+		 2.7
+		 2.25  ,  2.25  ,  2.7  ,  2.7  ,  2.25
+
+; Target angle:  =90 deg. is perpendicluar to beam
+;                <90 deg. is face towards HMS
+;                >90 deg. is face towards SOS 
+; for E99118 target was rotated 20.3deg. to face HMS =>69.7deg. = 1.2164945rad
+  gtarg_theta =  1.5707936 
+
+;general target energy loss parameters. Vansyoc Mar.98
+
+
+;target cell****************
+
+      gcell_radius = 1.0
+      gz_cell 	 =  13.0
+      ga_cell 	 =  27.0
+      gcell_den 	=   2.70
+      gwall_thk	 =  0.03429
+      gend_thk  	=   0.03429
+      gfront_thk  =  0.020574            
+;Air cap between the chamber and the entrance window
+      gair_dens 	=   0.00121
+      gair_thk 	=   0.018
+      gair_a 	=   14.68
+      gair _z 	=   7.32
+
+
+;HMS********
+;    HMS scattering chamber window specs.********** 
+      hscat_win_thk  = 0.109728
+      hscat_win_den =  2.70
+      hscat_win_z   =  13.0
+      hscat_win_a   =  27.0
+;    HMS entrance window specs.********************
+      hdet_ent_thk  =  0.049098
+      hdet_ent_den  =  0.878636
+      hdet_ent_z    =  2.67
+      hdet_ent_a    =  4.67
+;SOS********
+;    SOS scattering chamber window specs.**********
+      sscat_win_thk =  0.054864
+      sscat_win_den =  2.70
+      sscat_win_z   =  13.0
+      sscat_win_a   =  27.0
+;    SOS entrance window specs.********************
+      sdet_ent_thk  =  0.016421
+      sdet_ent_den  =  0.862
+      sdet_ent_z    =  2.67
+      sdet_ent_a    =  4.67
+;eloss debug   0 = off,1 = on
+;      gelossdebug = 0
+;use old cryo geometry? (1)
+;      old_tgeom = 1
+
+;
+
+
+
+
diff --git a/examples/PARAM/haero.param b/examples/PARAM/haero.param
new file mode 100644
index 0000000..734565e
--- /dev/null
+++ b/examples/PARAM/haero.param
@@ -0,0 +1,27 @@
+; Gain cor constant estimated from cosmic test run #44628
+;
+; POS PMT HV:  	 1570  1690  1580  1680
+;	      	 1690  1620  1700  1660
+;
+; NEG PMT HV:
+;		 1640  1590  1750  2040
+;		 1910  1900  1840  1750 
+;............................................................................
+
+; JS 7.9.4, fit single electron peak using cosmics (run 49872).  
+; the value below is the pedestal-subtracted position of the spe peak
+	haero_pos_gain   =  1/179., 1/226., 1/184., 1/182.
+                            1/188., 1/163., 1/184., 1/154. 
+
+	haero_neg_gain   =  1/244., 1/206., 1/217., 1/206.
+                            1/219., 1/206., 1/238., 1/228.
+
+        haero_pos_ped_limit = 1000., 1000., 1000., 1000.
+                              1000., 1000., 1000., 1000.
+
+        haero_neg_ped_limit = 1000., 1000., 1000., 1000.
+                              1000., 1000., 1000., 1000.
+
+
+
+
diff --git a/examples/PARAM/hcal.param b/examples/PARAM/hcal.param
new file mode 100644
index 0000000..614215e
--- /dev/null
+++ b/examples/PARAM/hcal.param
@@ -0,0 +1,119 @@
+; Slop in x position.  Allowed distance between track and edge of block (in cm)
+; too tight djm hcal_slop = 7.5
+hcal_slop = 7.5
+
+;Turn on HMS cal. fiducial volume cut. 0="no cut"
+;Default hcal_fv_test=0
+
+hcal_fv_test = 0
+
+hcal_pos_cal_const =0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005
+                    0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+
+hcal_neg_cal_const =0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005
+                    0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005,0.0005
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+
+hcal_pos_gain_ini  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+hcal_neg_gain_ini  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+hcal_pos_gain_cur  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+hcal_neg_gain_cur  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+
+hcal_pos_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+
+hcal_neg_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+
+;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+
+; Calibration constants for run   48816,  35730 events processed
+;
+;hcal_pos_gain_cor= 0.454, 0.272, 0.377, 0.437, 0.367, 0.471, 0.371, 0.480, 0.382, 0.453, 0.306, 0.337, 0.300,
+;                   0.264, 0.451, 0.324, 0.300, 0.356, 0.358, 0.331, 0.391, 0.319, 0.309, 0.401, 0.450, 0.263,
+;                   0.746, 0.743, 0.703, 0.881, 0.760, 0.720, 0.636, 0.671, 1.003, 0.791, 0.607, 0.696, 0.817,
+;                   1.147, 0.920, 0.753, 0.829, 0.869, 0.876, 0.915, 0.899, 0.983, 0.763, 0.806, 0.915, 0.663,
+;hcal_neg_gain_cor= 0.413, 0.827, 0.455, 0.366, 0.368, 0.403, 0.463, 0.402, 0.364, 0.371, 0.352, 0.534, 0.372,
+;                   0.475, 0.365, 0.446, 0.552, 0.454, 0.445, 0.418, 0.427, 0.457, 0.365, 0.377, 0.395, 0.416,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+
+; Calibration constants for run   49064,  28202 events processed
+
+;hcal_pos_gain_cor= 0.374, 0.368, 0.364, 0.336, 0.298, 0.424, 0.395, 0.452, 0.415, 0.000, 0.000, 0.000, 0.000,
+;                   0.311, 0.275, 0.234, 0.263, 0.312, 0.316, 0.264, 0.292, 0.624, 0.000, 0.000, 0.000, 0.000,
+;                   0.938, 0.668, 0.617, 0.785, 0.634, 0.624, 0.501, 0.568, 1.060, 0.000, 0.000, 0.000, 0.000,
+;                   0.047, 0.759, 0.725, 0.785, 0.833, 0.881, 0.938, 0.920, 1.856, 0.000, 0.000, 0.000, 0.000,
+;hcal_neg_gain_cor= 0.391, 0.328, 0.357, 0.367, 0.314, 0.243, 0.353, 0.328, 0.241, 0.000, 0.000, 0.000, 0.000,
+;                   0.364, 0.450, 0.484, 0.563, 0.436, 0.442, 0.402, 0.453, 0.104, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+
+; Calibration constants for run   49098,  23159 events processed
+
+;hcal_pos_gain_cor= 0.344, 0.427, 0.342, 0.355, 0.291, 0.568, 0.536, 0.387, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.292, 0.319, 0.228, 0.295, 0.372, 0.436, 0.220, 0.392, 0.586, 0.000, 0.000, 0.000, 0.000,
+;                   0.938, 0.648, 0.625, 0.808, 0.636, 0.659, 0.544, 0.533, 1.229, 0.000, 0.000, 0.000, 0.000,
+;                   0.033, 0.769, 0.720, 0.886, 0.823, 0.925, 0.880, 1.089, 0.000, 0.000, 0.000, 0.000, 0.000,
+;hcal_neg_gain_cor= 0.454, 0.301, 0.380, 0.370, 0.341, 0.099, 0.246, 0.474, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.412, 0.430, 0.542, 0.606, 0.400, 0.355, 0.515, 0.378, 0.804, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+
+
+; the following lines are from calibration file
+; written by the perlscript mkcalpar.prl
+
+;hcal_pos_gain_cor= 0.000, 0.328, 0.240, 0.482, 0.202, 0.397, 0.279, 0.327, 0.270, 0.299, 0.297, 0.309, 0.000,
+;                   0.000, 0.375, 0.317, 0.389, 0.390, 0.171, 0.274, 0.383, 0.310, 0.323, 0.297, 0.606, 1.168,
+;                   0.000, 0.744, 0.618, 0.853, 0.732, 0.674, 0.532, 0.646, 0.710, 0.714, 0.484, 0.773, 0.000,
+;                   0.000, 0.000, 0.684, 0.596, 0.716, 0.692, 0.694, 0.595, 0.806, 0.640, 0.841, 0.000, 0.000,
+;hcal_neg_gain_cor= 0.000, 0.167, 0.372, 0.317, 0.255, 0.279, 0.376, 0.338, 0.336, 0.315, 0.295, 0.277, 0.000,
+;                   0.000, 0.246, 0.366, 0.471, 0.359, 0.549, 0.435, 0.427, 0.399, 0.298, 0.313, 0.342, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+
+
+hcal_pos_gain_cor= 0.973,0.775,0.814,0.839,0.638,0.72,0.699,0.74,0.794,0.805,0.658,0.694,0.604
+                  0.794,0.756,0.688,0.719,0.791,0.795,0.715,0.879,0.744,0.725,0.8,1.129,0.424
+                  0.716,0.66,0.623,0.899,0.682,0.764,0.609,0.641,0.924,0.835,0.55,0.671,0.888
+                  1.468,0.754,0.789,1.015,0.869,1.083,1.148,0.962,1.236,0.745,0.949,1.004,0.892
+hcal_neg_gain_cor= 0.864,0.672,0.749,0.755,0.657,0.600,1.056,0.996,0.693,0.876,0.717,0.726,0.662
+                  0.694,0.826,0.818,1.009,0.829,0.781,0.848,0.796,0.779,0.668,0.762,0.742,0.842
+                  0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000
+                  0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000
+;
+; Calibration constants for run   63504,  51956 events processed
+
+;hcal_pos_gain_cor= 0.335, 0.316, 0.367, 0.498, 0.366, 0.363, 0.408, 0.451, 0.380, 0.473, 0.369, 0.416, 0.287,
+;                   0.417, 0.388, 0.361, 0.363, 0.314, 0.384, 0.349, 0.411, 0.356, 0.339, 0.412, 0.591, 0.286,
+;                   0.677, 0.707, 0.675, 0.986, 0.793, 0.760, 0.649, 0.725, 0.748, 0.876, 0.611, 0.706, 0.989,
+;                   1.011, 0.648, 0.685, 0.871, 0.791, 0.939, 1.035, 0.865, 0.967, 0.758, 0.866, 0.856, 0.504,
+;hcal_neg_gain_cor= 0.490, 0.429, 0.436, 0.402, 0.349, 0.249, 0.435, 0.455, 0.378, 0.408, 0.332, 0.299, 0.394,
+;                   0.415, 0.480, 0.446, 0.630, 0.555, 0.460, 0.497, 0.514, 0.487, 0.449, 0.408, 0.486, 0.348,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
diff --git a/examples/PARAM/hcal.pos b/examples/PARAM/hcal.pos
new file mode 100644
index 0000000..9906aae
--- /dev/null
+++ b/examples/PARAM/hcal.pos
@@ -0,0 +1,81 @@
+; neglect extra tubes for now.
+hcal_num_neg_columns = 2
+
+; Z position of front of shower counter layers
+; guesses, based on the fact that the back scin plane is supposedly at 322.0
+;  (add 25 to each from original value) - JRA
+      hcal_1pr_zpos = (350.0-11.31)
+      hcal_2ta_zpos = (361.0-11.31)
+      hcal_3ta_zpos = (372.0-11.31)
+      hcal_4ta_zpos = (383.0-11.31)
+; Thickness of shower counter blocks, blocks are 10 * 10 * 70 cm^3
+      hcal_1pr_thick = 10.0
+      hcal_2ta_thick = 10.0
+      hcal_3ta_thick = 10.0
+      hcal_4ta_thick = 10.0
+; Number of shower counter blocks per layer
+      hcal_1pr_nr = 13
+      hcal_2ta_nr = 13
+      hcal_3ta_nr = 13
+      hcal_4ta_nr = 13
+; X,Y positions of shower counter blocks
+      hcal_1pr_left  =  35.0
+      hcal_1pr_right = -35.0
+      hcal_1pr_top   = (-69.0-1.4)
+                       (-59.0-1.4)
+                       (-49.0-1.4)
+                       (-39.0-1.4)
+                       (-29.0-1.4)
+                       (-19.0-1.4)
+                       ( -9.0-1.4)
+                       (  1.0-1.4)
+                       ( 11.0-1.4)
+                       ( 21.0-1.4)
+                       ( 31.0-1.4)
+                       ( 41.0-1.4)
+                       ( 51.0-1.4)
+      hcal_2ta_left  =  35.0
+      hcal_2ta_right = -35.0
+      hcal_2ta_top   = (-69.0-1.4)
+                       (-59.0-1.4)
+                       (-49.0-1.4)
+                       (-39.0-1.4)
+                       (-29.0-1.4)
+                       (-19.0-1.4)
+                       ( -9.0-1.4)
+                       (  1.0-1.4)
+                       ( 11.0-1.4)
+                       ( 21.0-1.4)
+                       ( 31.0-1.4)
+                       ( 41.0-1.4)
+                       ( 51.0-1.4)
+      hcal_3ta_left  =  35.0
+      hcal_3ta_right = -35.0
+      hcal_3ta_top   = (-69.0-1.4)
+                       (-59.0-1.4)
+                       (-49.0-1.4)
+                       (-39.0-1.4)
+                       (-29.0-1.4)
+                       (-19.0-1.4)
+                       ( -9.0-1.4)
+                       (  1.0-1.4)
+                       ( 11.0-1.4)
+                       ( 21.0-1.4)
+                       ( 31.0-1.4)
+                       ( 41.0-1.4)
+                       ( 51.0-1.4)
+      hcal_4ta_left  =  35.0
+      hcal_4ta_right = -35.0
+      hcal_4ta_top   = (-69.0-1.4)
+                       (-59.0-1.4)
+                       (-49.0-1.4)
+                       (-39.0-1.4)
+                       (-29.0-1.4)
+                       (-19.0-1.4)
+                       ( -9.0-1.4)
+                       (  1.0-1.4)
+                       ( 11.0-1.4)
+                       ( 21.0-1.4)
+                       ( 31.0-1.4)
+                       ( 41.0-1.4)
+                       ( 51.0-1.4)
diff --git a/examples/PARAM/hcer.param b/examples/PARAM/hcer.param
new file mode 100644
index 0000000..adaa565
--- /dev/null
+++ b/examples/PARAM/hcer.param
@@ -0,0 +1,40 @@
+hcer_width = 50, 50
+;hcer_adc_to_npe = 1/140., 1/100.
+;hcer_adc_to_npe = 1/124.4, 1/119.
+; DJM AUG 7, 2003 calibration based on run 47022, picking off spe
+; making no bogus Poissonian assumptions 
+;hcer_adc_to_npe = 1/111., 1/90.
+; JS 6.19.4 calibration from run 48795 (cosmics).  fit spe
+;hcer_adc_to_npe = 1/66., 1/89.
+; JS 6.19.4 calibration from run 48800 (electrons).  fit spe
+;hcer_adc_to_npe = 1/67., 1/98.
+; JS 6.19.4 calibration from run 48800 (electrons).  fit spe
+;        hcer_adc: 1       2
+;            tube: bot     top
+;hcer_adc_to_npe = 1/76., 1/106.
+; JS 7.9.4 calibration from run 49472 (cosmics).  fit spe
+;        hcer_adc: 1       2
+;            tube: bot     top
+;hcer_adc_to_npe = 1/93., 1/120.
+; DJG June 21 2007: Quick and dirty online calibration.
+hcer_adc_to_npe = 1/149.6, 1/166.0.
+
+hcer_chi2max = 50.
+hcer_beta_min = 0.8
+hcer_beta_max = 1.2
+hcer_et_min = 0.95
+hcer_et_max = 5.0
+hcer_mirror_zpos = 230
+; hcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+hcer_region =   30,  -30,   0,
+                 0,    0,   0,
+                 0,    0,   0,
+                 0,    0,   0,
+                20,   20,  60,
+                30,   30,  30,
+                .1,   .1,  .1,
+                .1,   .1,  .1
+
+hcer_ped_limit =  1000,1000
+	       
diff --git a/examples/PARAM/hdc.param b/examples/PARAM/hdc.param
new file mode 100644
index 0000000..926a370
--- /dev/null
+++ b/examples/PARAM/hdc.param
@@ -0,0 +1,44 @@
+;---------------------------------------------------------------------
+; HMS_TRACKING
+; CTP parameter file containing all tracking parameters for the HMS
+;----------------------------------------------------------------------
+; sigma of wire chamber resolution for each plane
+      hdc_sigma = 0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+; hms dc tdc minimum tdc value array allowed for a good hit
+    hdc_tdc_min_win = 1500, 1500, 1500, 1500, 1500, 1500
+                      1500, 1500, 1500, 1500, 1500, 1500
+; hms dc tdc maximum tdc value array allowed for a good hit
+    hdc_tdc_max_win = 3200, 3200, 3200, 3200, 3200, 3200
+                      3200, 3200, 3200, 3200, 3200, 3200
+; hms drift chamber tdc's time per channel
+        hdc_tdc_time_per_channel = 0.50
+; hms zero time for drift chambers	!DECREASING this number moves the hdtime plots to LOWER time.
+        hdc_plane_time_zero = (1670+14+18-220-10)
+                              (1670+12+20-220-10)
+                              (1670+13+18-220-10)
+                              (1670+13+20-220-10)
+                              (1670+12+20-220-10)
+                              (1670+14+16-220-10)
+                              (1670+15+16-220-10)
+                              (1670+11.5+16-220-10)
+                              (1670+13+12-220-10)
+                              (1670+13+12-220-10)
+                              (1670+10.5+16-220-10)
+                              (1670+13+18-220-10)
+
+; Dave Abbott's wire velocity correction
+hdc_wire_velocity = 12.0
+hdc_central_time = 7,9,3,4,6,5
+                   7,5,3,4,6,6
+  
diff --git a/examples/PARAM/hdc.param.bak b/examples/PARAM/hdc.param.bak
new file mode 100644
index 0000000..9004753
--- /dev/null
+++ b/examples/PARAM/hdc.param.bak
@@ -0,0 +1,44 @@
+;---------------------------------------------------------------------
+; HMS_TRACKING
+; CTP parameter file containing all tracking parameters for the HMS
+;----------------------------------------------------------------------
+; sigma of wire chamber resolution for each plane
+      hdc_sigma = 0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+; hms dc tdc minimum tdc value array allowed for a good hit
+    hdc_tdc_min_win = 0, 0, 0, 0, 0, 0
+                      0, 0, 0, 0, 0, 0
+; hms dc tdc maximum tdc value array allowed for a good hit
+    hdc_tdc_max_win = 4000, 4000, 4000, 4000, 4000, 4000
+                      4000, 4000, 4000, 4000, 4000, 4000
+; hms drift chamber tdc's time per channel
+        hdc_tdc_time_per_channel = 0.50
+; hms zero time for drift chambers	!DECREASING this number moves the hdtime plots to LOWER time.
+        hdc_plane_time_zero = (1670+14+18-10)
+                              (1670+12+20-10)
+                              (1670+13+18-10)
+                              (1670+13+20-10)
+                              (1670+12+20-10)
+                              (1670+14+16-10)
+                              (1670+15+16-10)
+                              (1670+11.5+16-10)
+                              (1670+13+12-10)
+                              (1670+13+12-10)
+                              (1670+10.5+16-10)
+                              (1670+13+18-10)
+
+; Dave Abbott's wire velocity correction
+hdc_wire_velocity = 12.0
+hdc_central_time = 7,9,3,4,6,5
+                   7,5,3,4,6,6
+  
diff --git a/examples/PARAM/hdc.param_2gamma b/examples/PARAM/hdc.param_2gamma
new file mode 100644
index 0000000..44297fa
--- /dev/null
+++ b/examples/PARAM/hdc.param_2gamma
@@ -0,0 +1,44 @@
+;---------------------------------------------------------------------
+; HMS_TRACKING
+; CTP parameter file containing all tracking parameters for the HMS
+;----------------------------------------------------------------------
+; sigma of wire chamber resolution for each plane
+      hdc_sigma = 0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+; hms dc tdc minimum tdc value array allowed for a good hit
+    hdc_tdc_min_win = 1800, 1800, 1800, 1800, 1800, 1800
+                      1800, 1800, 1800, 1800, 1800, 1800
+; hms dc tdc maximum tdc value array allowed for a good hit
+    hdc_tdc_max_win = 3300, 3300, 3300, 3300, 3300, 3300
+                      3300, 3300, 3300, 3300, 3300, 3300
+; hms drift chamber tdc's time per channel
+        hdc_tdc_time_per_channel = 0.50
+; hms zero time for drift chambers	!DECREASING this number moves the hdtime plots to LOWER time.
+        hdc_plane_time_zero = (1670+14+18-10-220)
+                              (1670+12+20-10-220)
+                              (1670+13+18-10-220)
+                              (1670+13+20-10-220)
+                              (1670+12+20-10-220)
+                              (1670+14+16-10-220)
+                              (1670+15+16-10-220)
+                              (1670+11.5+16-10-220)
+                              (1670+13+12-10-220)
+                              (1670+13+12-10-220)
+                              (1670+10.5+16-10-220)
+                              (1670+13+18-10-220)
+
+; Dave Abbott's wire velocity correction
+hdc_wire_velocity = 12.0
+hdc_central_time = 7,9,3,4,6,5
+                   7,5,3,4,6,6
+  
diff --git a/examples/PARAM/hdc.pos b/examples/PARAM/hdc.pos
new file mode 100644
index 0000000..fdbf2ae
--- /dev/null
+++ b/examples/PARAM/hdc.pos
@@ -0,0 +1,183 @@
+; Number of planes installed in HMS detector setup
+      hdc_num_planes = 12
+; Number of chambers installed in HMS detector setup
+      hdc_num_chambers = 2
+; Names of each wire plane
+;
+; Z positions of various planes in HMS chambers
+; hdc_n_zpos is the surveyed Z position of the center of chamber n.
+      hdc_1_zpos = (-40.611-11.312+0.003)
+      hdc_2_zpos = (+40.611-11.312-0.008)
+      
+      hdc_zpos   = hdc_1_zpos - 3.6000
+                   hdc_1_zpos - 1.8000
+                   hdc_1_zpos - 0.0000
+                   hdc_1_zpos + 1.8000
+                   hdc_1_zpos + 3.6000
+                   hdc_1_zpos + 5.4000
+                   hdc_2_zpos - 3.6000
+                   hdc_2_zpos - 1.8000
+                   hdc_2_zpos - 0.0000
+                   hdc_2_zpos + 1.8000
+                   hdc_2_zpos + 3.6000
+                   hdc_2_zpos + 5.4000
+; Angle alpha of wires in wire chamber planes
+        hdc_alpha_angle =  (90. - 0.071)*raddeg
+                           (0.0 - 0.071)*raddeg
+                           (74.925 - 0.071)*raddeg
+                           (105.075 - 0.071)*raddeg
+                           (0.0 - 0.071)*raddeg
+                           (90.0 - 0.071)*raddeg
+                           (89.90814 - 0.153)*raddeg
+                           (0.01611 - 0.153)*raddeg
+                           (74.85 - 0.153)*raddeg
+                           (105.05 - 0.153)*raddeg
+                           (0.01611 - 0.153)*raddeg
+                           (89.90814 - 0.153)*raddeg
+;        hdc_alpha_angle = ( 90.1541 - 0.071)*raddeg
+;                          ( -0.0408 - 0.071)*raddeg
+;                          ( 75.1267 - 0.071)*raddeg
+;                          (105.1267 - 0.071)*raddeg
+;                          ( -0.0408 - 0.071)*raddeg
+;                          ( 90.1541 - 0.071)*raddeg
+;                          ( 90.1095 - 0.153)*raddeg
+;                          ( -0.0370 - 0.153)*raddeg
+;                          ( 75.0904 - 0.153)*raddeg
+;                          (105.0904 - 0.153)*raddeg
+;                          ( -0.0370 - 0.153)*raddeg
+;                          ( 90.1095 - 0.153)*raddeg
+;
+; Angle beta of wires in wire chamber planes
+      hdc_beta_angle =    -0.041*raddeg
+                          -0.041*raddeg
+                          -0.041*raddeg
+                          -0.041*raddeg
+                          -0.041*raddeg
+                          -0.041*raddeg
+                          +0.054*raddeg
+                          +0.054*raddeg
+                          +0.054*raddeg
+                          +0.054*raddeg
+                          +0.054*raddeg
+                          +0.054*raddeg
+; Angle gamma of wires in wire chamber planes
+      hdc_gamma_angle =   +0.0376*raddeg
+                          +0.0376*raddeg
+                          +0.0376*raddeg
+                          +0.0376*raddeg
+                          +0.0376*raddeg
+                          +0.0376*raddeg
+                          -0.145*raddeg
+                          -0.145*raddeg
+                          -0.145*raddeg
+                          -0.145*raddeg
+                          -0.145*raddeg
+                          -0.145*raddeg
+; Pitch
+      hdc_pitch = 1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+                  1.000252
+; Number of wires per plane
+      hdc_nrwire = 113
+                    52
+                   107
+                   107
+                    52
+                   113
+                   113
+                    52
+                   107
+                   107
+                    52
+                   113
+; X,Y position of center of wire chamber
+; increasing dc2 coordinates decreases dpos histograms.
+; new values according to henk and rolf
+      hdc_xcenter = (1.670 - 0.0155 - 0.020)
+                    (2.758 - 0.0155 + 0.040)
+;      hdc_xcenter = (1.670 - 0.0155)
+;                    (2.758 - 0.0155)
+;      hdc_xcenter = 1.670 + 0.15 + 0.0155
+;                    2.758 + 0.16 + 0.0155
+;  Y CENTER CHANGED TO MATCH OPTICS DATA(offset of 1.1 cm in y)
+; new values included according to henk and rolf
+      hdc_ycenter = (1.443 - 0.1699 - 0.0279 - 0.04)
+                    (2.753 - 0.1699 + 0.0279 + 0.04)
+;      hdc_ycenter = (1.443 - 0.1699 - 0.0279 - 0.035)
+;                    (2.753 - 0.1699 + 0.0279 + 0.035)
+;      hdc_ycenter = (1.443 - 0.1699 - 0.0279)
+;                    (2.753 - 0.1699 + 0.0279)
+
+;      hdc_ycenter = 0.343 + 1.1 - 0.12 + 0.1699 + 0.0279
+;                    1.653 + 1.1 - 0.22 + 0.1699 - 0.0279
+;      hdc_ycenter = 0.343  THESE ARE THE ORIGINAL Y CENTERS FROM SURVEY DATA
+;                    1.653
+;      hdc_xcenter = 0.0
+;                    1.22
+;      hdc_ycenter = 0.0
+;                    1.24
+
+; Wire number of center of wire chamber
+; assume 1st wire of 1st dc of a set is closest to edge where counting starts
+       hdc_central_wire = 57.257, 26.240, 54.001, 53.999, 26.760 , 56.743
+                          57.244, 26.242, 53.998, 54.002, 26.758 , 56.756
+
+;       hdc_central_wire = 57.25, 26.245, 54.0, 54.0, 26.755 , 56.75
+;                          57.24, 26.245, 54.0, 54.0, 26.755 , 56.76
+;       hdc_central_wire = 57.25, 26.25, 54.0, 54.0, 26.75 , 56.75
+;                          57.24, 26.25, 54.0, 54.0, 26.75 , 56.76
+; hdc_chamber_planes    array giving the chamber number for each plane
+      hdc_chamber_planes = 1
+                           1
+                           1
+                           1
+                           1
+                           1
+                           2
+                           2
+                           2
+                           2
+                           2
+                           2
+; The hms readout numbers some planes in reverse order.
+; The following array is a flag on the order number.
+; If hdc_wire_counting(plane) = 0
+;  the wire center is at (wire - hdc_central_wire) * pitch
+; If hdc_wire_counting(plane) = 1
+;  the wire center is at ( hdc_nrwire + 1 - wire - hdc_central_wire) * pitch
+        hdc_wire_counting = 1
+                            1
+                            0
+                            1
+                            0
+                            0
+                            1
+                            1
+                            0
+                            1
+                            0
+                            0
+; The velocity correction is the distance from the center of the wire divided
+; by the velocity of propagation times hdc_drifttime_sign(pln).  +/-1
+; for disc. card at +/- coord. (i.e. top = -x direction, so top readout is +1)
+       hdc_drifttime_sign = -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
+                            -1
diff --git a/examples/PARAM/hdc_offsets.param b/examples/PARAM/hdc_offsets.param
new file mode 100644
index 0000000..a5561b2
--- /dev/null
+++ b/examples/PARAM/hdc_offsets.param
@@ -0,0 +1,125 @@
+; cable id's for HMS Drift Chambers
+; array is 113,12 (wires,planes) but most planes have less than 113 wires)
+
+hdc_card_no=
+; Plane 1, wires 1-113, 16 per card (+one extra wire)
+              1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
+              2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
+              3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
+              4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
+              5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
+              6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
+              7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
+             12
+; plane 2, wires 1-52, 13 per card
+              8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
+              9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9
+             10,10,10,10,10,10,10,10,10,10,10,10,10
+             11,11,11,11,11,11,11,11,11,11,11,11,11
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; plane 3, wires 1-107, 15 or 16 per card (12 has one x wire)
+             12,12,12,12,12,12,12,12,12,12,12,12,12,12
+             13,13,13,13,13,13,13,13,13,13,13,13,13,13,13
+             14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14
+             15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
+             16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
+             17,17,17,17,17,17,17,17,17,17,17,17,17,17,17
+             18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18
+             -1,-1,-1,-1,-1,-1
+; plane 4, wires 1-107, 15 or 16 per card (19 has one x' wire)
+             19,19,19,19,19,19,19,19,19,19,19,19,19,19
+             20,20,20,20,20,20,20,20,20,20,20,20,20,20,20
+             21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21
+             22,22,22,22,22,22,22,22,22,22,22,22,22,22,22
+             23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23
+             24,24,24,24,24,24,24,24,24,24,24,24,24,24,24
+             25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25
+             -1,-1,-1,-1,-1,-1
+; plane 5, wires 1-52, 13 per card
+             26,26,26,26,26,26,26,26,26,26,26,26,26
+             27,27,27,27,27,27,27,27,27,27,27,27,27
+             28,28,28,28,28,28,28,28,28,28,28,28,28
+             29,29,29,29,29,29,29,29,29,29,29,29,29
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 6, wires 1-113, 16 per card (+one extra wire)
+             30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30
+             31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31
+             32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32
+             33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33
+             34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34
+             35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35
+             36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36
+             19
+; Chamber 2
+; Plane 7, wires 1-113, 16 per card (+one extra wire)
+             37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37
+             38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38
+             39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39
+             40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40
+             41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41
+             42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42
+             43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43
+             48
+; plane 8, wires 1-52, 13 per card
+             44,44,44,44,44,44,44,44,44,44,44,44,44
+             45,45,45,45,45,45,45,45,45,45,45,45,45
+             46,46,46,46,46,46,46,46,46,46,46,46,46
+             47,47,47,47,47,47,47,47,47,47,47,47,47
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; plane 9, wires 1-107, 15 or 16 per card (48 has one x wire)
+             48,48,48,48,48,48,48,48,48,48,48,48,48,48
+             49,49,49,49,49,49,49,49,49,49,49,49,49,49,49
+             50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50
+             51,51,51,51,51,51,51,51,51,51,51,51,51,51,51
+             52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52
+             53,53,53,53,53,53,53,53,53,53,53,53,53,53,53
+             54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54
+             -1,-1,-1,-1,-1,-1
+; plane 10, wires 1-107, 15 or 16 per card (55 has one x' wire)
+             55,55,55,55,55,55,55,55,55,55,55,55,55,55
+             56,56,56,56,56,56,56,56,56,56,56,56,56,56,56
+             57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57
+             58,58,58,58,58,58,58,58,58,58,58,58,58,58,58
+             59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59
+             60,60,60,60,60,60,60,60,60,60,60,60,60,60,60
+             61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61
+             -1,-1,-1,-1,-1,-1
+; plane 11, wires 1-52, 13 per card
+             62,62,62,62,62,62,62,62,62,62,62,62,62
+             63,63,63,63,63,63,63,63,63,63,63,63,63
+             64,64,64,64,64,64,64,64,64,64,64,64,64
+             65,65,65,65,65,65,65,65,65,65,65,65,65
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 12, wires 1-113, 16 per card (+one extra wire)
+             66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66
+             67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67
+             68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68
+             69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69
+             70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70
+             71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71
+             72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72
+             55
+;
+;       Cable Delays on a per/card basys
+;
+hdc_card_delay =  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0
+
diff --git a/examples/PARAM/hdeadwires.param b/examples/PARAM/hdeadwires.param
new file mode 100644
index 0000000..9d8b527
--- /dev/null
+++ b/examples/PARAM/hdeadwires.param
@@ -0,0 +1,10 @@
+; list of dead wires in the HMS (plane,wire).  Dead means <20% efficiency.
+hdc_num_deadwires = 6
+
+hdc_deadwire_plane =  2,   6,   6,   7,   9,  10
+
+hdc_deadwire_num =   43,  18,  60,  97,  30,   8
+
+; rough efficiency  22%,  3%, .4%,  0%,  0%,  7%
+
+; pln9,wire99 is HOT (used to be that 9/#100 was DEAD)?
diff --git a/examples/PARAM/hdebug.param b/examples/PARAM/hdebug.param
new file mode 100644
index 0000000..950b1f6
--- /dev/null
+++ b/examples/PARAM/hdebug.param
@@ -0,0 +1,122 @@
+; hms tracking code debug flags. 
+; when these flags are non-zero, dump routines are called to 
+; print out the data banks for each event.
+;
+;  hluno     fortran lun for output
+      hluno = 66
+; hdebugdumptof           Dump timing information for fitting offsets for old CSA method
+      hdebugdumptof = 0
+; hdumptof           Dump timing information for fitting offsets, new PB method
+; Done from h_tof.f. Add particle ID cuts if desired
+; Note: don't set both hdumptof=1 and hdebugdumptof=1 at same time
+;       because they both use fort.37 for the output
+      hdumptof = 0
+;; hdebugdumpcal           Dump calorimeter information for fitting gains
+      hdebugdumpcal = 0
+; number of pedestal events required to overwrite orig. peds.
+  hhodo_min_peds = 500
+  hcal_min_peds  = 500
+  hcer_min_peds  = 500
+  haero_min_peds  = 500
+  hmisc_min_peds  = 500
+
+; DEBUGGING OUTPUT FLAGS
+; ----------------------
+; hdebugprintrawdc        Dump HMS_RAW_DC Bank
+      hdebugprintrawdc = 0
+; hdebugprintdecodeddc    Dump HMS_DECODED_DC BAnk
+      hdebugprintdecodeddc = 0
+; hdebugflagpsi               Dump calculated coordinate positions
+      hdebugflagpsi =  0
+; hdebugflaggeoemtry          Dump calculated geometrical parameters
+      hdebugflaggeometry = 0
+; hdebugflagpr                Dump intermediate pattern recognition results
+      hdebugflagpr = 0
+; hdebugflagstubchisq         Dump chi2 of left-right fits
+      hdebugstubchisq = 0
+; hdebugflagstubs             Dump stub fit       
+      hdebugflagstubs = 0
+; hdebuglinkstubs             Dump linked hits
+      hdebuglinkstubs = 0
+; hdebugtrackprint            Dump focal plane track fit results
+      hdebugtrackprint = 0
+; hdebugtartrackprint         Dump tracks at target
+      hdebugtartrackprint = 0
+; tof debuging 
+;
+;  hdebugprintscinraw         Dump HMS_RAW_SCIN
+    hdebugprintscinraw = 0
+;  hdebugprintscindec         Dump HMS_DECODED_SCIN
+    hdebugprintscindec = 0
+;  hdebugprinttoftracks       Dump  hms_scin_tof
+    hdebugprinttoftracks = 0
+;  hdebugprinttracktests      Dump HMS_TRACK_TESTS
+    hdebugprinttracktests = 0
+;
+;  hms calorimeter debug flags
+;  hlun_dbg_cal                lun
+   hlun_dbg_cal    = hluno
+;  hdbg_raw_cal        call h_prt_cal_raw
+   hdbg_raw_cal = 0
+;  hdbg_sparsified_cal call h_prt_cal_sparsified
+   hdbg_sparsified_cal = 0
+;  hdbg_decoded_cal    call h_prt_cal_decoded
+   hdbg_decoded_cal = 0
+;  hdbg_clusters_cal   call h_prt_cal_clusters
+   hdbg_clusters_cal = 0
+;  hdbg_tracks_cal     call h_prt_cal_tracks
+   hdbg_tracks_cal = 0
+;  hdbg_tests_cal      call h_prt_cal_tests    HMS_TRACK_TESTS
+   hdbg_tests_cal = 0
+;
+;  hard wired histograms. If these flags .ne. 0 then the histogram
+;     blocks are filled
+;
+; hturnon_scin_raw_hist       Histogram HMS raw hodoscope data (each block)
+  hturnon_scin_raw_hist = 1
+; hturnon_decoded_dc_hist     Histogram HMS_DECODED_DC
+  hturnon_decoded_dc_hist = 1
+; hturnon_focal_plane_hist    Histogram HMS_FOCAL_PLANE 
+  hturnon_focal_plane_hist = 1
+; hturnon_target_hist         HISTOGRAM HMS_TARGET
+  hturnon_target_hist = 1
+;
+; Bypass paramters to bypass code elementes in h_reconstruction
+;      Stored in hmsbypass_switches.cmn
+;      Code element is bypassed if switch .ne. 0
+; hbypass_trans_dc         bypass h_trans_dc
+  hbypass_trans_dc   = 0 
+; hbypass_track            bypass h_track
+  hbypass_track      = 0
+; hbypass_targ_trans       bypass h_targ_trans
+  hbypass_targ_trans = 0
+; hbypass_dc_eff           bypass h_dc_eff and h_dc_eff_shutdown
+  hbypass_dc_eff     = 0
+; hbypass_track_eff        bypass h_tracking efficiency code
+  hbypass_track_eff  = 0
+; hbypass_track_eff_files  bypass h_tracking efficiency output files
+  hbypass_track_eff_files  = 1
+
+; hbypass_trans_scin       bypass h_trans_scin
+  hbypass_trans_scin = 0
+; hbypass_tof              bypass h_tof
+  hbypass_tof        = 0
+; hbypass_scin_eff         bypass h_scin_eff and h_scin_eff_shutdown
+  hbypass_scin_eff   = 0
+
+; hbypass_trans_cer        bypass h_trans_cer
+  hbypass_trans_cer  = 0
+; hbypass_cer              bypass h_cer
+  hbypass_cer        = 0
+; hbypass_cer_eff          bypass h_cer_eff and h_cer_eff_shutdown
+  hbypass_cer_eff    = 0
+
+; hbypass_trans_cal        bypass h_trans_cal
+  hbypass_trans_cal  = 0
+; hbypass_cal              bypass h_cal
+  hbypass_cal        = 0
+; hbypass_cal_eff          bypass h_cal_eff and h_cal_eff_shutdown
+  hbypass_cal_eff    = 0
+
+; hbypass_physics          bypass h_physics
+  hbypass_physics    = 0
diff --git a/examples/PARAM/hdriftmap.param b/examples/PARAM/hdriftmap.param
new file mode 100644
index 0000000..12a3d95
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0001,0.0003,0.0004,0.0005,0.0007,0.0010,0.0015,0.0017
+0.0020,0.0028,0.0040,0.0060,0.0086,0.0120,0.0167,0.0230,0.0320,0.0435
+0.0572,0.0735,0.0910,0.1100,0.1310,0.1525,0.1753,0.1981,0.2205,0.2424
+0.2659,0.2893,0.3122,0.3354,0.3590,0.3814,0.4039,0.4268,0.4485,0.4711
+0.4933,0.5149,0.5368,0.5585,0.5796,0.6001,0.6209,0.6421,0.6615,0.6809
+0.7003,0.7189,0.7380,0.7564,0.7742,0.7912,0.8084,0.8245,0.8394,0.8533
+0.8667,0.8793,0.8909,0.9017,0.9106,0.9193,0.9267,0.9336,0.9402,0.9462
+0.9516,0.9567,0.9618,0.9659,0.9700,0.9734,0.9764,0.9790,0.9818,0.9841
+0.9862,0.9881,0.9895,0.9909,0.9919,0.9928,0.9935,0.9942,0.9950,0.9955
+0.9960,0.9965,0.9968,0.9972,0.9975,0.9979,0.9981,0.9983,0.9985,0.9987
+0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y1fract=0.0001,0.0003,0.0004,0.0004,0.0006,0.0009,0.0011,0.0014
+0.0016,0.0022,0.0029,0.0039,0.0053,0.0075,0.0111,0.0170,0.0264,0.0398
+0.0568,0.0762,0.0985,0.1218,0.1462,0.1721,0.1973,0.2231,0.2478,0.2721
+0.2960,0.3194,0.3434,0.3661,0.3888,0.4108,0.4335,0.4557,0.4762,0.4967
+0.5182,0.5389,0.5586,0.5788,0.5983,0.6189,0.6385,0.6583,0.6776,0.6971
+0.7158,0.7347,0.7527,0.7709,0.7881,0.8054,0.8215,0.8375,0.8530,0.8668
+0.8801,0.8926,0.9040,0.9141,0.9223,0.9304,0.9372,0.9430,0.9480,0.9528
+0.9573,0.9614,0.9651,0.9682,0.9710,0.9740,0.9765,0.9788,0.9809,0.9825
+0.9843,0.9858,0.9872,0.9882,0.9892,0.9902,0.9912,0.9920,0.9926,0.9932
+0.9938,0.9944,0.9949,0.9954,0.9958,0.9962,0.9966,0.9970,0.9971,0.9975
+0.9978,0.9980,0.9981,0.9983,0.9986,0.9987,0.9988,0.9990,0.9992,0.9993
+0.9995,0.9996,0.9997,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0003,0.0004
+0.0005,0.0009,0.0018,0.0033,0.0055,0.0088,0.0137,0.0211,0.0312,0.0459
+0.0630,0.0831,0.1059,0.1286,0.1526,0.1763,0.2012,0.2254,0.2494,0.2727
+0.2963,0.3192,0.3417,0.3644,0.3865,0.4081,0.4299,0.4516,0.4728,0.4939
+0.5138,0.5345,0.5549,0.5754,0.5958,0.6163,0.6361,0.6558,0.6747,0.6941
+0.7128,0.7319,0.7505,0.7686,0.7861,0.8039,0.8210,0.8365,0.8509,0.8648
+0.8779,0.8898,0.9010,0.9105,0.9191,0.9264,0.9333,0.9391,0.9447,0.9497
+0.9538,0.9580,0.9618,0.9652,0.9684,0.9716,0.9745,0.9771,0.9792,0.9815
+0.9833,0.9850,0.9863,0.9875,0.9885,0.9894,0.9902,0.9912,0.9919,0.9927
+0.9933,0.9937,0.9942,0.9947,0.9951,0.9955,0.9960,0.9963,0.9967,0.9970
+0.9973,0.9976,0.9979,0.9981,0.9982,0.9985,0.9986,0.9989,0.9991,0.9992
+0.9993,0.9994,0.9995,0.9996,0.9997,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1v1fract=0.0000,0.0000,0.0001,0.0002,0.0002,0.0003,0.0004,0.0005
+0.0007,0.0008,0.0011,0.0017,0.0026,0.0041,0.0073,0.0133,0.0228,0.0352
+0.0516,0.0710,0.0925,0.1158,0.1398,0.1644,0.1883,0.2115,0.2352,0.2589
+0.2824,0.3050,0.3282,0.3501,0.3718,0.3932,0.4149,0.4369,0.4577,0.4784
+0.4996,0.5201,0.5410,0.5616,0.5814,0.6016,0.6211,0.6414,0.6602,0.6795
+0.6985,0.7170,0.7361,0.7550,0.7736,0.7914,0.8094,0.8265,0.8428,0.8581
+0.8725,0.8857,0.8973,0.9077,0.9174,0.9257,0.9326,0.9387,0.9437,0.9490
+0.9538,0.9577,0.9613,0.9650,0.9684,0.9716,0.9746,0.9771,0.9793,0.9815
+0.9833,0.9849,0.9863,0.9876,0.9887,0.9896,0.9906,0.9915,0.9921,0.9927
+0.9932,0.9938,0.9943,0.9947,0.9953,0.9956,0.9960,0.9964,0.9968,0.9971
+0.9973,0.9976,0.9979,0.9981,0.9982,0.9984,0.9986,0.9988,0.9990,0.9991
+0.9993,0.9995,0.9996,0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y2fract=0.0000,0.0000,0.0001,0.0002,0.0003,0.0003,0.0005,0.0007
+0.0009,0.0011,0.0015,0.0020,0.0029,0.0045,0.0070,0.0112,0.0187,0.0294
+0.0438,0.0617,0.0826,0.1041,0.1281,0.1527,0.1771,0.2018,0.2262,0.2507
+0.2752,0.2982,0.3214,0.3442,0.3669,0.3896,0.4112,0.4327,0.4554,0.4767
+0.4978,0.5184,0.5388,0.5597,0.5793,0.6002,0.6198,0.6398,0.6586,0.6781
+0.6980,0.7164,0.7344,0.7527,0.7705,0.7883,0.8056,0.8215,0.8379,0.8533
+0.8667,0.8792,0.8916,0.9023,0.9118,0.9202,0.9277,0.9343,0.9402,0.9457
+0.9504,0.9553,0.9593,0.9628,0.9662,0.9695,0.9726,0.9749,0.9772,0.9793
+0.9812,0.9829,0.9843,0.9856,0.9866,0.9877,0.9886,0.9892,0.9901,0.9909
+0.9918,0.9926,0.9931,0.9937,0.9942,0.9948,0.9953,0.9956,0.9959,0.9963
+0.9967,0.9970,0.9973,0.9976,0.9979,0.9981,0.9983,0.9985,0.9988,0.9989
+0.9992,0.9993,0.9995,0.9996,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1x2fract=0.0001,0.0002,0.0003,0.0004,0.0005,0.0006,0.0008,0.0010
+0.0014,0.0021,0.0030,0.0048,0.0076,0.0115,0.0181,0.0268,0.0392,0.0538
+0.0709,0.0892,0.1099,0.1316,0.1529,0.1747,0.1986,0.2219,0.2461,0.2701
+0.2940,0.3176,0.3408,0.3641,0.3867,0.4102,0.4321,0.4534,0.4751,0.4972
+0.5185,0.5396,0.5602,0.5811,0.6018,0.6220,0.6421,0.6618,0.6811,0.7004
+0.7201,0.7374,0.7557,0.7741,0.7920,0.8096,0.8257,0.8410,0.8555,0.8687
+0.8814,0.8922,0.9022,0.9112,0.9195,0.9272,0.9343,0.9401,0.9458,0.9509
+0.9562,0.9605,0.9647,0.9687,0.9723,0.9753,0.9782,0.9808,0.9832,0.9851
+0.9868,0.9883,0.9897,0.9909,0.9918,0.9925,0.9933,0.9940,0.9947,0.9953
+0.9957,0.9961,0.9966,0.9969,0.9973,0.9975,0.9978,0.9980,0.9982,0.9984
+0.9985,0.9986,0.9988,0.9989,0.9991,0.9992,0.9993,0.9995,0.9996,0.9996
+0.9996,0.9997,0.9998,0.9998,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x1fract=0.0001,0.0002,0.0004,0.0005,0.0008,0.0011,0.0014,0.0017
+0.0021,0.0027,0.0039,0.0056,0.0087,0.0134,0.0199,0.0292,0.0404,0.0540
+0.0693,0.0861,0.1044,0.1251,0.1462,0.1676,0.1901,0.2126,0.2355,0.2583
+0.2820,0.3055,0.3288,0.3512,0.3739,0.3968,0.4189,0.4421,0.4645,0.4869
+0.5086,0.5306,0.5519,0.5731,0.5943,0.6150,0.6355,0.6568,0.6766,0.6969
+0.7168,0.7364,0.7554,0.7741,0.7913,0.8092,0.8260,0.8419,0.8572,0.8718
+0.8844,0.8961,0.9064,0.9160,0.9248,0.9320,0.9383,0.9448,0.9502,0.9554
+0.9603,0.9646,0.9685,0.9721,0.9753,0.9782,0.9810,0.9835,0.9857,0.9874
+0.9889,0.9903,0.9913,0.9922,0.9931,0.9937,0.9943,0.9950,0.9955,0.9959
+0.9964,0.9967,0.9970,0.9973,0.9975,0.9977,0.9980,0.9983,0.9984,0.9986
+0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y1fract=0.0000,0.0000,0.0001,0.0002,0.0003,0.0004,0.0006,0.0008
+0.0010,0.0015,0.0020,0.0031,0.0045,0.0075,0.0130,0.0218,0.0330,0.0490
+0.0684,0.0901,0.1137,0.1389,0.1636,0.1900,0.2162,0.2419,0.2663,0.2913
+0.3145,0.3380,0.3606,0.3834,0.4056,0.4274,0.4494,0.4710,0.4920,0.5122
+0.5332,0.5541,0.5744,0.5947,0.6153,0.6358,0.6551,0.6758,0.6958,0.7153
+0.7342,0.7531,0.7709,0.7897,0.8071,0.8235,0.8391,0.8548,0.8692,0.8826
+0.8950,0.9068,0.9163,0.9250,0.9329,0.9404,0.9468,0.9523,0.9571,0.9612
+0.9655,0.9688,0.9718,0.9748,0.9774,0.9796,0.9816,0.9834,0.9852,0.9866
+0.9877,0.9888,0.9897,0.9908,0.9916,0.9924,0.9931,0.9937,0.9943,0.9947
+0.9951,0.9955,0.9959,0.9963,0.9967,0.9969,0.9973,0.9975,0.9978,0.9980
+0.9982,0.9984,0.9985,0.9987,0.9989,0.9990,0.9992,0.9993,0.9995,0.9996
+0.9997,0.9997,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0003,0.0004
+0.0005,0.0007,0.0010,0.0017,0.0034,0.0072,0.0145,0.0253,0.0416,0.0616
+0.0839,0.1082,0.1331,0.1596,0.1848,0.2100,0.2343,0.2581,0.2818,0.3059
+0.3288,0.3517,0.3739,0.3959,0.4173,0.4381,0.4589,0.4797,0.5011,0.5209
+0.5410,0.5613,0.5804,0.6000,0.6197,0.6390,0.6582,0.6776,0.6965,0.7146
+0.7326,0.7506,0.7689,0.7858,0.8030,0.8198,0.8362,0.8517,0.8655,0.8787
+0.8908,0.9016,0.9108,0.9192,0.9269,0.9328,0.9383,0.9430,0.9471,0.9509
+0.9546,0.9576,0.9609,0.9637,0.9664,0.9686,0.9705,0.9725,0.9743,0.9760
+0.9777,0.9791,0.9803,0.9818,0.9829,0.9839,0.9848,0.9857,0.9867,0.9876
+0.9884,0.9892,0.9898,0.9905,0.9912,0.9917,0.9922,0.9927,0.9932,0.9937
+0.9943,0.9946,0.9952,0.9956,0.9962,0.9966,0.9971,0.9975,0.9979,0.9984
+0.9988,0.9991,0.9994,0.9996,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2v1fract=0.0000,0.0001,0.0001,0.0002,0.0003,0.0004,0.0006,0.0008
+0.0010,0.0014,0.0020,0.0032,0.0058,0.0117,0.0214,0.0353,0.0527,0.0742
+0.0981,0.1231,0.1484,0.1741,0.1997,0.2245,0.2484,0.2721,0.2961,0.3203
+0.3434,0.3662,0.3882,0.4107,0.4324,0.4541,0.4747,0.4964,0.5164,0.5374
+0.5573,0.5776,0.5978,0.6180,0.6379,0.6570,0.6760,0.6950,0.7137,0.7319
+0.7496,0.7688,0.7859,0.8036,0.8207,0.8370,0.8522,0.8671,0.8811,0.8937
+0.9046,0.9153,0.9244,0.9318,0.9386,0.9445,0.9497,0.9542,0.9582,0.9619
+0.9654,0.9686,0.9713,0.9742,0.9768,0.9792,0.9813,0.9832,0.9848,0.9861
+0.9873,0.9884,0.9894,0.9903,0.9910,0.9918,0.9925,0.9931,0.9937,0.9942
+0.9946,0.9950,0.9954,0.9959,0.9962,0.9965,0.9969,0.9972,0.9975,0.9978
+0.9979,0.9981,0.9984,0.9985,0.9987,0.9989,0.9991,0.9992,0.9994,0.9996
+0.9997,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y2fract=0.0001,0.0002,0.0002,0.0004,0.0005,0.0006,0.0008,0.0010
+0.0013,0.0018,0.0026,0.0038,0.0057,0.0090,0.0144,0.0233,0.0363,0.0535
+0.0734,0.0953,0.1200,0.1454,0.1710,0.1972,0.2228,0.2471,0.2719,0.2963
+0.3199,0.3435,0.3670,0.3907,0.4132,0.4350,0.4566,0.4778,0.4991,0.5195
+0.5407,0.5610,0.5817,0.6024,0.6219,0.6426,0.6622,0.6820,0.7011,0.7203
+0.7384,0.7571,0.7749,0.7924,0.8098,0.8264,0.8431,0.8582,0.8723,0.8855
+0.8980,0.9089,0.9190,0.9278,0.9357,0.9428,0.9484,0.9534,0.9580,0.9622
+0.9660,0.9693,0.9722,0.9751,0.9775,0.9798,0.9821,0.9838,0.9854,0.9870
+0.9884,0.9893,0.9903,0.9912,0.9919,0.9924,0.9931,0.9937,0.9943,0.9948
+0.9951,0.9955,0.9959,0.9962,0.9965,0.9968,0.9971,0.9974,0.9977,0.9979
+0.9981,0.9983,0.9985,0.9987,0.9989,0.9991,0.9993,0.9994,0.9995,0.9996
+0.9997,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x2fract=0.0000,0.0002,0.0003,0.0003,0.0005,0.0008,0.0009,0.0012
+0.0015,0.0020,0.0025,0.0038,0.0059,0.0091,0.0140,0.0213,0.0307,0.0429
+0.0577,0.0743,0.0926,0.1127,0.1333,0.1554,0.1779,0.2009,0.2243,0.2474
+0.2710,0.2945,0.3191,0.3422,0.3648,0.3880,0.4103,0.4329,0.4554,0.4775
+0.5000,0.5212,0.5428,0.5635,0.5842,0.6048,0.6254,0.6451,0.6647,0.6845
+0.7044,0.7242,0.7431,0.7614,0.7797,0.7970,0.8145,0.8308,0.8463,0.8607
+0.8741,0.8864,0.8975,0.9073,0.9164,0.9247,0.9317,0.9386,0.9445,0.9501
+0.9556,0.9604,0.9647,0.9686,0.9722,0.9751,0.9781,0.9805,0.9829,0.9849
+0.9868,0.9884,0.9897,0.9908,0.9920,0.9930,0.9936,0.9942,0.9948,0.9954
+0.9959,0.9963,0.9968,0.9971,0.9974,0.9977,0.9979,0.9982,0.9984,0.9985
+0.9987,0.9988,0.9989,0.9991,0.9991,0.9993,0.9994,0.9994,0.9995,0.9996
+0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
diff --git a/examples/PARAM/hdriftmap.param.62698 b/examples/PARAM/hdriftmap.param.62698
new file mode 100644
index 0000000..aa14b0e
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param.62698
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0363,0.0747,0.1136,0.1530,0.1920,0.2324,0.2724,0.3119
+0.3507,0.3897,0.4273,0.4651,0.5016,0.5387,0.5740,0.6086,0.6453,0.6783
+0.7108,0.7421,0.7730,0.8016,0.8281,0.8522,0.8733,0.8924,0.9089,0.9229
+0.9347,0.9452,0.9536,0.9613,0.9680,0.9738,0.9780,0.9817,0.9847,0.9872
+0.9890,0.9903,0.9915,0.9926,0.9935,0.9943,0.9950,0.9955,0.9960,0.9965
+0.9969,0.9975,0.9978,0.9980,0.9982,0.9984,0.9986,0.9988,0.9989,0.9990
+0.9992,0.9993,0.9993,0.9994,0.9994,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y1fract=0.0435,0.0873,0.1297,0.1724,0.2139,0.2534,0.2936,0.3319
+0.3699,0.4078,0.4443,0.4807,0.5166,0.5526,0.5878,0.6227,0.6573,0.6913
+0.7250,0.7565,0.7863,0.8146,0.8417,0.8657,0.8860,0.9028,0.9179,0.9304
+0.9402,0.9485,0.9559,0.9619,0.9676,0.9721,0.9759,0.9790,0.9816,0.9839
+0.9859,0.9874,0.9886,0.9897,0.9909,0.9917,0.9925,0.9931,0.9937,0.9940
+0.9945,0.9952,0.9958,0.9963,0.9966,0.9970,0.9974,0.9977,0.9980,0.9982
+0.9985,0.9987,0.9989,0.9990,0.9992,0.9993,0.9993,0.9994,0.9995,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc1u1fract=0.0417,0.0814,0.1229,0.1626,0.2036,0.2451,0.2842,0.3247
+0.3639,0.4030,0.4399,0.4766,0.5141,0.5490,0.5842,0.6202,0.6549,0.6888
+0.7220,0.7555,0.7860,0.8147,0.8406,0.8644,0.8851,0.9021,0.9164,0.9287
+0.9387,0.9475,0.9548,0.9614,0.9667,0.9713,0.9755,0.9787,0.9816,0.9840
+0.9860,0.9874,0.9890,0.9903,0.9914,0.9922,0.9929,0.9935,0.9942,0.9949
+0.9953,0.9958,0.9962,0.9967,0.9972,0.9976,0.9978,0.9980,0.9982,0.9984
+0.9987,0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9995,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1v1fract=0.0390,0.0784,0.1189,0.1592,0.1993,0.2379,0.2758,0.3132
+0.3498,0.3861,0.4226,0.4600,0.4958,0.5324,0.5671,0.6005,0.6359,0.6699
+0.7022,0.7348,0.7661,0.7960,0.8234,0.8494,0.8730,0.8924,0.9091,0.9220
+0.9330,0.9423,0.9500,0.9569,0.9629,0.9683,0.9728,0.9768,0.9799,0.9827
+0.9846,0.9863,0.9880,0.9891,0.9903,0.9912,0.9920,0.9929,0.9936,0.9941
+0.9947,0.9953,0.9958,0.9963,0.9966,0.9971,0.9974,0.9976,0.9979,0.9983
+0.9985,0.9987,0.9989,0.9991,0.9991,0.9992,0.9994,0.9994,0.9995,0.9995
+0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y2fract=0.0415,0.0845,0.1268,0.1688,0.2106,0.2502,0.2885,0.3274
+0.3662,0.4031,0.4395,0.4753,0.5098,0.5453,0.5804,0.6147,0.6497,0.6822
+0.7147,0.7459,0.7762,0.8043,0.8314,0.8552,0.8768,0.8958,0.9110,0.9235
+0.9343,0.9436,0.9515,0.9583,0.9639,0.9686,0.9728,0.9762,0.9790,0.9811
+0.9833,0.9852,0.9868,0.9882,0.9893,0.9904,0.9915,0.9924,0.9930,0.9936
+0.9943,0.9949,0.9955,0.9959,0.9963,0.9967,0.9970,0.9974,0.9975,0.9979
+0.9981,0.9984,0.9986,0.9988,0.9989,0.9991,0.9991,0.9993,0.9994,0.9995
+0.9995,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1x2fract=0.0383,0.0788,0.1191,0.1610,0.2022,0.2432,0.2837,0.3233
+0.3609,0.3990,0.4372,0.4741,0.5103,0.5457,0.5807,0.6168,0.6533,0.6872
+0.7206,0.7518,0.7834,0.8120,0.8378,0.8605,0.8805,0.8978,0.9125,0.9252
+0.9361,0.9449,0.9537,0.9614,0.9675,0.9731,0.9777,0.9811,0.9838,0.9861
+0.9879,0.9897,0.9909,0.9921,0.9931,0.9939,0.9945,0.9953,0.9958,0.9962
+0.9967,0.9970,0.9973,0.9976,0.9979,0.9981,0.9983,0.9985,0.9987,0.9988
+0.9989,0.9989,0.9990,0.9992,0.9993,0.9994,0.9995,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x1fract=0.0235,0.0522,0.0818,0.1123,0.1453,0.1813,0.2170,0.2525
+0.2887,0.3246,0.3606,0.3970,0.4325,0.4677,0.5020,0.5376,0.5715,0.6056
+0.6392,0.6735,0.7057,0.7376,0.7684,0.7974,0.8237,0.8496,0.8710,0.8907
+0.9074,0.9213,0.9337,0.9444,0.9531,0.9606,0.9673,0.9729,0.9772,0.9812
+0.9842,0.9872,0.9892,0.9909,0.9922,0.9933,0.9939,0.9948,0.9955,0.9962
+0.9966,0.9968,0.9971,0.9974,0.9976,0.9979,0.9982,0.9984,0.9986,0.9987
+0.9989,0.9990,0.9991,0.9992,0.9994,0.9994,0.9995,0.9995,0.9996,0.9996
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y1fract=0.0320,0.0687,0.1083,0.1492,0.1886,0.2279,0.2662,0.3034
+0.3392,0.3745,0.4095,0.4431,0.4772,0.5110,0.5444,0.5775,0.6093,0.6415
+0.6734,0.7026,0.7335,0.7641,0.7926,0.8201,0.8462,0.8704,0.8914,0.9094
+0.9252,0.9373,0.9468,0.9550,0.9615,0.9673,0.9719,0.9760,0.9797,0.9826
+0.9846,0.9863,0.9877,0.9890,0.9901,0.9910,0.9917,0.9924,0.9929,0.9935
+0.9941,0.9946,0.9950,0.9954,0.9957,0.9960,0.9964,0.9968,0.9972,0.9974
+0.9978,0.9981,0.9983,0.9986,0.9987,0.9989,0.9991,0.9993,0.9994,0.9994
+0.9995,0.9996,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2u1fract=0.0379,0.0787,0.1184,0.1585,0.1980,0.2367,0.2745,0.3111
+0.3470,0.3821,0.4181,0.4521,0.4862,0.5187,0.5523,0.5847,0.6171,0.6497
+0.6812,0.7129,0.7437,0.7732,0.8012,0.8287,0.8544,0.8784,0.8985,0.9166
+0.9301,0.9414,0.9507,0.9577,0.9638,0.9687,0.9728,0.9765,0.9800,0.9826
+0.9850,0.9869,0.9883,0.9895,0.9905,0.9912,0.9919,0.9925,0.9930,0.9937
+0.9944,0.9947,0.9950,0.9954,0.9958,0.9963,0.9968,0.9971,0.9975,0.9978
+0.9982,0.9984,0.9986,0.9988,0.9990,0.9991,0.9992,0.9993,0.9993,0.9994
+0.9995,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2v1fract=0.0407,0.0819,0.1220,0.1631,0.2025,0.2408,0.2791,0.3163
+0.3524,0.3874,0.4234,0.4575,0.4917,0.5252,0.5586,0.5917,0.6243,0.6590
+0.6908,0.7224,0.7533,0.7824,0.8116,0.8394,0.8655,0.8884,0.9077,0.9237
+0.9368,0.9470,0.9554,0.9620,0.9674,0.9721,0.9764,0.9799,0.9826,0.9849
+0.9867,0.9885,0.9898,0.9908,0.9917,0.9926,0.9931,0.9936,0.9941,0.9946
+0.9950,0.9954,0.9958,0.9962,0.9966,0.9970,0.9973,0.9976,0.9979,0.9983
+0.9985,0.9987,0.9989,0.9992,0.9993,0.9995,0.9996,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y2fract=0.0344,0.0722,0.1119,0.1503,0.1878,0.2256,0.2623,0.2990
+0.3334,0.3675,0.4001,0.4342,0.4662,0.4981,0.5310,0.5623,0.5932,0.6240
+0.6532,0.6829,0.7128,0.7401,0.7674,0.7942,0.8183,0.8402,0.8591,0.8756
+0.8891,0.9003,0.9088,0.9166,0.9232,0.9291,0.9345,0.9396,0.9440,0.9483
+0.9520,0.9553,0.9578,0.9603,0.9627,0.9648,0.9671,0.9694,0.9715,0.9734
+0.9752,0.9770,0.9787,0.9803,0.9817,0.9835,0.9853,0.9869,0.9887,0.9900
+0.9914,0.9927,0.9941,0.9951,0.9960,0.9968,0.9974,0.9978,0.9983,0.9986
+0.9987,0.9989,0.9990,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x2fract=0.0258,0.0567,0.0898,0.1250,0.1615,0.1982,0.2339,0.2710
+0.3075,0.3438,0.3804,0.4167,0.4520,0.4865,0.5200,0.5539,0.5872,0.6191
+0.6512,0.6832,0.7148,0.7460,0.7761,0.8047,0.8316,0.8557,0.8778,0.8965
+0.9138,0.9275,0.9388,0.9482,0.9559,0.9625,0.9687,0.9735,0.9781,0.9814
+0.9841,0.9864,0.9883,0.9900,0.9912,0.9923,0.9933,0.9939,0.9946,0.9953
+0.9958,0.9964,0.9968,0.9972,0.9976,0.9979,0.9981,0.9984,0.9987,0.9988
+0.9990,0.9992,0.9993,0.9994,0.9995,0.9995,0.9996,0.9996,0.9997,0.9997
+0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
diff --git a/examples/PARAM/hdriftmap.param.62726 b/examples/PARAM/hdriftmap.param.62726
new file mode 100644
index 0000000..6e54848
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param.62726
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0282,0.0603,0.0961,0.1338,0.1719,0.2089,0.2463,0.2826
+0.3168,0.3528,0.3890,0.4242,0.4591,0.4926,0.5256,0.5565,0.5888,0.6201
+0.6504,0.6799,0.7095,0.7390,0.7672,0.7941,0.8196,0.8434,0.8664,0.8861
+0.9028,0.9169,0.9289,0.9393,0.9469,0.9550,0.9621,0.9675,0.9726,0.9768
+0.9809,0.9839,0.9859,0.9877,0.9894,0.9908,0.9916,0.9926,0.9933,0.9939
+0.9948,0.9953,0.9956,0.9960,0.9963,0.9967,0.9970,0.9972,0.9974,0.9978
+0.9981,0.9981,0.9982,0.9984,0.9985,0.9986,0.9988,0.9989,0.9989,0.9989
+0.9990,0.9990,0.9991,0.9991,0.9992,0.9992,0.9992,0.9992,0.9992,0.9992
+0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9994,0.9994,0.9994
+0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+hwc1y1fract=0.0315,0.0688,0.1088,0.1504,0.1893,0.2281,0.2656,0.3016
+0.3359,0.3719,0.4046,0.4381,0.4694,0.5016,0.5337,0.5655,0.5961,0.6272
+0.6587,0.6904,0.7196,0.7472,0.7752,0.8024,0.8289,0.8534,0.8759,0.8962
+0.9137,0.9284,0.9391,0.9486,0.9553,0.9614,0.9664,0.9709,0.9749,0.9779
+0.9806,0.9831,0.9850,0.9869,0.9880,0.9892,0.9903,0.9909,0.9917,0.9925
+0.9930,0.9935,0.9940,0.9944,0.9948,0.9952,0.9955,0.9958,0.9964,0.9968
+0.9969,0.9971,0.9975,0.9978,0.9979,0.9981,0.9983,0.9985,0.9986,0.9987
+0.9988,0.9988,0.9990,0.9990,0.9990,0.9991,0.9991,0.9992,0.9992,0.9992
+0.9992,0.9992,0.9992,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993
+0.9994,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc1u1fract=0.0336,0.0710,0.1105,0.1495,0.1873,0.2268,0.2642,0.3005
+0.3360,0.3710,0.4058,0.4393,0.4723,0.5066,0.5386,0.5691,0.6000,0.6325
+0.6620,0.6927,0.7227,0.7528,0.7800,0.8075,0.8334,0.8581,0.8801,0.8989
+0.9144,0.9284,0.9390,0.9474,0.9550,0.9603,0.9651,0.9698,0.9735,0.9768
+0.9799,0.9821,0.9841,0.9860,0.9873,0.9887,0.9898,0.9906,0.9913,0.9920
+0.9926,0.9932,0.9939,0.9943,0.9948,0.9953,0.9957,0.9962,0.9966,0.9970
+0.9972,0.9976,0.9979,0.9981,0.9983,0.9985,0.9986,0.9987,0.9988,0.9989
+0.9989,0.9990,0.9991,0.9991,0.9992,0.9992,0.9993,0.9993,0.9993,0.9993
+0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995
+0.9995,0.9995,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1v1fract=0.0311,0.0647,0.1035,0.1408,0.1805,0.2188,0.2556,0.2907
+0.3251,0.3575,0.3906,0.4237,0.4559,0.4883,0.5196,0.5505,0.5814,0.6125
+0.6421,0.6723,0.7019,0.7292,0.7576,0.7860,0.8133,0.8402,0.8639,0.8856
+0.9041,0.9184,0.9306,0.9406,0.9491,0.9558,0.9619,0.9672,0.9715,0.9755
+0.9794,0.9821,0.9843,0.9862,0.9880,0.9891,0.9901,0.9911,0.9920,0.9927
+0.9934,0.9940,0.9945,0.9951,0.9954,0.9958,0.9962,0.9966,0.9968,0.9970
+0.9973,0.9977,0.9980,0.9981,0.9982,0.9983,0.9985,0.9986,0.9988,0.9989
+0.9989,0.9990,0.9991,0.9991,0.9991,0.9992,0.9992,0.9992,0.9992,0.9992
+0.9992,0.9993,0.9993,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994
+0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y2fract=0.0287,0.0626,0.1008,0.1409,0.1822,0.2214,0.2594,0.2966
+0.3317,0.3671,0.4007,0.4343,0.4672,0.4980,0.5283,0.5588,0.5900,0.6197
+0.6495,0.6800,0.7088,0.7387,0.7671,0.7942,0.8197,0.8452,0.8680,0.8870
+0.9044,0.9205,0.9329,0.9438,0.9521,0.9589,0.9644,0.9690,0.9732,0.9763
+0.9791,0.9814,0.9839,0.9861,0.9876,0.9889,0.9898,0.9906,0.9914,0.9920
+0.9927,0.9934,0.9939,0.9944,0.9949,0.9953,0.9957,0.9960,0.9964,0.9968
+0.9971,0.9974,0.9977,0.9981,0.9982,0.9983,0.9986,0.9986,0.9988,0.9989
+0.9989,0.9990,0.9991,0.9991,0.9992,0.9992,0.9992,0.9992,0.9992,0.9992
+0.9992,0.9992,0.9992,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993
+0.9993,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995
+0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1x2fract=0.0335,0.0677,0.1081,0.1458,0.1840,0.2205,0.2588,0.2958
+0.3314,0.3675,0.4023,0.4372,0.4714,0.5043,0.5354,0.5665,0.5993,0.6295
+0.6623,0.6934,0.7225,0.7523,0.7808,0.8095,0.8338,0.8559,0.8763,0.8940
+0.9096,0.9224,0.9332,0.9426,0.9506,0.9573,0.9640,0.9698,0.9747,0.9783
+0.9813,0.9839,0.9860,0.9879,0.9893,0.9904,0.9915,0.9924,0.9932,0.9939
+0.9945,0.9948,0.9952,0.9957,0.9961,0.9966,0.9970,0.9973,0.9974,0.9976
+0.9976,0.9978,0.9980,0.9981,0.9983,0.9984,0.9987,0.9987,0.9988,0.9989
+0.9989,0.9989,0.9990,0.9991,0.9991,0.9991,0.9992,0.9992,0.9992,0.9992
+0.9992,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994
+0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x1fract=0.0266,0.0586,0.0918,0.1279,0.1662,0.2034,0.2390,0.2758
+0.3129,0.3502,0.3862,0.4207,0.4537,0.4881,0.5209,0.5551,0.5896,0.6219
+0.6538,0.6850,0.7169,0.7476,0.7797,0.8087,0.8343,0.8592,0.8811,0.9001
+0.9165,0.9290,0.9393,0.9486,0.9564,0.9631,0.9686,0.9734,0.9773,0.9812
+0.9840,0.9862,0.9883,0.9899,0.9912,0.9923,0.9931,0.9939,0.9944,0.9949
+0.9953,0.9956,0.9961,0.9965,0.9968,0.9970,0.9972,0.9974,0.9976,0.9978
+0.9980,0.9982,0.9983,0.9984,0.9985,0.9985,0.9986,0.9987,0.9987,0.9988
+0.9989,0.9990,0.9990,0.9991,0.9991,0.9991,0.9991,0.9992,0.9992,0.9992
+0.9992,0.9992,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993
+0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994
+0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc2y1fract=0.0362,0.0776,0.1200,0.1608,0.2009,0.2406,0.2782,0.3139
+0.3477,0.3818,0.4159,0.4493,0.4843,0.5145,0.5466,0.5788,0.6109,0.6436
+0.6769,0.7103,0.7403,0.7689,0.7972,0.8258,0.8505,0.8745,0.8961,0.9159
+0.9317,0.9436,0.9527,0.9609,0.9671,0.9720,0.9760,0.9795,0.9829,0.9854
+0.9871,0.9890,0.9904,0.9913,0.9921,0.9929,0.9934,0.9938,0.9943,0.9945
+0.9949,0.9952,0.9956,0.9959,0.9961,0.9964,0.9967,0.9968,0.9971,0.9974
+0.9976,0.9977,0.9978,0.9981,0.9983,0.9984,0.9985,0.9987,0.9988,0.9989
+0.9990,0.9990,0.9991,0.9991,0.9991,0.9992,0.9992,0.9992,0.9992,0.9992
+0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9994
+0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2u1fract=0.0410,0.0841,0.1260,0.1656,0.2066,0.2465,0.2831,0.3202
+0.3547,0.3887,0.4245,0.4584,0.4920,0.5252,0.5599,0.5930,0.6245,0.6578
+0.6893,0.7202,0.7512,0.7819,0.8102,0.8375,0.8643,0.8866,0.9064,0.9240
+0.9376,0.9482,0.9559,0.9626,0.9683,0.9733,0.9772,0.9802,0.9826,0.9849
+0.9868,0.9883,0.9899,0.9909,0.9918,0.9924,0.9931,0.9934,0.9940,0.9945
+0.9947,0.9951,0.9953,0.9956,0.9959,0.9962,0.9965,0.9966,0.9968,0.9971
+0.9972,0.9975,0.9978,0.9979,0.9981,0.9982,0.9983,0.9984,0.9985,0.9986
+0.9986,0.9987,0.9987,0.9988,0.9989,0.9989,0.9989,0.9989,0.9989,0.9989
+0.9990,0.9990,0.9991,0.9991,0.9992,0.9993,0.9993,0.9993,0.9993,0.9993
+0.9993,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9995
+0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc2v1fract=0.0433,0.0853,0.1281,0.1689,0.2096,0.2486,0.2871,0.3238
+0.3603,0.3966,0.4316,0.4658,0.4995,0.5319,0.5654,0.5999,0.6322,0.6631
+0.6950,0.7270,0.7589,0.7887,0.8180,0.8461,0.8707,0.8934,0.9125,0.9288
+0.9414,0.9516,0.9593,0.9650,0.9700,0.9742,0.9777,0.9807,0.9834,0.9853
+0.9871,0.9886,0.9900,0.9908,0.9915,0.9921,0.9926,0.9932,0.9936,0.9940
+0.9944,0.9948,0.9952,0.9956,0.9960,0.9963,0.9966,0.9969,0.9972,0.9974
+0.9977,0.9980,0.9982,0.9984,0.9984,0.9986,0.9987,0.9988,0.9989,0.9989
+0.9990,0.9990,0.9990,0.9991,0.9991,0.9992,0.9992,0.9992,0.9992,0.9993
+0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994
+0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc2y2fract=0.0395,0.0830,0.1259,0.1670,0.2065,0.2467,0.2848,0.3213
+0.3590,0.3943,0.4276,0.4632,0.4948,0.5273,0.5591,0.5912,0.6240,0.6561
+0.6881,0.7193,0.7500,0.7806,0.8090,0.8368,0.8621,0.8839,0.9041,0.9209
+0.9354,0.9468,0.9563,0.9637,0.9700,0.9748,0.9784,0.9818,0.9846,0.9867
+0.9883,0.9899,0.9909,0.9920,0.9928,0.9934,0.9941,0.9944,0.9949,0.9952
+0.9956,0.9957,0.9958,0.9960,0.9962,0.9965,0.9967,0.9970,0.9973,0.9974
+0.9976,0.9978,0.9980,0.9981,0.9984,0.9985,0.9986,0.9987,0.9987,0.9988
+0.9989,0.9989,0.9991,0.9992,0.9992,0.9993,0.9993,0.9993,0.9993,0.9993
+0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995
+0.9995,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999
+0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x2fract=0.0321,0.0667,0.1052,0.1437,0.1823,0.2181,0.2562,0.2932
+0.3292,0.3650,0.3980,0.4325,0.4665,0.5015,0.5349,0.5666,0.5977,0.6311
+0.6629,0.6940,0.7248,0.7546,0.7832,0.8110,0.8374,0.8625,0.8841,0.9024
+0.9197,0.9327,0.9432,0.9522,0.9594,0.9660,0.9713,0.9756,0.9793,0.9826
+0.9852,0.9874,0.9888,0.9900,0.9912,0.9918,0.9925,0.9931,0.9938,0.9945
+0.9950,0.9955,0.9961,0.9963,0.9965,0.9968,0.9971,0.9973,0.9974,0.9976
+0.9977,0.9980,0.9982,0.9984,0.9985,0.9986,0.9987,0.9987,0.9988,0.9989
+0.9989,0.9990,0.9990,0.9990,0.9990,0.9992,0.9992,0.9992,0.9992,0.9992
+0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993,0.9993
+0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
diff --git a/examples/PARAM/hdriftmap.param.63504 b/examples/PARAM/hdriftmap.param.63504
new file mode 100644
index 0000000..b45d812
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param.63504
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0355,0.0712,0.1090,0.1483,0.1878,0.2272,0.2663,0.3047
+0.3429,0.3798,0.4167,0.4537,0.4917,0.5280,0.5654,0.6012,0.6364,0.6716
+0.7048,0.7366,0.7672,0.7968,0.8254,0.8507,0.8728,0.8908,0.9079,0.9207
+0.9330,0.9432,0.9519,0.9592,0.9661,0.9718,0.9763,0.9799,0.9830,0.9863
+0.9884,0.9901,0.9912,0.9922,0.9933,0.9941,0.9947,0.9954,0.9958,0.9963
+0.9967,0.9969,0.9973,0.9975,0.9977,0.9980,0.9982,0.9984,0.9986,0.9988
+0.9989,0.9990,0.9991,0.9991,0.9993,0.9993,0.9994,0.9995,0.9995,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc1y1fract=0.0440,0.0878,0.1304,0.1716,0.2122,0.2521,0.2919,0.3303
+0.3679,0.4047,0.4420,0.4793,0.5168,0.5518,0.5873,0.6241,0.6573,0.6909
+0.7230,0.7547,0.7863,0.8155,0.8432,0.8677,0.8878,0.9069,0.9216,0.9336
+0.9438,0.9527,0.9591,0.9651,0.9699,0.9744,0.9778,0.9810,0.9835,0.9853
+0.9871,0.9884,0.9895,0.9907,0.9915,0.9924,0.9929,0.9935,0.9939,0.9945
+0.9949,0.9954,0.9958,0.9961,0.9965,0.9969,0.9971,0.9974,0.9977,0.9981
+0.9983,0.9984,0.9985,0.9986,0.9989,0.9991,0.9992,0.9992,0.9993,0.9993
+0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995
+0.9995,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc1u1fract=0.0419,0.0839,0.1263,0.1668,0.2062,0.2460,0.2855,0.3254
+0.3647,0.4016,0.4383,0.4760,0.5124,0.5483,0.5833,0.6190,0.6527,0.6873
+0.7219,0.7536,0.7843,0.8144,0.8409,0.8646,0.8852,0.9030,0.9172,0.9289
+0.9397,0.9479,0.9549,0.9612,0.9665,0.9709,0.9746,0.9782,0.9808,0.9834
+0.9855,0.9874,0.9886,0.9895,0.9903,0.9912,0.9922,0.9930,0.9937,0.9943
+0.9946,0.9949,0.9954,0.9960,0.9963,0.9967,0.9970,0.9973,0.9974,0.9978
+0.9980,0.9983,0.9985,0.9988,0.9989,0.9990,0.9991,0.9992,0.9993,0.9994
+0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1v1fract=0.0408,0.0811,0.1225,0.1621,0.2005,0.2382,0.2770,0.3148
+0.3504,0.3868,0.4234,0.4598,0.4957,0.5323,0.5666,0.6018,0.6366,0.6708
+0.7044,0.7354,0.7662,0.7970,0.8240,0.8513,0.8760,0.8963,0.9128,0.9258
+0.9372,0.9464,0.9542,0.9614,0.9667,0.9717,0.9762,0.9793,0.9822,0.9845
+0.9863,0.9880,0.9895,0.9905,0.9918,0.9925,0.9933,0.9938,0.9944,0.9949
+0.9952,0.9956,0.9960,0.9963,0.9969,0.9973,0.9975,0.9978,0.9981,0.9984
+0.9985,0.9989,0.9990,0.9990,0.9991,0.9991,0.9992,0.9993,0.9993,0.9993
+0.9994,0.9994,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y2fract=0.0425,0.0855,0.1273,0.1693,0.2106,0.2508,0.2902,0.3297
+0.3670,0.4036,0.4393,0.4756,0.5126,0.5486,0.5826,0.6165,0.6486,0.6822
+0.7146,0.7466,0.7782,0.8068,0.8329,0.8578,0.8800,0.8990,0.9149,0.9280
+0.9390,0.9480,0.9556,0.9616,0.9668,0.9711,0.9747,0.9781,0.9805,0.9825
+0.9843,0.9861,0.9876,0.9885,0.9897,0.9907,0.9914,0.9922,0.9929,0.9934
+0.9941,0.9946,0.9952,0.9956,0.9959,0.9963,0.9966,0.9971,0.9974,0.9977
+0.9980,0.9983,0.9984,0.9986,0.9989,0.9989,0.9990,0.9991,0.9991,0.9992
+0.9993,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9995
+0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc1x2fract=0.0378,0.0785,0.1198,0.1599,0.2002,0.2417,0.2825,0.3221
+0.3605,0.4003,0.4400,0.4772,0.5141,0.5510,0.5867,0.6221,0.6578,0.6898
+0.7224,0.7529,0.7832,0.8110,0.8369,0.8591,0.8812,0.8989,0.9129,0.9254
+0.9367,0.9455,0.9536,0.9603,0.9668,0.9720,0.9764,0.9799,0.9827,0.9851
+0.9867,0.9885,0.9899,0.9912,0.9922,0.9930,0.9937,0.9945,0.9952,0.9957
+0.9960,0.9964,0.9967,0.9971,0.9972,0.9974,0.9977,0.9980,0.9982,0.9984
+0.9986,0.9987,0.9988,0.9989,0.9990,0.9991,0.9991,0.9991,0.9992,0.9993
+0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9995
+0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+hwc2x1fract=0.0353,0.0698,0.1076,0.1468,0.1840,0.2231,0.2621,0.2983
+0.3360,0.3744,0.4126,0.4524,0.4907,0.5271,0.5652,0.6009,0.6342,0.6697
+0.7057,0.7390,0.7723,0.8020,0.8287,0.8532,0.8758,0.8951,0.9118,0.9256
+0.9379,0.9480,0.9566,0.9639,0.9702,0.9750,0.9790,0.9824,0.9849,0.9873
+0.9889,0.9907,0.9918,0.9931,0.9939,0.9947,0.9953,0.9959,0.9964,0.9968
+0.9971,0.9976,0.9979,0.9980,0.9981,0.9984,0.9985,0.9987,0.9988,0.9989
+0.9990,0.9991,0.9992,0.9992,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995
+0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+hwc2y1fract=0.0441,0.0876,0.1311,0.1734,0.2155,0.2561,0.2961,0.3356
+0.3737,0.4127,0.4507,0.4867,0.5225,0.5580,0.5923,0.6283,0.6624,0.6975
+0.7305,0.7629,0.7938,0.8237,0.8504,0.8738,0.8949,0.9127,0.9282,0.9405
+0.9501,0.9581,0.9643,0.9696,0.9745,0.9784,0.9821,0.9846,0.9865,0.9879
+0.9895,0.9909,0.9920,0.9927,0.9935,0.9942,0.9948,0.9952,0.9954,0.9958
+0.9960,0.9964,0.9967,0.9970,0.9974,0.9977,0.9979,0.9982,0.9984,0.9987
+0.9987,0.9989,0.9990,0.9991,0.9992,0.9992,0.9993,0.9993,0.9994,0.9994
+0.9994,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc2u1fract=0.0455,0.0907,0.1326,0.1767,0.2191,0.2603,0.3007,0.3414
+0.3823,0.4202,0.4599,0.4974,0.5333,0.5718,0.6078,0.6426,0.6786,0.7135
+0.7478,0.7804,0.8115,0.8402,0.8672,0.8892,0.9083,0.9234,0.9370,0.9474
+0.9557,0.9621,0.9677,0.9718,0.9759,0.9792,0.9825,0.9850,0.9872,0.9884
+0.9898,0.9904,0.9914,0.9921,0.9927,0.9933,0.9938,0.9943,0.9947,0.9951
+0.9954,0.9960,0.9963,0.9966,0.9969,0.9972,0.9975,0.9979,0.9982,0.9984
+0.9986,0.9987,0.9989,0.9991,0.9991,0.9991,0.9992,0.9992,0.9993,0.9993
+0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9995,0.9995
+0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc2v1fract=0.0456,0.0905,0.1362,0.1788,0.2206,0.2625,0.3021,0.3441
+0.3848,0.4235,0.4630,0.5010,0.5394,0.5770,0.6143,0.6507,0.6867,0.7225
+0.7576,0.7898,0.8219,0.8495,0.8759,0.8971,0.9151,0.9295,0.9411,0.9504
+0.9579,0.9638,0.9690,0.9730,0.9770,0.9803,0.9828,0.9851,0.9871,0.9887
+0.9899,0.9909,0.9918,0.9924,0.9932,0.9938,0.9943,0.9949,0.9951,0.9955
+0.9959,0.9963,0.9966,0.9968,0.9971,0.9975,0.9978,0.9981,0.9984,0.9987
+0.9988,0.9990,0.9992,0.9992,0.9993,0.9994,0.9995,0.9995,0.9995,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+hwc2y2fract=0.0480,0.0937,0.1389,0.1833,0.2242,0.2652,0.3038,0.3445
+0.3831,0.4225,0.4595,0.4956,0.5333,0.5698,0.6077,0.6439,0.6777,0.7109
+0.7451,0.7781,0.8087,0.8380,0.8647,0.8877,0.9077,0.9242,0.9378,0.9481
+0.9564,0.9637,0.9688,0.9737,0.9781,0.9817,0.9846,0.9867,0.9887,0.9902
+0.9912,0.9924,0.9931,0.9939,0.9945,0.9949,0.9953,0.9957,0.9960,0.9963
+0.9966,0.9969,0.9973,0.9977,0.9979,0.9982,0.9983,0.9985,0.9987,0.9988
+0.9990,0.9991,0.9991,0.9992,0.9992,0.9993,0.9994,0.9994,0.9994,0.9995
+0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+hwc2x2fract=0.0368,0.0768,0.1168,0.1569,0.1950,0.2340,0.2724,0.3100
+0.3490,0.3863,0.4234,0.4597,0.4983,0.5336,0.5678,0.6027,0.6364,0.6686
+0.7007,0.7318,0.7623,0.7899,0.8169,0.8401,0.8622,0.8802,0.8944,0.9067
+0.9177,0.9263,0.9350,0.9424,0.9480,0.9532,0.9579,0.9618,0.9653,0.9679
+0.9707,0.9735,0.9756,0.9774,0.9790,0.9802,0.9816,0.9831,0.9844,0.9857
+0.9867,0.9877,0.9886,0.9897,0.9907,0.9919,0.9929,0.9937,0.9945,0.9953
+0.9959,0.9963,0.9970,0.9976,0.9980,0.9984,0.9987,0.9988,0.9989,0.9990
+0.9991,0.9992,0.9993,0.9994,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
diff --git a/examples/PARAM/hdriftmap.param.63513 b/examples/PARAM/hdriftmap.param.63513
new file mode 100644
index 0000000..97df536
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param.63513
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0256,0.0559,0.0886,0.1228,0.1566,0.1924,0.2280,0.2641
+0.3005,0.3356,0.3719,0.4075,0.4425,0.4773,0.5107,0.5445,0.5766,0.6093
+0.6427,0.6753,0.7052,0.7352,0.7639,0.7929,0.8190,0.8436,0.8655,0.8854
+0.9020,0.9166,0.9287,0.9389,0.9479,0.9558,0.9627,0.9683,0.9731,0.9770
+0.9800,0.9825,0.9847,0.9864,0.9877,0.9888,0.9897,0.9906,0.9913,0.9919
+0.9924,0.9928,0.9932,0.9937,0.9940,0.9943,0.9947,0.9950,0.9953,0.9955
+0.9957,0.9958,0.9959,0.9960,0.9962,0.9963,0.9964,0.9966,0.9966,0.9967
+0.9968,0.9969,0.9970,0.9971,0.9972,0.9973,0.9973,0.9973,0.9974,0.9975
+0.9975,0.9976,0.9976,0.9977,0.9978,0.9978,0.9978,0.9978,0.9979,0.9980
+0.9980,0.9981,0.9981,0.9981,0.9982,0.9982,0.9983,0.9983,0.9983,0.9984
+0.9985,0.9985,0.9986,0.9986,0.9986,0.9987,0.9988,0.9988,0.9989,0.9989
+0.9990,0.9990,0.9990,0.9991,0.9991,0.9992,0.9992,0.9993,0.9994,0.9994
+0.9994,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc1y1fract=0.0304,0.0677,0.1072,0.1457,0.1842,0.2233,0.2602,0.2963
+0.3316,0.3667,0.4019,0.4361,0.4684,0.5015,0.5334,0.5647,0.5964,0.6278
+0.6588,0.6906,0.7213,0.7511,0.7804,0.8079,0.8346,0.8593,0.8810,0.8999
+0.9165,0.9296,0.9401,0.9494,0.9567,0.9625,0.9673,0.9712,0.9748,0.9778
+0.9805,0.9826,0.9843,0.9857,0.9872,0.9882,0.9891,0.9898,0.9905,0.9911
+0.9916,0.9921,0.9924,0.9929,0.9931,0.9935,0.9939,0.9941,0.9944,0.9946
+0.9950,0.9953,0.9956,0.9959,0.9961,0.9963,0.9965,0.9966,0.9967,0.9969
+0.9970,0.9970,0.9971,0.9972,0.9973,0.9973,0.9973,0.9974,0.9974,0.9974
+0.9975,0.9975,0.9976,0.9976,0.9976,0.9977,0.9977,0.9977,0.9978,0.9978
+0.9979,0.9979,0.9980,0.9980,0.9981,0.9981,0.9982,0.9982,0.9983,0.9983
+0.9984,0.9984,0.9985,0.9985,0.9985,0.9986,0.9986,0.9987,0.9987,0.9988
+0.9988,0.9989,0.9989,0.9990,0.9990,0.9991,0.9991,0.9992,0.9993,0.9993
+0.9993,0.9993,0.9994,0.9994,0.9995,0.9995,0.9995,0.9996,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc1u1fract=0.0313,0.0678,0.1049,0.1422,0.1793,0.2171,0.2530,0.2896
+0.3248,0.3599,0.3949,0.4290,0.4618,0.4956,0.5287,0.5609,0.5938,0.6252
+0.6570,0.6876,0.7189,0.7487,0.7781,0.8060,0.8324,0.8562,0.8776,0.8957
+0.9117,0.9248,0.9356,0.9448,0.9527,0.9586,0.9642,0.9689,0.9730,0.9766
+0.9792,0.9814,0.9834,0.9849,0.9861,0.9873,0.9880,0.9888,0.9895,0.9902
+0.9908,0.9913,0.9917,0.9923,0.9928,0.9931,0.9936,0.9940,0.9944,0.9947
+0.9950,0.9952,0.9956,0.9958,0.9960,0.9961,0.9963,0.9964,0.9965,0.9966
+0.9968,0.9969,0.9970,0.9970,0.9971,0.9972,0.9972,0.9972,0.9973,0.9973
+0.9974,0.9974,0.9975,0.9975,0.9976,0.9977,0.9977,0.9977,0.9978,0.9978
+0.9978,0.9979,0.9979,0.9979,0.9980,0.9980,0.9981,0.9981,0.9982,0.9983
+0.9983,0.9984,0.9984,0.9984,0.9985,0.9986,0.9986,0.9987,0.9987,0.9988
+0.9988,0.9989,0.9990,0.9991,0.9991,0.9992,0.9993,0.9993,0.9994,0.9994
+0.9995,0.9995,0.9995,0.9996,0.9996,0.9997,0.9997,0.9997,0.9998,0.9998
+0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000
+hwc1v1fract=0.0286,0.0611,0.0975,0.1351,0.1716,0.2073,0.2422,0.2773
+0.3122,0.3464,0.3803,0.4144,0.4472,0.4795,0.5118,0.5438,0.5760,0.6065
+0.6375,0.6685,0.6996,0.7302,0.7601,0.7883,0.8158,0.8407,0.8650,0.8865
+0.9046,0.9198,0.9320,0.9418,0.9499,0.9562,0.9625,0.9674,0.9715,0.9753
+0.9785,0.9808,0.9831,0.9848,0.9862,0.9875,0.9886,0.9894,0.9901,0.9906
+0.9912,0.9917,0.9922,0.9926,0.9929,0.9933,0.9936,0.9939,0.9943,0.9946
+0.9949,0.9952,0.9955,0.9956,0.9958,0.9960,0.9962,0.9964,0.9965,0.9966
+0.9967,0.9968,0.9969,0.9970,0.9971,0.9971,0.9972,0.9972,0.9973,0.9973
+0.9974,0.9974,0.9975,0.9975,0.9975,0.9976,0.9976,0.9977,0.9977,0.9978
+0.9978,0.9978,0.9979,0.9979,0.9980,0.9981,0.9981,0.9982,0.9982,0.9982
+0.9983,0.9984,0.9984,0.9984,0.9985,0.9985,0.9985,0.9986,0.9987,0.9987
+0.9988,0.9988,0.9989,0.9989,0.9990,0.9990,0.9990,0.9991,0.9991,0.9992
+0.9992,0.9993,0.9994,0.9994,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc1y2fract=0.0267,0.0603,0.0968,0.1362,0.1764,0.2148,0.2525,0.2885
+0.3230,0.3581,0.3925,0.4260,0.4585,0.4917,0.5228,0.5544,0.5865,0.6185
+0.6494,0.6789,0.7092,0.7387,0.7672,0.7942,0.8205,0.8448,0.8686,0.8886
+0.9060,0.9203,0.9329,0.9430,0.9512,0.9578,0.9632,0.9678,0.9718,0.9753
+0.9785,0.9809,0.9831,0.9849,0.9862,0.9875,0.9886,0.9893,0.9901,0.9908
+0.9913,0.9919,0.9924,0.9928,0.9931,0.9935,0.9938,0.9941,0.9944,0.9948
+0.9950,0.9953,0.9955,0.9957,0.9959,0.9960,0.9961,0.9963,0.9964,0.9965
+0.9967,0.9968,0.9969,0.9970,0.9970,0.9970,0.9971,0.9971,0.9972,0.9972
+0.9972,0.9973,0.9973,0.9974,0.9974,0.9975,0.9976,0.9976,0.9977,0.9977
+0.9978,0.9978,0.9979,0.9979,0.9980,0.9980,0.9980,0.9981,0.9982,0.9982
+0.9982,0.9983,0.9984,0.9984,0.9984,0.9985,0.9986,0.9986,0.9987,0.9987
+0.9988,0.9988,0.9988,0.9989,0.9990,0.9990,0.9991,0.9991,0.9992,0.9993
+0.9993,0.9993,0.9994,0.9994,0.9995,0.9995,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9998,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000
+hwc1x2fract=0.0297,0.0619,0.0973,0.1332,0.1704,0.2074,0.2450,0.2824
+0.3188,0.3545,0.3894,0.4236,0.4580,0.4918,0.5247,0.5587,0.5903,0.6226
+0.6534,0.6843,0.7147,0.7436,0.7735,0.8008,0.8270,0.8512,0.8728,0.8920
+0.9081,0.9211,0.9325,0.9419,0.9504,0.9572,0.9634,0.9686,0.9729,0.9761
+0.9792,0.9816,0.9836,0.9851,0.9866,0.9877,0.9887,0.9896,0.9903,0.9911
+0.9917,0.9922,0.9929,0.9933,0.9938,0.9941,0.9945,0.9948,0.9949,0.9952
+0.9955,0.9956,0.9958,0.9959,0.9961,0.9963,0.9963,0.9965,0.9966,0.9967
+0.9968,0.9969,0.9970,0.9971,0.9972,0.9972,0.9973,0.9973,0.9974,0.9974
+0.9974,0.9975,0.9975,0.9976,0.9977,0.9978,0.9978,0.9978,0.9979,0.9979
+0.9980,0.9980,0.9980,0.9980,0.9981,0.9982,0.9982,0.9983,0.9983,0.9983
+0.9984,0.9984,0.9984,0.9984,0.9986,0.9986,0.9986,0.9987,0.9988,0.9989
+0.9989,0.9990,0.9990,0.9992,0.9992,0.9992,0.9993,0.9993,0.9994,0.9994
+0.9995,0.9995,0.9995,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc2x1fract=0.0245,0.0527,0.0833,0.1155,0.1485,0.1811,0.2165,0.2522
+0.2887,0.3242,0.3602,0.3954,0.4314,0.4664,0.5013,0.5357,0.5703,0.6037
+0.6382,0.6711,0.7034,0.7345,0.7639,0.7927,0.8190,0.8438,0.8666,0.8862
+0.9032,0.9182,0.9312,0.9419,0.9509,0.9585,0.9651,0.9707,0.9754,0.9795
+0.9827,0.9851,0.9870,0.9887,0.9898,0.9909,0.9916,0.9923,0.9929,0.9934
+0.9938,0.9942,0.9945,0.9948,0.9951,0.9954,0.9957,0.9958,0.9960,0.9961
+0.9963,0.9964,0.9966,0.9967,0.9968,0.9969,0.9970,0.9971,0.9972,0.9973
+0.9973,0.9973,0.9974,0.9975,0.9975,0.9976,0.9976,0.9976,0.9977,0.9978
+0.9978,0.9978,0.9979,0.9979,0.9980,0.9980,0.9980,0.9981,0.9981,0.9981
+0.9981,0.9982,0.9983,0.9983,0.9983,0.9984,0.9984,0.9985,0.9985,0.9985
+0.9986,0.9986,0.9986,0.9987,0.9987,0.9987,0.9988,0.9988,0.9988,0.9989
+0.9989,0.9989,0.9990,0.9990,0.9990,0.9991,0.9991,0.9992,0.9993,0.9993
+0.9993,0.9994,0.9994,0.9994,0.9995,0.9996,0.9996,0.9997,0.9997,0.9997
+0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+hwc2y1fract=0.0317,0.0687,0.1074,0.1469,0.1868,0.2246,0.2614,0.2992
+0.3350,0.3720,0.4055,0.4391,0.4725,0.5057,0.5387,0.5707,0.6029,0.6343
+0.6662,0.6977,0.7286,0.7587,0.7883,0.8164,0.8421,0.8657,0.8874,0.9060
+0.9218,0.9350,0.9460,0.9549,0.9611,0.9664,0.9710,0.9751,0.9785,0.9812
+0.9836,0.9855,0.9870,0.9882,0.9891,0.9901,0.9908,0.9914,0.9920,0.9924
+0.9927,0.9930,0.9934,0.9936,0.9939,0.9942,0.9945,0.9948,0.9950,0.9953
+0.9956,0.9958,0.9960,0.9962,0.9964,0.9965,0.9967,0.9969,0.9970,0.9970
+0.9971,0.9972,0.9973,0.9973,0.9973,0.9975,0.9975,0.9976,0.9976,0.9977
+0.9977,0.9977,0.9978,0.9979,0.9979,0.9980,0.9980,0.9981,0.9981,0.9981
+0.9982,0.9982,0.9982,0.9983,0.9984,0.9984,0.9984,0.9984,0.9985,0.9985
+0.9986,0.9986,0.9986,0.9987,0.9987,0.9987,0.9988,0.9988,0.9989,0.9989
+0.9990,0.9990,0.9991,0.9991,0.9991,0.9992,0.9992,0.9993,0.9994,0.9994
+0.9994,0.9994,0.9995,0.9995,0.9996,0.9996,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc2u1fract=0.0386,0.0799,0.1213,0.1619,0.2003,0.2391,0.2774,0.3138
+0.3503,0.3845,0.4188,0.4525,0.4869,0.5210,0.5546,0.5868,0.6188,0.6510
+0.6830,0.7146,0.7451,0.7752,0.8041,0.8309,0.8570,0.8796,0.8997,0.9168
+0.9308,0.9419,0.9511,0.9586,0.9645,0.9692,0.9731,0.9765,0.9793,0.9817
+0.9839,0.9853,0.9866,0.9875,0.9884,0.9893,0.9900,0.9906,0.9911,0.9915
+0.9919,0.9923,0.9927,0.9930,0.9934,0.9937,0.9940,0.9942,0.9945,0.9948
+0.9951,0.9952,0.9955,0.9957,0.9959,0.9961,0.9963,0.9964,0.9965,0.9966
+0.9968,0.9968,0.9970,0.9970,0.9971,0.9971,0.9972,0.9972,0.9973,0.9973
+0.9974,0.9975,0.9975,0.9976,0.9976,0.9977,0.9977,0.9978,0.9979,0.9979
+0.9980,0.9981,0.9981,0.9982,0.9982,0.9983,0.9983,0.9983,0.9983,0.9984
+0.9985,0.9985,0.9985,0.9985,0.9986,0.9986,0.9986,0.9987,0.9987,0.9988
+0.9988,0.9989,0.9990,0.9990,0.9991,0.9991,0.9992,0.9992,0.9992,0.9993
+0.9994,0.9994,0.9994,0.9995,0.9995,0.9995,0.9996,0.9996,0.9997,0.9997
+0.9997,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000
+hwc2v1fract=0.0403,0.0826,0.1232,0.1635,0.2041,0.2423,0.2797,0.3168
+0.3530,0.3878,0.4240,0.4593,0.4928,0.5270,0.5600,0.5922,0.6248,0.6570
+0.6887,0.7203,0.7510,0.7804,0.8098,0.8372,0.8632,0.8857,0.9050,0.9213
+0.9338,0.9441,0.9525,0.9592,0.9649,0.9696,0.9734,0.9768,0.9795,0.9817
+0.9839,0.9856,0.9869,0.9881,0.9891,0.9898,0.9905,0.9911,0.9916,0.9921
+0.9926,0.9929,0.9934,0.9938,0.9940,0.9944,0.9946,0.9949,0.9951,0.9954
+0.9957,0.9959,0.9961,0.9964,0.9965,0.9966,0.9968,0.9969,0.9969,0.9970
+0.9971,0.9972,0.9972,0.9973,0.9974,0.9974,0.9974,0.9975,0.9975,0.9976
+0.9976,0.9977,0.9977,0.9977,0.9978,0.9978,0.9978,0.9978,0.9979,0.9980
+0.9980,0.9981,0.9982,0.9982,0.9982,0.9983,0.9983,0.9984,0.9985,0.9985
+0.9985,0.9985,0.9986,0.9986,0.9987,0.9987,0.9987,0.9988,0.9988,0.9989
+0.9989,0.9989,0.9990,0.9991,0.9991,0.9992,0.9992,0.9993,0.9994,0.9994
+0.9994,0.9995,0.9995,0.9996,0.9996,0.9996,0.9997,0.9997,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y2fract=0.0370,0.0763,0.1180,0.1578,0.1969,0.2355,0.2742,0.3112
+0.3474,0.3831,0.4176,0.4524,0.4865,0.5195,0.5522,0.5854,0.6172,0.6478
+0.6798,0.7112,0.7430,0.7727,0.8020,0.8298,0.8555,0.8789,0.8995,0.9168
+0.9310,0.9428,0.9520,0.9601,0.9660,0.9708,0.9749,0.9784,0.9813,0.9838
+0.9857,0.9872,0.9884,0.9894,0.9902,0.9909,0.9915,0.9921,0.9928,0.9931
+0.9934,0.9937,0.9938,0.9941,0.9944,0.9946,0.9948,0.9950,0.9951,0.9954
+0.9955,0.9958,0.9960,0.9962,0.9964,0.9966,0.9967,0.9968,0.9968,0.9969
+0.9970,0.9971,0.9971,0.9972,0.9972,0.9973,0.9973,0.9973,0.9974,0.9974
+0.9975,0.9975,0.9975,0.9976,0.9976,0.9976,0.9977,0.9977,0.9978,0.9979
+0.9979,0.9980,0.9980,0.9981,0.9982,0.9982,0.9982,0.9983,0.9983,0.9983
+0.9984,0.9984,0.9985,0.9985,0.9986,0.9986,0.9987,0.9987,0.9987,0.9988
+0.9988,0.9989,0.9989,0.9989,0.9990,0.9990,0.9991,0.9991,0.9991,0.9991
+0.9992,0.9992,0.9992,0.9993,0.9993,0.9994,0.9995,0.9995,0.9996,0.9996
+0.9997,0.9997,0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000
+hwc2x2fract=0.0274,0.0580,0.0903,0.1257,0.1610,0.1971,0.2322,0.2677
+0.3035,0.3386,0.3735,0.4080,0.4420,0.4757,0.5091,0.5416,0.5741,0.6051
+0.6372,0.6691,0.7007,0.7311,0.7594,0.7876,0.8131,0.8372,0.8589,0.8776
+0.8930,0.9072,0.9184,0.9280,0.9361,0.9430,0.9491,0.9548,0.9590,0.9627
+0.9661,0.9692,0.9717,0.9739,0.9757,0.9772,0.9787,0.9800,0.9814,0.9826
+0.9837,0.9847,0.9856,0.9866,0.9874,0.9885,0.9893,0.9900,0.9908,0.9916
+0.9923,0.9929,0.9936,0.9942,0.9947,0.9952,0.9956,0.9959,0.9962,0.9964
+0.9965,0.9967,0.9969,0.9970,0.9971,0.9973,0.9973,0.9974,0.9975,0.9976
+0.9976,0.9977,0.9977,0.9978,0.9978,0.9978,0.9979,0.9980,0.9980,0.9980
+0.9981,0.9981,0.9982,0.9983,0.9983,0.9983,0.9984,0.9984,0.9984,0.9985
+0.9985,0.9985,0.9985,0.9986,0.9987,0.9987,0.9988,0.9988,0.9989,0.9989
+0.9989,0.9990,0.9990,0.9990,0.9991,0.9991,0.9991,0.9991,0.9992,0.9992
+0.9992,0.9993,0.9994,0.9994,0.9994,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9997,0.9997,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000
diff --git a/examples/PARAM/hdriftmap.param.bak b/examples/PARAM/hdriftmap.param.bak
new file mode 100644
index 0000000..12a3d95
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param.bak
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0001,0.0003,0.0004,0.0005,0.0007,0.0010,0.0015,0.0017
+0.0020,0.0028,0.0040,0.0060,0.0086,0.0120,0.0167,0.0230,0.0320,0.0435
+0.0572,0.0735,0.0910,0.1100,0.1310,0.1525,0.1753,0.1981,0.2205,0.2424
+0.2659,0.2893,0.3122,0.3354,0.3590,0.3814,0.4039,0.4268,0.4485,0.4711
+0.4933,0.5149,0.5368,0.5585,0.5796,0.6001,0.6209,0.6421,0.6615,0.6809
+0.7003,0.7189,0.7380,0.7564,0.7742,0.7912,0.8084,0.8245,0.8394,0.8533
+0.8667,0.8793,0.8909,0.9017,0.9106,0.9193,0.9267,0.9336,0.9402,0.9462
+0.9516,0.9567,0.9618,0.9659,0.9700,0.9734,0.9764,0.9790,0.9818,0.9841
+0.9862,0.9881,0.9895,0.9909,0.9919,0.9928,0.9935,0.9942,0.9950,0.9955
+0.9960,0.9965,0.9968,0.9972,0.9975,0.9979,0.9981,0.9983,0.9985,0.9987
+0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y1fract=0.0001,0.0003,0.0004,0.0004,0.0006,0.0009,0.0011,0.0014
+0.0016,0.0022,0.0029,0.0039,0.0053,0.0075,0.0111,0.0170,0.0264,0.0398
+0.0568,0.0762,0.0985,0.1218,0.1462,0.1721,0.1973,0.2231,0.2478,0.2721
+0.2960,0.3194,0.3434,0.3661,0.3888,0.4108,0.4335,0.4557,0.4762,0.4967
+0.5182,0.5389,0.5586,0.5788,0.5983,0.6189,0.6385,0.6583,0.6776,0.6971
+0.7158,0.7347,0.7527,0.7709,0.7881,0.8054,0.8215,0.8375,0.8530,0.8668
+0.8801,0.8926,0.9040,0.9141,0.9223,0.9304,0.9372,0.9430,0.9480,0.9528
+0.9573,0.9614,0.9651,0.9682,0.9710,0.9740,0.9765,0.9788,0.9809,0.9825
+0.9843,0.9858,0.9872,0.9882,0.9892,0.9902,0.9912,0.9920,0.9926,0.9932
+0.9938,0.9944,0.9949,0.9954,0.9958,0.9962,0.9966,0.9970,0.9971,0.9975
+0.9978,0.9980,0.9981,0.9983,0.9986,0.9987,0.9988,0.9990,0.9992,0.9993
+0.9995,0.9996,0.9997,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0003,0.0004
+0.0005,0.0009,0.0018,0.0033,0.0055,0.0088,0.0137,0.0211,0.0312,0.0459
+0.0630,0.0831,0.1059,0.1286,0.1526,0.1763,0.2012,0.2254,0.2494,0.2727
+0.2963,0.3192,0.3417,0.3644,0.3865,0.4081,0.4299,0.4516,0.4728,0.4939
+0.5138,0.5345,0.5549,0.5754,0.5958,0.6163,0.6361,0.6558,0.6747,0.6941
+0.7128,0.7319,0.7505,0.7686,0.7861,0.8039,0.8210,0.8365,0.8509,0.8648
+0.8779,0.8898,0.9010,0.9105,0.9191,0.9264,0.9333,0.9391,0.9447,0.9497
+0.9538,0.9580,0.9618,0.9652,0.9684,0.9716,0.9745,0.9771,0.9792,0.9815
+0.9833,0.9850,0.9863,0.9875,0.9885,0.9894,0.9902,0.9912,0.9919,0.9927
+0.9933,0.9937,0.9942,0.9947,0.9951,0.9955,0.9960,0.9963,0.9967,0.9970
+0.9973,0.9976,0.9979,0.9981,0.9982,0.9985,0.9986,0.9989,0.9991,0.9992
+0.9993,0.9994,0.9995,0.9996,0.9997,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1v1fract=0.0000,0.0000,0.0001,0.0002,0.0002,0.0003,0.0004,0.0005
+0.0007,0.0008,0.0011,0.0017,0.0026,0.0041,0.0073,0.0133,0.0228,0.0352
+0.0516,0.0710,0.0925,0.1158,0.1398,0.1644,0.1883,0.2115,0.2352,0.2589
+0.2824,0.3050,0.3282,0.3501,0.3718,0.3932,0.4149,0.4369,0.4577,0.4784
+0.4996,0.5201,0.5410,0.5616,0.5814,0.6016,0.6211,0.6414,0.6602,0.6795
+0.6985,0.7170,0.7361,0.7550,0.7736,0.7914,0.8094,0.8265,0.8428,0.8581
+0.8725,0.8857,0.8973,0.9077,0.9174,0.9257,0.9326,0.9387,0.9437,0.9490
+0.9538,0.9577,0.9613,0.9650,0.9684,0.9716,0.9746,0.9771,0.9793,0.9815
+0.9833,0.9849,0.9863,0.9876,0.9887,0.9896,0.9906,0.9915,0.9921,0.9927
+0.9932,0.9938,0.9943,0.9947,0.9953,0.9956,0.9960,0.9964,0.9968,0.9971
+0.9973,0.9976,0.9979,0.9981,0.9982,0.9984,0.9986,0.9988,0.9990,0.9991
+0.9993,0.9995,0.9996,0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y2fract=0.0000,0.0000,0.0001,0.0002,0.0003,0.0003,0.0005,0.0007
+0.0009,0.0011,0.0015,0.0020,0.0029,0.0045,0.0070,0.0112,0.0187,0.0294
+0.0438,0.0617,0.0826,0.1041,0.1281,0.1527,0.1771,0.2018,0.2262,0.2507
+0.2752,0.2982,0.3214,0.3442,0.3669,0.3896,0.4112,0.4327,0.4554,0.4767
+0.4978,0.5184,0.5388,0.5597,0.5793,0.6002,0.6198,0.6398,0.6586,0.6781
+0.6980,0.7164,0.7344,0.7527,0.7705,0.7883,0.8056,0.8215,0.8379,0.8533
+0.8667,0.8792,0.8916,0.9023,0.9118,0.9202,0.9277,0.9343,0.9402,0.9457
+0.9504,0.9553,0.9593,0.9628,0.9662,0.9695,0.9726,0.9749,0.9772,0.9793
+0.9812,0.9829,0.9843,0.9856,0.9866,0.9877,0.9886,0.9892,0.9901,0.9909
+0.9918,0.9926,0.9931,0.9937,0.9942,0.9948,0.9953,0.9956,0.9959,0.9963
+0.9967,0.9970,0.9973,0.9976,0.9979,0.9981,0.9983,0.9985,0.9988,0.9989
+0.9992,0.9993,0.9995,0.9996,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1x2fract=0.0001,0.0002,0.0003,0.0004,0.0005,0.0006,0.0008,0.0010
+0.0014,0.0021,0.0030,0.0048,0.0076,0.0115,0.0181,0.0268,0.0392,0.0538
+0.0709,0.0892,0.1099,0.1316,0.1529,0.1747,0.1986,0.2219,0.2461,0.2701
+0.2940,0.3176,0.3408,0.3641,0.3867,0.4102,0.4321,0.4534,0.4751,0.4972
+0.5185,0.5396,0.5602,0.5811,0.6018,0.6220,0.6421,0.6618,0.6811,0.7004
+0.7201,0.7374,0.7557,0.7741,0.7920,0.8096,0.8257,0.8410,0.8555,0.8687
+0.8814,0.8922,0.9022,0.9112,0.9195,0.9272,0.9343,0.9401,0.9458,0.9509
+0.9562,0.9605,0.9647,0.9687,0.9723,0.9753,0.9782,0.9808,0.9832,0.9851
+0.9868,0.9883,0.9897,0.9909,0.9918,0.9925,0.9933,0.9940,0.9947,0.9953
+0.9957,0.9961,0.9966,0.9969,0.9973,0.9975,0.9978,0.9980,0.9982,0.9984
+0.9985,0.9986,0.9988,0.9989,0.9991,0.9992,0.9993,0.9995,0.9996,0.9996
+0.9996,0.9997,0.9998,0.9998,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x1fract=0.0001,0.0002,0.0004,0.0005,0.0008,0.0011,0.0014,0.0017
+0.0021,0.0027,0.0039,0.0056,0.0087,0.0134,0.0199,0.0292,0.0404,0.0540
+0.0693,0.0861,0.1044,0.1251,0.1462,0.1676,0.1901,0.2126,0.2355,0.2583
+0.2820,0.3055,0.3288,0.3512,0.3739,0.3968,0.4189,0.4421,0.4645,0.4869
+0.5086,0.5306,0.5519,0.5731,0.5943,0.6150,0.6355,0.6568,0.6766,0.6969
+0.7168,0.7364,0.7554,0.7741,0.7913,0.8092,0.8260,0.8419,0.8572,0.8718
+0.8844,0.8961,0.9064,0.9160,0.9248,0.9320,0.9383,0.9448,0.9502,0.9554
+0.9603,0.9646,0.9685,0.9721,0.9753,0.9782,0.9810,0.9835,0.9857,0.9874
+0.9889,0.9903,0.9913,0.9922,0.9931,0.9937,0.9943,0.9950,0.9955,0.9959
+0.9964,0.9967,0.9970,0.9973,0.9975,0.9977,0.9980,0.9983,0.9984,0.9986
+0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y1fract=0.0000,0.0000,0.0001,0.0002,0.0003,0.0004,0.0006,0.0008
+0.0010,0.0015,0.0020,0.0031,0.0045,0.0075,0.0130,0.0218,0.0330,0.0490
+0.0684,0.0901,0.1137,0.1389,0.1636,0.1900,0.2162,0.2419,0.2663,0.2913
+0.3145,0.3380,0.3606,0.3834,0.4056,0.4274,0.4494,0.4710,0.4920,0.5122
+0.5332,0.5541,0.5744,0.5947,0.6153,0.6358,0.6551,0.6758,0.6958,0.7153
+0.7342,0.7531,0.7709,0.7897,0.8071,0.8235,0.8391,0.8548,0.8692,0.8826
+0.8950,0.9068,0.9163,0.9250,0.9329,0.9404,0.9468,0.9523,0.9571,0.9612
+0.9655,0.9688,0.9718,0.9748,0.9774,0.9796,0.9816,0.9834,0.9852,0.9866
+0.9877,0.9888,0.9897,0.9908,0.9916,0.9924,0.9931,0.9937,0.9943,0.9947
+0.9951,0.9955,0.9959,0.9963,0.9967,0.9969,0.9973,0.9975,0.9978,0.9980
+0.9982,0.9984,0.9985,0.9987,0.9989,0.9990,0.9992,0.9993,0.9995,0.9996
+0.9997,0.9997,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0003,0.0004
+0.0005,0.0007,0.0010,0.0017,0.0034,0.0072,0.0145,0.0253,0.0416,0.0616
+0.0839,0.1082,0.1331,0.1596,0.1848,0.2100,0.2343,0.2581,0.2818,0.3059
+0.3288,0.3517,0.3739,0.3959,0.4173,0.4381,0.4589,0.4797,0.5011,0.5209
+0.5410,0.5613,0.5804,0.6000,0.6197,0.6390,0.6582,0.6776,0.6965,0.7146
+0.7326,0.7506,0.7689,0.7858,0.8030,0.8198,0.8362,0.8517,0.8655,0.8787
+0.8908,0.9016,0.9108,0.9192,0.9269,0.9328,0.9383,0.9430,0.9471,0.9509
+0.9546,0.9576,0.9609,0.9637,0.9664,0.9686,0.9705,0.9725,0.9743,0.9760
+0.9777,0.9791,0.9803,0.9818,0.9829,0.9839,0.9848,0.9857,0.9867,0.9876
+0.9884,0.9892,0.9898,0.9905,0.9912,0.9917,0.9922,0.9927,0.9932,0.9937
+0.9943,0.9946,0.9952,0.9956,0.9962,0.9966,0.9971,0.9975,0.9979,0.9984
+0.9988,0.9991,0.9994,0.9996,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2v1fract=0.0000,0.0001,0.0001,0.0002,0.0003,0.0004,0.0006,0.0008
+0.0010,0.0014,0.0020,0.0032,0.0058,0.0117,0.0214,0.0353,0.0527,0.0742
+0.0981,0.1231,0.1484,0.1741,0.1997,0.2245,0.2484,0.2721,0.2961,0.3203
+0.3434,0.3662,0.3882,0.4107,0.4324,0.4541,0.4747,0.4964,0.5164,0.5374
+0.5573,0.5776,0.5978,0.6180,0.6379,0.6570,0.6760,0.6950,0.7137,0.7319
+0.7496,0.7688,0.7859,0.8036,0.8207,0.8370,0.8522,0.8671,0.8811,0.8937
+0.9046,0.9153,0.9244,0.9318,0.9386,0.9445,0.9497,0.9542,0.9582,0.9619
+0.9654,0.9686,0.9713,0.9742,0.9768,0.9792,0.9813,0.9832,0.9848,0.9861
+0.9873,0.9884,0.9894,0.9903,0.9910,0.9918,0.9925,0.9931,0.9937,0.9942
+0.9946,0.9950,0.9954,0.9959,0.9962,0.9965,0.9969,0.9972,0.9975,0.9978
+0.9979,0.9981,0.9984,0.9985,0.9987,0.9989,0.9991,0.9992,0.9994,0.9996
+0.9997,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y2fract=0.0001,0.0002,0.0002,0.0004,0.0005,0.0006,0.0008,0.0010
+0.0013,0.0018,0.0026,0.0038,0.0057,0.0090,0.0144,0.0233,0.0363,0.0535
+0.0734,0.0953,0.1200,0.1454,0.1710,0.1972,0.2228,0.2471,0.2719,0.2963
+0.3199,0.3435,0.3670,0.3907,0.4132,0.4350,0.4566,0.4778,0.4991,0.5195
+0.5407,0.5610,0.5817,0.6024,0.6219,0.6426,0.6622,0.6820,0.7011,0.7203
+0.7384,0.7571,0.7749,0.7924,0.8098,0.8264,0.8431,0.8582,0.8723,0.8855
+0.8980,0.9089,0.9190,0.9278,0.9357,0.9428,0.9484,0.9534,0.9580,0.9622
+0.9660,0.9693,0.9722,0.9751,0.9775,0.9798,0.9821,0.9838,0.9854,0.9870
+0.9884,0.9893,0.9903,0.9912,0.9919,0.9924,0.9931,0.9937,0.9943,0.9948
+0.9951,0.9955,0.9959,0.9962,0.9965,0.9968,0.9971,0.9974,0.9977,0.9979
+0.9981,0.9983,0.9985,0.9987,0.9989,0.9991,0.9993,0.9994,0.9995,0.9996
+0.9997,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x2fract=0.0000,0.0002,0.0003,0.0003,0.0005,0.0008,0.0009,0.0012
+0.0015,0.0020,0.0025,0.0038,0.0059,0.0091,0.0140,0.0213,0.0307,0.0429
+0.0577,0.0743,0.0926,0.1127,0.1333,0.1554,0.1779,0.2009,0.2243,0.2474
+0.2710,0.2945,0.3191,0.3422,0.3648,0.3880,0.4103,0.4329,0.4554,0.4775
+0.5000,0.5212,0.5428,0.5635,0.5842,0.6048,0.6254,0.6451,0.6647,0.6845
+0.7044,0.7242,0.7431,0.7614,0.7797,0.7970,0.8145,0.8308,0.8463,0.8607
+0.8741,0.8864,0.8975,0.9073,0.9164,0.9247,0.9317,0.9386,0.9445,0.9501
+0.9556,0.9604,0.9647,0.9686,0.9722,0.9751,0.9781,0.9805,0.9829,0.9849
+0.9868,0.9884,0.9897,0.9908,0.9920,0.9930,0.9936,0.9942,0.9948,0.9954
+0.9959,0.9963,0.9968,0.9971,0.9974,0.9977,0.9979,0.9982,0.9984,0.9985
+0.9987,0.9988,0.9989,0.9991,0.9991,0.9993,0.9994,0.9994,0.9995,0.9996
+0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
diff --git a/examples/PARAM/hdriftmap.param.pre62690 b/examples/PARAM/hdriftmap.param.pre62690
new file mode 100644
index 0000000..12a3d95
--- /dev/null
+++ b/examples/PARAM/hdriftmap.param.pre62690
@@ -0,0 +1,175 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+hdriftbins=138
+;number of 1st bin in Meek's table in ns
+hdrift1stbin=-24
+;bin size in ns of Meek's table
+hdriftbinsz=2
+hwc1x1fract=0.0001,0.0003,0.0004,0.0005,0.0007,0.0010,0.0015,0.0017
+0.0020,0.0028,0.0040,0.0060,0.0086,0.0120,0.0167,0.0230,0.0320,0.0435
+0.0572,0.0735,0.0910,0.1100,0.1310,0.1525,0.1753,0.1981,0.2205,0.2424
+0.2659,0.2893,0.3122,0.3354,0.3590,0.3814,0.4039,0.4268,0.4485,0.4711
+0.4933,0.5149,0.5368,0.5585,0.5796,0.6001,0.6209,0.6421,0.6615,0.6809
+0.7003,0.7189,0.7380,0.7564,0.7742,0.7912,0.8084,0.8245,0.8394,0.8533
+0.8667,0.8793,0.8909,0.9017,0.9106,0.9193,0.9267,0.9336,0.9402,0.9462
+0.9516,0.9567,0.9618,0.9659,0.9700,0.9734,0.9764,0.9790,0.9818,0.9841
+0.9862,0.9881,0.9895,0.9909,0.9919,0.9928,0.9935,0.9942,0.9950,0.9955
+0.9960,0.9965,0.9968,0.9972,0.9975,0.9979,0.9981,0.9983,0.9985,0.9987
+0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y1fract=0.0001,0.0003,0.0004,0.0004,0.0006,0.0009,0.0011,0.0014
+0.0016,0.0022,0.0029,0.0039,0.0053,0.0075,0.0111,0.0170,0.0264,0.0398
+0.0568,0.0762,0.0985,0.1218,0.1462,0.1721,0.1973,0.2231,0.2478,0.2721
+0.2960,0.3194,0.3434,0.3661,0.3888,0.4108,0.4335,0.4557,0.4762,0.4967
+0.5182,0.5389,0.5586,0.5788,0.5983,0.6189,0.6385,0.6583,0.6776,0.6971
+0.7158,0.7347,0.7527,0.7709,0.7881,0.8054,0.8215,0.8375,0.8530,0.8668
+0.8801,0.8926,0.9040,0.9141,0.9223,0.9304,0.9372,0.9430,0.9480,0.9528
+0.9573,0.9614,0.9651,0.9682,0.9710,0.9740,0.9765,0.9788,0.9809,0.9825
+0.9843,0.9858,0.9872,0.9882,0.9892,0.9902,0.9912,0.9920,0.9926,0.9932
+0.9938,0.9944,0.9949,0.9954,0.9958,0.9962,0.9966,0.9970,0.9971,0.9975
+0.9978,0.9980,0.9981,0.9983,0.9986,0.9987,0.9988,0.9990,0.9992,0.9993
+0.9995,0.9996,0.9997,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0003,0.0004
+0.0005,0.0009,0.0018,0.0033,0.0055,0.0088,0.0137,0.0211,0.0312,0.0459
+0.0630,0.0831,0.1059,0.1286,0.1526,0.1763,0.2012,0.2254,0.2494,0.2727
+0.2963,0.3192,0.3417,0.3644,0.3865,0.4081,0.4299,0.4516,0.4728,0.4939
+0.5138,0.5345,0.5549,0.5754,0.5958,0.6163,0.6361,0.6558,0.6747,0.6941
+0.7128,0.7319,0.7505,0.7686,0.7861,0.8039,0.8210,0.8365,0.8509,0.8648
+0.8779,0.8898,0.9010,0.9105,0.9191,0.9264,0.9333,0.9391,0.9447,0.9497
+0.9538,0.9580,0.9618,0.9652,0.9684,0.9716,0.9745,0.9771,0.9792,0.9815
+0.9833,0.9850,0.9863,0.9875,0.9885,0.9894,0.9902,0.9912,0.9919,0.9927
+0.9933,0.9937,0.9942,0.9947,0.9951,0.9955,0.9960,0.9963,0.9967,0.9970
+0.9973,0.9976,0.9979,0.9981,0.9982,0.9985,0.9986,0.9989,0.9991,0.9992
+0.9993,0.9994,0.9995,0.9996,0.9997,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1v1fract=0.0000,0.0000,0.0001,0.0002,0.0002,0.0003,0.0004,0.0005
+0.0007,0.0008,0.0011,0.0017,0.0026,0.0041,0.0073,0.0133,0.0228,0.0352
+0.0516,0.0710,0.0925,0.1158,0.1398,0.1644,0.1883,0.2115,0.2352,0.2589
+0.2824,0.3050,0.3282,0.3501,0.3718,0.3932,0.4149,0.4369,0.4577,0.4784
+0.4996,0.5201,0.5410,0.5616,0.5814,0.6016,0.6211,0.6414,0.6602,0.6795
+0.6985,0.7170,0.7361,0.7550,0.7736,0.7914,0.8094,0.8265,0.8428,0.8581
+0.8725,0.8857,0.8973,0.9077,0.9174,0.9257,0.9326,0.9387,0.9437,0.9490
+0.9538,0.9577,0.9613,0.9650,0.9684,0.9716,0.9746,0.9771,0.9793,0.9815
+0.9833,0.9849,0.9863,0.9876,0.9887,0.9896,0.9906,0.9915,0.9921,0.9927
+0.9932,0.9938,0.9943,0.9947,0.9953,0.9956,0.9960,0.9964,0.9968,0.9971
+0.9973,0.9976,0.9979,0.9981,0.9982,0.9984,0.9986,0.9988,0.9990,0.9991
+0.9993,0.9995,0.9996,0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1y2fract=0.0000,0.0000,0.0001,0.0002,0.0003,0.0003,0.0005,0.0007
+0.0009,0.0011,0.0015,0.0020,0.0029,0.0045,0.0070,0.0112,0.0187,0.0294
+0.0438,0.0617,0.0826,0.1041,0.1281,0.1527,0.1771,0.2018,0.2262,0.2507
+0.2752,0.2982,0.3214,0.3442,0.3669,0.3896,0.4112,0.4327,0.4554,0.4767
+0.4978,0.5184,0.5388,0.5597,0.5793,0.6002,0.6198,0.6398,0.6586,0.6781
+0.6980,0.7164,0.7344,0.7527,0.7705,0.7883,0.8056,0.8215,0.8379,0.8533
+0.8667,0.8792,0.8916,0.9023,0.9118,0.9202,0.9277,0.9343,0.9402,0.9457
+0.9504,0.9553,0.9593,0.9628,0.9662,0.9695,0.9726,0.9749,0.9772,0.9793
+0.9812,0.9829,0.9843,0.9856,0.9866,0.9877,0.9886,0.9892,0.9901,0.9909
+0.9918,0.9926,0.9931,0.9937,0.9942,0.9948,0.9953,0.9956,0.9959,0.9963
+0.9967,0.9970,0.9973,0.9976,0.9979,0.9981,0.9983,0.9985,0.9988,0.9989
+0.9992,0.9993,0.9995,0.9996,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc1x2fract=0.0001,0.0002,0.0003,0.0004,0.0005,0.0006,0.0008,0.0010
+0.0014,0.0021,0.0030,0.0048,0.0076,0.0115,0.0181,0.0268,0.0392,0.0538
+0.0709,0.0892,0.1099,0.1316,0.1529,0.1747,0.1986,0.2219,0.2461,0.2701
+0.2940,0.3176,0.3408,0.3641,0.3867,0.4102,0.4321,0.4534,0.4751,0.4972
+0.5185,0.5396,0.5602,0.5811,0.6018,0.6220,0.6421,0.6618,0.6811,0.7004
+0.7201,0.7374,0.7557,0.7741,0.7920,0.8096,0.8257,0.8410,0.8555,0.8687
+0.8814,0.8922,0.9022,0.9112,0.9195,0.9272,0.9343,0.9401,0.9458,0.9509
+0.9562,0.9605,0.9647,0.9687,0.9723,0.9753,0.9782,0.9808,0.9832,0.9851
+0.9868,0.9883,0.9897,0.9909,0.9918,0.9925,0.9933,0.9940,0.9947,0.9953
+0.9957,0.9961,0.9966,0.9969,0.9973,0.9975,0.9978,0.9980,0.9982,0.9984
+0.9985,0.9986,0.9988,0.9989,0.9991,0.9992,0.9993,0.9995,0.9996,0.9996
+0.9996,0.9997,0.9998,0.9998,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x1fract=0.0001,0.0002,0.0004,0.0005,0.0008,0.0011,0.0014,0.0017
+0.0021,0.0027,0.0039,0.0056,0.0087,0.0134,0.0199,0.0292,0.0404,0.0540
+0.0693,0.0861,0.1044,0.1251,0.1462,0.1676,0.1901,0.2126,0.2355,0.2583
+0.2820,0.3055,0.3288,0.3512,0.3739,0.3968,0.4189,0.4421,0.4645,0.4869
+0.5086,0.5306,0.5519,0.5731,0.5943,0.6150,0.6355,0.6568,0.6766,0.6969
+0.7168,0.7364,0.7554,0.7741,0.7913,0.8092,0.8260,0.8419,0.8572,0.8718
+0.8844,0.8961,0.9064,0.9160,0.9248,0.9320,0.9383,0.9448,0.9502,0.9554
+0.9603,0.9646,0.9685,0.9721,0.9753,0.9782,0.9810,0.9835,0.9857,0.9874
+0.9889,0.9903,0.9913,0.9922,0.9931,0.9937,0.9943,0.9950,0.9955,0.9959
+0.9964,0.9967,0.9970,0.9973,0.9975,0.9977,0.9980,0.9983,0.9984,0.9986
+0.9988,0.9989,0.9991,0.9992,0.9993,0.9994,0.9995,0.9996,0.9997,0.9997
+0.9998,0.9998,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y1fract=0.0000,0.0000,0.0001,0.0002,0.0003,0.0004,0.0006,0.0008
+0.0010,0.0015,0.0020,0.0031,0.0045,0.0075,0.0130,0.0218,0.0330,0.0490
+0.0684,0.0901,0.1137,0.1389,0.1636,0.1900,0.2162,0.2419,0.2663,0.2913
+0.3145,0.3380,0.3606,0.3834,0.4056,0.4274,0.4494,0.4710,0.4920,0.5122
+0.5332,0.5541,0.5744,0.5947,0.6153,0.6358,0.6551,0.6758,0.6958,0.7153
+0.7342,0.7531,0.7709,0.7897,0.8071,0.8235,0.8391,0.8548,0.8692,0.8826
+0.8950,0.9068,0.9163,0.9250,0.9329,0.9404,0.9468,0.9523,0.9571,0.9612
+0.9655,0.9688,0.9718,0.9748,0.9774,0.9796,0.9816,0.9834,0.9852,0.9866
+0.9877,0.9888,0.9897,0.9908,0.9916,0.9924,0.9931,0.9937,0.9943,0.9947
+0.9951,0.9955,0.9959,0.9963,0.9967,0.9969,0.9973,0.9975,0.9978,0.9980
+0.9982,0.9984,0.9985,0.9987,0.9989,0.9990,0.9992,0.9993,0.9995,0.9996
+0.9997,0.9997,0.9998,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0003,0.0004
+0.0005,0.0007,0.0010,0.0017,0.0034,0.0072,0.0145,0.0253,0.0416,0.0616
+0.0839,0.1082,0.1331,0.1596,0.1848,0.2100,0.2343,0.2581,0.2818,0.3059
+0.3288,0.3517,0.3739,0.3959,0.4173,0.4381,0.4589,0.4797,0.5011,0.5209
+0.5410,0.5613,0.5804,0.6000,0.6197,0.6390,0.6582,0.6776,0.6965,0.7146
+0.7326,0.7506,0.7689,0.7858,0.8030,0.8198,0.8362,0.8517,0.8655,0.8787
+0.8908,0.9016,0.9108,0.9192,0.9269,0.9328,0.9383,0.9430,0.9471,0.9509
+0.9546,0.9576,0.9609,0.9637,0.9664,0.9686,0.9705,0.9725,0.9743,0.9760
+0.9777,0.9791,0.9803,0.9818,0.9829,0.9839,0.9848,0.9857,0.9867,0.9876
+0.9884,0.9892,0.9898,0.9905,0.9912,0.9917,0.9922,0.9927,0.9932,0.9937
+0.9943,0.9946,0.9952,0.9956,0.9962,0.9966,0.9971,0.9975,0.9979,0.9984
+0.9988,0.9991,0.9994,0.9996,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2v1fract=0.0000,0.0001,0.0001,0.0002,0.0003,0.0004,0.0006,0.0008
+0.0010,0.0014,0.0020,0.0032,0.0058,0.0117,0.0214,0.0353,0.0527,0.0742
+0.0981,0.1231,0.1484,0.1741,0.1997,0.2245,0.2484,0.2721,0.2961,0.3203
+0.3434,0.3662,0.3882,0.4107,0.4324,0.4541,0.4747,0.4964,0.5164,0.5374
+0.5573,0.5776,0.5978,0.6180,0.6379,0.6570,0.6760,0.6950,0.7137,0.7319
+0.7496,0.7688,0.7859,0.8036,0.8207,0.8370,0.8522,0.8671,0.8811,0.8937
+0.9046,0.9153,0.9244,0.9318,0.9386,0.9445,0.9497,0.9542,0.9582,0.9619
+0.9654,0.9686,0.9713,0.9742,0.9768,0.9792,0.9813,0.9832,0.9848,0.9861
+0.9873,0.9884,0.9894,0.9903,0.9910,0.9918,0.9925,0.9931,0.9937,0.9942
+0.9946,0.9950,0.9954,0.9959,0.9962,0.9965,0.9969,0.9972,0.9975,0.9978
+0.9979,0.9981,0.9984,0.9985,0.9987,0.9989,0.9991,0.9992,0.9994,0.9996
+0.9997,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2y2fract=0.0001,0.0002,0.0002,0.0004,0.0005,0.0006,0.0008,0.0010
+0.0013,0.0018,0.0026,0.0038,0.0057,0.0090,0.0144,0.0233,0.0363,0.0535
+0.0734,0.0953,0.1200,0.1454,0.1710,0.1972,0.2228,0.2471,0.2719,0.2963
+0.3199,0.3435,0.3670,0.3907,0.4132,0.4350,0.4566,0.4778,0.4991,0.5195
+0.5407,0.5610,0.5817,0.6024,0.6219,0.6426,0.6622,0.6820,0.7011,0.7203
+0.7384,0.7571,0.7749,0.7924,0.8098,0.8264,0.8431,0.8582,0.8723,0.8855
+0.8980,0.9089,0.9190,0.9278,0.9357,0.9428,0.9484,0.9534,0.9580,0.9622
+0.9660,0.9693,0.9722,0.9751,0.9775,0.9798,0.9821,0.9838,0.9854,0.9870
+0.9884,0.9893,0.9903,0.9912,0.9919,0.9924,0.9931,0.9937,0.9943,0.9948
+0.9951,0.9955,0.9959,0.9962,0.9965,0.9968,0.9971,0.9974,0.9977,0.9979
+0.9981,0.9983,0.9985,0.9987,0.9989,0.9991,0.9993,0.9994,0.9995,0.9996
+0.9997,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+hwc2x2fract=0.0000,0.0002,0.0003,0.0003,0.0005,0.0008,0.0009,0.0012
+0.0015,0.0020,0.0025,0.0038,0.0059,0.0091,0.0140,0.0213,0.0307,0.0429
+0.0577,0.0743,0.0926,0.1127,0.1333,0.1554,0.1779,0.2009,0.2243,0.2474
+0.2710,0.2945,0.3191,0.3422,0.3648,0.3880,0.4103,0.4329,0.4554,0.4775
+0.5000,0.5212,0.5428,0.5635,0.5842,0.6048,0.6254,0.6451,0.6647,0.6845
+0.7044,0.7242,0.7431,0.7614,0.7797,0.7970,0.8145,0.8308,0.8463,0.8607
+0.8741,0.8864,0.8975,0.9073,0.9164,0.9247,0.9317,0.9386,0.9445,0.9501
+0.9556,0.9604,0.9647,0.9686,0.9722,0.9751,0.9781,0.9805,0.9829,0.9849
+0.9868,0.9884,0.9897,0.9908,0.9920,0.9930,0.9936,0.9942,0.9948,0.9954
+0.9959,0.9963,0.9968,0.9971,0.9974,0.9977,0.9979,0.9982,0.9984,0.9985
+0.9987,0.9988,0.9989,0.9991,0.9991,0.9993,0.9994,0.9994,0.9995,0.9996
+0.9997,0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
diff --git a/examples/PARAM/hhodo.param b/examples/PARAM/hhodo.param
new file mode 100644
index 0000000..8a4ba60
--- /dev/null
+++ b/examples/PARAM/hhodo.param
@@ -0,0 +1,331 @@
+; hstart_time_center  center of allowed time window                             
+   hstart_time_center = 35.                                                     
+; hstart_time_slop    1/2 width of time window                                  
+   hstart_time_slop = 20.                                                       
+; hscin_tdc_min       minimum tdc value in hms scin                             
+    hscin_tdc_min = 0                                                           
+; hscin_tdc_max       maximum allowed tdc value                                 
+   hscin_tdc_max = 4000                                                         
+; hscin_tdc_to_time   scin tdc time per channel                                 
+   hscin_tdc_to_time = 0.0259                                                   
+; new variable for picking good hits for tof fitting
+; this should not be set tight until you are ready to fit
+; tof and you figured out good values
+htof_tolerance = 50.0
+;                                                                               
+; hms_tof_params                                                                
+; hnum_scin_counters, hhodo_zpos, hhodo_center_coord, hhodo_width               
+; are all calculated within h_init_scin                                         
+;    hhodo_pos_coord and hhodo_neg_coord are not yet used                       
+;                                                                               
+     hhodo_slop     =    2.,  2.,  4.,  4.                                      
+;                                                                               
+     hhodo_vel_light =  14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+;                                                                               
+      hhodo_pos_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+;                                                                               
+      hhodo_neg_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                                                                                
+  hhodo_pos_minph = 125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                                                                                
+  hhodo_neg_minph = 125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                                                                                
+  hhodo_pos_phc_coeff = -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                                                                                
+  hhodo_neg_phc_coeff = -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+;                                                                               
+                                                                                
+; csa 9/8/98 -- I had to hand-twaddle a few of the values                       
+; based on (relative) offsets of older hhodo.param                              
+                                                                                
+hhodo_pos_time_offset =   5.5391,   0.0000,  -6.8586,   5.1830
+                         -1.2985,  -0.2551,   0.3953,   8.9369
+                          5.0531,   1.4333,  -6.5520,   8.0628
+                          5.5481,  -0.3965,  -3.6470,  12.8933
+                          1.2416,  -7.0707,   9.6246,  10.0208
+                          1.9282,  -0.9275,  -4.1448,   8.2112
+                          6.4910,  -1.5780,   1.8980,   9.6928
+                          4.4770,   1.7009,  -3.8385,   4.7545
+                          2.7533,  -2.7182,  -5.8864,   6.3882
+                          4.3398,   6.1158,  -0.3572,  -0.4308
+                          6.0782,   0.0000,  -7.5343,   0.0000
+                          5.4665,   0.0000,   0.2169,   0.0000
+                          4.1334,   0.0000,   1.3767,   0.0000
+                          1.6088,   0.0000,   2.5930,   0.0000
+                          3.9776,   0.0000,  -5.0340,   0.0000
+                          1.6534,   0.0000,   1.5043,   0.0000
+hhodo_neg_time_offset =  -2.5728,   0.0000,   2.8982,  10.8670
+                         -1.9187,  -2.6479,  10.6272,  13.8790
+                         -4.1126,  -4.5084,   3.9705,  15.5799
+                          0.7699,  -2.3908,  11.7183,  15.1612
+                         -1.2568,  -5.0343,   2.9473,  10.6625
+                         -2.8197,   0.7670,  10.3919,   7.8739
+                          1.2798,  -3.9185,   4.3248,  11.3533
+                         -4.8009,  -0.2453,   9.2837,  11.6355
+                         -6.3004,  -5.7362,   0.8352,  14.9451
+                          1.8476,   6.1209,  11.9751,  15.7375
+                          0.3913,   0.0000,   8.9105,   0.0000
+                         -1.0702,   0.0000,   9.8926,   0.0000
+                         -2.3617,   0.0000,   5.7061,   0.0000
+                         -5.2931,   0.0000,  10.7318,   0.0000
+                          0.0632,   0.0000,   6.6962,   0.0000
+                          6.7208,   0.0000,  13.4108,   0.0000
+;                                                                               
+hhodo_pos_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+;                                                                               
+hhodo_neg_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                                                                                
+
+; use htofusinginvadc=1 if want invadc_offset
+;  invadc_linear, and invadc_adc to be used
+htofusinginvadc=1
+
+hhodo_pos_invadc_offset =    0.00,    0.00,   -7.49,    0.00
+                             0.00,   -3.93,   -1.33,    6.35
+                            -0.47,   -1.79,   -7.92,    6.66
+                             0.00,   -4.16,   -4.32,   12.41
+                            -2.45,  -11.48,    7.19,    8.60
+                            -3.15,   -5.26,   -7.87,    6.71
+                             0.12,   -4.60,    0.52,    8.19
+                             0.31,   -2.00,   -6.07,    2.60
+                            -0.42,   -6.96,   -7.81,    4.97
+                            -0.20,    0.00,   -2.55,   -2.16
+                             3.25,    0.00,   -8.85,    0.00
+                             1.87,    0.00,   -0.90,    0.00
+                             1.94,    0.00,   -1.99,    0.00
+                            -1.21,    0.00,   -0.05,    0.00
+                             1.04,    0.00,   -7.11,    0.00
+                             0.00,    0.00,   -1.28,    0.00
+
+hhodo_neg_invadc_offset =    0.00,    0.00,    1.67,    0.00
+                             0.00,   -5.88,    7.56,   12.30
+                            -8.70,   -7.99,    0.63,   14.36
+                            -5.30,   -4.44,    9.37,   14.26
+                             0.00,   -7.69,   -0.54,    8.18
+                            -7.53,   -3.52,    7.15,    6.37
+                            -3.20,   -7.19,    1.92,   10.54
+                            -9.90,   -4.18,    6.87,   10.58
+                           -10.88,   -8.58,   -4.40,   13.19
+                            -3.01,    0.00,    8.71,   13.54
+                             0.00,    0.00,    4.16,    0.00
+                            -4.13,    0.00,    6.77,    0.00
+                            -6.39,    0.00,    0.17,    0.00
+                            -9.79,    0.00,    7.54,    0.00
+                            -2.58,    0.00,    3.80,    0.00
+                             0.00,    0.00,    9.24,    0.00
+
+hhodo_pos_invadc_linear =   50.00,   50.00,   11.50,   50.00
+                            50.00,   18.94,   12.81,   13.47
+                            22.77,   23.66,   14.93,   12.48
+                            23.58,   19.67,   12.48,   12.93
+                            23.80,   17.41,   12.29,   13.27
+                            18.94,   16.86,   12.30,   12.90
+                            16.36,   17.34,   12.90,   12.89
+                            21.51,   18.59,   12.53,   12.96
+                            21.60,   19.59,   12.32,   11.96
+                            25.50,   50.00,   11.03,   12.79
+                            21.96,   50.00,   12.97,   50.00
+                            21.24,   50.00,   12.79,   50.00
+                            17.47,   50.00,   13.30,   50.00
+                            26.96,   50.00,   13.50,   50.00
+                            25.52,   50.00,   10.38,   50.00
+                            50.00,   50.00,   14.46,   50.00
+
+hhodo_neg_invadc_linear =   50.00,   50.00,   11.14,   50.00
+                            50.00,   17.27,   10.86,   12.76
+                            50.00,   22.41,   11.26,   13.29
+                            25.36,   19.67,   11.51,   14.51
+                            50.00,   19.45,   11.61,   14.45
+                            19.71,   18.87,   12.36,   13.71
+                            19.42,   20.67,   12.17,   13.20
+                            18.43,   20.06,   11.27,   13.25
+                            22.83,   19.98,   11.90,   13.67
+                            20.53,   50.00,   12.04,   12.87
+                            50.00,   50.00,   11.57,   50.00
+                            18.65,   50.00,   11.55,   50.00
+                            15.89,   50.00,   11.74,   50.00
+                            16.43,   50.00,   11.24,   50.00
+                            26.89,   50.00,   11.54,   50.00
+                            50.00,   50.00,   10.51,   50.00
+
+hhodo_pos_invadc_adc=     0.00,     0.00,    24.53,     0.00
+                         0.00,    85.08,    40.16,    46.66
+                       104.72,    90.39,    48.39,    40.45
+                       106.71,    85.39,    36.54,    46.52
+                       102.33,    83.78,    45.62,    53.38
+                        87.77,    83.84,    46.17,    53.00
+                        81.99,    82.46,    48.60,    50.98
+                        86.41,    76.63,    45.65,    52.67
+                        87.76,    90.85,    40.94,    50.32
+                        85.80,     0.00,    51.78,    48.81
+                        85.87,     0.00,    47.95,     0.00
+                        78.65,     0.00,    41.18,     0.00
+                        77.68,     0.00,    54.79,     0.00
+                        79.78,     0.00,    54.50,     0.00
+                        75.92,     0.00,    48.77,     0.00
+                         0.00,     0.00,    55.47,     0.00
+
+hhodo_neg_invadc_adc=     0.00,     0.00,    33.27,     0.00
+                         0.00,    50.89,    42.04,    37.63
+                       101.25,    63.66,    42.24,    41.36
+                       104.68,    59.98,    37.01,    52.51
+                         0.00,    59.89,    42.76,    50.01
+                        86.99,    58.09,    45.30,    51.38
+                        77.55,    56.32,    46.12,    40.46
+                        88.04,    53.33,    44.65,    36.37
+                        91.58,    56.67,    57.89,    44.34
+                        85.51,     0.00,    46.84,    39.22
+                         0.00,     0.00,    43.95,     0.00
+                        83.61,     0.00,    46.80,     0.00
+                        92.40,     0.00,    40.71,     0.00
+                        78.19,     0.00,    51.72,     0.00
+                        75.03,     0.00,    49.34,     0.00
+                         0.00,     0.00,    53.40,     0.00
+
+hhodo_pos_sigma =  100.00,  100.00,    0.92,  100.00
+                   100.00,    0.55,    0.85,    0.80
+                     0.79,    0.58,    0.80,    0.75
+                     0.68,    0.58,    0.65,    0.79
+                     0.73,    0.58,    0.66,    0.79
+                     0.59,    0.58,    0.65,    0.74
+                     0.59,    0.58,    0.53,    0.76
+                     0.61,    0.57,    0.67,    0.80
+                     0.57,    0.59,    0.64,    0.81
+                     0.61,  100.00,    0.64,    0.76
+                     0.67,  100.00,    0.67,  100.00
+                     0.52,  100.00,    0.61,  100.00
+                     0.56,  100.00,    0.62,  100.00
+                     0.61,  100.00,    0.71,  100.00
+                     0.70,  100.00,    0.74,  100.00
+                   100.00,  100.00,    0.66,  100.00
+
+hhodo_neg_sigma =  100.00,  100.00,    0.92,  100.00
+                   100.00,    0.58,    0.82,    0.80
+                     0.74,    0.57,    0.81,    0.81
+                     0.68,    0.58,    0.72,    0.81
+                   100.00,    0.56,    0.68,    0.88
+                     0.61,    0.54,    0.61,    0.76
+                     0.53,    0.55,    0.53,    0.73
+                     0.58,    0.55,    0.65,    0.80
+                     0.61,    0.56,    0.71,    0.87
+                     0.59,  100.00,    0.69,    0.88
+                   100.00,  100.00,    0.65,  100.00
+                     0.57,  100.00,    0.62,  100.00
+                     0.58,  100.00,    0.57,  100.00
+                     0.59,  100.00,    0.64,  100.00
+                     0.57,  100.00,    0.84,  100.00
+                   100.00,  100.00,    0.73,  100.00
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/PARAM/hhodo.param.may9 b/examples/PARAM/hhodo.param.may9
new file mode 100644
index 0000000..ea3ad7a
--- /dev/null
+++ b/examples/PARAM/hhodo.param.may9
@@ -0,0 +1,176 @@
+; hstart_time_center  center of allowed time window                             
+   hstart_time_center = 35.                                                     
+; hstart_time_slop    1/2 width of time window                                  
+   hstart_time_slop = 20.                                                       
+; hscin_tdc_min       minimum tdc value in hms scin                             
+    hscin_tdc_min = 0                                                           
+; hscin_tdc_max       maximum allowed tdc value                                 
+   hscin_tdc_max = 4000                                                         
+; hscin_tdc_to_time   scin tdc time per channel                                 
+   hscin_tdc_to_time = 0.0259                                                   
+;                                                                               
+; hms_tof_params                                                                
+; hnum_scin_counters, hhodo_zpos, hhodo_center_coord, hhodo_width               
+; are all calculated within h_init_scin                                         
+;    hhodo_pos_coord and hhodo_neg_coord are not yet used                       
+;                                                                               
+     hhodo_slop     =    2.,  2.,  4.,  4.                                      
+;                                                                               
+     hhodo_vel_light =  14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+;                                                                               
+      hhodo_pos_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+;                                                                               
+      hhodo_neg_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                                                                                
+  hhodo_pos_minph = 125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                                                                                
+  hhodo_neg_minph = 125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                                                                                
+  hhodo_pos_phc_coeff = -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                                                                                
+  hhodo_neg_phc_coeff = -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+;                                                                               
+                                                                                
+; csa 9/8/98 -- I had to hand-twaddle a few of the values                       
+; based on (relative) offsets of older hhodo.param                              
+                                                                                
+hhodo_pos_time_offset =   5.5391,   0.0000,  -6.8586,   5.1830
+                         -1.2985,  -0.2551,   0.3953,   8.9369
+                          5.0531,   1.4333,  -6.5520,   8.0628
+                          5.5481,  -0.3965,  -3.6470,  12.8933
+                          1.2416,  -7.0707,   9.6246,  10.0208
+                          1.9282,  -0.9275,  -4.1448,   8.2112
+                          6.4910,  -1.5780,   1.8980,   9.6928
+                          4.4770,   1.7009,  -3.8385,   4.7545
+                          2.7533,  -2.7182,  -5.8864,   6.3882
+                          4.3398,   6.1158,  -0.3572,  -0.4308
+                          6.0782,   0.0000,  -7.5343,   0.0000
+                          5.4665,   0.0000,   0.2169,   0.0000
+                          4.1334,   0.0000,   1.3767,   0.0000
+                          1.6088,   0.0000,   2.5930,   0.0000
+                          3.9776,   0.0000,  -5.0340,   0.0000
+                          1.6534,   0.0000,   1.5043,   0.0000
+hhodo_neg_time_offset =  -2.5728,   0.0000,   2.8982,  10.8670
+                         -1.9187,  -2.6479,  10.6272,  13.8790
+                         -4.1126,  -4.5084,   3.9705,  15.5799
+                          0.7699,  -2.3908,  11.7183,  15.1612
+                         -1.2568,  -5.0343,   2.9473,  10.6625
+                         -2.8197,   0.7670,  10.3919,   7.8739
+                          1.2798,  -3.9185,   4.3248,  11.3533
+                         -4.8009,  -0.2453,   9.2837,  11.6355
+                         -6.3004,  -5.7362,   0.8352,  14.9451
+                          1.8476,   6.1209,  11.9751,  15.7375
+                          0.3913,   0.0000,   8.9105,   0.0000
+                         -1.0702,   0.0000,   9.8926,   0.0000
+                         -2.3617,   0.0000,   5.7061,   0.0000
+                         -5.2931,   0.0000,  10.7318,   0.0000
+                          0.0632,   0.0000,   6.6962,   0.0000
+                          6.7208,   0.0000,  13.4108,   0.0000
+;                                                                               
+hhodo_pos_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+;                                                                               
+hhodo_neg_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                                                                                
diff --git a/examples/PARAM/hhodo.param_v1 b/examples/PARAM/hhodo.param_v1
new file mode 100644
index 0000000..80d5863
--- /dev/null
+++ b/examples/PARAM/hhodo.param_v1
@@ -0,0 +1,472 @@
+; hstart_time_center  center of allowed time window                             
+   hstart_time_center = 35.                                                     
+; hstart_time_slop    1/2 width of time window                                  
+   hstart_time_slop = 20.                                                       
+; hscin_tdc_min       minimum tdc value in hms scin                             
+    hscin_tdc_min = 0                                                           
+; hscin_tdc_max       maximum allowed tdc value                                 
+   hscin_tdc_max = 4000                                                         
+; hscin_tdc_to_time   scin tdc time per channel                                 
+   hscin_tdc_to_time = 0.0259                                                   
+; new variable for picking good hits for tof fitting
+; this should not be set tight until you are ready to fit
+; tof and you figured out good values
+htof_tolerance = 50.0
+;                                                                               
+; hms_tof_params                                                                
+; hnum_scin_counters, hhodo_zpos, hhodo_center_coord, hhodo_width               
+; are all calculated within h_init_scin                                         
+;    hhodo_pos_coord and hhodo_neg_coord are not yet used                       
+;                                                                               
+     hhodo_slop     =    2.,  2.,  4.,  4.                                      
+;                                                                               
+     hhodo_vel_light =  14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+                        14.0,14.8,15.5,15.8                                     
+;                                                                               
+      hhodo_pos_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+;                                                                               
+      hhodo_neg_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                                                                                
+  hhodo_pos_minph = 125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                                                                                
+  hhodo_neg_minph = 125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                    125,135,125,120                                             
+                                                                                
+  hhodo_pos_phc_coeff = -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                        -1.4,-1.1,-1.2,-1.3                                     
+                                                                                
+  hhodo_neg_phc_coeff = -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+                        -1.3,-1.2,-1.2,-1.4                                     
+;                                                                               
+                                                                                
+; csa 9/8/98 -- I had to hand-twaddle a few of the values                       
+; based on (relative) offsets of older hhodo.param                              
+                                                                                
+hhodo_pos_time_offset =   5.5391,   0.0000,  -6.8586,   5.1830
+                         -1.2985,  -0.2551,   0.3953,   8.9369
+                          5.0531,   1.4333,  -6.5520,   8.0628
+                          5.5481,  -0.3965,  -3.6470,  12.8933
+                          1.2416,  -7.0707,   9.6246,  10.0208
+                          1.9282,  -0.9275,  -4.1448,   8.2112
+                          6.4910,  -1.5780,   1.8980,   9.6928
+                          4.4770,   1.7009,  -3.8385,   4.7545
+                          2.7533,  -2.7182,  -5.8864,   6.3882
+                          4.3398,   6.1158,  -0.3572,  -0.4308
+                          6.0782,   0.0000,  -7.5343,   0.0000
+                          5.4665,   0.0000,   0.2169,   0.0000
+                          4.1334,   0.0000,   1.3767,   0.0000
+                          1.6088,   0.0000,   2.5930,   0.0000
+                          3.9776,   0.0000,  -5.0340,   0.0000
+                          1.6534,   0.0000,   1.5043,   0.0000
+hhodo_neg_time_offset =  -2.5728,   0.0000,   2.8982,  10.8670
+                         -1.9187,  -2.6479,  10.6272,  13.8790
+                         -4.1126,  -4.5084,   3.9705,  15.5799
+                          0.7699,  -2.3908,  11.7183,  15.1612
+                         -1.2568,  -5.0343,   2.9473,  10.6625
+                         -2.8197,   0.7670,  10.3919,   7.8739
+                          1.2798,  -3.9185,   4.3248,  11.3533
+                         -4.8009,  -0.2453,   9.2837,  11.6355
+                         -6.3004,  -5.7362,   0.8352,  14.9451
+                          1.8476,   6.1209,  11.9751,  15.7375
+                          0.3913,   0.0000,   8.9105,   0.0000
+                         -1.0702,   0.0000,   9.8926,   0.0000
+                         -2.3617,   0.0000,   5.7061,   0.0000
+                         -5.2931,   0.0000,  10.7318,   0.0000
+                          0.0632,   0.0000,   6.6962,   0.0000
+                          6.7208,   0.0000,  13.4108,   0.0000
+;                                                                               
+hhodo_pos_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+;                                                                               
+hhodo_neg_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                      1000,1000,1000,1000,1000,1000,1000,1000                   
+                                                                                
+
+; use htofusinginvadc=1 if want invadc_offset
+;  invadc_linear, and invadc_adc to be used
+htofusinginvadc=1
+
+hhodo_pos_invadc_offset =    0.00,    0.00,   -7.49,    0.00
+                             0.00,   -3.93,   -1.33,    6.35
+                            -0.47,   -1.79,   -7.92,    6.66
+                             0.00,   -4.16,   -4.32,   12.41
+                            -2.45,  -11.48,    7.19,    8.60
+                            -3.15,   -5.26,   -7.87,    6.71
+                             0.12,   -4.60,    0.52,    8.19
+                             0.31,   -2.00,   -6.07,    2.60
+                            -0.42,   -6.96,   -7.81,    4.97
+                            -0.20,    0.00,   -2.55,   -2.16
+                             3.25,    0.00,   -8.85,    0.00
+                             1.87,    0.00,   -0.90,    0.00
+                             1.94,    0.00,   -1.99,    0.00
+                            -1.21,    0.00,   -0.05,    0.00
+                             1.04,    0.00,   -7.11,    0.00
+                             0.00,    0.00,   -1.28,    0.00
+
+hhodo_neg_invadc_offset =    0.00,    0.00,    1.67,    0.00
+                             0.00,   -5.88,    7.56,   12.30
+                            -8.70,   -7.99,    0.63,   14.36
+                            -5.30,   -4.44,    9.37,   14.26
+                             0.00,   -7.69,   -0.54,    8.18
+                            -7.53,   -3.52,    7.15,    6.37
+                            -3.20,   -7.19,    1.92,   10.54
+                            -9.90,   -4.18,    6.87,   10.58
+                           -10.88,   -8.58,   -4.40,   13.19
+                            -3.01,    0.00,    8.71,   13.54
+                             0.00,    0.00,    4.16,    0.00
+                            -4.13,    0.00,    6.77,    0.00
+                            -6.39,    0.00,    0.17,    0.00
+                            -9.79,    0.00,    7.54,    0.00
+                            -2.58,    0.00,    3.80,    0.00
+                             0.00,    0.00,    9.24,    0.00
+
+hhodo_pos_invadc_linear =   50.00,   50.00,   11.50,   50.00
+                            50.00,   18.94,   12.81,   13.47
+                            22.77,   23.66,   14.93,   12.48
+                            23.58,   19.67,   12.48,   12.93
+                            23.80,   17.41,   12.29,   13.27
+                            18.94,   16.86,   12.30,   12.90
+                            16.36,   17.34,   12.90,   12.89
+                            21.51,   18.59,   12.53,   12.96
+                            21.60,   19.59,   12.32,   11.96
+                            25.50,   50.00,   11.03,   12.79
+                            21.96,   50.00,   12.97,   50.00
+                            21.24,   50.00,   12.79,   50.00
+                            17.47,   50.00,   13.30,   50.00
+                            26.96,   50.00,   13.50,   50.00
+                            25.52,   50.00,   10.38,   50.00
+                            50.00,   50.00,   14.46,   50.00
+
+hhodo_neg_invadc_linear =   50.00,   50.00,   11.14,   50.00
+                            50.00,   17.27,   10.86,   12.76
+                            50.00,   22.41,   11.26,   13.29
+                            25.36,   19.67,   11.51,   14.51
+                            50.00,   19.45,   11.61,   14.45
+                            19.71,   18.87,   12.36,   13.71
+                            19.42,   20.67,   12.17,   13.20
+                            18.43,   20.06,   11.27,   13.25
+                            22.83,   19.98,   11.90,   13.67
+                            20.53,   50.00,   12.04,   12.87
+                            50.00,   50.00,   11.57,   50.00
+                            18.65,   50.00,   11.55,   50.00
+                            15.89,   50.00,   11.74,   50.00
+                            16.43,   50.00,   11.24,   50.00
+                            26.89,   50.00,   11.54,   50.00
+                            50.00,   50.00,   10.51,   50.00
+
+hhodo_pos_invadc_adc=     0.00,     0.00,    24.53,     0.00
+                         0.00,    85.08,    40.16,    46.66
+                       104.72,    90.39,    48.39,    40.45
+                       106.71,    85.39,    36.54,    46.52
+                       102.33,    83.78,    45.62,    53.38
+                        87.77,    83.84,    46.17,    53.00
+                        81.99,    82.46,    48.60,    50.98
+                        86.41,    76.63,    45.65,    52.67
+                        87.76,    90.85,    40.94,    50.32
+                        85.80,     0.00,    51.78,    48.81
+                        85.87,     0.00,    47.95,     0.00
+                        78.65,     0.00,    41.18,     0.00
+                        77.68,     0.00,    54.79,     0.00
+                        79.78,     0.00,    54.50,     0.00
+                        75.92,     0.00,    48.77,     0.00
+                         0.00,     0.00,    55.47,     0.00
+
+hhodo_neg_invadc_adc=     0.00,     0.00,    33.27,     0.00
+                         0.00,    50.89,    42.04,    37.63
+                       101.25,    63.66,    42.24,    41.36
+                       104.68,    59.98,    37.01,    52.51
+                         0.00,    59.89,    42.76,    50.01
+                        86.99,    58.09,    45.30,    51.38
+                        77.55,    56.32,    46.12,    40.46
+                        88.04,    53.33,    44.65,    36.37
+                        91.58,    56.67,    57.89,    44.34
+                        85.51,     0.00,    46.84,    39.22
+                         0.00,     0.00,    43.95,     0.00
+                        83.61,     0.00,    46.80,     0.00
+                        92.40,     0.00,    40.71,     0.00
+                        78.19,     0.00,    51.72,     0.00
+                        75.03,     0.00,    49.34,     0.00
+                         0.00,     0.00,    53.40,     0.00
+
+hhodo_pos_sigma =  100.00,  100.00,    0.92,  100.00
+                   100.00,    0.55,    0.85,    0.80
+                     0.79,    0.58,    0.80,    0.75
+                     0.68,    0.58,    0.65,    0.79
+                     0.73,    0.58,    0.66,    0.79
+                     0.59,    0.58,    0.65,    0.74
+                     0.59,    0.58,    0.53,    0.76
+                     0.61,    0.57,    0.67,    0.80
+                     0.57,    0.59,    0.64,    0.81
+                     0.61,  100.00,    0.64,    0.76
+                     0.67,  100.00,    0.67,  100.00
+                     0.52,  100.00,    0.61,  100.00
+                     0.56,  100.00,    0.62,  100.00
+                     0.61,  100.00,    0.71,  100.00
+                     0.70,  100.00,    0.74,  100.00
+                   100.00,  100.00,    0.66,  100.00
+
+hhodo_neg_sigma =  100.00,  100.00,    0.92,  100.00
+                   100.00,    0.58,    0.82,    0.80
+                     0.74,    0.57,    0.81,    0.81
+                     0.68,    0.58,    0.72,    0.81
+                   100.00,    0.56,    0.68,    0.88
+                     0.61,    0.54,    0.61,    0.76
+                     0.53,    0.55,    0.53,    0.73
+                     0.58,    0.55,    0.65,    0.80
+                     0.61,    0.56,    0.71,    0.87
+                     0.59,  100.00,    0.69,    0.88
+                   100.00,  100.00,    0.65,  100.00
+                     0.57,  100.00,    0.62,  100.00
+                     0.58,  100.00,    0.57,  100.00
+                     0.59,  100.00,    0.64,  100.00
+                     0.57,  100.00,    0.84,  100.00
+                   100.00,  100.00,    0.73,  100.00
+
+
+
+
+
+
+
+
+
+
+
+
+
+; use htofusinginvadc=1 if want invadc_offset
+;  invadc_linear, and invadc_adc to be used
+htofusinginvadc=1
+
+hhodo_pos_invadc_offset =    0.00,    0.00,  -12.60,   -0.31
+                            -7.19,   -5.46,   -5.64,    2.43
+                            -0.19,   -3.20,  -11.97,    2.38
+                             0.00,   -5.59,   -8.66,    8.62
+                            -2.69,  -12.71,    3.09,    4.99
+                            -3.87,   -6.34,  -11.37,    3.12
+                            -0.75,   -6.06,   -2.88,    5.85
+                            -0.75,   -3.63,  -10.13,   -1.00
+                            -1.00,   -8.17,  -11.87,    1.32
+                            -1.20,    0.00,   -6.25,   -5.77
+                             2.53,    0.00,  -12.81,    0.00
+                             0.45,    0.00,   -4.73,    0.00
+                             1.06,    0.00,   -5.69,    0.00
+                            -2.65,    0.00,   -3.42,    0.00
+                            -0.07,    0.00,  -10.84,    0.00
+                            -3.85,    0.00,   -5.00,    0.00
+
+hhodo_neg_invadc_offset =    0.00,    0.00,   -3.02,    6.04
+                            -7.26,   -7.93,    2.69,    0.00
+                            -9.54,   -9.91,   -3.92,    0.00
+                            -5.48,   -6.34,    5.15,    0.00
+                            -7.94,   -9.63,   -5.18,    3.99
+                            -8.48,   -5.49,    3.08,    2.40
+                            -4.70,   -9.28,   -1.79,    5.60
+                           -11.57,   -6.49,    2.35,    0.00
+                             0.00,  -10.66,   -8.41,    0.00
+                            -4.26,    0.00,    4.66,    0.00
+                            -5.23,    0.00,    0.12,    0.00
+                            -5.26,    0.00,    2.85,    0.00
+                            -7.15,    0.00,   -3.72,    0.00
+                           -10.99,    0.00,    4.19,    0.00
+                            -4.24,    0.00,   -0.35,    0.00
+                            -0.49,    0.00,    6.05,    0.00
+
+hhodo_pos_invadc_linear =   50.00,   50.00,   16.66,   14.91
+                            14.86,   15.53,   16.36,   15.34
+                            15.25,   16.51,   17.20,   15.67
+                            15.16,   15.65,   15.32,   15.70
+                            14.74,   15.39,   15.31,   16.44
+                            14.90,   15.26,   14.38,   15.49
+                            14.51,   15.82,   15.71,   16.25
+                            16.17,   16.47,   14.43,   15.55
+                            15.17,   15.89,   14.83,   15.51
+                            15.34,   50.00,   13.93,   15.94
+                            15.09,   50.00,   14.04,   50.00
+                            16.20,   50.00,   14.53,   50.00
+                            14.40,   50.00,   14.73,   50.00
+                            15.65,   50.00,   14.85,   50.00
+                            16.11,   50.00,   17.04,   50.00
+                            15.92,   50.00,   14.62,   50.00
+
+hhodo_neg_invadc_linear =   50.00,   50.00,   14.48,   17.67
+                            13.55,   16.28,   13.61,   50.00
+                            14.71,   16.85,   14.90,   50.00
+                            13.93,   16.29,   14.83,   50.00
+                            14.56,   15.80,   13.89,   16.67
+                            14.02,   15.76,   13.65,   15.77
+                            14.42,   16.03,   13.72,   15.53
+                            13.95,   15.88,   11.72,   50.00
+                            50.00,   15.41,   13.77,   50.00
+                            14.15,   50.00,   14.71,   50.00
+                            13.83,   50.00,   14.33,   50.00
+                            14.09,   50.00,   13.15,   50.00
+                            13.45,   50.00,   14.39,   50.00
+                            14.61,   50.00,   14.65,   50.00
+                            15.49,   50.00,   14.86,   50.00
+                            12.88,   50.00,   14.14,   50.00
+
+hhodo_pos_invadc_adc=     0.00,     0.00,    61.51,    61.14
+                        48.96,    59.73,    62.95,    59.19
+                        56.86,    57.12,    62.02,    64.13
+                        58.88,    55.57,    62.46,    60.57
+                        59.74,    56.24,    66.21,    67.29
+                        53.20,    55.53,    64.84,    64.70
+                        53.93,    59.32,    61.12,    71.15
+                        55.73,    53.66,    65.47,    63.52
+                        48.68,    60.80,    60.95,    65.91
+                        51.54,     0.00,    70.54,    62.27
+                        49.60,     0.00,    61.81,     0.00
+                        49.93,     0.00,    59.11,     0.00
+                        49.79,     0.00,    67.21,     0.00
+                        54.06,     0.00,    62.26,     0.00
+                        50.01,     0.00,    77.89,     0.00
+                        56.23,     0.00,    64.52,     0.00
+
+hhodo_neg_invadc_adc=     0.00,     0.00,    58.11,    76.44
+                        53.89,    39.97,    69.36,     0.00
+                        53.96,    42.17,    66.72,     0.00
+                        51.96,    42.80,    56.28,     0.00
+                        58.37,    39.73,    67.85,    66.92
+                        53.12,    39.69,    61.09,    65.98
+                        53.19,    38.82,    59.18,    58.69
+                        72.60,    36.71,    63.07,     0.00
+                         0.00,    38.25,    73.56,     0.00
+                        55.61,     0.00,    65.63,     0.00
+                        56.60,     0.00,    63.75,     0.00
+                        56.34,     0.00,    61.94,     0.00
+                        63.72,     0.00,    58.95,     0.00
+                        61.66,     0.00,    64.61,     0.00
+                        52.04,     0.00,    71.75,     0.00
+                        47.51,     0.00,    62.83,     0.00
+
+hhodo_pos_sigma =  100.00,  100.00,    0.46,    0.65
+                     0.31,    0.38,    0.51,    0.62
+                     0.41,    0.40,    0.47,    0.54
+                     0.34,    0.35,    0.39,    0.51
+                     0.37,    0.35,    0.42,    0.50
+                     0.28,    0.33,    0.44,    0.46
+                     0.30,    0.41,    0.37,    0.58
+                     0.33,    0.38,    0.46,    0.53
+                     0.30,    0.43,    0.42,    0.58
+                     0.30,  100.00,    0.46,    0.72
+                     0.29,  100.00,    0.40,  100.00
+                     0.26,  100.00,    0.41,  100.00
+                     0.30,  100.00,    0.39,  100.00
+                     0.34,  100.00,    0.49,  100.00
+                     0.40,  100.00,    0.51,  100.00
+                     0.45,  100.00,    0.42,  100.00
+
+hhodo_neg_sigma =  100.00,  100.00,    0.43,    0.64
+                     0.31,    0.31,    0.50,  100.00
+                     0.30,    0.37,    0.50,  100.00
+                     0.30,    0.34,    0.33,  100.00
+                     0.32,    0.29,    0.45,    0.63
+                     0.30,    0.29,    0.56,    0.45
+                     0.29,    0.31,    0.36,    0.53
+                     0.37,    0.34,    0.45,  100.00
+                   100.00,    0.35,    0.60,  100.00
+                     0.32,  100.00,    0.46,  100.00
+                     0.32,  100.00,    0.39,  100.00
+                     0.31,  100.00,    0.41,  100.00
+                     0.33,  100.00,    0.40,  100.00
+                     0.31,  100.00,    0.63,  100.00
+                     0.39,  100.00,    0.55,  100.00
+                     0.48,  100.00,    0.52,  100.00
diff --git a/examples/PARAM/hhodo.pos b/examples/PARAM/hhodo.pos
new file mode 100644
index 0000000..2e37fd0
--- /dev/null
+++ b/examples/PARAM/hhodo.pos
@@ -0,0 +1,88 @@
+      hpathlength_central = 2500
+; Z positions of hodoscopes
+      hscin_1x_zpos =  (89.14-11.31)
+      hscin_1y_zpos =  (108.83-11.31)
+      hscin_2x_zpos =  (310.13-11.31)
+      hscin_2y_zpos =  (329.82-11.31)
+      hscin_1x_dzpos = 2.12
+      hscin_1y_dzpos = 2.12
+      hscin_2x_dzpos = 2.12
+      hscin_2y_dzpos = 2.12
+      hscin_1x_size = 8.0
+      hscin_1y_size = 8.0
+      hscin_2x_size = 8.0
+      hscin_2y_size = 8.0
+      hscin_1x_spacing = 7.5
+      hscin_1y_spacing = 7.5
+      hscin_2x_spacing = 7.5
+      hscin_2y_spacing = 7.5
+; Number of hodoscope paddles per layer
+      hscin_1x_nr = 16
+      hscin_1y_nr = 10
+      hscin_2x_nr = 16
+      hscin_2y_nr = 10
+; X,Y positions of hodoscope paddles
+      hscin_1x_left  =  37.750
+      hscin_1x_right = -37.750
+      hscin_1x_offset=  -1.3
+      hscin_1x_center= -56.250
+                       -48.750
+                       -41.250
+                       -33.750
+                       -26.250
+                       -18.750
+                       -11.250
+                        -3.750
+                         3.750
+                        11.250
+                        18.750
+                        26.250
+                        33.750
+                        41.250
+                        48.750
+                        56.250
+      hscin_1y_top   = -60.250
+      hscin_1y_bot   =  60.250
+      hscin_1y_offset=  -1.3
+      hscin_1y_center=  33.750
+                        26.250
+                        18.750
+                        11.250
+                         3.750
+                        -3.750
+                       -11.250
+                       -18.750
+                       -26.250
+                       -33.750
+      hscin_2x_left  =  37.750
+      hscin_2x_right = -37.750
+      hscin_2x_offset=  -0.6
+      hscin_2x_center= -56.250
+                       -48.750
+                       -41.250
+                       -33.750
+                       -26.250
+                       -18.750
+                       -11.250
+                        -3.750
+                         3.750
+                        11.250
+                        18.750
+                        26.250
+                        33.750
+                        41.250
+                        48.750
+                        56.250
+      hscin_2y_top   = -60.250
+      hscin_2y_bot   =  60.250
+      hscin_2y_offset=  -2.4
+      hscin_2y_center=  33.750
+                        26.250
+                        18.750
+                        11.250
+                         3.750
+                        -3.750
+                       -11.250
+                       -18.750
+                       -26.250
+                       -33.750
diff --git a/examples/PARAM/hmsflags.param b/examples/PARAM/hmsflags.param
new file mode 100644
index 0000000..1436427
--- /dev/null
+++ b/examples/PARAM/hmsflags.param
@@ -0,0 +1,52 @@
+; Offset in the spectrometer momentum.
+  hmomentum_factor = 0.000 ; leave 0 so it will have no effect
+                           ; use hpcentral_offset if one needs to offset central momentum
+;
+; The hdelta_offset,htheta_offset,hphi_offset effect the
+; reconstructed target quantities. Used in h_targ_trans.f 
+; For transport x is in the dispersive direction with + down
+;               y is in the horizontal + towards small angles.
+;               z is along the central optics axis.
+; In transport coordinates phi = hyptar = dy/dz and theta = hxptar = dx/dz 
+;    but for unknown reasons the yp offset is named  htheta_offset
+;    and  the xp offset is named  hphi_offset
+; Do not to change these values, since these are the zero order
+;  CMOP matrix elements. If you do change then your hms sieve
+;  plots will be screwed up.
+  hdelta_offset = 0.       ; (%)   hdelta_tar = hdelta_tar + hdelta_offset
+  htheta_offset = 4.83e-5  ; (rad) hyp_tar = hyp_tar + htheta_offset
+  hphi_offset   = -4.73e-3 ; (rad) hxp_tar = hxp_tar + hphi_offset
+;
+
+;saturation correction flag
+  genable_hms_satcorr = 2000 ;(0=disabled) - h_satcorr.f
+                          ; a correction to hsdelta event by event
+                          ; for a problem in setting Q3 current.
+                          ; There was an unknown zero offset in the Q3 current.
+                          ; The magnet setting code field00.f partially 
+                          ; fixes this problem. T. Horn in 2003 determined
+                          ; the corrections to delta.
+                          ; Data taken with fields set by field99.f or earlier should set to 1999.
+                          ; Data taken with fields set by field00.f or later should set to 2000.
+; central field  correction
+  genable_hms_fieldcorr = 1 ; (1=disabled) - h_fieldcorr.f 
+                            ; Need to enable for experiments before Jan 2002 .
+			    ; experiments using field02 and field03 should disable. 
+;
+; The following offsets are applied to the central kinematic variables
+;  in h_apply_offsets.f  . These might be modified by an experiment
+;  after doing calibration with elastic ep.
+; The values below are from T. Horn 2003 analysis
+  hpcentral_offset = -0.13 ; sets hpcentral = hpcentral * ( 1. + hpcentral_offset / 100. )
+		    ; experiments earlier than April 2003 
+                    ; should use  about -0.3 which is the best
+                    ; estimate based on several previous experiments.
+  hthetacentral_offset = 0.00 ; (rad) 
+                         ;htheta_lab=htheta_lab + hthetacentral_offset/degree 
+; This offset is determined from elastic ep data.
+; Must be added to ssxptar when used in calculating lab angles.
+; Example is in h_physics.f
+;
+  h_oopcentral_offset = 0.0011  ; (rad)
+
+
diff --git a/examples/PARAM/htracking.param b/examples/PARAM/htracking.param
new file mode 100644
index 0000000..77a0b6f
--- /dev/null
+++ b/examples/PARAM/htracking.param
@@ -0,0 +1,98 @@
+; hms pattern recognition and tracking code parameters
+; hmax_pr_hits is the maximum number of decoded hits allowed in a chamber for
+;              pattern recognition to proceed. This protexts against unusual
+;              kami kaze events which hang the analyzer to a long time.
+;
+        hmax_pr_hits =    25, 25
+; maximum number of possible focal plane tracks, must be <= 20
+        hntracks_max_fp = 10
+; if h_remove_sppt_if_one_y_plane=1 then remove space point if space point
+;    contains only one y plane.
+; Recommend h_remove_sppt_if_one_y_plane=0.  
+        h_remove_sppt_if_one_y_plane=0
+; hminhit(i)   minimum number of hits in each space point (one for each chamber)
+	hmin_hit =     5, 5
+; hmin_combos(i) minimum number of pairs in each space point ( one per chamber)
+; should be 3/3 for 4/6 tracking, and 4/4 for 5/6 tracking (JRA)
+	hmin_combos = 4, 4 
+; hspace_point_criterion(i) minimum separation of distinct space points
+; recommended value for hspace_point_criterion ( based on meeting
+; Feb 2003) 
+       hspace_point_criterion = 1.0, 1.0
+
+        hstub_max_xpdiff = .05
+;
+; The following four criteria are applied to the stub fit results at the
+; focal plane position to link stubs to tracks
+; hxt_track_criterion  
+; hyt_track_criterion
+; hxpt_track_criterion
+; hypt_track_criterion
+; recommended value for hspace_point_criterion ( based on meeting
+; Feb 2003) 
+       hxt_track_criterion  = 10.
+       hyt_track_criterion  = 4.
+       hxpt_track_criterion = 0.2
+       hypt_track_criterion = 0.5
+;
+; hsingle_stub            If .ne. 0 make a track of each single stub
+  hsingle_stub = 0
+; turn on/off small angle approximation to left/right decision for y
+  hSmallAngleApprox = 1
+
+; Crude track selection criteria in h_physics
+; hsel_chi2_fpperdegmax   maximum chi2 per degree of freedom for track
+  hsel_chi2_fpperdegmax = 2000000.
+; hsel_dedx1min           minimum dedx to chose best track in scin 1
+  hsel_dedx1min = -100000
+; hsel_dedx1max           maximum dedx to chose best track in scin 1
+  hsel_dedx1max = 1000000.
+; hsel_betamin            minimum track beta to chose best track 
+  hsel_betamin  = -100000
+; hsel_betamax            maximum track beta to chose best track 
+  hsel_betamax  = 100000.
+; hsel_etmin              minimum track et to chose best track 
+  hsel_etmin = -100000.
+; hsel_etmax              maximum track et to chose best track 
+  hsel_etmax = 100000.
+; hsel_ndegreesmin        minimum number of degrees of freedom for track
+  hsel_ndegreesmin = 1
+
+
+; hstat_maxchisq          chisquared limit for tracks used to measure hodo. eff.
+  hstat_maxchisq = 10.
+; hsel_using_scin         uses scintillator for track selection
+  hsel_using_scin = 0
+; hstat_slop              distance from center of scin. to count as expecting hit
+  hstat_slop = 2.
+; hstat_mineff            warning level for scin. effic.
+  hstat_mineff = .95
+; hstat_cal_maxchisq      chisquared limit for tracks used to measure cal. eff.
+  hstat_cal_maxchisq = 10.
+; hstat_cal_slop          distance from center of block to count as expecting hit
+  hstat_cal_slop = 2.
+; hcer_min_eff            warning level for cerenkov effic.
+  hcer_min_eff = .98
+; hcer_threshold          threshold for good hit (for measureing effic.)
+  hcer_threshold = 0.5
+; hdc_min_eff             warning level for dc raw effic.(1 per plane)
+  hdc_min_eff = .96,.98,.96,.98,.98,.94
+                .96,.98,.98,.98,.98,.96
+; hdc_min_wire_eff        warning level for wire effic, measured using tracking
+  hdc_min_wire_eff = .85
+; hdc_min_plane_eff        warning level for plane effic, measured using tracking
+  hdc_min_plane_eff = .95,.95,.95,.95,.95,.95
+                      .95,.95,.95,.95,.95,.95
+;Derek added this for scintillator based fiducial cuts.  Everything from
+;loscin to hiscin inclusive will be included as "good" scintillator hits.
+;  hxloscin  = 5, 5
+;  hxhiscin  = 12, 12
+;  hyloscin  = 4, 4
+;  hyhiscin  = 7, 7
+  hxloscin  = 4, 4
+  hxhiscin  = 13, 13
+  hyloscin  = 4, 4
+  hyhiscin  = 7, 7
+;  htrack_eff_test_scin_planes is the number of planes nec needed to 
+;  set sweet spot to true. 4 is extra clean, 3 is good enough for e-'s.
+  htrack_eff_test_num_scin_planes = 4
diff --git a/examples/PARAM/saer.param b/examples/PARAM/saer.param
new file mode 100644
index 0000000..184ba63
--- /dev/null
+++ b/examples/PARAM/saer.param
@@ -0,0 +1,12 @@
+     saer_pos_gain   =  .00558621, .00428808, .00458957, .00486647
+			.00514871, .00417616, .00353699
+
+     saer_neg_gain   =	.00404326, .00420673, .00459876, .00419363
+			.00500844, .00377049, .00448458
+
+     saer_pos_threshold = 0.200, 0.200, 0.200, 0.200
+                          0.200, 0.200, 0.200
+
+     saer_neg_threshold = 0.200, 0.200, 0.200, 0.200
+                          0.200, 0.200, 0.200
+
diff --git a/examples/PARAM/scal.param b/examples/PARAM/scal.param
new file mode 100644
index 0000000..842541d
--- /dev/null
+++ b/examples/PARAM/scal.param
@@ -0,0 +1,207 @@
+; Slop in x position.  Allowed distance between track and edge of block (in cm)
+; probably too tight djm scal_slop = 7.5
+scal_slop = 10.0
+
+scal_pos_cal_const =0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+
+scal_neg_cal_const =0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+
+scal_pos_gain_ini=1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+scal_neg_gain_ini=1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+scal_pos_gain_cur=1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+scal_neg_gain_cur=1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+; Calibration constants for run   48816,  33696 events processed
+;
+;scal_pos_gain_cor= 0.628, 0.697, 0.697, 0.452, 0.422, 0.543, 0.802, 0.745, 0.565, 0.952, 0.693,
+;                   0.842, 0.602, 0.399, 0.519, 0.550, 0.515, 0.853, 0.462, 1.070, 0.577, 0.786,
+;                   0.852, 0.966, 1.002, 0.804, 0.961, 1.069, 1.345, 0.967, 0.977, 0.905, 1.632,
+;                   0.878, 1.092, 1.151, 1.292, 1.080, 1.050, 1.066, 1.055, 1.405, 1.116, 1.359,
+;scal_neg_gain_cor= 0.539, 0.612, 0.789, 0.756, 0.700, 0.542, 0.677, 0.722, 0.692, 0.791, 0.539,
+;                   0.358, 0.578, 0.792, 0.604, 0.636, 0.631, 0.903, 0.627, 0.656, 0.587, 0.372,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+;                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+
+; Calibration constants for run   49064,  33189 events processed
+
+scal_pos_gain_cor= 0.561, 0.513, 0.492, 0.340, 0.334, 0.418, 0.652, 0.591, 0.390, 0.000, 0.000,
+                   0.650, 0.482, 0.280, 0.441, 0.395, 0.389, 0.687, 0.295, 0.961, 0.396, 0.000,
+                   0.635, 0.721, 0.792, 0.653, 0.714, 0.799, 1.065, 0.744, 0.735, 0.640, 0.000,
+                   0.728, 0.832, 0.914, 1.012, 0.858, 0.806, 0.833, 0.831, 1.099, 0.627, 0.000,
+scal_neg_gain_cor= 0.383, 0.457, 0.668, 0.590, 0.573, 0.406, 0.499, 0.531, 0.557, 0.000, 0.000,
+                   0.323, 0.414, 0.631, 0.435, 0.521, 0.538, 0.674, 0.551, 0.431, 1.091, 0.000,
+                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+
+;scal_pos_gain_cor= .808,1.105,1.259,1.011, .872,1.016, .840,1.027,1.045, .786,1.007
+;                   .513, .893, .747, .897, .927, .847, .821, .929,1.147, .857, .501
+;                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+;                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+;scal_neg_gain_cor=1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+;                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+;                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+;                  1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+scal_pos_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+
+scal_neg_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+
+
+
+
+;#############################################################################
+;###########  GAIN_COR  MEAN VALUE FOR E93021("FPI")  ########################
+;                           (12/29/97)  
+;.............................................................................
+; .507, .460, .409, .522, .801, .515, .603, .376, .616, .653, .477
+; .539, .492, .669, .601, .997, .749, .492, .680, .702, .703, .682
+;1.003,1.024, .671, .503, .562, .543, .821,1.322, .636, .657, .511
+; .552, .857, .604, .843, .540, .533, .762, .554, .713, .687,1.028
+;.............................................................................
+;                               ########
+;                        ####################
+;#############################################################################
+;                        ####################
+;                               ########
+;............................................................................
+;
+;******************************************************************************
+;******************************************************************************
+;
+;*******************     DO YOU REALLY NEED ??    ***************************
+;*********                                                    ***************
+;****  OPTIMUM GAIN CORRECTION CONSTANTS FOR EACH KINEMATIC SET OF "FPI" ****
+;****                                                                    ****
+;*************************   IF YES !   THEN     ****************************
+;............................................................................ 
+;               ######  FOR  Q**2 = 0.6 ########
+;                       
+;               For Q**2=0.6; run #16984-17043
+;                        (12/14/97)
+;
+; .508, .466, .435, .534, .836, .511, .622, .386, .627, .694, .494
+; .543, .504, .707, .607,1.030, .753, .511, .704, .704, .723, .694
+;1.030,1.046, .727, .508, .592, .546, .847,1.392, .646, .686, .530
+; .552, .870, .643, .864, .579, .532, .789, .579, .734, .734,1.081
+;
+; ..........................................................................
+;              For Q**2=0.6; run #17142-17172
+;                       (12/14/97)
+;
+; .417, .383, .339, .416, .686, .442, .511, .317, .546, .552, .393
+; .446, .414, .552, .474, .846, .651, .419, .578, .613, .600, .575
+; .846, .859, .550, .396, .486, .472, .700,1.142, .562, .569, .440
+; .453, .714, .502, .674, .475, .460, .648, .475, .639, .609, .897
+;
+; ...........................................................................
+;
+;              For Q**2=0.6; run #17243-17315
+;                        (12/21/97)
+;
+; .511, .470, .417, .568, .851, .549, .634, .393, .609, .648, .461
+; .548, .509, .678, .647,1.050, .808, .520, .717, .683, .705, .675
+;1.040,1.056, .676, .541, .603, .586, .869,1.417, .630, .667, .516
+; .556, .877, .617, .920, .589, .571, .804, .589, .712, .714,1.052
+;
+;............................................................................
+;****************************************************************************
+;****************************************************************************
+;
+;             ############  Q**2=0.75  ##############
+;
+;............................................................................
+;             For Q**2=0.75; run #16959-16982
+;                      (12/24/97)
+;
+; .548, .503, .446, .547, .817, .526, .621, .385, .638, .692, .492
+; .585, .543, .725, .622,1.007, .775, .509, .702, .716, .721, .692
+;1.110,1.128, .745, .520, .579, .562, .845,1.388, .657, .685, .529
+; .595, .938, .659, .884, .566, .547, .788, .578, .747, .732,1.078
+;
+;............................................................................
+;            For Q**2=0.75; run #17044-17082
+;                       (12/22/97)
+;
+; .498, .457, .405, .497, .778, .501, .591, .367, .608, .659, .469
+; .532, .494, .659, .565, .959, .738, .485, .669, .682, .687, .659
+;1.009,1.025, .677, .473, .551, .535, .805,1.322, .626, .652, .504
+; .541, .853, .599, .804, .539, .521, .750, .550, .711, .697,1.027
+;
+;****************************************************************************
+;****************************************************************************
+;
+;              ############  Q**2=1.00  ##############
+;............................................................................
+;                For Q**2=1.00; run #16872-16958
+;                           (12/23/97)
+;
+; .543, .499, .443, .572, .817, .526, .621, .385, .675, .692, .492
+; .581, .539, .720, .650,1.007, .775, .509, .702, .784, .721, .692
+;1.103,1.120, .739, .544, .579, .562, .845,1.388, .720, .685, .529
+; .591, .932, .654, .925, .566, .547, .788, .578, .789, .732,1.078
+;
+;............................................................................
+;                For Q**2=1.00; run #17083-17141
+;                         (12/23/97)
+;
+; .473, .434, .385, .497, .778, .501, .591, .367, .608, .659, .469
+; .505, .469, .626, .565, .959, .738, .485, .669, .682, .687, .659
+; .959, .974, .643, .473, .551, .535, .805,1.322, .626, .652, .504
+; .514, .810, .569, .804, .539, .521, .750, .550, .711, .697,1.027
+;
+;
+;****************************************************************************
+;****************************************************************************
+;
+;              ############ Q**2=1.6  ###############
+;
+;
+;               For Q**2=1.6 ; run #17173-17242
+;                          (12/21/97)
+;
+; .547, .509, .437, .570, .864, .574, .649, .414, .636, .669, .563
+; .617, .513, .739, .698,1.125, .783, .516, .719, .763, .801, .817
+;1.033,1.089, .687, .585, .574, .568, .833,1.272, .677, .692, .551
+; .654, .944, .647, .910, .490, .578, .806, .559, .698, .629,1.031
+;
+; ...........................................................................
+;
+;               For Q**2=1.6 ; run #17340-17474
+;                          (12/22/97)
+;
+; .547, .509, .437, .568, .864, .574, .681, .414, .604, .669, .563
+; .617, .513, .739, .696,1.125, .783, .542, .719, .725, .801, .817
+;1.033,1.089, .687, .583, .574, .568, .875,1.272, .643, .692, .551
+; .654, .944, .647, .910, .490, .578, .846, .559, .663, .629,1.031
+; ...........................................................................
+;****************************************************************************
+;****************************************************************************
+
diff --git a/examples/PARAM/scal.pos b/examples/PARAM/scal.pos
new file mode 100644
index 0000000..4289ec1
--- /dev/null
+++ b/examples/PARAM/scal.pos
@@ -0,0 +1,72 @@
+; neglect extra tubes for now
+scal_num_neg_columns = 2
+
+; Z position of front of shower counter layers
+      scal_1pr_zpos = (282.0+31.01)
+      scal_2ta_zpos = (293.0+31.01)
+      scal_3ta_zpos = (304.0+31.01)
+      scal_4ta_zpos = (315.0+31.01)
+; Thickness of shower counter blocks, blocks are 10 * 10 * 70 cm^3
+      scal_1pr_thick = 10.0
+      scal_2ta_thick = 10.0
+      scal_3ta_thick = 10.0
+      scal_4ta_thick = 10.0
+; Number of shower counter blocks per layer
+      scal_1pr_nr = 11
+      scal_2ta_nr = 11
+      scal_3ta_nr = 11
+      scal_4ta_nr = 11
+; X,Y positions of shower counter blocks
+      scal_1pr_left  =  35.0
+      scal_1pr_right = -35.0
+      scal_1pr_top   = (-55.0-5.64)
+                       (-45.0-5.64)
+                       (-35.0-5.64)
+                       (-25.0-5.64)
+                       (-15.0-5.64)
+                       ( -5.0-5.64)
+                       (  5.0-5.64)
+                       ( 15.0-5.64)
+                       ( 25.0-5.64)
+                       ( 35.0-5.64)
+                       ( 45.0-5.64)
+      scal_2ta_left  =  35.0
+      scal_2ta_right = -35.0
+      scal_2ta_top   = (-55.0-5.64)
+                       (-45.0-5.64)
+                       (-35.0-5.64)
+                       (-25.0-5.64)
+                       (-15.0-5.64)
+                       ( -5.0-5.64)
+                       (  5.0-5.64)
+                       ( 15.0-5.64)
+                       ( 25.0-5.64)
+                       ( 35.0-5.64)
+                       ( 45.0-5.64)
+      scal_3ta_left  =  35.0
+      scal_3ta_right = -35.0
+      scal_3ta_top   = (-55.0-5.64)
+                       (-45.0-5.64)
+                       (-35.0-5.64)
+                       (-25.0-5.64)
+                       (-15.0-5.64)
+                       ( -5.0-5.64)
+                       (  5.0-5.64)
+                       ( 15.0-5.64)
+                       ( 25.0-5.64)
+                       ( 35.0-5.64)
+                       ( 45.0-5.64)
+      scal_4ta_left  =  35.0
+      scal_4ta_right = -35.0
+      scal_4ta_top   = (-55.0-5.64)
+                       (-45.0-5.64)
+                       (-35.0-5.64)
+                       (-25.0-5.64)
+                       (-15.0-5.64)
+                       ( -5.0-5.64)
+                       (  5.0-5.64)
+                       ( 15.0-5.64)
+                       ( 25.0-5.64)
+                       ( 35.0-5.64)
+                       ( 45.0-5.64)
+
diff --git a/examples/PARAM/scer.param b/examples/PARAM/scer.param
new file mode 100644
index 0000000..2cd9847
--- /dev/null
+++ b/examples/PARAM/scer.param
@@ -0,0 +1,39 @@
+scer_width = 30, 30, 30, 30
+; BAM 3/3/98 new adc_to_npe values
+;scer_adc_to_npe = 1/49.6., 1/70.0, 1/65.3, 1/55.3
+; DJM 8/9/03 using spe peaks
+;scer_adc_to_npe = 1/43., 1/43., 1/42., 1/50.
+
+; JS 6.17.4 using spe peaks (cosmics, run 48754)
+;scer_adc_to_npe = 1/50.8, 1/45.7, 1/47.9, 1/56.8
+; JS 6.19.4 using spe peaks (cosmics, run 48795)
+;scer_adc_to_npe = 1/48., 1/46., 1/50., 1/57.
+; JS 6.19.4 using spe peaks (electrons, run 48800)
+;scer_adc_to_npe = 1/42., 1/39., 1/50., 1/54.
+; JS 6.19.4 using spe peaks (electrons, run 48816)
+;                 top-l   top-r  bot-r  bot-l
+;scer_adc_to_npe = 1/42., 1/39., 1/49., 1/54.
+; JS 7.9.4 using spe peaks (electrons, run 49472)
+;                 top-l   top-r  bot-r  bot-l
+scer_adc_to_npe = 1/41., 1/45., 1/43., 1/55.
+
+scer_chi2max = 50.
+scer_beta_min = 0.8
+scer_beta_max = 1.2
+scer_et_min = .95
+scer_et_max = 2.0
+; guess for zpos.
+scer_mirror_zpos = 180
+
+; scer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+scer_region =   30,   30,  -15,  -15,   7.
+                -8,    8,   -8,    8,   0.
+                 0,    0,    0,    0,   0.
+                 0,    0,    0,    0,   0.
+                25,   25,   25,   25,  45.
+                10,   10,   10,   10,  15.
+               .15,  .15,  .15,  .15,  .15
+               .05,  .05,  .05,  .05,  .05
+
+scer_ped_limit =  1000,1000,1000,1000
diff --git a/examples/PARAM/sdc.param b/examples/PARAM/sdc.param
new file mode 100644
index 0000000..e6f1faa
--- /dev/null
+++ b/examples/PARAM/sdc.param
@@ -0,0 +1,55 @@
+;---------------------------------------------------------------------
+; SOS_TRACKING
+; CTP parameter file containing all tracking parameters for the SOS
+;----------------------------------------------------------------------
+; Names of each wire plane
+;      sdc_plane_names = 'sos1u1'
+;                        'sos1u2'
+;                        'sos1x1'
+;                        'sos1x2'
+;                        'sos1v1'
+;                        'sos1v2'
+;                        'sos2u1'
+;                        'sos2u2'
+;                        'sos2x1'
+;                        'sos2x2'
+;                        'sos2v1'
+;                        'sos2v2'
+; sigma of wire chamber resolution for each plane
+      sdc_sigma = 0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+; sos dc tdc minimum tdc value array allowed for a good hit
+    sdc_tdc_min_win = 2600, 2600, 2600, 2600, 2600, 2600
+                      2600, 2600, 2600, 2600, 2600, 2600
+; sos dc tdc maximum tdc value array allowed for a good hit
+    sdc_tdc_max_win = 3180, 3180, 3180, 3180, 3180, 3180
+                      3180, 3180, 3180, 3180, 3180, 3180
+; sos drift chamber tdc's time per channel
+        sdc_tdc_time_per_channel = 0.5
+; sos zero time for drift chambers	!DECREASING this number moves the sdtime plots to LOWER time.
+       sdc_plane_time_zero = (1440-10+26+86+30+30-8)
+                             (1440-9.5+22+90+30+28-8)
+                             (1440-9.25+22+94+30+28-8)
+                             (1440-12+28+84+30+26-8)
+                             (1440-11+24+86+30+30-8)
+                             (1440-11+26+86+30+30-8)
+                             (1440-11.5+24+86+30+28-8)
+                             (1440-14+22+90+30+26-8)
+                             (1440-13.5+22+84+30+26-8)
+                             (1440-13.5+24+74+30+28-8)
+                             (1440-11.5+22+82+30+26-8)
+                             (1440-13.25+24+80+30+26-8)
+; Dave Abbott's wire velocity correction
+sdc_wire_velocity = 13.0
+sdc_central_time = 2.8,2.8,1.5,1.5,2.8,2.8
+                   2.8,2.8,1.5,1.5,2.8,2.8
diff --git a/examples/PARAM/sdc.param.bak b/examples/PARAM/sdc.param.bak
new file mode 100644
index 0000000..77ded20
--- /dev/null
+++ b/examples/PARAM/sdc.param.bak
@@ -0,0 +1,55 @@
+;---------------------------------------------------------------------
+; SOS_TRACKING
+; CTP parameter file containing all tracking parameters for the SOS
+;----------------------------------------------------------------------
+; Names of each wire plane
+;      sdc_plane_names = 'sos1u1'
+;                        'sos1u2'
+;                        'sos1x1'
+;                        'sos1x2'
+;                        'sos1v1'
+;                        'sos1v2'
+;                        'sos2u1'
+;                        'sos2u2'
+;                        'sos2x1'
+;                        'sos2x2'
+;                        'sos2v1'
+;                        'sos2v2'
+; sigma of wire chamber resolution for each plane
+      sdc_sigma = 0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+                  0.020
+; sos dc tdc minimum tdc value array allowed for a good hit
+    sdc_tdc_min_win = 2600, 2600, 2600, 2600, 2600, 2600
+                      2600, 2600, 2600, 2600, 2600, 2600
+; sos dc tdc maximum tdc value array allowed for a good hit
+    sdc_tdc_max_win = 3180, 3180, 3180, 3180, 3180, 3180
+                      3180, 3180, 3180, 3180, 3180, 3180
+; sos drift chamber tdc's time per channel
+        sdc_tdc_time_per_channel = 0.5
+; sos zero time for drift chambers	!DECREASING this number moves the sdtime plots to LOWER time.
+       sdc_plane_time_zero = (1440-10+26+86+30+30)
+                             (1440-9.5+22+90+30+28)
+                             (1440-9.25+22+94+30+28)
+                             (1440-12+28+84+30+26)
+                             (1440-11+24+86+30+30)
+                             (1440-11+26+86+30+30)
+                             (1440-11.5+24+86+30+28)
+                             (1440-14+22+90+30+26)
+                             (1440-13.5+22+84+30+26)
+                             (1440-13.5+24+74+30+28)
+                             (1440-11.5+22+82+30+26)
+                             (1440-13.25+24+80+30+26)
+; Dave Abbott's wire velocity correction
+sdc_wire_velocity = 13.0
+sdc_central_time = 2.8,2.8,1.5,1.5,2.8,2.8
+                   2.8,2.8,1.5,1.5,2.8,2.8
diff --git a/examples/PARAM/sdc.pos b/examples/PARAM/sdc.pos
new file mode 100644
index 0000000..015bb09
--- /dev/null
+++ b/examples/PARAM/sdc.pos
@@ -0,0 +1,216 @@
+; Number of planes installed in SOS detector setup
+      sdc_num_planes = 12
+; Number of chambers installed in SOS detector setup
+      sdc_num_chambers = 2
+; Z positions of various planes in SOS chambers
+; sdc_n_zpos is the surveyed Z position of the center of chamber n.
+      sdc_1_zpos = (-24.76+31.01)
+      sdc_2_zpos = ( 24.76+31.01)
+;      sdc_3_zpos =(247.50+31.01)
+      sdc_zpos   = sdc_1_zpos - 1.5875
+                   sdc_1_zpos - 0.9525
+                   sdc_1_zpos - 0.3175
+                   sdc_1_zpos + 0.3175
+                   sdc_1_zpos + 0.9525
+                   sdc_1_zpos + 1.5875
+                   sdc_2_zpos - 1.5875
+                   sdc_2_zpos - 0.9525
+                   sdc_2_zpos - 0.3175
+                   sdc_2_zpos + 0.3175
+                   sdc_2_zpos + 0.9525
+                   sdc_2_zpos + 1.5875
+; Angle alpha of wires in wire chamber planes (.051,.045 degrees roll in dc1,2)
+      sdc_alpha_angle = ( 30-.051)*raddeg
+                        ( 30-.051)*raddeg
+                        ( 90-.051)*raddeg
+                        ( 90-.051)*raddeg
+                        (150-.051)*raddeg
+                        (150-.051)*raddeg
+                        ( 30-.045)*raddeg
+                        ( 30-.045)*raddeg
+                        ( 90-.045)*raddeg
+                        ( 90-.045)*raddeg
+                        (150-.045)*raddeg
+                        (150-.045)*raddeg
+; Angle beta of wires in wire chamber planes
+      sdc_beta_angle =   -0.052*raddeg
+                         -0.052*raddeg
+                         -0.052*raddeg
+                         -0.052*raddeg
+                         -0.052*raddeg
+                         -0.052*raddeg
+                         -0.182*raddeg
+                         -0.182*raddeg
+                         -0.182*raddeg
+                         -0.182*raddeg
+                         -0.182*raddeg
+                         -0.182*raddeg
+; Angle gamma of wires in wire chamber planes
+      sdc_gamma_angle = -0.070*raddeg
+                        -0.070*raddeg
+                        -0.070*raddeg
+                        -0.070*raddeg
+                        -0.070*raddeg
+                        -0.070*raddeg
+                        -0.257*raddeg
+                        -0.257*raddeg
+                        -0.257*raddeg
+                        -0.257*raddeg
+                        -0.257*raddeg
+                        -0.257*raddeg
+; Pitch
+      sdc_pitch = 1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+                  1.0000
+; Number of wires per plane
+      sdc_nrwire = 48
+                   48
+                   64
+                   64
+                   48
+                   48
+                   48
+                   48
+                   64
+                   64
+                   48
+                   48
+; X,Y position of center of wire chamber
+; The given value is subtracted from the position of the wire (i.e.
+; the sign is opposite of the actual center position of the chamber).
+; Increasing dc2 coordinates increases dpos histograms.
+; Values are from jan17, 1996 survey memo.  values ARE corrected for
+; 18 degree (optical axis) vs 17.85 degree (survey axis) discrepensy.
+      sdc_xcenter = (8.488-3.982)
+                    (-1.822+1.825+0.35)
+      sdc_ycenter =(+0.007+.388+0.2)
+                   (-0.197+0.379+0.2)
+;;      sdc_xcenter = 8.488
+;;                   -1.822
+;;      sdc_ycenter =+0.007
+;;                   -0.197
+;
+;  sdc_ycenter(2) was -.197 from survey.  -.087 is DD's correction 
+;   based on (e,e'p) data (centering Em,Pm).
+;
+
+; Wire number of center of wire chamber
+; Note the convention : x : low number =  -x , u,v : low number = "-x"
+; x1 and x2, u1 and u2, v1 and v2 are offset by half a cell length
+; assume 1st wire of 1st dc of a set is closest to edge where counting starts
+      sdc_central_wire = (24.75+.008+.0019)
+                         (24.25-.008+.0064)
+                         (32.75-.001-.0105)
+                         (32.25+.001+.0021)
+                         (24.25+.003+.0019)
+                         (24.75-.003+.0075)
+                         (24.75-.001-.0019)
+                         (24.25+.001-.0078+.0120)
+                         (32.75+.002-.0104-.0067)
+                         (32.25-.002-.0007-.0053)
+                         (24.25-.003-.0008-.0015)
+                         (24.75+.003-.0081+.0131)
+; with shifts to make resiudals line up with each other.
+;      sdc_central_wire = (24.75+.008)
+;                         (24.25-.008)
+;                         32.75
+;                         32.25
+;                         (24.25+.002)
+;                         (24.75-.002)
+;                         24.75
+;                         24.25
+;                         (32.75+.003)
+;                         (32.25-.003)
+;                         (24.25-.003)
+;                         (24.75+.003)
+; nov95 online values
+;      sdc_central_wire = (24.75+.008)
+;                         (24.25-.008)
+;                         (32.75-.009)
+;                         (32.25+.009)
+;                         24.25
+;                         24.75
+;                         (24.75-.005)
+;                         (24.25+.005)
+;                         32.75
+;                         32.25
+;                         (24.25-.006)
+;                         (24.75+.006)
+; s_chamber_planes    array giving the chamber number for each plane
+      sdc_chamber_planes = 1
+                           1
+                           1
+                           1
+                           1
+                           1
+                           2
+                           2
+                           2
+                           2
+                           2
+                           2
+; The hms readout numbers some planes in reverse order.
+; I (SAW) think that the SOS readout numbers are always in forward order
+; The following array is a flag on the order number.
+; If sdc_wire_counting(plane) = 0
+;  the wire center is at (wire - sdc_central_wire) * pitch
+; If sdc_wire_counting(plane) = 1
+;  the wire center is at ( sdc_nrwire + 1 - wire - sdc_central_wire) * pitch
+        sdc_wire_counting = 1
+                            0
+                            1
+                            0
+                            0
+                            1
+                            1
+                            0
+                            1
+                            0
+                            0
+                            1
+; The velocity correction is the distance from the center of the wire divided
+; by the velocity of propagation times sdc_drifttime_sign(pln).  +/-1
+; for disc. card at +/- coord. (i.e. top = -x direction, so top readout is +1)
+;
+; THESE ARE NOTHING BUT BAD GUESSES AT THE MOMENT!!!!
+;
+       sdc_drifttime_sign =  +1
+                             -1
+                             -1
+                             +1
+                             +1
+                             -1
+                             +1
+                             -1
+                             -1
+                             +1
+                             +1
+                             -1
+; Names of each wire plane
+;      sdc_plane_names = 'sos1u1'
+;                        'sos1u2'
+;                        'sos1x1'
+;                        'sos1x2'
+;                        'sos1v1'
+;                        'sos1v2'
+;                        'sos2u1'
+;                        'sos2u2'
+;                        'sos2x1'
+;                        'sos2x2'
+;                        'sos2v1'
+;                        'sos2v2'
+;                        'sos3u1'
+;                        'sos3u2'
+;                        'sos3x1'
+;                        'sos3x2'
+;                        'sos3v1'
+;                        'sos3v2'
diff --git a/examples/PARAM/sdc_offsets.param b/examples/PARAM/sdc_offsets.param
new file mode 100644
index 0000000..596e780
--- /dev/null
+++ b/examples/PARAM/sdc_offsets.param
@@ -0,0 +1,71 @@
+; cable id's for SOS Drift Chambers
+; array is 64,12 (wires,planes)), but u and v planes have only 48/64 used.
+
+sdc_card_no=
+; Plane 1, wires 1-48, 16 per card
+              1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
+              2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
+              3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 2, wires 1-48, 16 per card
+              4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
+              5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
+              6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 3, wires 1-64, 16 per card
+              7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
+              8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
+              9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9
+             10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10
+; Plane 4, wires 1-64, 16 per card
+             11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11
+             12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12
+             13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13
+             14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14
+; Plane 5, wires 1-48, 16 per card
+             15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
+             16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
+             17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 6, wires 1-48, 16 per card
+             18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18
+             19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19
+             20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 1, wires 1-48, 16 per card
+             21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21
+             22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22
+             23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 2, wires 1-48, 16 per card
+             24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24
+             25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25
+             26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 3, wires 1-64, 16 per card
+             27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27
+             28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28
+             29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29
+             30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30
+; Plane 4, wires 1-64, 16 per card
+             31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31
+             32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32
+             33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33
+             34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34
+; Plane 5, wires 1-48, 16 per card
+             35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35
+             36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36
+             37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+; Plane 6, wires 1-48, 16 per card
+             38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38
+             39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39
+             40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40
+             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
+;
+;       Cable Delays on a per/card basys
+;
+sdc_card_delay =  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
diff --git a/examples/PARAM/sdebug.param b/examples/PARAM/sdebug.param
new file mode 100644
index 0000000..ab34b9b
--- /dev/null
+++ b/examples/PARAM/sdebug.param
@@ -0,0 +1,127 @@
+; sos tracking code debug flags.
+; when these flags are non-zero, dump routines are called to
+; print out the data banks for each event.
+;
+;  sluno     fortran lun for output
+      sluno = 6
+; sdebugdumptof           Dump timing information for fitting offsets for old CSA method
+      sdebugdumptof = 0
+; sdumptof           Dump timing information for fitting offsets, new way
+; Done from h_tof.f. Add particle ID cuts if desired
+; Note: don't set both hdumptof=1 and hdebugdumptof=1 at same time
+;       because they both use fort.37 for the output
+      sdumptof = 0
+;; sdebugdumpcal           Dump calorimeter information for fitting gains
+      sdebugdumpcal = 0
+; number of pedestal events required to overwrite orig. peds.
+  shodo_min_peds = 500
+  scal_min_peds  = 500
+  scer_min_peds  = 500
+  saer_min_peds = 500
+  sluc_min_peds = 500
+
+
+; DEBUGGING OUTPUT FLAGS
+; ----------------------
+; sdebugprintrawdc        Dump SDC_RAW_DC bank
+      sdebugprintrawdc = 0
+; sdebugprintdecodeddc    DUMP SDC_DECODED_DC bank
+      sdebugprintdecodeddc = 0
+; sdebugflagpsi               Dump calculated coordinate positions
+      sdebugflagpsi =  0
+; sdebugflaggeoemtry          Dump calculated geometrical parameters
+      sdebugflaggeometry = 0
+; sdebugflagpr                Dump intermediate pattern recognition results
+      sdebugflagpr = 0
+; sdebugflagstubchisq         Dump chi2 of left-right fits
+      sdebugstubchisq = 0
+; sdebugflagstubs             Dump stub fit results
+      sdebugflagstubs = 0
+; sdebuglinkstubs             Dump link stub results
+      sdebuglinkstubs = 0
+; sdebugtrackprint            Dump focal plane track fit results
+      sdebugtrackprint = 0
+; sdebugtartrackprint         Dump tracks at target
+      sdebugtartrackprint = 0
+; tof debuging
+;
+;  sdebugprintscinraw         Dump SOS_RAW_SCIN
+    sdebugprintscinraw = 0
+;  sdebugprintscindec         Dump SOS_DECODED_SCIN
+    sdebugprintscindec = 0
+;  sdebugprinttoftracks       Dump  sos_scin_tof
+    sdebugprinttoftracks = 0
+;  sdebugprinttracktests      Dump SOS_TRACK_TESTS
+    sdebugprinttracktests = 0
+;
+;
+;  sos calorimeter debug flags
+;  slun_dbg_cal        lun for output
+   slun_dbg_cal   = sluno
+;  sdbg_raw_cal        call s_prt_cal_raw
+   sdbg_raw_cal = 0
+;  sdbg_sparsified_cal call s_prt_cal_sparsified
+   sdbg_sparsified_cal = 0
+;  sdbg_decoded_cal    call s_prt_cal_decoded
+   sdbg_decoded_cal = 0
+;  sdbg_clusters_cal   call s_prt_cal_clusters
+   sdbg_clusters_cal = 0
+;  sdbg_tracks_cal     call s_prt_cal_tracks
+   sdbg_tracks_cal = 0
+;  sdbg_tests_cal      call s_prt_cal_tests    SOS_TRACK_TESTS
+   sdbg_tests_cal = 0
+;
+;  hard wired histograms. If these flags .ne. 0 then the histogram
+;     blocks are filled
+;
+; sturnon_scin_raw_hist       Histogram SOS raw hodoscope data (all blocks)
+  sturnon_scin_raw_hist = 1
+; sturnon_decoded_dc_hist     Histogram SOS_DECODED_DC
+  sturnon_decoded_dc_hist = 1
+; sturnon_focal_plane_hist    Histogram SOS_FOCAL_PLANE
+  sturnon_focal_plane_hist = 1
+; sturnon_target_hist         HISTOGRAM SOS_TARGET
+  sturnon_target_hist = 1
+;
+; Bypass paramters to bypass code elementes in s_reconstruction
+;      Stored in sosbypass_switches.cmn
+;      Code element is bypassed if switch .ne. 0
+; sbypass_trans_dc         bypass s_trans_dc
+  sbypass_trans_dc   = 0
+; sbypass_track            bypass s_track
+  sbypass_track      = 0
+; sbypass_targ_trans       bypass s_targ_trans
+  sbypass_targ_trans = 0
+; sbypass_dc_eff           bypass s_dc_eff and s_dc_eff_shutdown
+  sbypass_dc_eff     = 0
+; sbypass_track_eff        bypass s_tracking efficiency code
+  sbypass_track_eff  = 0
+; sbypass_track_eff_files  bypass s_tracking efficiency output files
+  sbypass_track_eff_files  = 1
+
+; sbypass_trans_scin       bypass s_trans_scin
+  sbypass_trans_scin = 0
+; sbypass_tof              bypass s_tof
+  sbypass_tof        = 0
+; sbypass_scin_eff         bypass s_scin_eff and s_scin_eff_shutdown
+  sbypass_scin_eff   = 0
+
+; sbypass_trans_cer        bypass s_trans_cer
+  sbypass_trans_cer  = 0
+; sbypass_cer              bypass s_cer, (a dummy routine)
+  sbypass_cer        = 1
+; sbypass_cer_eff          bypass s_cer_eff and s_cer_eff_shutdown
+  sbypass_cer_eff    = 0
+
+; sbypass_aero              bypass s_aero
+  sbypass_aero        = 0
+
+; sbypass_trans_cal        bypass s_trans_cal
+  sbypass_trans_cal  = 0
+; sbypass_cal              bypass s_cal
+  sbypass_cal        = 0
+; sbypass_cal_eff          bypass s_cal_eff and s_cal_eff_shutdown
+  sbypass_cal_eff    = 0
+
+; sbypass_physics          bypass s_physics
+  sbypass_physics    = 0
diff --git a/examples/PARAM/sdriftmap.param b/examples/PARAM/sdriftmap.param
new file mode 100644
index 0000000..7f5ae8e
--- /dev/null
+++ b/examples/PARAM/sdriftmap.param
@@ -0,0 +1,343 @@
+; Lookup table
+;number of bins in Meek's time to distance lookup table
+sdriftbins=138
+;number of 1st bin in Meek's table in ns
+sdrift1stbin=-24
+;bin size in ns of Meek's table
+sdriftbinsz=2
+swc1u1fract=0.0000,0.0000,0.0000,0.0000,0.0001,0.0001,0.0001,0.0001
+0.0002,0.0002,0.0002,0.0003,0.0004,0.0009,0.0021,0.0054,0.0111,0.0198
+0.0303,0.0429,0.0574,0.0745,0.0944,0.1148,0.1356,0.1579,0.1816,0.2058
+0.2313,0.2562,0.2810,0.3057,0.3308,0.3552,0.3801,0.4044,0.4280,0.4521
+0.4766,0.4991,0.5224,0.5447,0.5670,0.5901,0.6118,0.6331,0.6539,0.6744
+0.6946,0.7144,0.7333,0.7526,0.7717,0.7899,0.8080,0.8254,0.8425,0.8587
+0.8744,0.8888,0.9027,0.9154,0.9267,0.9364,0.9446,0.9524,0.9584,0.9632
+0.9677,0.9714,0.9747,0.9775,0.9803,0.9824,0.9845,0.9863,0.9878,0.9895
+0.9909,0.9923,0.9933,0.9942,0.9950,0.9958,0.9965,0.9972,0.9977,0.9981
+0.9985,0.9988,0.9991,0.9993,0.9994,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1x1fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0001,0.0001
+0.0001,0.0001,0.0001,0.0001,0.0001,0.0002,0.0007,0.0018,0.0048,0.0102
+0.0184,0.0289,0.0419,0.0566,0.0725,0.0887,0.1062,0.1250,0.1442,0.1633
+0.1824,0.2012,0.2199,0.2393,0.2587,0.2774,0.2965,0.3156,0.3343,0.3527
+0.3705,0.3877,0.4059,0.4238,0.4416,0.4591,0.4767,0.4944,0.5116,0.5307
+0.5508,0.5699,0.5894,0.6099,0.6292,0.6498,0.6704,0.6895,0.7088,0.7282
+0.7464,0.7650,0.7813,0.7976,0.8133,0.8270,0.8403,0.8518,0.8622,0.8713
+0.8802,0.8885,0.8959,0.9031,0.9093,0.9148,0.9208,0.9262,0.9315,0.9359
+0.9407,0.9452,0.9497,0.9541,0.9585,0.9620,0.9658,0.9695,0.9725,0.9758
+0.9786,0.9812,0.9840,0.9861,0.9883,0.9896,0.9912,0.9923,0.9936,0.9946
+0.9952,0.9959,0.9963,0.9967,0.9971,0.9975,0.9978,0.9980,0.9983,0.9986
+0.9987,0.9989,0.9992,0.9994,0.9995,0.9997,0.9997,0.9998,0.9998,0.9998
+0.9998,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1v1fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0001,0.0001,0.0001
+0.0002,0.0002,0.0002,0.0002,0.0004,0.0007,0.0019,0.0050,0.0107,0.0195
+0.0298,0.0421,0.0569,0.0742,0.0936,0.1143,0.1362,0.1592,0.1822,0.2057
+0.2305,0.2549,0.2795,0.3036,0.3285,0.3541,0.3779,0.4021,0.4257,0.4492
+0.4732,0.4966,0.5206,0.5432,0.5649,0.5868,0.6079,0.6282,0.6487,0.6694
+0.6889,0.7097,0.7295,0.7492,0.7677,0.7864,0.8045,0.8221,0.8384,0.8546
+0.8707,0.8858,0.9002,0.9131,0.9252,0.9346,0.9431,0.9499,0.9562,0.9613
+0.9656,0.9695,0.9729,0.9757,0.9787,0.9811,0.9832,0.9851,0.9867,0.9882
+0.9897,0.9912,0.9926,0.9936,0.9946,0.9955,0.9962,0.9970,0.9975,0.9979
+0.9983,0.9985,0.9988,0.9991,0.9992,0.9993,0.9994,0.9995,0.9995,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1u2fract=0.0000,0.0000,0.0000,0.0000,0.0001,0.0001,0.0001,0.0001
+0.0001,0.0002,0.0002,0.0003,0.0003,0.0004,0.0010,0.0027,0.0065,0.0129
+0.0229,0.0347,0.0482,0.0652,0.0837,0.1025,0.1249,0.1475,0.1699,0.1939
+0.2184,0.2428,0.2672,0.2927,0.3176,0.3417,0.3660,0.3899,0.4125,0.4370
+0.4603,0.4834,0.5059,0.5281,0.5513,0.5727,0.5945,0.6158,0.6364,0.6565
+0.6777,0.6984,0.7182,0.7376,0.7563,0.7746,0.7934,0.8114,0.8290,0.8462
+0.8620,0.8775,0.8925,0.9056,0.9182,0.9304,0.9399,0.9478,0.9545,0.9606
+0.9654,0.9696,0.9734,0.9768,0.9795,0.9819,0.9842,0.9860,0.9876,0.9892
+0.9905,0.9917,0.9927,0.9938,0.9948,0.9955,0.9962,0.9967,0.9973,0.9978
+0.9982,0.9985,0.9988,0.9990,0.9991,0.9992,0.9994,0.9995,0.9996,0.9996
+0.9996,0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1x2fract=0.0000,0.0001,0.0001,0.0001,0.0001,0.0001,0.0001,0.0002
+0.0002,0.0002,0.0003,0.0004,0.0010,0.0025,0.0055,0.0100,0.0173,0.0266
+0.0388,0.0534,0.0701,0.0889,0.1082,0.1295,0.1519,0.1744,0.1963,0.2207
+0.2447,0.2693,0.2932,0.3178,0.3419,0.3651,0.3888,0.4128,0.4373,0.4611
+0.4852,0.5096,0.5323,0.5553,0.5784,0.6009,0.6230,0.6451,0.6663,0.6869
+0.7063,0.7267,0.7461,0.7655,0.7846,0.8036,0.8210,0.8383,0.8555,0.8710
+0.8864,0.9005,0.9141,0.9260,0.9359,0.9446,0.9524,0.9585,0.9635,0.9682
+0.9723,0.9756,0.9785,0.9813,0.9837,0.9858,0.9876,0.9893,0.9909,0.9923
+0.9934,0.9943,0.9953,0.9961,0.9968,0.9972,0.9977,0.9981,0.9983,0.9986
+0.9988,0.9990,0.9991,0.9992,0.9993,0.9993,0.9994,0.9995,0.9995,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1v2fract=0.0000,0.0001,0.0001,0.0001,0.0001,0.0001,0.0001,0.0001
+0.0001,0.0002,0.0003,0.0003,0.0004,0.0010,0.0025,0.0052,0.0109,0.0198
+0.0315,0.0455,0.0618,0.0800,0.1009,0.1223,0.1450,0.1675,0.1925,0.2174
+0.2433,0.2682,0.2920,0.3172,0.3416,0.3659,0.3901,0.4145,0.4383,0.4623
+0.4849,0.5083,0.5310,0.5527,0.5750,0.5970,0.6183,0.6399,0.6609,0.6819
+0.7014,0.7219,0.7411,0.7602,0.7795,0.7965,0.8145,0.8315,0.8486,0.8637
+0.8784,0.8928,0.9069,0.9195,0.9300,0.9393,0.9475,0.9541,0.9597,0.9643
+0.9684,0.9722,0.9752,0.9781,0.9808,0.9831,0.9851,0.9869,0.9883,0.9899
+0.9913,0.9926,0.9937,0.9947,0.9954,0.9961,0.9969,0.9974,0.9979,0.9984
+0.9987,0.9989,0.9991,0.9993,0.9994,0.9994,0.9995,0.9996,0.9996,0.9997
+0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2u1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0001,0.0002,0.0002
+0.0002,0.0003,0.0003,0.0003,0.0005,0.0010,0.0026,0.0065,0.0136,0.0236
+0.0365,0.0511,0.0681,0.0882,0.1090,0.1304,0.1534,0.1773,0.2017,0.2257
+0.2499,0.2747,0.2994,0.3233,0.3482,0.3716,0.3950,0.4178,0.4409,0.4643
+0.4869,0.5103,0.5331,0.5557,0.5778,0.5987,0.6200,0.6410,0.6614,0.6824
+0.7021,0.7221,0.7413,0.7599,0.7777,0.7958,0.8139,0.8308,0.8478,0.8637
+0.8788,0.8932,0.9070,0.9195,0.9306,0.9399,0.9487,0.9554,0.9609,0.9659
+0.9705,0.9741,0.9772,0.9798,0.9820,0.9841,0.9858,0.9877,0.9892,0.9905
+0.9917,0.9928,0.9938,0.9947,0.9954,0.9962,0.9969,0.9975,0.9979,0.9982
+0.9985,0.9987,0.9989,0.9990,0.9991,0.9992,0.9994,0.9995,0.9995,0.9996
+0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2x1fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0001,0.0002,0.0002
+0.0002,0.0003,0.0003,0.0003,0.0004,0.0006,0.0012,0.0030,0.0075,0.0152
+0.0255,0.0391,0.0555,0.0737,0.0933,0.1145,0.1377,0.1618,0.1857,0.2095
+0.2335,0.2583,0.2823,0.3073,0.3320,0.3556,0.3781,0.4013,0.4255,0.4482
+0.4720,0.4953,0.5173,0.5391,0.5602,0.5816,0.6036,0.6234,0.6435,0.6640
+0.6839,0.7038,0.7234,0.7423,0.7615,0.7797,0.7979,0.8156,0.8326,0.8488
+0.8656,0.8813,0.8956,0.9098,0.9219,0.9324,0.9412,0.9486,0.9553,0.9611
+0.9663,0.9702,0.9739,0.9766,0.9795,0.9823,0.9845,0.9866,0.9883,0.9898
+0.9910,0.9923,0.9934,0.9944,0.9952,0.9958,0.9963,0.9968,0.9973,0.9977
+0.9979,0.9982,0.9984,0.9987,0.9988,0.9989,0.9990,0.9991,0.9992,0.9992
+0.9992,0.9993,0.9993,0.9994,0.9994,0.9995,0.9995,0.9995,0.9996,0.9996
+0.9996,0.9996,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2v1fract=0.0000,0.0001,0.0001,0.0001,0.0001,0.0001,0.0001,0.0001
+0.0002,0.0002,0.0002,0.0002,0.0004,0.0007,0.0013,0.0034,0.0080,0.0155
+0.0257,0.0387,0.0542,0.0716,0.0901,0.1111,0.1335,0.1559,0.1792,0.2032
+0.2276,0.2515,0.2757,0.3002,0.3247,0.3482,0.3723,0.3960,0.4195,0.4436
+0.4667,0.4899,0.5126,0.5355,0.5580,0.5795,0.6008,0.6209,0.6417,0.6626
+0.6826,0.7021,0.7214,0.7409,0.7603,0.7794,0.7965,0.8154,0.8324,0.8489
+0.8649,0.8797,0.8941,0.9081,0.9206,0.9308,0.9400,0.9471,0.9534,0.9594
+0.9644,0.9684,0.9722,0.9756,0.9782,0.9808,0.9828,0.9848,0.9867,0.9883
+0.9900,0.9914,0.9927,0.9937,0.9945,0.9953,0.9961,0.9966,0.9973,0.9978
+0.9982,0.9986,0.9988,0.9990,0.9992,0.9993,0.9994,0.9995,0.9995,0.9996
+0.9996,0.9996,0.9997,0.9997,0.9997,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2u2fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0001,0.0001,0.0001
+0.0001,0.0002,0.0002,0.0003,0.0004,0.0007,0.0015,0.0040,0.0089,0.0164
+0.0260,0.0384,0.0529,0.0711,0.0896,0.1100,0.1326,0.1552,0.1782,0.2019
+0.2256,0.2499,0.2745,0.2974,0.3210,0.3452,0.3689,0.3919,0.4150,0.4387
+0.4616,0.4856,0.5074,0.5303,0.5529,0.5744,0.5958,0.6170,0.6389,0.6594
+0.6789,0.6979,0.7183,0.7378,0.7565,0.7743,0.7926,0.8093,0.8265,0.8433
+0.8595,0.8756,0.8901,0.9040,0.9164,0.9277,0.9377,0.9457,0.9524,0.9583
+0.9637,0.9682,0.9721,0.9751,0.9779,0.9806,0.9825,0.9844,0.9865,0.9881
+0.9895,0.9907,0.9920,0.9933,0.9945,0.9953,0.9961,0.9969,0.9975,0.9979
+0.9982,0.9984,0.9987,0.9988,0.9989,0.9991,0.9993,0.9994,0.9994,0.9995
+0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997,0.9997,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2x2fract=0.0000,0.0000,0.0001,0.0001,0.0001,0.0002,0.0002,0.0002
+0.0002,0.0002,0.0003,0.0004,0.0005,0.0008,0.0021,0.0063,0.0133,0.0235
+0.0368,0.0531,0.0715,0.0922,0.1135,0.1363,0.1598,0.1827,0.2059,0.2302
+0.2550,0.2787,0.3019,0.3256,0.3494,0.3717,0.3954,0.4184,0.4401,0.4630
+0.4850,0.5073,0.5296,0.5515,0.5731,0.5943,0.6143,0.6345,0.6558,0.6765
+0.6964,0.7163,0.7361,0.7544,0.7733,0.7922,0.8102,0.8270,0.8445,0.8609
+0.8768,0.8912,0.9052,0.9178,0.9288,0.9388,0.9467,0.9542,0.9600,0.9655
+0.9699,0.9737,0.9769,0.9797,0.9818,0.9837,0.9855,0.9871,0.9890,0.9904
+0.9915,0.9926,0.9935,0.9943,0.9950,0.9956,0.9960,0.9965,0.9967,0.9970
+0.9973,0.9977,0.9979,0.9980,0.9982,0.9982,0.9983,0.9984,0.9984,0.9985
+0.9986,0.9986,0.9987,0.9988,0.9989,0.9990,0.9990,0.9991,0.9992,0.9993
+0.9993,0.9994,0.9994,0.9994,0.9995,0.9995,0.9996,0.9996,0.9996,0.9998
+0.9998,0.9998,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2v2fract=0.0000,0.0000,0.0000,0.0001,0.0001,0.0001,0.0001,0.0001
+0.0002,0.0002,0.0002,0.0002,0.0002,0.0004,0.0013,0.0038,0.0091,0.0170
+0.0282,0.0423,0.0584,0.0778,0.0985,0.1206,0.1431,0.1671,0.1903,0.2158
+0.2410,0.2661,0.2905,0.3140,0.3380,0.3621,0.3863,0.4099,0.4329,0.4558
+0.4793,0.5019,0.5241,0.5459,0.5673,0.5889,0.6105,0.6315,0.6517,0.6718
+0.6914,0.7111,0.7304,0.7490,0.7687,0.7864,0.8045,0.8222,0.8393,0.8547
+0.8700,0.8849,0.8998,0.9131,0.9249,0.9350,0.9437,0.9515,0.9580,0.9632
+0.9674,0.9711,0.9746,0.9775,0.9799,0.9820,0.9841,0.9859,0.9875,0.9889
+0.9901,0.9914,0.9924,0.9935,0.9945,0.9954,0.9961,0.9968,0.9973,0.9978
+0.9982,0.9985,0.9988,0.9989,0.9992,0.9993,0.9993,0.9994,0.9995,0.9995
+0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9997,0.9997,0.9997,0.9997
+0.9997,0.9997,0.9998,0.9998,0.9998,0.9999,0.9999,0.9999,0.9999,0.9999
+0.9999,0.9999,0.9999,0.9999,0.9999,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1u1fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000
+0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0002,0.0004,0.0007
+0.0009,0.0016,0.0069,0.0155,0.0291,0.0465,0.0649,0.0849,0.1045,0.1245
+0.1453,0.1669,0.1873,0.2069,0.2307,0.2529,0.2725,0.2962,0.3180,0.3400
+0.3618,0.3825,0.4027,0.4240,0.4460,0.4682,0.4896,0.5147,0.5369,0.5556
+0.5769,0.5989,0.6204,0.6451,0.6647,0.6847,0.7055,0.7249,0.7456,0.7642
+0.7844,0.8035,0.8193,0.8378,0.8542,0.8727,0.8907,0.9076,0.9222,0.9342
+0.9464,0.9562,0.9627,0.9691,0.9738,0.9796,0.9840,0.9867,0.9884,0.9907
+0.9922,0.9936,0.9955,0.9958,0.9971,0.9980,0.9984,0.9987,0.9987,0.9987
+0.9989,0.9991,0.9991,0.9991,0.9991,0.9993,0.9993,0.9993,0.9995,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1u2fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0004,0.0004
+0.0004,0.0004,0.0004,0.0005,0.0005,0.0005,0.0005,0.0005,0.0007,0.0007
+0.0009,0.0033,0.0095,0.0229,0.0405,0.0632,0.0838,0.1025,0.1257,0.1441
+0.1611,0.1849,0.2045,0.2251,0.2458,0.2665,0.2879,0.3096,0.3334,0.3585
+0.3814,0.4038,0.4245,0.4448,0.4679,0.4918,0.5136,0.5363,0.5579,0.5792
+0.6010,0.6184,0.6397,0.6576,0.6749,0.6967,0.7159,0.7370,0.7592,0.7790
+0.7951,0.8149,0.8330,0.8503,0.8644,0.8814,0.8992,0.9151,0.9280,0.9423
+0.9531,0.9617,0.9674,0.9742,0.9787,0.9833,0.9864,0.9890,0.9907,0.9921
+0.9941,0.9956,0.9965,0.9978,0.9984,0.9985,0.9987,0.9989,0.9989,0.9989
+0.9991,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1x1fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0002,0.0002
+0.0002,0.0002,0.0004,0.0004,0.0004,0.0005,0.0005,0.0005,0.0007,0.0007
+0.0015,0.0037,0.0108,0.0228,0.0369,0.0601,0.0805,0.0986,0.1165,0.1378
+0.1601,0.1804,0.1986,0.2180,0.2395,0.2646,0.2845,0.3045,0.3250,0.3506
+0.3759,0.3991,0.4227,0.4435,0.4670,0.4911,0.5092,0.5317,0.5547,0.5751
+0.5954,0.6177,0.6385,0.6624,0.6814,0.7002,0.7185,0.7373,0.7579,0.7754
+0.7966,0.8138,0.8276,0.8455,0.8634,0.8822,0.8968,0.9124,0.9275,0.9416
+0.9513,0.9609,0.9684,0.9735,0.9792,0.9838,0.9879,0.9898,0.9920,0.9932
+0.9940,0.9953,0.9969,0.9974,0.9978,0.9982,0.9985,0.9987,0.9989,0.9991
+0.9991,0.9991,0.9993,0.9995,0.9996,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc1x2fract=0.0000,0.0000,0.0002,0.0002,0.0002,0.0002,0.0002,0.0002
+0.0002,0.0002,0.0002,0.0006,0.0006,0.0007,0.0007,0.0007,0.0007,0.0007
+0.0028,0.0070,0.0160,0.0360,0.0558,0.0752,0.0945,0.1135,0.1335,0.1546
+0.1764,0.1983,0.2186,0.2390,0.2579,0.2753,0.2944,0.3146,0.3380,0.3555
+0.3769,0.4024,0.4283,0.4525,0.4752,0.4961,0.5226,0.5455,0.5668,0.5890
+0.6134,0.6321,0.6495,0.6689,0.6873,0.7084,0.7304,0.7509,0.7683,0.7869
+0.8026,0.8248,0.8424,0.8588,0.8791,0.8929,0.9068,0.9219,0.9384,0.9492
+0.9595,0.9668,0.9727,0.9795,0.9826,0.9859,0.9899,0.9914,0.9930,0.9952
+0.9961,0.9965,0.9972,0.9974,0.9976,0.9982,0.9987,0.9991,0.9991,0.9991
+0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994
+0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9994,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,1.0000,1.0000
+swc1v1fract=0.0000,0.0000,0.0000,0.0002,0.0004,0.0004,0.0004,0.0004
+0.0004,0.0004,0.0004,0.0004,0.0004,0.0004,0.0004,0.0004,0.0004,0.0005
+0.0009,0.0031,0.0113,0.0222,0.0383,0.0594,0.0775,0.0961,0.1126,0.1327
+0.1522,0.1709,0.1936,0.2135,0.2348,0.2569,0.2816,0.3042,0.3243,0.3447
+0.3701,0.3906,0.4133,0.4385,0.4601,0.4841,0.5070,0.5271,0.5493,0.5713
+0.5934,0.6105,0.6314,0.6537,0.6762,0.6946,0.7147,0.7336,0.7539,0.7712
+0.7890,0.8075,0.8311,0.8482,0.8644,0.8832,0.8998,0.9145,0.9250,0.9392
+0.9510,0.9579,0.9659,0.9720,0.9760,0.9815,0.9844,0.9880,0.9906,0.9929
+0.9936,0.9942,0.9946,0.9958,0.9967,0.9976,0.9978,0.9980,0.9989,0.9989
+0.9989,0.9989,0.9989,0.9989,0.9991,0.9993,0.9993,0.9993,0.9995,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9998,1.0000,1.0000,1.0000
+swc1v2fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0002
+0.0002,0.0004,0.0004,0.0004,0.0004,0.0004,0.0005,0.0005,0.0005,0.0007
+0.0016,0.0036,0.0087,0.0189,0.0380,0.0554,0.0757,0.0936,0.1159,0.1393
+0.1593,0.1842,0.2042,0.2242,0.2440,0.2636,0.2861,0.3103,0.3359,0.3602
+0.3795,0.4002,0.4252,0.4474,0.4676,0.4874,0.5104,0.5351,0.5577,0.5784
+0.5998,0.6196,0.6431,0.6629,0.6779,0.6975,0.7206,0.7388,0.7557,0.7755
+0.7940,0.8125,0.8303,0.8467,0.8658,0.8816,0.8979,0.9152,0.9301,0.9415
+0.9500,0.9588,0.9640,0.9715,0.9760,0.9809,0.9835,0.9862,0.9887,0.9913
+0.9926,0.9938,0.9949,0.9956,0.9964,0.9973,0.9978,0.9978,0.9982,0.9982
+0.9985,0.9995,0.9995,0.9995,0.9995,0.9995,0.9995,0.9996,0.9996,0.9996
+0.9996,0.9998,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2u1fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000
+0.0002,0.0002,0.0005,0.0005,0.0009,0.0009,0.0009,0.0009,0.0009,0.0016
+0.0031,0.0047,0.0115,0.0279,0.0443,0.0637,0.0821,0.1029,0.1238,0.1432
+0.1609,0.1831,0.2077,0.2313,0.2530,0.2750,0.2973,0.3170,0.3389,0.3631
+0.3863,0.4085,0.4286,0.4477,0.4691,0.4933,0.5143,0.5320,0.5535,0.5780
+0.5975,0.6196,0.6374,0.6591,0.6772,0.6985,0.7164,0.7368,0.7545,0.7733
+0.7924,0.8111,0.8300,0.8488,0.8669,0.8816,0.8980,0.9134,0.9263,0.9402
+0.9506,0.9590,0.9653,0.9721,0.9761,0.9799,0.9830,0.9856,0.9891,0.9918
+0.9923,0.9933,0.9949,0.9969,0.9978,0.9982,0.9989,0.9991,0.9996,0.9998
+0.9998,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2u2fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000,0.0000
+0.0002,0.0005,0.0009,0.0009,0.0009,0.0009,0.0009,0.0009,0.0009,0.0015
+0.0025,0.0062,0.0165,0.0314,0.0493,0.0682,0.0874,0.1065,0.1278,0.1450
+0.1676,0.1890,0.2090,0.2319,0.2579,0.2768,0.2977,0.3222,0.3441,0.3650
+0.3875,0.4080,0.4304,0.4486,0.4707,0.4976,0.5165,0.5318,0.5545,0.5743
+0.5963,0.6212,0.6454,0.6643,0.6845,0.7036,0.7268,0.7466,0.7659,0.7850
+0.8046,0.8239,0.8417,0.8581,0.8757,0.8902,0.9062,0.9220,0.9346,0.9460
+0.9560,0.9651,0.9718,0.9776,0.9822,0.9858,0.9880,0.9907,0.9933,0.9938
+0.9945,0.9956,0.9967,0.9975,0.9978,0.9985,0.9991,0.9993,0.9993,0.9995
+0.9995,0.9995,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2x1fract=0.0000,0.0000,0.0000,0.0000,0.0002,0.0002,0.0002,0.0002
+0.0002,0.0002,0.0002,0.0002,0.0004,0.0004,0.0004,0.0004,0.0005,0.0007
+0.0022,0.0062,0.0203,0.0364,0.0574,0.0742,0.1014,0.1206,0.1411,0.1630
+0.1844,0.2084,0.2287,0.2477,0.2696,0.2892,0.3084,0.3290,0.3517,0.3769
+0.4020,0.4238,0.4471,0.4703,0.4904,0.5143,0.5335,0.5552,0.5742,0.5982
+0.6177,0.6391,0.6603,0.6791,0.6963,0.7135,0.7325,0.7546,0.7729,0.7930
+0.8135,0.8307,0.8472,0.8624,0.8817,0.8959,0.9133,0.9254,0.9411,0.9515
+0.9603,0.9676,0.9745,0.9806,0.9848,0.9877,0.9897,0.9913,0.9924,0.9931
+0.9940,0.9951,0.9962,0.9966,0.9975,0.9976,0.9978,0.9978,0.9986,0.9989
+0.9989,0.9993,0.9993,0.9995,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996,0.9996
+0.9998,0.9998,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2x2fract=0.0000,0.0002,0.0004,0.0004,0.0004,0.0004,0.0004,0.0004
+0.0005,0.0005,0.0005,0.0009,0.0011,0.0014,0.0014,0.0014,0.0014,0.0016
+0.0020,0.0029,0.0079,0.0163,0.0300,0.0482,0.0677,0.0860,0.1062,0.1243
+0.1452,0.1673,0.1911,0.2146,0.2383,0.2598,0.2803,0.3008,0.3195,0.3448
+0.3683,0.3905,0.4124,0.4337,0.4601,0.4855,0.5067,0.5242,0.5446,0.5641
+0.5853,0.6071,0.6292,0.6481,0.6655,0.6846,0.7059,0.7274,0.7457,0.7612
+0.7784,0.7988,0.8181,0.8382,0.8577,0.8754,0.8922,0.9084,0.9225,0.9359
+0.9478,0.9570,0.9641,0.9711,0.9758,0.9790,0.9839,0.9875,0.9895,0.9921
+0.9937,0.9944,0.9960,0.9964,0.9973,0.9977,0.9977,0.9978,0.9984,0.9987
+0.9989,0.9989,0.9989,0.9989,0.9989,0.9991,0.9991,0.9991,0.9991,0.9993
+0.9993,0.9993,0.9993,0.9995,0.9995,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2v1fract=0.0000,0.0000,0.0000,0.0000,0.0000,0.0002,0.0002,0.0002
+0.0004,0.0004,0.0004,0.0005,0.0005,0.0007,0.0011,0.0011,0.0011,0.0011
+0.0018,0.0045,0.0096,0.0212,0.0384,0.0560,0.0726,0.0916,0.1105,0.1304
+0.1507,0.1726,0.1970,0.2173,0.2409,0.2624,0.2802,0.3041,0.3294,0.3530
+0.3779,0.3999,0.4209,0.4433,0.4656,0.4882,0.5132,0.5353,0.5585,0.5782
+0.6012,0.6255,0.6452,0.6653,0.6854,0.7077,0.7276,0.7476,0.7657,0.7854
+0.8033,0.8207,0.8396,0.8571,0.8747,0.8895,0.9057,0.9239,0.9357,0.9460
+0.9544,0.9625,0.9694,0.9743,0.9788,0.9817,0.9846,0.9870,0.9890,0.9908
+0.9929,0.9942,0.9947,0.9962,0.9971,0.9982,0.9986,0.9987,0.9993,0.9993
+0.9993,0.9993,0.9993,0.9995,0.9995,0.9995,0.9996,0.9996,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+swc2v2fract=0.0000,0.0000,0.0002,0.0002,0.0002,0.0002,0.0002,0.0006
+0.0006,0.0006,0.0006,0.0006,0.0006,0.0007,0.0009,0.0013,0.0017,0.0022
+0.0028,0.0054,0.0126,0.0254,0.0438,0.0655,0.0854,0.1038,0.1221,0.1448
+0.1643,0.1869,0.2075,0.2306,0.2495,0.2723,0.2968,0.3202,0.3462,0.3674
+0.3893,0.4104,0.4331,0.4550,0.4793,0.5008,0.5222,0.5433,0.5662,0.5885
+0.6120,0.6339,0.6568,0.6772,0.6987,0.7210,0.7418,0.7605,0.7806,0.7971
+0.8173,0.8374,0.8535,0.8725,0.8892,0.9035,0.9193,0.9291,0.9393,0.9495
+0.9588,0.9660,0.9723,0.9790,0.9833,0.9874,0.9898,0.9911,0.9933,0.9942
+0.9950,0.9959,0.9970,0.9974,0.9976,0.9985,0.9987,0.9989,0.9989,0.9989
+0.9991,0.9993,0.9993,0.9993,0.9993,0.9994,0.9994,0.9994,0.9994,0.9994
+0.9994,0.9994,0.9994,0.9996,0.9996,0.9998,0.9998,0.9998,0.9998,0.9998
+0.9998,0.9998,0.9998,0.9998,0.9998,0.9998,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
+1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000,1.0000
diff --git a/examples/PARAM/shodo.param b/examples/PARAM/shodo.param
new file mode 100644
index 0000000..681cfd9
--- /dev/null
+++ b/examples/PARAM/shodo.param
@@ -0,0 +1,192 @@
+; tof and you figured out good values
+stof_tolerance = 50.0
+; sstart_time_center  center of allowed time window                             
+   sstart_time_center = 15.                                                     
+; sstart_time_slop    1/2 width of time window                                  
+   sstart_time_slop = 20.                                                       
+; sscin_tdc_min       minimum tdc value in sos scin                             
+   sscin_tdc_min = 0                                                            
+; sscin_tdc_max       maximum allowed tdc value                                 
+;   sscin_tdc_max = 9000                                                        
+; 19.08.1999 At suggestion of Mack, reduce to 4000 to get rid of                
+; bad beta values.                                                              
+                                                                                
+   sscin_tdc_max = 4000                                                         
+ ; sscin_tdc_to_time   scin tdc time per channel                                
+   sscin_tdc_to_time = 0.0247                     ; Monte Carlo Value           
+                                                                                
+;;; All the following taken from hhodo.param                                    
+; sos_tof_params                                                                
+; snum_scin_counters, shodo_zpos, shodo_center_coord, shodo_width               
+; are all calculated within s_init_scin                                         
+;    shodo_pos_coord and shodo_neg_coord are not yet used                       
+;                                                                               
+     shodo_slop     =    2.,  2.,  4.,  4.                                      
+;                                                                               
+     shodo_vel_light =  14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+                        14.5,14.5,14.5,14.5                                     
+;                                                                               
+      shodo_pos_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+;                                                                               
+      shodo_neg_sigma = .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                        .3,.3,.3,.3,.3,.3,.3,.3                                 
+                                                                                
+                                                                                
+  shodo_pos_minph = 145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                                                                                
+  shodo_neg_minph = 145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                    145,160,130,145                                             
+                                                                                
+;  shodo_pos_phc_coeff = -.9,-.764,-.9,-.952                                    
+;  shodo_pos_phc_coeff = -.9,-.820,-.95,-1.0                                    
+;  shodo_pos_phc_coeff = -1.1,-1.2,-1.0,-1.1                                    
+  shodo_pos_phc_coeff = -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                                                                                
+;  shodo_neg_phc_coeff = -.9,-.764,-.9,-.952                                    
+;  shodo_neg_phc_coeff = -.9,-.820,-.95,-1.0                                    
+;  shodo_neg_phc_coeff = -1.1,-1.2,-1.0,-101                                    
+  shodo_neg_phc_coeff = -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                        -1.2,-1.0,-1.0,-1.0                                     
+                                                                                
+                                                                                
+;order = 1x, 1y, 2x, 2y?       Yes.                                             
+;                                                                               
+;i changed s2x pos, 6th from bottom (11), from -34.4628 to -33.4628             
+                                                                                
+shodo_pos_time_offset = -11.1561,  -8.2512, -20.8399, -22.1478
+                         -4.9220,  -6.1990, -17.2972, -20.6541
+                         -6.5630,  -6.5562, -17.2113, -25.0076
+                          2.0654,  -5.2586, -21.0289, -23.7117
+                         -2.3622,  -2.7236, -16.4206, -23.6527
+                         -1.7189,  -3.5400, -19.5546, -25.5267
+                         -5.8419,  -9.0256, -20.5453, -20.3712
+                         -3.0988,  -7.5451, -18.7901, -19.9287
+                         -1.5768,  -4.2217, -21.4121, -19.8550
+                          0.0000,  -1.9975, -17.1522,   0.0000
+                          0.0000,   0.0000, -18.5695,  -1.9975
+                          0.0000,   0.0000, -17.0718,   0.0000
+                          0.0000,   0.0000, -22.3547,   0.0000
+                          0.0000,   0.0000, -14.7852,   0.0000
+                          0.0000,   0.0000, -18.4089,   0.0000
+                          0.0000,   0.0000, -10.5723,   0.0000
+shodo_neg_time_offset =  -4.3414,  -4.2570,   5.1140, -22.1772
+                          3.9469,  -7.2221, -12.6892, -23.5859
+                          6.2738,  -5.4030,  -3.5626, -21.8087
+                         -1.2458,  -4.2156, -12.7788, -22.9824
+                          2.3585,  -1.7379,  -8.9527, -17.2679
+                          6.4054,  -6.1500, -15.9257, -24.4995
+                          4.7343,  -5.9226,  -2.0483, -19.6460
+                          8.0788,  -1.1443, -16.5313, -18.6606
+                          1.9380,  -4.3016,  -2.5992, -24.3681
+                          0.0000,  -1.9975, -17.5387,   0.0000
+                          0.0000,   0.0000,  -0.7155,   0.0000
+                          0.0000,   0.0000, -14.6707,  -1.9975
+                          0.0000,   0.0000,  -1.2884,   0.0000
+                          0.0000,   0.0000, -10.0645,   0.0000
+                          0.0000,   0.0000,   0.9972,   0.0000
+                          0.0000,   0.0000,  -9.2349,   0.0000
+                                                                                
+;                                                                               
+  shodo_pos_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+;                                                                               
+  shodo_neg_ped_limit = 1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                        1000,1000,1000,1000,1000,1000,1000,1000                 
+                                                                                
diff --git a/examples/PARAM/shodo.pos b/examples/PARAM/shodo.pos
new file mode 100644
index 0000000..3b02feb
--- /dev/null
+++ b/examples/PARAM/shodo.pos
@@ -0,0 +1,103 @@
+      spathlength_central = 750
+; Z positions of hodoscopes
+      sscin_1y_zpos = ( 42.6+31.01)
+      sscin_1x_zpos = ( 66.1+31.01+0.9)
+      sscin_2y_zpos = (218.5+31.01-1.4)
+      sscin_2x_zpos = (242.0+31.01+17.8-1.4)
+      sscin_1x_dzpos = 1.12
+      sscin_1y_dzpos = 1.12
+      sscin_2x_dzpos = 1.12
+      sscin_2y_dzpos = 1.12
+; Sizes of hodoscope paddles
+      sscin_1x_size = 7.303
+      sscin_1y_size = 4.445
+      sscin_2x_size = 7.303
+      sscin_2y_size = 4.445
+      sscin_1x_spacing = 7.025
+      sscin_1y_spacing = 4.050
+      sscin_2x_spacing = 7.025
+      sscin_2y_spacing = 4.050
+; Number of hodoscope paddles per layer
+      sscin_1x_nr =  9
+      sscin_1y_nr =  9
+      sscin_2x_nr = 16
+      sscin_2y_nr =  9
+; X,Y positions of hodoscope paddles
+      sscin_1x_left  =  23.5
+      sscin_1x_right = -23.5
+      sscin_1x_offset=   -0.25
+      sscin_1x_center= -28.100
+                       -21.075
+                       -14.050
+                        -7.025
+                         0.000
+                         7.025
+                        14.050
+                        21.075
+                        28.100
+      sscin_1y_top   = -36.8
+      sscin_1y_bot   =  36.8
+; increasing offset moves "delta y" histogram move to larger y.
+      sscin_1y_offset=   0.0
+
+      sscin_1y_center=  16.20
+                        12.15
+                         8.10
+                         4.05
+                         0.00
+                        -4.05
+                        -8.10
+                       -12.15
+                       -16.20
+      sscin_2x_left  =  34.00
+      sscin_2x_right = -34.00
+      sscin_2x_offset=   4.57
+      sscin_2x_center=  -55.700
+                        -48.675
+                        -41.650
+                        -34.625
+                        -27.600
+                        -20.575
+                        -13.550
+                         -6.525
+                          0.500
+                          7.525
+                         14.550
+                         21.575
+                         28.600
+                         35.625
+                         42.650
+                         49.675
+
+
+;                       -60.25   ; Values from old variable "top"
+;                       -52.75
+;                       -45.25
+;                       -37.75
+;                       -30.25
+;                       -22.75
+;                       -15.25
+;                        -7.75
+;                        -0.25
+;                         7.25
+;                        14.75
+;                        22.25
+;                        29.75
+;                        37.25
+;                        44.75
+;                        52.25
+
+
+      sscin_2y_top   = -57.15
+      sscin_2y_bot   =  57.15
+; increasing offset moves "delta y" histogram move to larger y.
+      sscin_2y_offset=   0.0
+      sscin_2y_center=  16.20
+                        12.15
+                         8.10
+                         4.05
+                         0.00
+                        -4.05
+                        -8.10
+                       -12.15
+                       -16.20
diff --git a/examples/PARAM/sluc.param b/examples/PARAM/sluc.param
new file mode 100644
index 0000000..b506bbc
--- /dev/null
+++ b/examples/PARAM/sluc.param
@@ -0,0 +1,28 @@
+; 1996 values(?)
+;     sluc_pos_gain   =  .004219, .002490, .001626, .002978
+;			.005263, .002075, .002805, .004673 
+;     sluc_neg_gain   =	.000576, .002301, .003378, .002370
+;			.004545, .002786, .002494, .003676
+
+; These come from Tang.  They were done assuming that the peak
+; corresponded to 12 p.e.  The factor of 0.5 converts this to 6 p.e.
+; which is a better value for the correct beta of the particles.
+; The two which are 0.5/200. are ones with basically no signal,
+; due to incorrect timing of the ADC signal.
+;      sluc_pos_gain = 0.5/138., 0.5/150., 0.5/200., 0.5/118.,
+;                      0.5/130., 0.5/107., 0.5/200., 0.5/142.
+;      sluc_neg_gain = 0.5/117., 0.5/133., 0.5/115., 0.5/154.,
+;                      0.5/136., 0.5/156., 0.5/120., 0.5/122.
+
+; New values. after HV modifications to the PMTs.
+      sluc_pos_gain = 4.00E-3, 3.90E-3, 3.95E-3, 3.94E-3
+                      4.09E-3, 4.24E-3, 4.10E-3, 4.03E-3
+      sluc_neg_gain = 4.00E-3, 4.33E-3, 3.99E-3, 3.89E-3
+                      4.02E-3, 4.25E-3, 4.20E-3, 4.01E-3
+
+
+; the following are upper limits for acceptable pedestal data
+; if zero then the pedestal will not be determined and not subtracted
+    sluc_pos_ped_limit = 1500.,1500.,1500.,1500.,1500.,1500.,1500.,1500.
+
+    sluc_neg_ped_limit = 1500.,1500.,1500.,1500.,1500.,1500.,1500.,1500.
diff --git a/examples/PARAM/sosflags.param b/examples/PARAM/sosflags.param
new file mode 100644
index 0000000..b6044a5
--- /dev/null
+++ b/examples/PARAM/sosflags.param
@@ -0,0 +1,42 @@
+; Offset in the spectrometer momentum.
+  smomentum_factor = 0.000 ; leave 0 so it will have no effect
+                           ; use spcentral_offset if one needs to offset central momentum
+;
+; The sdelta_offset,stheta_offset,sphi_offset effect the
+; reconstructed target quantities. Used in s_targ_trans.f 
+; For transport x is in the dispersive direction with + down
+;               y is in the horizontal + towards large angles.
+;               z is along the central optics axis.
+; In transport coordinates phi = syptar = dy/dz and theta = sxptar = dx/dz 
+;    but for unknown reasons the yp offset is named  stheta_offset
+;    and  the xp offset is named  sphi_offset
+; Do not to change these values, since these are the zero order
+;  CMOP matrix elements. If you do change then your soss sieve
+;  plots will be screwed up.
+  sdelta_offset = 0.       ; (%) sdelta_tar = sdelta_tar + sdelta_offset
+  stheta_offset = 0.  	   ; (rad) syp_tar = syp_tar + stheta_offset
+  sphi_offset   = 0.       ; (rad) sxp_tar = sxp_tar + sphi_offset
+
+;saturation correction enable
+   genable_sos_satcorr = 1 ;(0=disabled) - STRACKING/s_satcorr.f
+                           ; event by event correction to ssdelta
+;central field saturation  correction enable
+   genable_sos_fieldcorr = 2003 ;(0=disabled) - ENGINE/s_fieldcorr.f
+;  genable_sos_fieldcorr = 2003 means using  C. Xu's parametrization 
+;  genable_sos_fieldcorr = 1999 means using  J. Volmer's parametrization
+;  either one determines sosp0corr which effects spcentral =   spcentral*(1+sosp0corr/100.)
+;
+; The following offsets are applied to the central kinematic variables
+;  in s_apply_offsets.f  . These might be modified by an experiment
+;  after doing calibration with elastic ep
+;
+  spcentral_offset = 0.0 ; sets  spcentral = spcentral * ( 1. + spcentral_offset / 100. )
+  sthetacentral_offset = 0.00 ; (rad)
+                       ;stheta_lab=stheta_lab + sthetacentral_offset/degree
+; This offset is determined from elastic ep data.
+; Must be added to ssxptar when used in calculating lab angles.
+; Example is in s_physics.f
+; 
+  s_oopcentral_offset = 0.0032  ; (rad)
+
+
diff --git a/examples/PARAM/stracking.param b/examples/PARAM/stracking.param
new file mode 100644
index 0000000..69fdf5c
--- /dev/null
+++ b/examples/PARAM/stracking.param
@@ -0,0 +1,72 @@
+; sos pattern recognition and tracking code parameters
+; sminhit(i)   minimum number of hits in each space point (one for each chamber)
+; smin_combos(i) minimum number of pairs in each space point ( one per chamber)
+; sspace_point_criterion(i) minimum separation of distinct space points
+;
+	smax_pr_hits = 25, 25
+        smin_hit =      5, 5
+        smin_combos =   6, 6
+        sspace_point_criterion = 1.2, 1.2 
+;
+; The following four criteria are applied to the stub fit results at the
+; focal plane position to link stubs to tracks
+; sxt_track_criterion  
+; syt_track_criterion
+; sxpt_track_criterion
+; sypt_track_criterion
+       sxt_track_criterion  = 100.
+       syt_track_criterion  = 20.
+       sxpt_track_criterion = 1.0
+       sypt_track_criterion = 1.0
+; ssingle_stub            If .ne. 0 make a track of all single stubs
+  ssingle_stub = 0
+; turn on/off small angle approximation to left/right decision for y
+  sSmallAngleApprox = 1
+;
+; Crude track selection criteria in s_physics
+; ssel_chi2_fpperdegmax   maximum chi2 per degree of freedom for track
+  ssel_chi2_fpperdegmax = 9999999.
+; ssel_dedx1min           minimum dedx to chose best track in scin 1
+  ssel_dedx1min = -1000000.
+; ssel_dedx1max           maximum dedx to chose best track in scin 1
+  ssel_dedx1max = 1000000.
+; ssel_betamin            minimum track beta to chose best track 
+  ssel_betamin  = -1000000.
+; ssel_betamax            maximum track beta to chose best track 
+  ssel_betamax  = 1000000.
+; ssel_etmin              minimum track et to chose best track 
+  ssel_etmin = -1000000.
+; ssel_etmax              maximum track et to chose best track 
+  ssel_etmax = 1000000.
+; ssel_ndegreesmin        minimum number of degrees of freedom for track
+  ssel_ndegreesmin = 1
+; sstat_maxchisq          chisquared limit for tracks used to measure hodo. eff.
+  sstat_maxchisq = 10.
+; sstat_slop              distance from center of scin. to count as expecting hit
+;              must be < 2 cm. since s1y and s2y scins. are only +/- 2cm in size.
+  sstat_slop = 1.
+; sstat_mineff            warning level for scin. effic.
+  sstat_mineff = .95
+; sstat_cal_maxchisq      chisquared limit for tracks used to measure cal. eff.
+  sstat_cal_maxchisq = 10.
+; sstat_cal_slop          distance from center of block to count as expecting hit
+  sstat_cal_slop = 2.
+; scer_min_eff            warning level for cerenkov effic.
+  scer_min_eff = .90
+; scer_threshold          threshold for good hit (for measureing effic.)
+  scer_threshold = 0.5
+; sdc_min_eff             warning level for dc raw effic.(1 per plane)
+  sdc_min_eff = .96,.96,.96,.96,.96,.96
+                .96,.96,.96,.96,.96,.96
+; sdc_min_wire_eff        warning level for wire effic, measured using tracking
+  sdc_min_wire_eff = .85
+; sdc_min_plane_eff       warning level for plane effic, measured using tracking
+  sdc_min_plane_eff = .95,.95,.95,.95,.95,.95
+                      .95,.95,.95,.95,.95,.95
+  sxloscin  = 2, 3
+  sxhiscin  = 8, 14
+  syloscin  = 2, 2
+  syhiscin  = 8, 8
+;  strack_eff_test_scin_planes is the number of planes nec needed to 
+;  set sweet spot to true. 4 is extra clean, 3 is good enough for e-'s.
+  strack_eff_test_num_scin_planes = 4
diff --git a/examples/db_cratemap.dat b/examples/db_cratemap.dat
new file mode 100644
index 0000000..8510d48
--- /dev/null
+++ b/examples/db_cratemap.dat
@@ -0,0 +1,42 @@
+# Hall C Crate map
+==== Crate 1 type fastbus
+# slot  model   clear   header  mask    nchan   ndata
+  1     1881    1       0x0     0x0     64      64
+  3     1881    1       0x0     0x0     64      64
+  5     1881    1       0x0     0x0     64      64
+  7     1881    1       0x0     0x0     64      64
+  9     1881    1       0x0     0x0     64      64
+ 11     1881    1       0x0     0x0     64      64
+ 13     1881    1       0x0     0x0     64      64
+ 18     1875    1       0x0     0x0     64      64
+ 19     1875    1       0x0     0x0     64      64
+ 21     1875    1       0x0     0x0     64      64
+ 23     1875    1       0x0     0x0     64      64
+==== Crate 2 type fastbus
+# slot  model   clear   header  mask    nchan   ndata
+  2     1877    1       0x0     0x0     64      256
+  3     1877    1       0x0     0x0     64      256
+  8     1877    1       0x0     0x0     64      256
+ 15     1877    1       0x0     0x0     64      256
+ 16     1877    1       0x0     0x0     64      256
+ 18     1877    1       0x0     0x0     64      256
+ 19     1877    1       0x0     0x0     64      256
+ 21     1877    1       0x0     0x0     64      256
+ 22     1877    1       0x0     0x0     64      256
+==== Crate 3 type fastbus
+# slot  model   clear   header  mask    nchan   ndata
+  1     1881    1       0x0     0x0     64      64
+  3     1881    1       0x0     0x0     64      64
+  5     1881    1       0x0     0x0     64      64
+  7     1881    1       0x0     0x0     64      64
+  9     1881    1       0x0     0x0     64      64
+ 18     1875    1       0x0     0x0     64      64
+ 22     1875    1       0x0     0x0     64      64
+==== Crate 4 type fastbus
+# slot  model   clear   header  mask    nchan   ndata
+  1     1877    1       0x0     0x0     64      256
+  2     1877    1       0x0     0x0     64      256
+  4     1877    1       0x0     0x0     64      256
+  5     1877    1       0x0     0x0     64      256
+  8     1877    1       0x0     0x0     64      256
+ 11     1877    1       0x0     0x0     64      256
diff --git a/examples/db_run.dat b/examples/db_run.dat
new file mode 100755
index 0000000..3cdedab
--- /dev/null
+++ b/examples/db_run.dat
@@ -0,0 +1,11 @@
+# Test run database
+
+# DAQ04
+--------[ 2000-01-01 01:00:00 ]
+
+#A1 2202 pedestal
+ebeam           = 4.02187
+H.theta         = 19.99
+H.pcentral      = 2.074
+
+
diff --git a/examples/hitmaps.C b/examples/hitmaps.C
new file mode 100644
index 0000000..0874bc3
--- /dev/null
+++ b/examples/hitmaps.C
@@ -0,0 +1,39 @@
+{
+  TFile* f = new TFile("hodtest.root");
+ 
+  TCanvas *c1 = new TCanvas("c1", "Scintillator Hit Maps", 800, 800); 
+  c1->Divide(2, 4);
+
+  TH1F* h[16];
+
+  h[0] = hpostdc1;
+  h[1] = hnegtdc1;
+  h[4] = hpostdc2;
+  h[5] = hnegtdc2;
+  h[8] = hpostdc3;
+  h[9] = hnegtdc3;
+  h[12] = hpostdc4;
+  h[13] = hnegtdc4;
+
+  h[2] = hposadc1;
+  h[3] = hnegadc1;
+  h[6] = hposadc2;
+  h[7] = hnegadc2;
+  h[10] = hposadc3;
+  h[11] = hnegadc3;
+  h[14] = hposadc4;
+  h[15] = hnegadc4;
+  
+  for(Int_t ipad=1;ipad<=8;ipad++) {
+    TPad *pt = c1->cd(ipad);
+    Int_t ihp = 2*(ipad-1);
+    Int_t ihn = ihp+1;
+    h[ihp]->SetFillColor(kGreen);
+    h[ihp]->SetFillStyle(3345);
+    h[ihp]->Draw();
+    h[ihn]->SetFillColor(kBlue);
+    h[ihn]->SetFillStyle(3354);
+    h[ihn]->Draw("same");
+  }
+
+}
diff --git a/examples/hodtest.C b/examples/hodtest.C
new file mode 100644
index 0000000..f655a8b
--- /dev/null
+++ b/examples/hodtest.C
@@ -0,0 +1,50 @@
+
+{
+
+  // Load the Hall C style detector map
+  gHcDetectorMap=new THcDetectorMap();
+  gHcDetectorMap->Load("july04.map");
+
+  gHcParms->Load("PARAM/general.param");
+  //
+  //  Steering script to test hodoscope decoding
+  //
+  
+  // Set up the equipment to be analyzed.
+  
+  THaApparatus* HMS = new THcHallCSpectrometer("H","HMS");
+  gHaApps->Add( HMS );
+
+  // Add hodoscope
+  HMS->AddDetector( new THcHodoscope("hod", "Hodoscope" ));
+  //  HMS->AddDetector( new THcDriftChamber("dc", "Drift Chambers" ));
+
+  // Set up the analyzer - we use the standard one,
+  // but this could be an experiment-specific one as well.
+  // The Analyzer controls the reading of the data, executes
+  // tests/cuts, loops over Apparatus's and PhysicsModules,
+  // and executes the output routines.
+  THcAnalyzer* analyzer = new THcAnalyzer;
+  
+
+  // A simple event class to be output to the resulting tree.
+  // Creating your own descendant of THaEvent is one way of
+  // defining and controlling the output.
+  THaEvent* event = new THaEvent;
+  
+  // Define the run(s) that we want to analyze.
+  // We just set up one, but this could be many.
+  THaRun* run = new THaRun( "daq04_50017.log.0" );
+  run->SetEventRange(2000,100000);
+  
+  // Define the analysis parameters
+  analyzer->SetEvent( event );
+  analyzer->SetOutFile( "hodtest.root" );
+  analyzer->SetOdefFile("output.def");
+  //  analyzer->SetCutFile("cuts_example.def");        // optional
+  
+  // File to record cuts accounting information
+  //  analyzer->SetSummaryFile("summary_example.log"); // optional
+  
+  analyzer->Process(run);     // start the actual analysis
+}
diff --git a/examples/july04.map b/examples/july04.map
new file mode 100644
index 0000000..1b963b5
--- /dev/null
+++ b/examples/july04.map
@@ -0,0 +1,3282 @@
+! 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
+!
+! 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
+! 
+!
+!   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, 2, 10, 3 !TDC ROC#1 Sl#23 Ch#53 Y1N-10 As Of 12 Apr 07
+!  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
+!  Channels 60-63 possibly bad 12 Apr 07 - moved Y1N-10 to 53
+!
+ 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 {hCERHI}                   
+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 {hPRE200}                  
+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) as of 19 Apr 07 (PS)
+!  37, 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)
+  63, 4, 10 !ADC ROC#1 Sl#1 Ch#57 HCAL col#4 row#10 (57 D-10)
+!  57, 4, 10 !ADC ROC#1 Sl#1 Ch#57 HCAL col#4 row#10 (57 D-10) (05/09/07, Patricia, flaky ribbon channel)
+  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-12)
+  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)
+  30, 2, 13, 1 !ADC ROC#1 Sl#5 Ch#30 HCAL col#2 row#13 (30 Bn-13)
+!  28, 2, 13, 1 !ADC ROC#1 Sl#5 Ch#28 HCAL col#2 row#13 (28 Bn-13) (05/09/07, bad ADC channel, put it at 30)
+!  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
+!   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 !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, 17, 0 !ADC ROC#1 Sl#15 Ch#0 H00C X+
+  1, 2, 18, 0 !ADC ROC#1 Sl#15 Ch#1 H00C X-
+  2, 2, 19, 0 !ADC ROC#1 Sl#15 Ch#2 H00C Y+
+  3, 2, 20, 0 !ADC ROC#1 Sl#15 Ch#3 H00C Y-
+  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
+  14, 2, 13, 0 !ADC ROC#1 Sl#15 Ch#14 Fast Raster X-sync
+  15, 2, 14, 0 !ADC ROC#1 Sl#15 Ch#15 Fast Raster X-signal
+  12, 2, 15, 0 !ADC ROC#1 Sl#15 Ch#12 Fast Raster Y-sync
+  13, 2, 16, 0 !ADC ROC#1 Sl#15 Ch#13 Fast Raster Y-signal
+!  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
+!
+! Use for runs before July 3rd 8:00am
+!    detector= 15 !SMISC for tracker
+!95, 1, 81, 0  ! 0 !TDC ROC#4 Sl#12 track 3
+!83, 1, 82, 0  ! 0 !TDC ROC#4 Sl#12 track 4
+!82, 1, 83, 0  ! 0 !TDC ROC#4 Sl#12 track 5
+!81, 1, 84, 0  ! 0 !TDC ROC#4 Sl#12 track 6   
+!84, 1, 85, 0  ! 0 !TDC ROC#4 Sl#12 track 7   
+!85, 1, 86, 0  ! 0 !TDC ROC#4 Sl#12 track 8   
+!86, 1, 87, 0  ! 0 !TDC ROC#4 Sl#12 track 9   
+!87, 1, 88, 0  ! 0 !TDC ROC#4 Sl#12 track 10 
+! before run 63466 track 11 in chan 88 and fiber 1 in chan 90 
+! after run 63466 track 11 in chan 90 and fiber 1 in chan 88 
+!90, 1, 89, 0  ! 0 !TDC ROC#4 Sl#12 track 11  
+!89, 1, 90, 0  ! 0 !TDC ROC#4 Sl#12 track 12 
+!88, 1, 91, 0  ! 0 !TDC ROC#4 Sl#12 fiber 1    
+!91, 1, 92, 0  ! 0 !TDC ROC#4 Sl#12 bad    
+!92, 1, 93, 0  ! 0 !TDC ROC#4 Sl#12 fiber 2    
+!93, 1, 94, 0  ! 0 !TDC ROC#4 Sl#12 fiber 3
+!94, 1, 95, 0  ! 0 !TDC ROC#4 Sl#12 fiber 4  
+!
+! Use for runs after July 3rd 8:00am ( CAMAC slot 19 mod 3412 8mV disc)
+ 82, 1, 81, 0  ! 0 !TDC ROC#4 Sl#12 track 3   
+ 83, 1, 82, 0  ! 0 !TDC ROC#4 Sl#12 track 4   
+ 84, 1, 83, 0  ! 0 !TDC ROC#4 Sl#12 track 5   
+ 85, 1, 84, 0  ! 0 !TDC ROC#4 Sl#12 track 6   
+ 86, 1, 85, 0  ! 0 !TDC ROC#4 Sl#12 track 7   
+ 87, 1, 86, 0  ! 0 !TDC ROC#4 Sl#12 track 8   
+ 88, 1, 87, 0  ! 0 !TDC ROC#4 Sl#12 track 9   
+ 89, 1, 88, 0  ! 0 !TDC ROC#4 Sl#12 track 10  
+ 90, 1, 89, 0  ! 0 !TDC ROC#4 Sl#12 track 11  
+ 91, 1, 90, 0  ! 0 !TDC ROC#4 Sl#12 track 12 
+ 92, 1, 91, 0  ! 0 !TDC ROC#4 Sl#12 fiber 1    
+ 93, 1, 93, 0  ! 0 !TDC ROC#4 Sl#12 fiber 2    
+ 94, 1, 94, 0  ! 0 !TDC ROC#4 Sl#12 fiber 3
+ 95, 1, 95, 0  ! 0 !TDC ROC#4 Sl#12 fiber 4  
+
+!   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
+!
+  16, 1, 65, 0  ! 0 !TDC ROC#3 Sl#21 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
+  45, 3, 16, 0 !ADC ROC#3 Sl#7 Ch#15 SSCIN pl#3 [X2] id sig#16 [ADC+]
+  47, 3, 16, 1 !ADC ROC#3 Sl#7 Ch#31 SSCIN pl#3 [X2] id sig#16 [ADC-]
+!  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  !ADC ROC#3 Sl#1 Ch#2 unused
+  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  !ADC ROC#3 Sl#1 Ch#9 unused
+! 10 !ADC ROC#3 Sl#1 Ch#10 unused
+  11, 1, 2 !ADC ROC#3 Sl#1 Ch#1 SCAL column#1 row#2
+  12, 1, 11 !ADC ROC#3 Sl#1 Ch#10 SCAL column#1 row#11
+  13, 1, 10 !ADC ROC#3 Sl#1 Ch#9 SCAL column#1 row#10
+! 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
+  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 !ADC ROC#3 Sl#1 Ch#37 unused
+  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, 3, 6 !ADC ROC#3 Sl#1 Ch#43 SCAL column#3 row#6
+!  44 !ADC ROC#3 Sl#1 Ch#43 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, 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/make_cratemap.pl b/examples/make_cratemap.pl
new file mode 100755
index 0000000..429b866
--- /dev/null
+++ b/examples/make_cratemap.pl
@@ -0,0 +1,70 @@
+#!/usr/bin/perl
+
+# Read a Hall C style MAP file and output a
+# Hall A style crate map DB file.
+#
+# 22.03.2012 (saw)
+
+%crates=();
+
+$crate = 0;
+$nsubadd = 0;
+$bsub = 0;
+$modtype = 0;
+$slot = 0;
+while(<>) {
+    $line=chomp;
+    if($line=/^\s*ROC=\s*(\d*)/i) {
+	$i++;
+	$crate = $1;
+	if(not $crates{$crate}) {
+	    $slotlist={};
+	    $crates{$crate} = $slotlist;
+	}
+	$modtype = 0;
+	$slot = 0;
+    } elsif ($line=/^\s*nsubadd=\s*(\d*)/i) {
+	$nsubadd = $1;
+	$modtype = 0;
+    } elsif ($line=/^\s*bsub=\s*(\d*)/i) {
+	$bsub = $1;
+	$modtype = 0;
+    } elsif ($line=/^\s*slot=\s*(\d*)/i) {
+	$slot = $1;
+	$modtype = 0;
+    } elsif ($line=/^\s*(\d)\s*,\s*(\d)\s*,\s*(\d)/) {
+	if($modtype == 0) {	# Slot not yet registered
+	    if($nsubadd == 96) {
+		$modtype = 1877;
+	    } elsif($nsubadd == 64) {
+		if($bsub == 16) {
+		    $modtype = 1875;
+		} elsif($bsub == 17) {
+		    $modtype = 1881;
+		}
+	    }
+	    if($modtype == 0) {
+		print "Unknown module Crate $crate, Slot $slot\n";
+	    }
+	    $crates{$crate}{$slot} = $modtype;
+	    # print "$crate $slot $modtype\n";
+	}
+    }
+}
+print "# Hall C Crate map\n";
+foreach $crate (sort {$a <=> $b} keys %crates) {
+    print "==== Crate $crate type fastbus\n";
+    print "# slot  model   clear   header  mask    nchan   ndata\n";
+    foreach $slot (sort {$a <=> $b} keys %{ $crates{$crate}}) {
+	$modtype = $crates{$crate}{$slot};
+	if($modtype == 1877) {
+	    $ndata = 256;
+	} else {
+	    $ndata = 64;
+	}
+	printf " %2d     %d    1       0x0     0x0    %3d      %d\n"
+	    ,$slot,$modtype,$nsubadd, $ndata;
+    }
+}
+
+
diff --git a/examples/output.def b/examples/output.def
new file mode 100644
index 0000000..398428d
--- /dev/null
+++ b/examples/output.def
@@ -0,0 +1,23 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block H.hod.*
+
+# 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
-- 
GitLab