From 2ef9f9f8c9cfb4c2d8eec4a05e3354866b107f33 Mon Sep 17 00:00:00 2001
From: Eric Pooser <pooser@jlab.org>
Date: Wed, 12 Jul 2017 08:20:23 -0400
Subject: [PATCH] Pooser ngc calib (#169)

* Add various run specific gain calibration constants for the SHMS HGC & NGC

* Add KPP specific Chrenkov parameter files

* Default to KPP run 488 for now

* Include directory structure for databases

Add specific KPP runs to general database

* Remove deprecated database files

* Modify shms stack analyzer script to handle new DB structure

* Include new DB structure to various replay scripts

* Include calibration constants for the SHMS calorimeter

Add low momentum run to kinematics file

* Add calibration constants for good kpp calo runs
---
 DBASE/GEN/KPP_Spring_2017/general_464.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_475.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_478.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_479.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_480.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_481.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_483.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_484.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_486.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_487.param   |  49 ++++++++
 DBASE/GEN/KPP_Spring_2017/general_488.param   |  49 ++++++++
 DBASE/{ => GEN}/general.param                 |   0
 DBASE/STD/standard.database                   |  36 ++++++
 DBASE/{ => STD}/standard.kinematics           |   7 +-
 DBASE/standard.database                       |   3 -
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_464.param | 106 ++++++++++++++++++
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_475.param | 106 ++++++++++++++++++
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_478.param | 106 ++++++++++++++++++
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_479.param | 106 ++++++++++++++++++
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_480.param | 106 ++++++++++++++++++
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_481.param | 106 ++++++++++++++++++
 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_488.param | 106 ++++++++++++++++++
 .../HGCER/KPP_Spring_2017/phgcer_483.param    |  45 ++++++++
 .../HGCER/KPP_Spring_2017/phgcer_484.param    |  45 ++++++++
 .../HGCER/KPP_Spring_2017/phgcer_486.param    |  45 ++++++++
 .../HGCER/KPP_Spring_2017/phgcer_487.param    |  45 ++++++++
 .../HGCER/KPP_Spring_2017/phgcer_488.param    |  45 ++++++++
 PARAM/SHMS/HGCER/phgcer.param                 |  12 --
 .../NGCER/KPP_Spring_2017/pngcer_483.param    |  43 +++++++
 .../NGCER/KPP_Spring_2017/pngcer_487.param    |  43 +++++++
 .../NGCER/KPP_Spring_2017/pngcer_488.param    |  43 +++++++
 PARAM/SHMS/NGCER/pngcer.param                 |   4 +-
 SCRIPTS/SHMS/replay_paero_test_stand.C        |   2 +-
 SCRIPTS/SHMS/replay_pcal_test_stand.C         |   4 +-
 SCRIPTS/SHMS/replay_pdc_test_stand.C          |   2 +-
 SCRIPTS/SHMS/replay_phgcer_test_stand.C       |   2 +-
 SCRIPTS/SHMS/replay_phodo_test_stand.C        |   2 +-
 SCRIPTS/SHMS/replay_pngcer_test_stand.C       |   2 +-
 SCRIPTS/SHMS/replay_ptrig_test_stand.C        |   2 +-
 SCRIPTS/SHMS/replay_shms.C                    |   2 +-
 SCRIPTS/SHMS/replay_shms_raster_simple.C      |   2 +-
 SCRIPTS/SHMS/replay_shms_report.C             |   2 +-
 SCRIPTS/SHMS/replay_shms_scalers.C            |   2 +-
 SCRIPTS/SHMS/replay_workshop_example.C        |   2 +-
 44 files changed, 1691 insertions(+), 32 deletions(-)
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_464.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_475.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_478.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_479.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_480.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_481.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_483.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_484.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_486.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_487.param
 create mode 100644 DBASE/GEN/KPP_Spring_2017/general_488.param
 rename DBASE/{ => GEN}/general.param (100%)
 create mode 100644 DBASE/STD/standard.database
 rename DBASE/{ => STD}/standard.kinematics (72%)
 delete mode 100644 DBASE/standard.database
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_464.param
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_475.param
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_478.param
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_479.param
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_480.param
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_481.param
 create mode 100644 PARAM/SHMS/CAL/KPP_Spring_2017/pcal_488.param
 create mode 100644 PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_483.param
 create mode 100644 PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_484.param
 create mode 100644 PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_486.param
 create mode 100644 PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_487.param
 create mode 100644 PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_488.param
 create mode 100644 PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_483.param
 create mode 100644 PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_487.param
 create mode 100644 PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_488.param

diff --git a/DBASE/GEN/KPP_Spring_2017/general_464.param b/DBASE/GEN/KPP_Spring_2017/general_464.param
new file mode 100644
index 00000000..1c0cdbb0
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_464.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_464.param"
+#include "PARAM/SHMS/HGCER/phgcer.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_475.param b/DBASE/GEN/KPP_Spring_2017/general_475.param
new file mode 100644
index 00000000..1e93f621
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_475.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_475.param"
+#include "PARAM/SHMS/HGCER/phgcer.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_478.param b/DBASE/GEN/KPP_Spring_2017/general_478.param
new file mode 100644
index 00000000..73ecb330
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_478.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_478.param"
+#include "PARAM/SHMS/HGCER/phgcer.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_479.param b/DBASE/GEN/KPP_Spring_2017/general_479.param
new file mode 100644
index 00000000..5b2b75e3
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_479.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_479.param"
+#include "PARAM/SHMS/HGCER/phgcer.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_480.param b/DBASE/GEN/KPP_Spring_2017/general_480.param
new file mode 100644
index 00000000..5c57f41a
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_480.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_480.param"
+#include "PARAM/SHMS/HGCER/phgcer.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_481.param b/DBASE/GEN/KPP_Spring_2017/general_481.param
new file mode 100644
index 00000000..b81bd844
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_481.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_481.param"
+#include "PARAM/SHMS/HGCER/phgcer.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_483.param b/DBASE/GEN/KPP_Spring_2017/general_483.param
new file mode 100644
index 00000000..59aac413
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_483.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/pcal.param"
+#include "PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_483.param"
+#include "PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_483.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_484.param b/DBASE/GEN/KPP_Spring_2017/general_484.param
new file mode 100644
index 00000000..96c83f11
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_484.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/pcal.param"
+#include "PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_484.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_486.param b/DBASE/GEN/KPP_Spring_2017/general_486.param
new file mode 100644
index 00000000..c798c2b8
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_486.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/pcal.param"
+#include "PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_486.param"
+#include "PARAM/SHMS/NGCER/pngcer.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_487.param b/DBASE/GEN/KPP_Spring_2017/general_487.param
new file mode 100644
index 00000000..20f2967a
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_487.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/pcal.param"
+#include "PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_487.param"
+#include "PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_487.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/general_488.param b/DBASE/GEN/KPP_Spring_2017/general_488.param
new file mode 100644
index 00000000..0f58c8e3
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/general_488.param
@@ -0,0 +1,49 @@
+#real raddeg
+raddeg=3.14159265/180
+#real cminch
+cminch=2.54
+
+; General Hall-C parameter files
+#include "PARAM/GEN/genflags.param"
+#include "PARAM/GEN/gdebug.param"
+#include "PARAM/GEN/gtarget.param"
+#include "PARAM/GEN/gbeam.param"
+
+; General HMS parameter files
+; Note: hmsflags.param includes spectrometer offsets and options.
+#include "PARAM/HMS/GEN/hcana.param"
+#include "PARAM/HMS/GEN/hdebug.param"
+#include "PARAM/HMS/GEN/hmsflags.param"
+#include "PARAM/HMS/GEN/htracking.param"
+
+; HMS detector specific paramter files
+#include "PARAM/HMS/AERO/haero.param"
+#include "PARAM/HMS/CAL/hcal.pos"
+#include "PARAM/HMS/CAL/hcal.param"
+#include "PARAM/HMS/CER/hcer.param"
+#include "PARAM/HMS/DC/hdc.param"
+#include "PARAM/HMS/DC/hdc.pos"
+#include "PARAM/HMS/DC/hdc_tracking.param"
+#include "PARAM/HMS/DC/hdriftmap.param"
+#include "PARAM/HMS/HODO/hhodo.pos"
+#include "PARAM/HMS/HODO/hhodo.param"
+
+; General SHMS parameter files
+; Note: shmsflags.param includes spectrometer offsets and options.
+#include "PARAM/SHMS/GEN/pcana.param"
+#include "PARAM/SHMS/GEN/pdebug.param"
+#include "PARAM/SHMS/GEN/shmsflags.param"
+#include "PARAM/SHMS/GEN/ptracking.param"
+
+; SHMS detector specific paramter files
+#include "PARAM/SHMS/AERO/paero.param"
+#include "PARAM/SHMS/CAL/KPP_Spring_2017/pcal_488.param"
+#include "PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_488.param"
+#include "PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_488.param"
+#include "PARAM/SHMS/DC/pdc.param"
+#include "PARAM/SHMS/DC/pdc.pos"
+#include "PARAM/SHMS/DC/pdc_tzero_per_wire.param"
+#include "PARAM/SHMS/DC/pdc_tracking.param"
+#include "PARAM/SHMS/DC/pdriftmap.param"
+#include "PARAM/SHMS/HODO/phodo.pos"
+#include "PARAM/SHMS/HODO/phodo.param"
diff --git a/DBASE/general.param b/DBASE/GEN/general.param
similarity index 100%
rename from DBASE/general.param
rename to DBASE/GEN/general.param
diff --git a/DBASE/STD/standard.database b/DBASE/STD/standard.database
new file mode 100644
index 00000000..b81521b9
--- /dev/null
+++ b/DBASE/STD/standard.database
@@ -0,0 +1,36 @@
+0-99999
+g_ctp_parm_filename ="DBASE/GEN/general.param"
+g_ctp_kinematics_filename ="DBASE/STD/standard.kinematics"
+
+464-464
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_464.param"
+
+475-475
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_475.param"
+
+478-478
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_478.param"
+
+479-479
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_479.param"
+
+480-480
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_480.param"
+
+481-481
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_481.param"
+
+483-483
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_483.param"
+
+484-484
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_484.param"
+
+486-486
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_486.param"
+
+487-487
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_487.param"
+
+488-488
+g_ctp_parm_filename ="DBASE/GEN/KPP_Spring_2017/general_488.param"
\ No newline at end of file
diff --git a/DBASE/standard.kinematics b/DBASE/STD/standard.kinematics
similarity index 72%
rename from DBASE/standard.kinematics
rename to DBASE/STD/standard.kinematics
index a5391385..856b64fa 100644
--- a/DBASE/standard.kinematics
+++ b/DBASE/STD/standard.kinematics
@@ -1,5 +1,5 @@
-1-99999
-gpbeam=6.4
+0-99999
+gpbeam = 6.4
 gtarg_num = 1
 htheta_lab = 15.
 ptheta_lab = 15.
@@ -7,3 +7,6 @@ hpcentral = 3.
 ppcentral = 3.
 hpartmass = 0.00051099
 ppartmass = 0.00051099
+
+465-465
+ppcentral = 0.750
\ No newline at end of file
diff --git a/DBASE/standard.database b/DBASE/standard.database
deleted file mode 100644
index c894b7b3..00000000
--- a/DBASE/standard.database
+++ /dev/null
@@ -1,3 +0,0 @@
-0-99999
-g_ctp_parm_filename ="DBASE/general.param"
-g_ctp_kinematics_filename ="DBASE/standard.kinematics"
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_464.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_464.param
new file mode 100644
index 00000000..dd9fc209
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_464.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run report_464, 66161 events processed
+
+pcal_neg_gain_cor = 0.3, 0.281, 0.242, 0.295, 0.218, 0.370, 0.474, 0.379, 0.249, 0.316, 0.339, 0.215, 0.490, 0.3,
+pcal_pos_gain_cor = 0.307, 0.216, 0.211, 0.282, 0.238, 0.228, 0.287, 0.228, 0.472, 0.194, 0.377, 0.360, 0.633, 0.3,
+pcal_arr_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, 1.000, 1.000, 1.000, 1.000,
+                   1.000, 1.000, 0.750, 0.890, 0.805, 0.591, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000,
+                   1.000, 0.651, 0.586, 0.559, 1.262, 1.123, 0.940, 0.598, 1.000, 1.000, 1.000, 0.772, 0.752, 1.446, 1.000, 1.000,
+                   1.000, 0.719, 0.623, 1.394, 0.366, 0.826, 0.892, 1.124, 1.468, 0.669, 0.947, 1.030, 1.429, 0.353, 1.000, 1.000,
+                   1.000, 0.571, 1.019, 0.888, 0.508, 0.832, 1.136, 0.885, 0.819, 0.791, 0.670, 0.456, 0.817, 0.752, 1.000, 1.000,
+                   1.000, 0.198, 0.311, 0.270, 0.363, 0.262, 0.362, 0.439, 0.229, 0.365, 0.529, 0.418, 0.568, 0.341, 0.231, 1.000,
+                   1.000, 1.000, 0.614, 0.664, 0.945, 0.897, 0.520, 0.922, 1.258, 1.413, 0.550, 1.286, 0.563, 0.546, 1.000, 1.000,
+                   1.000, 1.000, 0.389, 0.826, 0.508, 1.221, 0.966, 1.000, 1.000, 1.000, 0.821, 0.782, 1.091, 0.683, 0.489, 1.000,
+                   1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 0.713, 0.742, 0.541, 1.000, 1.000,
+                   1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000,
+                   1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000,
+                   1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000,
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_475.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_475.param
new file mode 100644
index 00000000..6f497675
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_475.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run 475_-1, 283000 events processed
+
+pcal_neg_gain_cor = 0.191, 0.273, 0.231, 0.281, 0.209, 0.354, 0.467, 0.373, 0.246, 0.312, 0.333, 0.214, 0.305, 1.480,
+pcal_pos_gain_cor = 0.966, 0.206, 0.206, 0.278, 0.234, 0.224, 0.284, 0.227, 0.468, 0.190, 0.375, 0.359, 0.445, 2.266,
+pcal_arr_gain_cor = 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.542, 1.126, 0.922, 0.734, 0.782, 0.000, 3.196, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+                   0.000, 1.134, 0.644, 0.788, 1.130, 1.296, 0.978, 0.000, 1.145, 0.000, 7.212, 0.000, 2.063, 0.000, 0.000, 0.000,
+                   0.000, 0.939, 0.785, 0.895, 0.777, 0.579, 1.616, 1.389, 0.999, 3.832, 4.220, 0.528, 0.964, 0.468, 3.595, 0.000,
+                  -0.227, 0.585, 0.595, 0.557, 1.276, 1.120, 0.925, 0.614, 0.605, 0.852, 0.745, 0.741, 0.756, 1.402, 1.004, 0.465,
+                   0.000, 0.657, 0.631, 1.401, 0.368, 0.828, 0.896, 1.129, 1.472, 0.677, 0.956, 1.033, 1.439, 0.356, 0.462, 2.643,
+                   0.060, 0.691, 1.024, 0.898, 0.509, 0.839, 1.144, 0.889, 0.816, 0.790, 0.675, 0.458, 0.821, 0.742, 0.826, 0.000,
+                   0.623, 0.086, 0.331, 0.275, 0.368, 0.265, 0.365, 0.442, 0.231, 0.365, 0.531, 0.419, 0.572, 0.341, 0.263, 0.324,
+                   5.728,-0.410, 0.650, 0.673, 0.953, 0.895, 0.521, 0.927, 1.299, 1.417, 0.547, 1.288, 0.564, 0.548, 0.381, 0.000,
+                   0.000, 0.375, 0.396, 0.817, 0.511, 1.214, 0.937, 1.398, 0.592, 0.722, 0.809, 0.781, 1.094, 0.686, 0.432, 2.337,
+                   1.343, 0.103, 3.296, 1.010, 0.722, 0.780, 0.514, 0.772, 2.186, 0.985, 0.724, 0.846, 0.739, 0.533, 0.589, 3.208,
+                  -0.532, 2.021, 0.137,-3.405, 0.807, 0.784, 1.370,-0.242, 0.000, 1.989, 0.654, 0.700, 0.952, 0.584, 0.000, 0.000,
+                   0.059,-0.518, 1.216, 0.000, 0.000, 0.000,-0.040, 0.000, 0.000, 9.954,-0.309, 0.000, 0.000, 3.539, 0.000, 0.000,
+                   0.135,-0.479,-0.128,-0.065,-0.072, 0.122, 0.748, 0.000, 1.168, 0.000, 0.091, 0.000, 0.613, 0.000, 0.000, 0.000,
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_478.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_478.param
new file mode 100644
index 00000000..9c9f0374
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_478.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run 478_-1, 282423 events processed
+
+pcal_neg_gain_cor = 0.304, 0.208, 0.227, 0.280, 0.208, 0.352, 0.468, 0.373, 0.243, 0.310, 0.333, 0.214, 0.295, 0.734,
+pcal_pos_gain_cor = 1.257, 0.219, 0.207, 0.280, 0.235, 0.225, 0.282, 0.227, 0.470, 0.190, 0.375, 0.359, 0.457, 4.229,
+pcal_arr_gain_cor = 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, 1.541, 1.256, 0.757, 3.973, 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.585, 0.601, 0.632, 0.930, 1.148, 0.946, 0.000, 2.458, 0.000, 4.041, 0.000, 0.032, 0.000, 0.000, 0.000,
+                   0.000, 1.191, 0.482, 0.955, 0.784, 0.607, 1.493, 1.282, 0.000, 0.000, 1.919, 0.543, 0.932, 0.534,-1.355, 0.000,
+                  -0.131, 0.597, 0.599, 0.555, 1.276, 1.115, 0.926, 0.610, 0.822, 0.887, 0.640, 0.729, 0.759, 1.383, 1.760, 2.086,
+                  -0.892, 0.478, 0.624, 1.387, 0.366, 0.827, 0.895, 1.132, 1.459, 0.675, 0.956, 1.034, 1.435, 0.357, 0.456, 0.000,
+                   0.000, 0.575, 1.032, 0.887, 0.508, 0.835, 1.140, 0.892, 0.815, 0.791, 0.673, 0.458, 0.820, 0.739, 0.610, 0.000,
+                   0.406, 0.159, 0.332, 0.274, 0.367, 0.265, 0.366, 0.441, 0.231, 0.366, 0.532, 0.420, 0.572, 0.343, 0.180, 0.659,
+                  -0.027, 0.852, 0.642, 0.676, 0.954, 0.895, 0.522, 0.922, 1.219, 1.410, 0.548, 1.293, 0.563, 0.549, 0.913, 0.000,
+                   1.548, 0.018, 0.414, 0.847, 0.513, 1.218, 0.943, 1.041, 0.912, 0.822, 0.805, 0.780, 1.097, 0.686, 0.380, 3.226,
+                  -1.747, 2.302, 0.744, 0.831, 0.686, 0.884, 0.372, 0.658, 0.000, 1.157, 0.803, 0.842, 0.739, 0.534, 0.580, 0.000,
+                   0.464, 1.631, 2.294, 0.602, 1.149, 0.531, 0.799, 0.510, 0.000, 1.311, 0.470, 0.744, 0.971, 0.816, 0.000, 0.000,
+                   0.013, 0.199, 0.627, 0.000, 0.000, 0.000, 2.157, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 3.832, 0.000, 0.000,
+                   0.161, 0.924,-0.236, 0.067, 0.000, 0.124,-0.332, 0.000, 0.862, 0.000, 0.000, 0.000, 0.881, 0.000, 0.000, 0.000,
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_479.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_479.param
new file mode 100644
index 00000000..fc4f7b43
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_479.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run 479_-1, 278685 events processed
+
+pcal_neg_gain_cor = 0.226, 0.312, 0.229, 0.281, 0.209, 0.351, 0.467, 0.372, 0.244, 0.310, 0.333, 0.214, 0.282, 0.879,
+pcal_pos_gain_cor = 1.012, 0.237, 0.204, 0.278, 0.234, 0.224, 0.282, 0.226, 0.470, 0.191, 0.374, 0.359, 0.418, 1.238,
+pcal_arr_gain_cor = 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.724, 0.482, 1.062, 0.714, 1.032, 0.000, 0.000, 0.000, 1.218, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+                   0.000, 0.875, 0.765, 0.733, 0.803, 1.149, 0.861, 0.000, 3.282, 0.000, 3.856, 0.000, 0.814, 0.000, 0.000, 0.000,
+                   0.000, 0.782, 0.644, 0.932, 0.790, 0.599, 1.557, 1.240, 0.000, 0.000, 0.947, 0.679, 0.462, 0.551, 1.957, 0.000,
+                   0.964, 0.360, 0.601, 0.560, 1.278, 1.119, 0.932, 0.613, 0.772, 1.108, 0.707, 0.737, 0.760, 1.407, 0.820, 3.763,
+                   0.000,-0.034, 0.639, 1.391, 0.369, 0.830, 0.898, 1.131, 1.449, 0.682, 0.952, 1.035, 1.437, 0.357, 0.356, 1.327,
+                  -3.506, 0.111, 1.059, 0.896, 0.507, 0.838, 1.145, 0.894, 0.819, 0.790, 0.674, 0.459, 0.820, 0.742, 0.532, 2.701,
+                   1.179, 0.142, 0.329, 0.274, 0.366, 0.263, 0.366, 0.442, 0.231, 0.365, 0.532, 0.419, 0.573, 0.339, 0.228,-0.411,
+                   0.370, 0.138, 0.644, 0.671, 0.948, 0.894, 0.526, 0.931, 1.262, 1.412, 0.547, 1.292, 0.563, 0.548, 1.027, 0.000,
+                   1.332, 1.186, 0.391, 0.829, 0.524, 1.229, 0.943, 1.230, 0.589, 0.906, 0.811, 0.781, 1.098, 0.687, 0.414, 0.806,
+                   2.454, 1.831, 0.000, 0.915, 0.547, 0.716, 0.336, 0.704, 2.243, 5.368, 0.540, 0.784, 0.737, 0.529, 0.994, 0.636,
+                   1.871, 0.414, 0.600, 0.384, 0.839, 0.890, 0.396, 1.352, 0.000, 0.996, 1.358,-0.914, 1.065, 1.114, 0.000, 5.720,
+                   0.284, 0.169, 0.751,-1.613, 0.000, 0.000, 0.311, 0.587, 0.000, 0.000, 3.068, 0.000, 0.000, 0.170, 0.000, 0.000,
+                   0.089, 0.000, 0.443, 1.049, 0.000, 0.047,-1.034, 0.000, 0.362, 0.000, 0.000, 1.360, 7.498, 0.000, 0.000, 0.000,
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_480.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_480.param
new file mode 100644
index 00000000..5f1ab8c0
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_480.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run 480_-1, 282142 events processed
+
+pcal_neg_gain_cor = 0.164, 0.257, 0.230, 0.279, 0.206, 0.349, 0.467, 0.371, 0.242, 0.309, 0.331, 0.213, 0.321, 2.724,
+pcal_pos_gain_cor = 1.187, 0.235, 0.206, 0.278, 0.233, 0.224, 0.281, 0.226, 0.469, 0.190, 0.374, 0.358, 0.538, 1.814,
+pcal_arr_gain_cor = 0.000, 0.000, 0.000, 2.200, 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.201, 0.441, 1.261, 0.766, 0.464, 0.886, 0.670, 1.079, 2.181, 0.000, 0.000,10.649, 0.000, 0.000, 0.000, 0.000,
+                   0.000, 1.791, 0.723, 0.698, 1.117, 1.202, 0.788, 0.895, 0.687, 0.000, 0.000, 0.000, 1.925, 0.000, 0.000, 0.000,
+                   0.635, 0.855, 0.747, 0.870, 0.785, 0.617, 1.548, 1.302, 0.958, 0.000,-1.934, 0.377, 0.763, 0.512,-5.008, 0.000,
+                   1.087, 0.312, 0.595, 0.559, 1.274, 1.116, 0.930, 0.609, 0.621, 1.929, 0.785, 0.747, 0.760, 1.406, 0.512,-5.311,
+                   0.293, 0.517, 0.623, 1.389, 0.367, 0.829, 0.896, 1.133, 1.453, 0.673, 0.954, 1.033, 1.436, 0.357, 0.776,-1.928,
+                   2.840, 0.502, 1.035, 0.891, 0.506, 0.839, 1.142, 0.893, 0.817, 0.792, 0.674, 0.459, 0.820, 0.742, 0.364, 0.000,
+                   0.298,-0.060, 0.334, 0.274, 0.367, 0.265, 0.366, 0.442, 0.231, 0.366, 0.532, 0.420, 0.572, 0.340, 0.226, 1.261,
+                   3.062, 0.500, 0.634, 0.672, 0.954, 0.898, 0.523, 0.933, 1.285, 1.420, 0.547, 1.293, 0.564, 0.551, 0.927, 0.000,
+                   1.503, 1.418, 0.367, 0.852, 0.517, 1.202, 0.947, 1.145, 0.653, 0.817, 0.805, 0.781, 1.098, 0.684, 0.706,-1.969,
+                  -0.189, 1.592, 0.000, 0.834, 0.680, 0.823, 0.222, 0.643, 1.669, 0.993, 0.641, 0.841, 0.736, 0.532, 0.648, 2.064,
+                  -0.012, 2.522, 0.427, 0.617, 0.711, 0.824, 0.858, 1.583, 0.474, 1.898, 1.613, 0.794, 0.832, 0.978, 0.320,-5.513,
+                  -0.044, 2.564, 1.350,-1.409, 1.190, 0.000,-0.138, 0.000, 0.000, 2.478, 1.496, 0.000, 0.000, 0.066, 0.000, 0.000,
+                   0.071, 0.000,-0.021, 0.409, 0.000, 0.130, 0.000, 0.000, 0.124, 0.000, 0.000, 0.000, 0.118, 0.000, 0.302, 0.000,
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_481.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_481.param
new file mode 100644
index 00000000..bac4667f
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_481.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run 481_-1, 273901 events processed
+
+pcal_neg_gain_cor = 0.193, 0.204, 0.225, 0.274, 0.200, 0.342, 0.461, 0.352, 0.238, 0.307, 0.332, 0.211, 0.273, 0.946,
+pcal_pos_gain_cor = 1.158, 0.215, 0.203, 0.274, 0.230, 0.221, 0.278, 0.243, 0.467, 0.188, 0.367, 0.355, 0.436, 1.753,
+pcal_arr_gain_cor = 0.000, 1.450, 0.000,12.046,-0.762, 7.309, 0.000, 0.000, 0.000, 0.000, 0.000,-1.849, 0.000, 0.000, 0.000, 0.000,
+                  -1.525, 0.198, 1.760, 0.734, 0.574, 0.279, 0.000, 4.672, 1.347, 0.000, 0.000, 3.856, 0.000, 0.000, 0.000, 0.000,
+                   0.685, 0.304, 0.494, 0.477, 0.776, 1.037, 0.568, 0.000, 0.000, 0.576, 0.182, 0.000, 0.136, 0.000, 3.319, 2.186,
+                  -0.291, 0.406, 0.459, 0.599, 0.540, 0.391, 1.114, 0.696, 0.699, 0.000, 0.844, 0.264, 0.753, 0.274, 1.143, 0.000,
+                   0.125, 0.182, 0.408, 0.373, 0.875, 0.760, 0.622, 0.398, 0.602, 0.000, 0.564, 0.529, 0.510, 0.958, 0.721,-0.116,
+                   0.308, 0.342, 0.420, 0.952, 0.244, 0.554, 0.596, 0.799, 0.000, 0.480, 0.644, 0.693, 0.980, 0.237, 0.469, 0.289,
+                   0.407, 0.400, 0.711, 0.601, 0.346, 0.559, 0.772, 0.599, 0.527, 0.535, 0.455, 0.309, 0.556, 0.511, 0.347, 0.000,
+                   0.246, 0.056, 0.324, 0.185, 0.249, 0.180, 0.246, 0.299, 0.163, 0.246, 0.356, 0.283, 0.392, 0.233, 0.169,-0.707,
+                   1.176, 1.029, 0.424, 0.453, 0.654, 0.612, 0.348, 0.627, 0.863, 0.979, 0.363, 0.887, 0.378, 0.369, 0.716, 2.447,
+                   2.712, 0.233, 0.264, 0.566, 0.345, 0.823, 0.655, 0.766, 0.476, 0.548, 0.558, 0.524, 0.737, 0.471, 0.263, 1.255,
+                   0.994, 0.410, 1.141, 0.489, 0.464, 0.608, 0.252, 0.678, 2.341, 0.577, 0.498, 0.578, 0.495, 0.359, 0.362, 3.317,
+                   0.204,-0.126, 0.393, 0.607, 0.512, 0.627, 0.296, 1.025, 0.224, 0.233, 0.217, 0.476, 0.687, 0.399, 0.000, 1.362,
+                  -0.378, 1.637, 0.059,-0.895, 0.327, 0.512, 0.878, 0.266, 0.000,-0.035,-0.524,-0.446, 5.124, 1.312, 2.956, 0.898,
+                   0.025, 0.117, 0.058, 0.095, 0.022,-0.037, 1.242, 0.000,-0.123, 0.000,-0.728,-1.078, 0.152, 0.000, 0.027,-0.035,
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_488.param b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_488.param
new file mode 100644
index 00000000..4844760c
--- /dev/null
+++ b/PARAM/SHMS/CAL/KPP_Spring_2017/pcal_488.param
@@ -0,0 +1,106 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+pcal_ADCmode=1
+pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMax=2300.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+pcal_AdcNegThreshold=0.
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+pcal_AdcPosThreshold=0.
+pcal_arr_ADCmode=1
+pcal_arr_AdcTimeWindowMin=1200.
+pcal_arr_AdcTimeWindowMax=1800.
+; threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
+pcal_arr_AdcThreshold=0.0
+
+pcal_array = 1
+pcal_layer_names = "pr fly"
+pcal_pr_nr = 14 # Num of rows in preshower
+pcal_num_layers = 1
+pcal_arr_nrows = 16
+pcal_arr_ncolumns = 14
+
+pcal_arr_front_x = 1.4
+pcal_arr_front_y = 0.
+pcal_arr_front_z = 306.44
+pcal_arr_xstep = 9.
+pcal_arr_ystep = 9.
+pcal_arr_zsize = 70.0
+
+pdbg_init_cal=0
+pdbg_decoded_cal=0
+pdbg_clusters_cal=0
+pdbg_tracks_cal=0
+; Exclusion bandwidth for calorimeter fiducial volume.
+pcal_fv_delta = 5
+# Constants for the coordiante correction of the calorimeter energy depositions
+pcal_a_cor = 200.
+pcal_b_cor = 8000.
+pcal_c_cor = 64.36, 64.36	# for positive and negative sides
+pcal_d_cor =  1.66,  1.66
+
+; Parameters copied from HMS
+; Slop in x possitino.  Allowed distance between track and edge of block
+pcal_slop = 7.5 
+
+pcal_pr_thick = 10.0
+; Z Position of from of preshower
+pcal_pr_zpos = 292.64
+
+pcal_pr_left  =  35.0
+pcal_pr_right = -35.0
+pcal_pr_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)
+                 ( 61.0-1.4)
+pcal_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
+pcal_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
+
+pcal_arr_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,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,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,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,
+		     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,0.001,0.001,0.001,0.001
+
+; Calibration constants for run report_488, 174025 events processed
+
+pcal_neg_gain_cor = 0.423, 0.302, 0.231, 0.277, 0.200, 0.320, 0.359, 0.603, 0.475, 0.329, 0.333, 0.213, 0.342, 3.817,
+pcal_pos_gain_cor = 1.674, 0.228, 0.205, 0.273, 0.228, 0.185, 0.174, 0.153, 0.458, 0.188, 0.371, 0.357, 0.724, 4.376,
+pcal_arr_gain_cor = 0.000, 0.461, 0.000,-0.592, 1.140, 7.592, 0.000, 0.000, 0.000, 8.970, 0.000, 0.000, 0.000, 0.287, 0.000, 0.000,
+                   1.207,-1.024, 1.406, 0.552, 0.566, 0.352, 0.810, 0.868, 4.021, 3.374, 0.000,18.313, 0.000, 0.000, 0.000, 0.000,
+                  -14.494, 1.336, 0.441, 0.529, 0.912, 0.848, 0.596, 1.069, 0.237, 1.229, 0.478, 0.000, 1.995, 0.000, 0.000, 0.000,
+                   2.308, 1.207, 0.505, 0.623, 0.558, 0.433, 1.152, 1.747, 2.441, 0.000, 2.967, 0.862, 0.858, 0.376, 2.133,12.337,
+                   1.026, 0.334, 0.408, 0.381, 0.891, 0.785, 0.657, 0.474, 1.059, 0.819, 0.353, 0.522, 0.514, 0.950, 1.068, 2.800,
+                   2.712, 0.402, 0.419, 0.964, 0.249, 0.555, 0.089, 0.115,-0.732, 0.000, 0.674, 0.701, 0.988, 0.240, 0.500, 1.659,
+                   2.477, 0.342, 0.715, 0.612, 0.353, 0.558, 0.107, 0.100, 0.100, 0.582, 0.466, 0.313, 0.562, 0.516, 0.106, 0.000,
+                   0.230, 0.035, 0.329, 0.185, 0.250, 0.175, 0.037, 0.073, 0.058, 0.000, 0.338, 0.283, 0.395, 0.234, 0.148, 1.184,
+                   0.908, 0.365, 0.434, 0.457, 0.655, 0.619, 0.351, 0.576, 0.651, 0.616, 0.339, 0.889, 0.381, 0.373, 0.456, 2.022,
+                   1.779,-0.199, 0.251, 0.575, 0.345, 0.850, 0.717, 0.953, 0.230, 0.265, 0.543, 0.524, 0.744, 0.478, 0.190, 5.730,
+                   1.655,-0.296, 0.000, 2.742, 0.310, 0.601, 0.221, 1.570, 0.396, 1.475, 0.309, 0.586, 0.496, 0.364, 0.108, 2.170,
+                   2.342, 1.485,-0.429, 1.523, 0.343, 0.791, 0.610,-1.725, 7.065, 1.522, 2.526,-0.132, 1.166, 0.601, 4.295, 6.234,
+                   2.451, 0.863, 1.189, 0.000, 0.000,-0.959,-1.476, 5.174, 0.000,-0.869, 0.994, 0.000, 0.000, 3.806, 0.000, 1.982,
+                   0.254, 2.304, 0.487, 0.641,-0.473,-0.373, 1.547, 3.782, 1.382, 0.000, 1.592,-3.079, 2.468, 0.000, 0.000,-0.275,
\ No newline at end of file
diff --git a/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_483.param b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_483.param
new file mode 100644
index 00000000..ff3752f7
--- /dev/null
+++ b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_483.param
@@ -0,0 +1,45 @@
+; Number of heavy gas Cherenkov PMT's
+phgcer_tot_pmts = 4
+
+; Garth H. gain calibration for run 483, June 20 2017
+phgcer_adc_to_npe = 1./273., 1./460., 1./582., 1./378.		
+
+; Track matching reduced chi2 cut values
+phgcer_red_chi2_min = 0.0
+phgcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+phgcer_beta_min = 0.0
+phgcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+phgcer_enorm_min = 0.0
+phgcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+phgcer_adcTimeWindowMin = 500.
+phgcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+phgcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0 -> 175.1 cm
+; Updated on 5-8-17 by Univ. of Regina Group
+phgcer_mirror_zpos = 156.27
+
+phgcer_num_regions = 4;
+
+; Number of regions in which tracks can be matched too
+; phgcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 55 cm and y = 50 cm
+; FIX ME! Waiting for numbers from detector
+phgcer_region =   27.5,    27.5,  -27.5,  -27.5,   
+                  25.0,   -25.0,   25.0,  -25.0,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  27.5,    27.5,   27.5,   27.5,
+                  25.0,    25.0,   25.0,   25.0,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
diff --git a/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_484.param b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_484.param
new file mode 100644
index 00000000..f11ce425
--- /dev/null
+++ b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_484.param
@@ -0,0 +1,45 @@
+; Number of heavy gas Cherenkov PMT's
+phgcer_tot_pmts = 4
+
+; Garth H. gain calibration for run 484, June 20 2017
+phgcer_adc_to_npe = 1./454., 1./447., 1./409., 1./547.		
+
+; Track matching reduced chi2 cut values
+phgcer_red_chi2_min = 0.0
+phgcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+phgcer_beta_min = 0.0
+phgcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+phgcer_enorm_min = 0.0
+phgcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+phgcer_adcTimeWindowMin = 500.
+phgcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+phgcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0 -> 175.1 cm
+; Updated on 5-8-17 by Univ. of Regina Group
+phgcer_mirror_zpos = 156.27
+
+phgcer_num_regions = 4;
+
+; Number of regions in which tracks can be matched too
+; phgcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 55 cm and y = 50 cm
+; FIX ME! Waiting for numbers from detector
+phgcer_region =   27.5,    27.5,  -27.5,  -27.5,   
+                  25.0,   -25.0,   25.0,  -25.0,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  27.5,    27.5,   27.5,   27.5,
+                  25.0,    25.0,   25.0,   25.0,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
diff --git a/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_486.param b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_486.param
new file mode 100644
index 00000000..d32f80b8
--- /dev/null
+++ b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_486.param
@@ -0,0 +1,45 @@
+; Number of heavy gas Cherenkov PMT's
+phgcer_tot_pmts = 4
+
+; Garth H. gain calibration for run 486, June 20 2017
+phgcer_adc_to_npe = 1./551., 1./426., 1./376., 1./488.		
+
+; Track matching reduced chi2 cut values
+phgcer_red_chi2_min = 0.0
+phgcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+phgcer_beta_min = 0.0
+phgcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+phgcer_enorm_min = 0.0
+phgcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+phgcer_adcTimeWindowMin = 500.
+phgcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+phgcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0 -> 175.1 cm
+; Updated on 5-8-17 by Univ. of Regina Group
+phgcer_mirror_zpos = 156.27
+
+phgcer_num_regions = 4;
+
+; Number of regions in which tracks can be matched too
+; phgcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 55 cm and y = 50 cm
+; FIX ME! Waiting for numbers from detector
+phgcer_region =   27.5,    27.5,  -27.5,  -27.5,   
+                  25.0,   -25.0,   25.0,  -25.0,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  27.5,    27.5,   27.5,   27.5,
+                  25.0,    25.0,   25.0,   25.0,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
diff --git a/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_487.param b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_487.param
new file mode 100644
index 00000000..9cfb1c06
--- /dev/null
+++ b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_487.param
@@ -0,0 +1,45 @@
+; Number of heavy gas Cherenkov PMT's
+phgcer_tot_pmts = 4
+
+; Garth H. gain calibration from run 487, June 20 2017
+phgcer_adc_to_npe = 1/551., 1/426., 1/376., 1/488.
+
+; Track matching reduced chi2 cut values
+phgcer_red_chi2_min = 0.0
+phgcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+phgcer_beta_min = 0.0
+phgcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+phgcer_enorm_min = 0.0
+phgcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+phgcer_adcTimeWindowMin = 500.
+phgcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+phgcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0 -> 175.1 cm
+; Updated on 5-8-17 by Univ. of Regina Group
+phgcer_mirror_zpos = 156.27
+
+phgcer_num_regions = 4;
+
+; Number of regions in which tracks can be matched too
+; phgcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 55 cm and y = 50 cm
+; FIX ME! Waiting for numbers from detector
+phgcer_region =   27.5,    27.5,  -27.5,  -27.5,   
+                  25.0,   -25.0,   25.0,  -25.0,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  27.5,    27.5,   27.5,   27.5,
+                  25.0,    25.0,   25.0,   25.0,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
diff --git a/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_488.param b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_488.param
new file mode 100644
index 00000000..9a099bc7
--- /dev/null
+++ b/PARAM/SHMS/HGCER/KPP_Spring_2017/phgcer_488.param
@@ -0,0 +1,45 @@
+; Number of heavy gas Cherenkov PMT's
+phgcer_tot_pmts = 4
+
+; Garth H. gain calibration from run 488, June 20 2017
+phgcer_adc_to_npe = 1/546., 1/430., 1/376., 1/477.  
+
+; Track matching reduced chi2 cut values
+phgcer_red_chi2_min = 0.0
+phgcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+phgcer_beta_min = 0.0
+phgcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+phgcer_enorm_min = 0.0
+phgcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+phgcer_adcTimeWindowMin = 500.
+phgcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+phgcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0 -> 175.1 cm
+; Updated on 5-8-17 by Univ. of Regina Group
+phgcer_mirror_zpos = 156.27
+
+phgcer_num_regions = 4;
+
+; Number of regions in which tracks can be matched too
+; phgcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 55 cm and y = 50 cm
+; FIX ME! Waiting for numbers from detector
+phgcer_region =   27.5,    27.5,  -27.5,  -27.5,   
+                  25.0,   -25.0,   25.0,  -25.0,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  27.5,    27.5,   27.5,   27.5,
+                  25.0,    25.0,   25.0,   25.0,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
diff --git a/PARAM/SHMS/HGCER/phgcer.param b/PARAM/SHMS/HGCER/phgcer.param
index 06828616..a1e93810 100644
--- a/PARAM/SHMS/HGCER/phgcer.param
+++ b/PARAM/SHMS/HGCER/phgcer.param
@@ -1,21 +1,9 @@
 ; Number of heavy gas Cherenkov PMT's
 phgcer_tot_pmts = 4
 
-; Garth H. gain calibration from run 486, March 9 2017
-; phgcer_adc_to_npe = 1/436., 1/393., 1/364., 1/372.
-
 ; Garth H. gain calibration from run 488, June 20 2017
 phgcer_adc_to_npe = 1/546., 1/430., 1/376., 1/477.
 
-; Garth H. gain calibration from run 487, June 20 2017
-; phgcer_adc_to_npe = 1/551., 1/426., 1/376., 1/488.
-
-; Garth H. gain calibration from run 486, June 20 2017
-; phgcer_adc_to_npe = 1/556., 1/436., 1/383., 1/496.
-
-; Garth H. gain calibration from run 484, June 20 2017
-; phgcer_adc_to_npe = 1/454., 1/477., 1/409., 1/547.		  
-
 ; Track matching reduced chi2 cut values
 phgcer_red_chi2_min = 0.0
 phgcer_red_chi2_max = 25.0
diff --git a/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_483.param b/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_483.param
new file mode 100644
index 00000000..cfb6f2c5
--- /dev/null
+++ b/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_483.param
@@ -0,0 +1,43 @@
+; Number of noble gas Cherenkov PMT's
+pngcer_tot_pmts = 4
+
+; Noble gas cherenkov gain factors run 483, July 11 2017 
+pngcer_adc_to_npe = 1.0/462.791, 1.0/475.186, 1.0/524.213, 1.0/520.873
+
+; Track matching reduced chi2 cut values
+pngcer_red_chi2_min = 0.0
+pngcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+pngcer_beta_min = 0.0
+pngcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+pngcer_enorm_min = 0.0
+pngcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+pngcer_adcTimeWindowMin = 500.
+pngcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+pngcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0
+pngcer_mirror_zpos = -89.1 
+
+; Number of regions in which tracks can be matched too
+pngcer_num_regions = 4;
+
+; pngcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 43 cm and y = 43 cm
+pngcer_region =   21.5,    21.5,  -21.5,  -21.5,   
+                  21.5,   -21.5,   21.5,  -21.5,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  21.5,    21.5,   21.5,   21.5,
+                  21.5,    21.5,   21.5,   21.5,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
\ No newline at end of file
diff --git a/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_487.param b/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_487.param
new file mode 100644
index 00000000..17935be7
--- /dev/null
+++ b/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_487.param
@@ -0,0 +1,43 @@
+; Number of noble gas Cherenkov PMT's
+pngcer_tot_pmts = 4
+
+; Noble gas cherenkov gain factors run 487, July 11 2017 
+pngcer_adc_to_npe = 1.0/464.187, 1.0/484.511, 1.0/499.748, 1.0/462.744
+
+; Track matching reduced chi2 cut values
+pngcer_red_chi2_min = 0.0
+pngcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+pngcer_beta_min = 0.0
+pngcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+pngcer_enorm_min = 0.0
+pngcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+pngcer_adcTimeWindowMin = 500.
+pngcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+pngcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0
+pngcer_mirror_zpos = -89.1 
+
+; Number of regions in which tracks can be matched too
+pngcer_num_regions = 4;
+
+; pngcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 43 cm and y = 43 cm
+pngcer_region =   21.5,    21.5,  -21.5,  -21.5,   
+                  21.5,   -21.5,   21.5,  -21.5,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  21.5,    21.5,   21.5,   21.5,
+                  21.5,    21.5,   21.5,   21.5,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
\ No newline at end of file
diff --git a/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_488.param b/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_488.param
new file mode 100644
index 00000000..0c267bd8
--- /dev/null
+++ b/PARAM/SHMS/NGCER/KPP_Spring_2017/pngcer_488.param
@@ -0,0 +1,43 @@
+; Number of noble gas Cherenkov PMT's
+pngcer_tot_pmts = 4
+
+; Noble gas cherenkov gain factors run 488, July 11 2017 
+pngcer_adc_to_npe = 1.0/438.119, 1.0/477.902, 1.0/475.153, 1.0/488.668
+
+; Track matching reduced chi2 cut values
+pngcer_red_chi2_min = 0.0
+pngcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+pngcer_beta_min = 0.0
+pngcer_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+pngcer_enorm_min = 0.0
+pngcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+pngcer_adcTimeWindowMin = 500.
+pngcer_adcTimeWindowMax = 2500.
+
+; ; NPE Threshold for "good" hit (for measureing effic.)
+pngcer_npe_thresh = 0.5
+
+; Guess from Dwg. 67165-E-00001 R0
+pngcer_mirror_zpos = -89.1 
+
+; Number of regions in which tracks can be matched too
+pngcer_num_regions = 4;
+
+; pngcer_region: 8 values for each region (1 per mirror + sum)
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; Assumes rectangular volume with x = 43 cm and y = 43 cm
+pngcer_region =   21.5,    21.5,  -21.5,  -21.5,   
+                  21.5,   -21.5,   21.5,  -21.5,
+                   0.0,     0.0,    0.0,    0.0,
+                   0.0,     0.0,    0.0,    0.0,
+                  21.5,    21.5,   21.5,   21.5,
+                  21.5,    21.5,   21.5,   21.5,
+	          0.15,    0.15,   0.15,   0.15,
+	           0.1,     0.1,    0.1,    0.1
\ No newline at end of file
diff --git a/PARAM/SHMS/NGCER/pngcer.param b/PARAM/SHMS/NGCER/pngcer.param
index 1afa702d..0c267bd8 100644
--- a/PARAM/SHMS/NGCER/pngcer.param
+++ b/PARAM/SHMS/NGCER/pngcer.param
@@ -1,8 +1,8 @@
 ; Number of noble gas Cherenkov PMT's
 pngcer_tot_pmts = 4
 
-; Noble gas cherenkov gain factors
-pngcer_adc_to_npe = 1/1000., 1/1000., 1/1000., 1/1000.
+; Noble gas cherenkov gain factors run 488, July 11 2017 
+pngcer_adc_to_npe = 1.0/438.119, 1.0/477.902, 1.0/475.153, 1.0/488.668
 
 ; Track matching reduced chi2 cut values
 pngcer_red_chi2_min = 0.0
diff --git a/SCRIPTS/SHMS/replay_paero_test_stand.C b/SCRIPTS/SHMS/replay_paero_test_stand.C
index 61c4b49c..c0aba3a6 100644
--- a/SCRIPTS/SHMS/replay_paero_test_stand.C
+++ b/SCRIPTS/SHMS/replay_paero_test_stand.C
@@ -20,7 +20,7 @@ void replay_paero_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/paero_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_pcal_test_stand.C b/SCRIPTS/SHMS/replay_pcal_test_stand.C
index f3f4abad..cbb60e85 100644
--- a/SCRIPTS/SHMS/replay_pcal_test_stand.C
+++ b/SCRIPTS/SHMS/replay_pcal_test_stand.C
@@ -15,12 +15,12 @@ void replay_pcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
     }
   }
 
-  // Create file name patterns.
+  // Create file name patterns
   const char* RunFileNamePattern = "raw/shms_all_%05d.dat";
   const char* ROOTFileNamePattern = "ROOTfiles/pcal_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_pdc_test_stand.C b/SCRIPTS/SHMS/replay_pdc_test_stand.C
index 9fcbf867..c1aa6ef8 100644
--- a/SCRIPTS/SHMS/replay_pdc_test_stand.C
+++ b/SCRIPTS/SHMS/replay_pdc_test_stand.C
@@ -20,7 +20,7 @@ void replay_pdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/pdc_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_phgcer_test_stand.C b/SCRIPTS/SHMS/replay_phgcer_test_stand.C
index c4dd4231..13c75d7c 100644
--- a/SCRIPTS/SHMS/replay_phgcer_test_stand.C
+++ b/SCRIPTS/SHMS/replay_phgcer_test_stand.C
@@ -20,7 +20,7 @@ void replay_phgcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/phgcer_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_phodo_test_stand.C b/SCRIPTS/SHMS/replay_phodo_test_stand.C
index 4210dbd0..1bf118d7 100644
--- a/SCRIPTS/SHMS/replay_phodo_test_stand.C
+++ b/SCRIPTS/SHMS/replay_phodo_test_stand.C
@@ -20,7 +20,7 @@ void replay_phodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/phodo_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_pngcer_test_stand.C b/SCRIPTS/SHMS/replay_pngcer_test_stand.C
index a0343771..f8fd7103 100644
--- a/SCRIPTS/SHMS/replay_pngcer_test_stand.C
+++ b/SCRIPTS/SHMS/replay_pngcer_test_stand.C
@@ -20,7 +20,7 @@ void replay_pngcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/pngcer_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_ptrig_test_stand.C b/SCRIPTS/SHMS/replay_ptrig_test_stand.C
index 31cb728b..686381d4 100644
--- a/SCRIPTS/SHMS/replay_ptrig_test_stand.C
+++ b/SCRIPTS/SHMS/replay_ptrig_test_stand.C
@@ -20,7 +20,7 @@ void replay_ptrig_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/ptrig_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_shms.C b/SCRIPTS/SHMS/replay_shms.C
index 1be01de6..f3f6d8c1 100644
--- a/SCRIPTS/SHMS/replay_shms.C
+++ b/SCRIPTS/SHMS/replay_shms.C
@@ -20,7 +20,7 @@ void replay_shms(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/shms_replay_%d_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_shms_raster_simple.C b/SCRIPTS/SHMS/replay_shms_raster_simple.C
index 0310699e..c4fcdb59 100644
--- a/SCRIPTS/SHMS/replay_shms_raster_simple.C
+++ b/SCRIPTS/SHMS/replay_shms_raster_simple.C
@@ -20,7 +20,7 @@ void replay_shms_raster_simple(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/shms_raster_simple_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_shms_report.C b/SCRIPTS/SHMS/replay_shms_report.C
index 6f4158c2..b3ae7b54 100644
--- a/SCRIPTS/SHMS/replay_shms_report.C
+++ b/SCRIPTS/SHMS/replay_shms_report.C
@@ -20,7 +20,7 @@ void replay_shms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/shms_replay_report_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_shms_scalers.C b/SCRIPTS/SHMS/replay_shms_scalers.C
index 9d83a715..9e5ff1ec 100644
--- a/SCRIPTS/SHMS/replay_shms_scalers.C
+++ b/SCRIPTS/SHMS/replay_shms_scalers.C
@@ -20,7 +20,7 @@ void replay_shms_scalers(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/shms_replay_scalers_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
diff --git a/SCRIPTS/SHMS/replay_workshop_example.C b/SCRIPTS/SHMS/replay_workshop_example.C
index 0053bae9..5dc5e0d7 100644
--- a/SCRIPTS/SHMS/replay_workshop_example.C
+++ b/SCRIPTS/SHMS/replay_workshop_example.C
@@ -19,7 +19,7 @@ void replay_workshop_example(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/shms_replay_%d_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
   // g_ctp_parm_filename and g_decode_map_filename should now be defined.
-- 
GitLab