diff --git a/DBASE/HMS/STD/standard.kinematics b/DBASE/HMS/STD/standard.kinematics
index 52b28456affdaaf466ada038584c398321f30577..767e9e443625952ac3e1adbbebee10b5866bc3b1 100644
--- a/DBASE/HMS/STD/standard.kinematics
+++ b/DBASE/HMS/STD/standard.kinematics
@@ -433,3 +433,17 @@ gtargmass_amu= 1.00794
 hpartmass = 0.00051099
 htheta_lab = -65.0
 hpcentral = 1.0
+
+1481-1492
+gpbeam = 6.404 
+gtargmass_amu= 26.98
+hpartmass = 0.00051099
+htheta_lab = -64.99
+hpcentral = 1.0
+
+1493-1495
+gpbeam = 6.404 
+gtargmass_amu= 1.00794
+hpartmass = 0.00051099
+htheta_lab = -65.0
+hpcentral = 1.0
\ No newline at end of file
diff --git a/DBASE/SHMS/STD/standard.kinematics b/DBASE/SHMS/STD/standard.kinematics
index a2b52b38e6e6c30adaed658585e67178fca9fdd5..cc5071ff3041997678191bc28abc920b93de318c 100644
--- a/DBASE/SHMS/STD/standard.kinematics
+++ b/DBASE/SHMS/STD/standard.kinematics
@@ -322,3 +322,17 @@ gtargmass_amu= 1.00794
 ppartmass =  0.00051099
 ptheta_lab =35.06
 ppcentral = 2.869
+
+2214-2220
+gpbeam = 6.404
+gtargmass_amu= 26.98
+ppartmass =  0.00051099
+ptheta_lab =25.0
+ppcentral = 3.911
+
+2221-2223
+gpbeam = 6.404
+gtargmass_amu= 1.00794
+ppartmass =  0.00051099
+ptheta_lab =25.0
+ppcentral = 3.911
\ No newline at end of file
diff --git a/DBASE/db_HScalevt.dat b/DBASE/db_HScalevt.dat
deleted file mode 120000
index a8001535e77980149036b0663aa69a022cced67d..0000000000000000000000000000000000000000
--- a/DBASE/db_HScalevt.dat
+++ /dev/null
@@ -1 +0,0 @@
-../MAPS/SCALERS/db_HScalevt.dat
\ No newline at end of file
diff --git a/DBASE/db_HScalevt.dat b/DBASE/db_HScalevt.dat
new file mode 100644
index 0000000000000000000000000000000000000000..46a9ff16f131f30d870e178ee71d6892dfd5f4f5
--- /dev/null
+++ b/DBASE/db_HScalevt.dat
@@ -0,0 +1,438 @@
+map 3801 5 6 00000620 ffffffff 12
+map 3801 5 7 00200720 ffffffff 12
+map 3801 5 8 00400820 ffffffff 12
+map 3801 5 9 00600920 ffffffff 12
+map 3801 5 10 00800a20 ffffffff 12
+map 3801 5 11 00a00b20 ffffffff 12
+map 3801 5 12 00c00c20 ffffffff 12 31 1000000
+variable 5 19 1 .pEL_HI.scaler SHMS EL_HI
+variable 5 19 2 .pEL_HI.scalerRate SHMS EL_HI
+variable 3 3 1 .hod.2y7.posScaler HMS 2Y+ paddle 7
+variable 3 3 2 .hod.2y7.posScalerRate HMS 2Y+ paddle 7
+variable 6 12 1 .PRHI.scaler HMS PRHI
+variable 6 12 2 .PRHI.scalerRate HMS PRHI
+variable 3 19 1 .hod.2y7.negScaler HMS 2Y- paddle 7
+variable 3 19 2 .hod.2y7.negScalerRate HMS 2Y- paddle 7
+variable 0 13 1 .hod.1x12.posScaler HMS 1X+ paddle 12
+variable 0 13 2 .hod.1x12.posScalerRate HMS 1X+ paddle 12
+variable 0 29 1 .hod.1x12.negScaler HMS 1X- paddle 12
+variable 0 29 2 .hod.1x12.negScalerRate HMS 1X- paddle 12
+variable 2 8 1 .hod.2x9.posScaler HMS 2X+ paddle 9
+variable 2 8 2 .hod.2x9.posScalerRate HMS 2X+ paddle 9
+variable 2 24 1 .hod.2x9.negScaler HMS 2X- paddle 9
+variable 2 24 2 .hod.2x9.negScalerRate HMS 2X- paddle 9
+variable 5 27 1 .hEL_HI.scaler HMS EL_HI
+variable 5 27 2 .hEL_HI.scalerRate HMS EL_HI
+variable 1 19 1 .hod.1y7.negScaler HMS 1Y- paddle 7
+variable 1 19 2 .hod.1y7.negScalerRate HMS 1Y- paddle 7
+variable 1 3 1 .hod.1y7.posScaler HMS 1Y+ paddle 7
+variable 1 3 2 .hod.1y7.posScalerRate HMS 1Y+ paddle 7
+variable 6 0 1 .S1X.scaler HMS S1X
+variable 6 0 2 .S1X.scalerRate HMS S1X
+variable 6 1 1 .S1Y.scaler HMS S1Y
+variable 6 1 2 .S1Y.scalerRate HMS S1Y
+variable 1 9 1 .Empty.scaler Empty
+variable 1 9 2 .Empty.scalerRate Empty
+variable 1 29 1 .Empty_10.scaler Empty
+variable 1 29 2 .Empty_10.scalerRate Empty
+variable 1 30 1 .Empty_11.scaler Empty
+variable 1 30 2 .Empty_11.scalerRate Empty
+variable 1 31 1 .Empty_12.scaler Empty
+variable 1 31 2 .Empty_12.scalerRate Empty
+variable 3 9 1 .Empty_13.scaler Empty
+variable 3 9 2 .Empty_13.scalerRate Empty
+variable 3 10 1 .Empty_14.scaler Empty
+variable 3 10 2 .Empty_14.scalerRate Empty
+variable 3 11 1 .Empty_15.scaler Empty
+variable 3 11 2 .Empty_15.scalerRate Empty
+variable 3 13 1 .Empty_16.scaler Empty
+variable 3 13 2 .Empty_16.scalerRate Empty
+variable 3 14 1 .Empty_17.scaler Empty
+variable 3 14 2 .Empty_17.scalerRate Empty
+variable 3 15 1 .Empty_18.scaler Empty
+variable 3 15 2 .Empty_18.scalerRate Empty
+variable 3 25 1 .Empty_19.scaler Empty
+variable 3 25 2 .Empty_19.scalerRate Empty
+variable 0 19 1 .hod.1x7.negScaler HMS 1X- paddle 7
+variable 0 19 2 .hod.1x7.negScalerRate HMS 1X- paddle 7
+variable 0 3 1 .hod.1x7.posScaler HMS 1X+ paddle 7
+variable 0 3 2 .hod.1x7.posScalerRate HMS 1X+ paddle 7
+variable 0 31 1 .hod.1x16.negScaler HMS 1X- paddle 16
+variable 0 31 2 .hod.1x16.negScalerRate HMS 1X- paddle 16
+variable 0 15 1 .hod.1x16.posScaler HMS 1X+ paddle 16
+variable 0 15 2 .hod.1x16.posScalerRate HMS 1X+ paddle 16
+variable 2 9 1 .hod.2x11.posScaler HMS 2X+ paddle 11
+variable 2 9 2 .hod.2x11.posScalerRate HMS 2X+ paddle 11
+variable 3 17 1 .hod.2y3.negScaler HMS 2Y- paddle 3
+variable 3 17 2 .hod.2y3.negScalerRate HMS 2Y- paddle 3
+variable 2 25 1 .hod.2x11.negScaler HMS 2X- paddle 11
+variable 2 25 2 .hod.2x11.negScalerRate HMS 2X- paddle 11
+variable 3 1 1 .hod.2y3.posScaler HMS 2Y+ paddle 3
+variable 3 1 2 .hod.2y3.posScalerRate HMS 2Y+ paddle 3
+variable 5 18 1 .pEL_LO.scaler SHMS EL_LO
+variable 5 18 2 .pEL_LO.scalerRate SHMS EL_LO
+variable 4 2 1 .pPRE150.scaler SHMS PRE150
+variable 4 2 2 .pPRE150.scalerRate SHMS PRE150
+variable 4 0 1 .pPRE40.scaler SHMS PRE40
+variable 4 0 2 .pPRE40.scalerRate SHMS PRE40
+variable 3 7 1 .hod.2y8.posScaler HMS 2Y+ paddle 8
+variable 3 7 2 .hod.2y8.posScalerRate HMS 2Y+ paddle 8
+variable 3 23 1 .hod.2y8.negScaler HMS 2Y- paddle 8
+variable 3 23 2 .hod.2y8.negScalerRate HMS 2Y- paddle 8
+variable 6 30 1 .Unser.scaler Unser
+variable 6 30 2 .Unser.scalerRate Unser
+variable 6 30 3 .Unser.scalerCurrent Unser
+variable 6 30 4 .Unser.scalerCharge Unser
+variable 0 9 1 .hod.1x11.posScaler HMS 1X+ paddle 11
+variable 0 9 2 .hod.1x11.posScalerRate HMS 1X+ paddle 11
+variable 0 25 1 .hod.1x11.negScaler HMS 1X- paddle 11
+variable 0 25 2 .hod.1x11.negScalerRate HMS 1X- paddle 11
+variable 2 21 1 .hod.2x4.negScaler HMS 2X- paddle 4
+variable 2 21 2 .hod.2x4.negScalerRate HMS 2X- paddle 4
+variable 2 5 1 .hod.2x4.posScaler HMS 2X+ paddle 4
+variable 2 5 2 .hod.2x4.posScalerRate HMS 2X+ paddle 4
+variable 5 26 1 .hEL_LO.scaler HMS EL_LO
+variable 5 26 2 .hEL_LO.scalerRate HMS EL_LO
+variable 6 25 1 .BCM4A.scaler BCM4a
+variable 6 25 2 .BCM4A.scalerRate BCM4a
+variable 6 25 3 .BCM4A.scalerCurrent BCM4a
+variable 6 25 4 .BCM4A.scalerCharge BCM4a
+variable 6 26 1 .BCM4B.scaler BCM4b
+variable 6 26 2 .BCM4B.scalerRate BCM4b
+variable 6 26 3 .BCM4B.scalerCurrent BCM4b
+variable 6 26 4 .BCM4B.scalerCharge BCM4b
+variable 6 31 1 .1Mhz.scaler 1MHz
+variable 6 31 2 .1Mhz.scalerRate 1MHz
+variable 6 31 5 .1Mhz.scalerTime 1MHz
+variable 1 1 1 .hod.1y3.posScaler HMS 1Y+ paddle 3
+variable 1 1 2 .hod.1y3.posScalerRate HMS 1Y+ paddle 3
+variable 1 17 1 .hod.1y3.negScaler HMS 1Y- paddle 3
+variable 1 17 2 .hod.1y3.negScalerRate HMS 1Y- paddle 3
+variable 0 8 1 .hod.1x9.posScaler HMS 1X+ paddle 9
+variable 0 8 2 .hod.1x9.posScalerRate HMS 1X+ paddle 9
+variable 0 24 1 .hod.1x9.negScaler HMS 1X- paddle 9
+variable 0 24 2 .hod.1x9.negScalerRate HMS 1X- paddle 9
+variable 4 12 1 .Empty_29.scaler Empty
+variable 4 12 2 .Empty_29.scalerRate Empty
+variable 4 7 1 .Empty_28.scaler Empty
+variable 4 7 2 .Empty_28.scalerRate Empty
+variable 2 27 1 .hod.2x15.negScaler HMS 2X- paddle 15
+variable 2 27 2 .hod.2x15.negScalerRate HMS 2X- paddle 15
+variable 3 26 1 .Empty_20.scaler Empty
+variable 3 26 2 .Empty_20.scalerRate Empty
+variable 3 30 1 .Empty_23.scaler Empty
+variable 3 30 2 .Empty_23.scalerRate Empty
+variable 3 29 1 .Empty_22.scaler Empty
+variable 3 29 2 .Empty_22.scalerRate Empty
+variable 4 4 1 .Empty_25.scaler Empty
+variable 4 4 2 .Empty_25.scalerRate Empty
+variable 3 31 1 .Empty_24.scaler Empty
+variable 3 31 2 .Empty_24.scalerRate Empty
+variable 2 11 1 .hod.2x15.posScaler HMS 2X+ paddle 15
+variable 2 11 2 .hod.2x15.posScalerRate HMS 2X+ paddle 15
+variable 4 5 1 .Empty_26.scaler Empty
+variable 4 5 2 .Empty_26.scalerRate Empty
+variable 5 28 1 .hEL_REAL.scaler HMS EL_REAL
+variable 5 28 2 .hEL_REAL.scalerRate HMS EL_REAL
+variable 3 21 1 .hod.2y4.negScaler HMS 2Y- paddle 4
+variable 3 21 2 .hod.2y4.negScalerRate HMS 2Y- paddle 4
+variable 3 5 1 .hod.2y4.posScaler HMS 2Y+ paddle 4
+variable 3 5 2 .hod.2y4.posScalerRate HMS 2Y+ paddle 4
+variable 0 27 1 .hod.1x15.negScaler HMS 1X- paddle 15
+variable 0 27 2 .hod.1x15.negScalerRate HMS 1X- paddle 15
+variable 0 11 1 .hod.1x15.posScaler HMS 1X+ paddle 15
+variable 0 11 2 .hod.1x15.posScalerRate HMS 1X+ paddle 15
+variable 2 7 1 .hod.2x8.posScaler HMS 2X+ paddle 8
+variable 2 7 2 .hod.2x8.posScalerRate HMS 2X+ paddle 8
+variable 2 23 1 .hod.2x8.negScaler HMS 2X- paddle 8
+variable 2 23 2 .hod.2x8.negScalerRate HMS 2X- paddle 8
+variable 5 29 1 .hEL_CLEAN.scaler HMS EL_CLEAN
+variable 5 29 2 .hEL_CLEAN.scalerRate HMS EL_CLEAN
+variable 2 17 1 .hod.2x3.negScaler HMS 2X- paddle 3
+variable 2 17 2 .hod.2x3.negScalerRate HMS 2X- paddle 3
+variable 2 1 1 .hod.2x3.posScaler HMS 2X+ paddle 3
+variable 2 1 2 .hod.2x3.posScalerRate HMS 2X+ paddle 3
+variable 4 9 1 .hPRE100.scaler HMS PRE100
+variable 4 9 2 .hPRE100.scalerRate HMS PRE100
+variable 4 16 1 .hL1ACCP.scaler HMS L1 Accept
+variable 4 16 2 .hL1ACCP.scalerRate HMS L1 Accept
+variable 0 5 1 .hod.1x4.posScaler HMS 1X+ paddle 4
+variable 0 5 2 .hod.1x4.posScalerRate HMS 1X+ paddle 4
+variable 5 20 1 .pEL_REAL.scaler SHMS EL_REAL
+variable 5 20 2 .pEL_REAL.scalerRate SHMS EL_REAL
+variable 1 24 1 .hod.1y9.negScaler HMS 1Y- paddle 9
+variable 1 24 2 .hod.1y9.negScalerRate HMS 1Y- paddle 9
+variable 1 8 1 .hod.1y9.posScaler HMS 1Y+ paddle 9
+variable 1 8 2 .hod.1y9.posScalerRate HMS 1Y+ paddle 9
+variable 6 7 1 .ASUM.scaler HMS ASUM
+variable 6 7 2 .ASUM.scalerRate HMS ASUM
+variable 1 6 1 .hod.1y6.posScaler HMS 1Y+ paddle 6
+variable 1 6 2 .hod.1y6.posScalerRate HMS 1Y+ paddle 6
+variable 1 22 1 .hod.1y6.negScaler HMS 1Y- paddle 6
+variable 1 22 2 .hod.1y6.negScalerRate HMS 1Y- paddle 6
+variable 0 21 1 .hod.1x4.negScaler HMS 1X- paddle 4
+variable 0 21 2 .hod.1x4.negScalerRate HMS 1X- paddle 4
+variable 5 25 1 .hEL_LO_LO.scaler HMS EL_LO_LO
+variable 5 25 2 .hEL_LO_LO.scalerRate HMS EL_LO_LO
+variable 2 29 1 .hod.2x12.negScaler HMS 2X- paddle 12
+variable 2 29 2 .hod.2x12.negScalerRate HMS 2X- paddle 12
+variable 2 13 1 .hod.2x12.posScaler HMS 2X+ paddle 12
+variable 2 13 2 .hod.2x12.posScalerRate HMS 2X+ paddle 12
+variable 1 26 1 .Empty_8.scaler Empty
+variable 1 26 2 .Empty_8.scalerRate Empty
+variable 1 27 1 .Empty_9.scaler Empty
+variable 1 27 2 .Empty_9.scalerRate Empty
+variable 1 10 1 .Empty_2.scaler Empty
+variable 1 10 2 .Empty_2.scalerRate Empty
+variable 1 15 1 .Empty_6.scaler Empty
+variable 1 15 2 .Empty_6.scalerRate Empty
+variable 1 25 1 .Empty_7.scaler Empty
+variable 1 25 2 .Empty_7.scalerRate Empty
+variable 1 13 1 .Empty_4.scaler Empty
+variable 1 13 2 .Empty_4.scalerRate Empty
+variable 1 14 1 .Empty_5.scaler Empty
+variable 1 14 2 .Empty_5.scalerRate Empty
+variable 3 24 1 .hod.2y9.negScaler HMS 2Y- paddle 9
+variable 3 24 2 .hod.2y9.negScalerRate HMS 2Y- paddle 9
+variable 3 8 1 .hod.2y9.posScaler HMS 2Y+ paddle 9
+variable 3 8 2 .hod.2y9.posScalerRate HMS 2Y+ paddle 9
+variable 5 14 1 .hTRIG5.scaler HMS TRIG5
+variable 5 14 2 .hTRIG5.scalerRate HMS TRIG5
+variable 5 13 1 .hTRIG4.scaler HMS TRIG4
+variable 5 13 2 .hTRIG4.scalerRate HMS TRIG4
+variable 5 15 1 .hTRIG6.scaler HMS TRIG6
+variable 5 15 2 .hTRIG6.scalerRate HMS TRIG6
+variable 5 10 1 .hTRIG1.scaler HMS TRIG1
+variable 5 10 2 .hTRIG1.scalerRate HMS TRIG1
+variable 5 12 1 .hTRIG3.scaler HMS TRIG3
+variable 5 12 2 .hTRIG3.scalerRate HMS TRIG3
+variable 5 11 1 .hTRIG2.scaler HMS TRIG2
+variable 5 11 2 .hTRIG2.scalerRate HMS TRIG2
+variable 0 12 1 .hod.1x10.posScaler HMS 1X+ paddle 10
+variable 0 12 2 .hod.1x10.posScalerRate HMS 1X+ paddle 10
+variable 0 28 1 .hod.1x10.negScaler HMS 1X- paddle 10
+variable 0 28 2 .hod.1x10.negScalerRate HMS 1X- paddle 10
+variable 5 21 1 .pEL_CLEAN.scaler SHMS EL_CLEAN
+variable 5 21 2 .pEL_CLEAN.scalerRate SHMS EL_CLEAN
+variable 6 28 1 .BCM2.scaler BCM2
+variable 6 28 2 .BCM2.scalerRate BCM2
+variable 6 28 3 .BCM2.scalerCurrent BCM2
+variable 6 28 4 .BCM2.scalerCharge BCM2
+variable 6 27 1 .BCM1.scaler BCM1
+variable 6 27 2 .BCM1.scalerRate BCM1
+variable 6 27 3 .BCM1.scalerCurrent BCM1
+variable 6 27 4 .BCM1.scalerCharge BCM1
+variable 2 3 1 .hod.2x7.posScaler HMS 2X+ paddle 7
+variable 2 3 2 .hod.2x7.posScalerRate HMS 2X+ paddle 7
+variable 2 19 1 .hod.2x7.negScaler HMS 2X- paddle 7
+variable 2 19 2 .hod.2x7.negScalerRate HMS 2X- paddle 7
+variable 4 8 1 .hPRE40.scaler HMS PRE40
+variable 4 8 2 .hPRE40.scalerRate HMS PRE40
+variable 1 2 1 .hod.1y5.posScaler HMS 1Y+ paddle 5
+variable 1 2 2 .hod.1y5.posScalerRate HMS 1Y+ paddle 5
+variable 1 18 1 .hod.1y5.negScaler HMS 1Y- paddle 5
+variable 1 18 2 .hod.1y5.negScalerRate HMS 1Y- paddle 5
+variable 1 20 1 .hod.1y2.negScaler HMS 1Y- paddle 2
+variable 1 20 2 .hod.1y2.negScalerRate HMS 1Y- paddle 2
+variable 1 4 1 .hod.1y2.posScaler HMS 1Y+ paddle 2
+variable 1 4 2 .hod.1y2.posScalerRate HMS 1Y+ paddle 2
+variable 5 23 1 .Empty_38.scaler Empty
+variable 5 23 2 .Empty_38.scalerRate Empty
+variable 5 30 1 .Empty_39.scaler Empty
+variable 5 30 2 .Empty_39.scalerRate Empty
+variable 4 15 1 .Empty_32.scaler Empty
+variable 4 15 2 .Empty_32.scalerRate Empty
+variable 5 6 1 .Empty_33.scaler Empty
+variable 5 6 2 .Empty_33.scalerRate Empty
+variable 4 13 1 .Empty_30.scaler Empty
+variable 4 13 2 .Empty_30.scalerRate Empty
+variable 4 14 1 .Empty_31.scaler Empty
+variable 4 14 2 .Empty_31.scalerRate Empty
+variable 5 9 1 .Empty_36.scaler Empty
+variable 5 9 2 .Empty_36.scalerRate Empty
+variable 5 22 1 .Empty_37.scaler Empty
+variable 5 22 2 .Empty_37.scalerRate Empty
+variable 5 7 1 .Empty_34.scaler Empty
+variable 5 7 2 .Empty_34.scalerRate Empty
+variable 5 8 1 .Empty_35.scaler Empty
+variable 5 8 2 .Empty_35.scalerRate Empty
+variable 0 0 1 .hod.1x1.posScaler HMS 1X+ paddle 1
+variable 0 0 2 .hod.1x1.posScalerRate HMS 1X+ paddle 1
+variable 0 16 1 .hod.1x1.negScaler HMS 1X- paddle 1
+variable 0 16 2 .hod.1x1.negScalerRate HMS 1X- paddle 1
+variable 1 11 1 .Empty_3.scaler Empty
+variable 1 11 2 .Empty_3.scalerRate Empty
+variable 3 27 1 .Empty_21.scaler Empty
+variable 3 27 2 .Empty_21.scalerRate Empty
+variable 3 2 1 .hod.2y5.posScaler HMS 2Y+ paddle 5
+variable 3 2 2 .hod.2y5.posScalerRate HMS 2Y+ paddle 5
+variable 3 18 1 .hod.2y5.negScaler HMS 2Y- paddle 5
+variable 3 18 2 .hod.2y5.negScalerRate HMS 2Y- paddle 5
+variable 2 15 1 .hod.2x16.posScaler HMS 2X+ paddle 16
+variable 2 15 2 .hod.2x16.posScalerRate HMS 2X+ paddle 16
+variable 2 31 1 .hod.2x16.negScaler HMS 2X- paddle 16
+variable 2 31 2 .hod.2x16.negScalerRate HMS 2X- paddle 16
+variable 4 11 1 .hPRE200.scaler HMS PRE200
+variable 4 11 2 .hPRE200.scalerRate HMS PRE200
+variable 4 6 1 .Empty_27.scaler Empty
+variable 4 6 2 .Empty_27.scalerRate Empty
+variable 0 30 1 .hod.1x14.negScaler HMS 1X- paddle 14
+variable 0 30 2 .hod.1x14.negScalerRate HMS 1X- paddle 14
+variable 0 14 1 .hod.1x14.posScaler HMS 1X+ paddle 14
+variable 0 14 2 .hod.1x14.posScalerRate HMS 1X+ paddle 14
+variable 2 4 1 .hod.2x2.posScaler HMS 2X+ paddle 2
+variable 2 4 2 .hod.2x2.posScalerRate HMS 2X+ paddle 2
+variable 2 20 1 .hod.2x2.negScaler HMS 2X- paddle 2
+variable 2 20 2 .hod.2x2.negScalerRate HMS 2X- paddle 2
+variable 6 29 1 .BCM17.scaler BCM17
+variable 6 29 2 .BCM17.scalerRate BCM17
+variable 6 29 3 .BCM17.scalerCurrent BCM17
+variable 6 29 4 .BCM17.scalerCharge BCM17
+variable 6 18 1 .Empty_43.scaler Empty
+variable 6 18 2 .Empty_43.scalerRate Empty
+variable 1 23 1 .hod.1y8.negScaler HMS 1Y- paddle 8
+variable 1 23 2 .hod.1y8.negScalerRate HMS 1Y- paddle 8
+variable 1 7 1 .hod.1y8.posScaler HMS 1Y+ paddle 8
+variable 1 7 2 .hod.1y8.posScalerRate HMS 1Y+ paddle 8
+variable 6 4 1 .S1XS1Y.scaler HMS S1T
+variable 6 4 2 .S1XS1Y.scalerRate HMS S1T
+variable 0 4 1 .hod.1x2.posScaler HMS 1X+ paddle 2
+variable 0 4 2 .hod.1x2.posScalerRate HMS 1X+ paddle 2
+variable 0 20 1 .hod.1x2.negScaler HMS 1X- paddle 2
+variable 0 20 2 .hod.1x2.negScalerRate HMS 1X- paddle 2
+variable 1 16 1 .hod.1y1.negScaler HMS 1Y- paddle 1
+variable 1 16 2 .hod.1y1.negScalerRate HMS 1Y- paddle 1
+variable 1 0 1 .hod.1y1.posScaler HMS 1Y+ paddle 1
+variable 1 0 2 .hod.1y1.posScalerRate HMS 1Y+ paddle 1
+variable 0 18 1 .hod.1x5.negScaler HMS 1X- paddle 5
+variable 0 18 2 .hod.1x5.negScalerRate HMS 1X- paddle 5
+variable 0 2 1 .hod.1x5.posScaler HMS 1X+ paddle 5
+variable 0 2 2 .hod.1x5.posScalerRate HMS 1X+ paddle 5
+variable 5 17 1 .pEL_LO_LO.scaler SHMS EL_LO_LO
+variable 5 17 2 .pEL_LO_LO.scalerRate SHMS EL_LO_LO
+variable 1 28 1 .hod.1y10.negScaler HMS 1Y- paddle 10
+variable 1 28 2 .hod.1y10.negScalerRate HMS 1Y- paddle 10
+variable 1 12 1 .hod.1y10.posScaler HMS 1Y+ paddle 10
+variable 1 12 2 .hod.1y10.posScalerRate HMS 1Y+ paddle 10
+variable 5 4 1 .pTRIG5.scaler SHMS TRIG5
+variable 5 4 2 .pTRIG5.scalerRate SHMS TRIG5
+variable 5 3 1 .pTRIG4.scaler SHMS TRIG4
+variable 5 3 2 .pTRIG4.scalerRate SHMS TRIG4
+variable 5 5 1 .pTRIG6.scaler SHMS TRIG6
+variable 5 5 2 .pTRIG6.scalerRate SHMS TRIG6
+variable 5 0 1 .pTRIG1.scaler SHMS TRIG1
+variable 5 0 2 .pTRIG1.scalerRate SHMS TRIG1
+variable 5 2 1 .pTRIG3.scaler SHMS TRIG3
+variable 5 2 2 .pTRIG3.scalerRate SHMS TRIG3
+variable 5 1 1 .pTRIG2.scaler SHMS TRIG2
+variable 5 1 2 .pTRIG2.scalerRate SHMS TRIG2
+variable 2 10 1 .hod.2x13.posScaler HMS 2X+ paddle 13
+variable 2 10 2 .hod.2x13.posScalerRate HMS 2X+ paddle 13
+variable 3 16 1 .hod.2y1.negScaler HMS 2Y- paddle 1
+variable 3 16 2 .hod.2y1.negScalerRate HMS 2Y- paddle 1
+variable 2 26 1 .hod.2x13.negScaler HMS 2X- paddle 13
+variable 2 26 2 .hod.2x13.negScalerRate HMS 2X- paddle 13
+variable 3 0 1 .hod.2y1.posScaler HMS 2Y+ paddle 1
+variable 3 0 2 .hod.2y1.posScalerRate HMS 2Y+ paddle 1
+variable 3 28 1 .hod.2y10.negScaler HMS 2Y- paddle 10
+variable 3 28 2 .hod.2y10.negScalerRate HMS 2Y- paddle 10
+variable 3 12 1 .hod.2y10.posScaler HMS 2Y+ paddle 10
+variable 3 12 2 .hod.2y10.posScalerRate HMS 2Y+ paddle 10
+variable 3 6 1 .hod.2y6.posScaler HMS 2Y+ paddle 6
+variable 3 6 2 .hod.2y6.posScalerRate HMS 2Y+ paddle 6
+variable 3 22 1 .hod.2y6.negScaler HMS 2Y- paddle 6
+variable 3 22 2 .hod.2y6.negScalerRate HMS 2Y- paddle 6
+variable 6 20 1 .Empty_45.scaler Empty
+variable 6 20 2 .Empty_45.scalerRate Empty
+variable 4 1 1 .pPRE100.scaler SHMS PRE100
+variable 4 1 2 .pPRE100.scalerRate SHMS PRE100
+variable 0 26 1 .hod.1x13.negScaler HMS 1X- paddle 13
+variable 0 26 2 .hod.1x13.negScalerRate HMS 1X- paddle 13
+variable 0 10 1 .hod.1x13.posScaler HMS 1X+ paddle 13
+variable 0 10 2 .hod.1x13.posScalerRate HMS 1X+ paddle 13
+variable 2 22 1 .hod.2x6.negScaler HMS 2X- paddle 6
+variable 2 22 2 .hod.2x6.negScalerRate HMS 2X- paddle 6
+variable 2 6 1 .hod.2x6.posScaler HMS 2X+ paddle 6
+variable 2 6 2 .hod.2x6.posScalerRate HMS 2X+ paddle 6
+variable 4 10 1 .hPRE150.scaler HMS PRE150
+variable 4 10 2 .hPRE150.scalerRate HMS PRE150
+variable 6 9 1 .CSUM.scaler HMS CSUM
+variable 6 9 2 .CSUM.scalerRate HMS CSUM
+variable 2 0 1 .hod.2x1.posScaler HMS 2X+ paddle 1
+variable 2 0 2 .hod.2x1.posScalerRate HMS 2X+ paddle 1
+variable 2 16 1 .hod.2x1.negScaler HMS 2X- paddle 1
+variable 2 16 2 .hod.2x1.negScalerRate HMS 2X- paddle 1
+variable 6 14 1 .EDTM.scaler HMS EDTM
+variable 6 14 2 .EDTM.scalerRate HMS EDTM
+variable 4 3 1 .pPRE200.scaler SHMS PRE200
+variable 4 3 2 .pPRE200.scalerRate SHMS PRE200
+variable 1 5 1 .hod.1y4.posScaler HMS 1Y+ paddle 4
+variable 1 5 2 .hod.1y4.posScalerRate HMS 1Y+ paddle 4
+variable 1 21 1 .hod.1y4.negScaler HMS 1Y- paddle 4
+variable 1 21 2 .hod.1y4.negScalerRate HMS 1Y- paddle 4
+variable 0 22 1 .hod.1x6.negScaler HMS 1X- paddle 6
+variable 0 22 2 .hod.1x6.negScalerRate HMS 1X- paddle 6
+variable 0 6 1 .hod.1x6.posScaler HMS 1X+ paddle 6
+variable 0 6 2 .hod.1x6.posScalerRate HMS 1X+ paddle 6
+variable 3 20 1 .hod.2y2.negScaler HMS 2Y- paddle 2
+variable 3 20 2 .hod.2y2.negScalerRate HMS 2Y- paddle 2
+variable 2 12 1 .hod.2x10.posScaler HMS 2X+ paddle 10
+variable 2 12 2 .hod.2x10.posScalerRate HMS 2X+ paddle 10
+variable 3 4 1 .hod.2y2.posScaler HMS 2Y+ paddle 2
+variable 3 4 2 .hod.2y2.posScalerRate HMS 2Y+ paddle 2
+variable 2 28 1 .hod.2x10.negScaler HMS 2X- paddle 10
+variable 2 28 2 .hod.2x10.negScalerRate HMS 2X- paddle 10
+variable 6 13 1 .SHLO.scaler HMS SHLO
+variable 6 13 2 .SHLO.scalerRate HMS SHLO
+variable 6 15 1 .CER.scaler HMS CER
+variable 6 15 2 .CER.scalerRate HMS CER
+variable 2 18 1 .hod.2x5.negScaler HMS 2X- paddle 5
+variable 2 18 2 .hod.2x5.negScalerRate HMS 2X- paddle 5
+variable 2 2 1 .hod.2x5.posScaler HMS 2X+ paddle 5
+variable 2 2 2 .hod.2x5.posScalerRate HMS 2X+ paddle 5
+variable 5 16 1 .pSTOF.scaler SHMS STOF
+variable 5 16 2 .pSTOF.scalerRate SHMS STOF
+variable 6 11 1 .PRLO.scaler HMS PRLO
+variable 6 11 2 .PRLO.scalerRate HMS PRLO
+variable 6 24 1 .Empty_49.scaler Empty
+variable 6 24 2 .Empty_49.scalerRate Empty
+variable 6 23 1 .Empty_48.scaler Empty
+variable 6 23 2 .Empty_48.scalerRate Empty
+variable 5 24 1 .hSTOF.scaler HMS STOF
+variable 5 24 2 .hSTOF.scalerRate HMS STOF
+variable 6 17 1 .Empty_42.scaler Empty
+variable 6 17 2 .Empty_42.scalerRate Empty
+variable 6 16 1 .Empty_41.scaler Empty
+variable 6 16 2 .Empty_41.scalerRate Empty
+variable 5 31 1 .Empty_40.scaler Empty
+variable 5 31 2 .Empty_40.scalerRate Empty
+variable 6 22 1 .Empty_47.scaler Empty
+variable 6 22 2 .Empty_47.scalerRate Empty
+variable 6 21 1 .Empty_46.scaler Empty
+variable 6 21 2 .Empty_46.scalerRate Empty
+variable 6 8 1 .BSUM.scaler HMS BSUM
+variable 6 8 2 .BSUM.scalerRate HMS BSUM
+variable 6 19 1 .Empty_44.scaler Empty
+variable 6 19 2 .Empty_44.scalerRate Empty
+variable 0 1 1 .hod.1x3.posScaler HMS 1X+ paddle 3
+variable 0 1 2 .hod.1x3.posScalerRate HMS 1X+ paddle 3
+variable 0 17 1 .hod.1x3.negScaler HMS 1X- paddle 3
+variable 0 17 2 .hod.1x3.negScalerRate HMS 1X- paddle 3
+variable 6 10 1 .DSUM.scaler HMS DSUM
+variable 6 10 2 .DSUM.scalerRate HMS DSUM
+variable 6 5 1 .S2XS2Y.scaler HMS S2T
+variable 6 5 2 .S2XS2Y.scalerRate HMS S2T
+variable 0 23 1 .hod.1x8.negScaler HMS 1X- paddle 8
+variable 0 23 2 .hod.1x8.negScalerRate HMS 1X- paddle 8
+variable 0 7 1 .hod.1x8.posScaler HMS 1X+ paddle 8
+variable 0 7 2 .hod.1x8.posScalerRate HMS 1X+ paddle 8
+variable 2 30 1 .hod.2x14.negScaler HMS 2X- paddle 14
+variable 2 30 2 .hod.2x14.negScalerRate HMS 2X- paddle 14
+variable 2 14 1 .hod.2x14.posScaler HMS 2X+ paddle 14
+variable 2 14 2 .hod.2x14.posScalerRate HMS 2X+ paddle 14
+variable 6 3 1 .S2Y.scaler HMS S2Y
+variable 6 3 2 .S2Y.scalerRate HMS S2Y
+variable 6 2 1 .S2X.scaler HMS S2X
+variable 6 2 2 .S2X.scalerRate HMS S2X
+variable 6 6 1 .hTREF1.scaler HMS TREF1
+variable 6 6 2 .hTREF1.scalerRate HMS TREF1
diff --git a/DBASE/db_PScalevt.dat b/DBASE/db_PScalevt.dat
deleted file mode 120000
index d72d04944474bb67dc787495ee63c7c436aa3b69..0000000000000000000000000000000000000000
--- a/DBASE/db_PScalevt.dat
+++ /dev/null
@@ -1 +0,0 @@
-../MAPS/SCALERS/db_PScalevt.dat
\ No newline at end of file
diff --git a/DBASE/db_PScalevt.dat b/DBASE/db_PScalevt.dat
new file mode 100644
index 0000000000000000000000000000000000000000..a438e701a781887389a0d730bf14e2ccba45a215
--- /dev/null
+++ b/DBASE/db_PScalevt.dat
@@ -0,0 +1,503 @@
+map 3801 8 6 02800620 ffffffff 13
+map 3801 8 7 02a00720 ffffffff 13
+map 3801 8 8 02c00820 ffffffff 13
+map 3801 8 9 02e00920 ffffffff 13
+map 3801 8 10 03000a20 ffffffff 13
+map 3801 8 11 03200b20 ffffffff 13
+map 3801 8 12 03400c20 ffffffff 13
+map 3801 8 13 03600d20 ffffffff 13 31 1000000
+variable 6 24 1 .hSTOF.scaler HMS STOF
+variable 6 24 2 .hSTOF.scalerRate HMS STOF
+variable 3 31 1 .hod.2y16.posScaler SHMS 2y+ paddle 16
+variable 3 31 2 .hod.2y16.posScalerRate SHMS 2y+ paddle 16
+variable 3 15 1 .hod.2y16.negScaler SHMS 2y- paddle 16
+variable 3 15 2 .hod.2y16.negScalerRate SHMS 2y- paddle 16
+variable 6 29 1 .hEL_CLEAN.scaler HMS EL_CLEAN
+variable 6 29 2 .hEL_CLEAN.scalerRate HMS EL_CLEAN
+variable 7 11 1 .PRLO.scaler SHMS PRLO
+variable 7 11 2 .PRLO.scalerRate SHMS PRLO
+variable 7 10 1 .EDTM.scaler SHMS EDTM
+variable 7 10 2 .EDTM.scalerRate SHMS EDTM
+variable 0 23 1 .hod.1x8.negScaler SHMS 1X- paddle 8
+variable 0 23 2 .hod.1x8.negScalerRate SHMS 1X- paddle 8
+variable 0 7 1 .hod.1x8.posScaler SHMS 1X+ paddle 8
+variable 0 7 2 .hod.1x8.posScalerRate SHMS 1X+ paddle 8
+variable 7 4 1 .S1XS1Y.scaler SHMS S1T
+variable 7 4 2 .S1XS1Y.scalerRate SHMS S1T
+variable 0 1 1 .hod.1x3.posScaler SHMS 1X+ paddle 3
+variable 0 1 2 .hod.1x3.posScalerRate SHMS 1X+ paddle 3
+variable 0 17 1 .hod.1x3.negScaler SHMS 1X- paddle 3
+variable 0 17 2 .hod.1x3.negScalerRate SHMS 1X- paddle 3
+variable 6 25 1 .hEL_LO_LO.scaler HMS EL_LO_LO
+variable 6 25 2 .hEL_LO_LO.scalerRate HMS EL_LO_LO
+variable 7 23 1 .Empty_65.scaler Empty
+variable 7 23 2 .Empty_65.scalerRate Empty
+variable 7 22 1 .Empty_64.scaler Empty
+variable 7 22 2 .Empty_64.scalerRate Empty
+variable 4 1 1 .hod.2y19.negScaler SHMS 2y- paddle 19
+variable 4 1 2 .hod.2y19.negScalerRate SHMS 2y- paddle 19
+variable 7 19 1 .Empty_61.scaler Empty
+variable 7 19 2 .Empty_61.scalerRate Empty
+variable 4 17 1 .hod.2y19.posScaler SHMS 2y+ paddle 19
+variable 4 17 2 .hod.2y19.posScalerRate SHMS 2y+ paddle 19
+variable 7 21 1 .Empty_63.scaler Empty
+variable 7 21 2 .Empty_63.scalerRate Empty
+variable 7 20 1 .Empty_62.scaler Empty
+variable 7 20 2 .Empty_62.scalerRate Empty
+variable 3 19 1 .hod.2y7.posScaler SHMS 2y+ paddle 7
+variable 3 19 2 .hod.2y7.posScalerRate SHMS 2y+ paddle 7
+variable 3 3 1 .hod.2y7.negScaler SHMS 2y- paddle 7
+variable 3 3 2 .hod.2y7.negScalerRate SHMS 2y- paddle 7
+variable 0 12 1 .hod.1x10.posScaler SHMS 1X+ paddle 10
+variable 0 12 2 .hod.1x10.posScalerRate SHMS 1X+ paddle 10
+variable 0 28 1 .hod.1x10.negScaler SHMS 1X- paddle 10
+variable 0 28 2 .hod.1x10.negScalerRate SHMS 1X- paddle 10
+variable 6 5 1 .pTRIG6.scaler SHMS TRIG6
+variable 6 5 2 .pTRIG6.scalerRate SHMS TRIG6
+variable 6 0 1 .pTRIG1.scaler SHMS TRIG1
+variable 6 0 2 .pTRIG1.scalerRate SHMS TRIG1
+variable 6 2 1 .pTRIG3.scaler SHMS TRIG3
+variable 6 2 2 .pTRIG3.scalerRate SHMS TRIG3
+variable 6 1 1 .pTRIG2.scaler SHMS TRIG2
+variable 6 1 2 .pTRIG2.scalerRate SHMS TRIG2
+variable 2 29 1 .hod.2x12.negScaler SHMS 2X- paddle 12
+variable 2 29 2 .hod.2x12.negScalerRate SHMS 2X- paddle 12
+variable 2 13 1 .hod.2x12.posScaler SHMS 2X+ paddle 12
+variable 2 13 2 .hod.2x12.posScalerRate SHMS 2X+ paddle 12
+variable 3 29 1 .hod.2y12.posScaler SHMS 2y+ paddle 12
+variable 3 29 2 .hod.2y12.posScalerRate SHMS 2y+ paddle 12
+variable 2 8 1 .hod.2x9.posScaler SHMS 2X+ paddle 9
+variable 2 8 2 .hod.2x9.posScalerRate SHMS 2X+ paddle 9
+variable 2 24 1 .hod.2x9.negScaler SHMS 2X- paddle 9
+variable 2 24 2 .hod.2x9.negScalerRate SHMS 2X- paddle 9
+variable 7 28 1 .BCM2.scaler BCM2
+variable 7 28 2 .BCM2.scalerRate BCM2
+variable 7 28 3 .BCM2.scalerCurrent BCM2
+variable 7 28 4 .BCM2.scalerCharge BCM2
+variable 4 10 1 .Empty_33.scaler Empty
+variable 4 10 2 .Empty_33.scalerRate Empty
+variable 4 7 1 .Empty_30.scaler Empty
+variable 4 7 2 .Empty_30.scalerRate Empty
+variable 4 8 1 .Empty_31.scaler Empty
+variable 4 8 2 .Empty_31.scalerRate Empty
+variable 4 13 1 .Empty_36.scaler Empty
+variable 4 13 2 .Empty_36.scalerRate Empty
+variable 4 14 1 .Empty_37.scaler Empty
+variable 4 14 2 .Empty_37.scalerRate Empty
+variable 4 12 1 .Empty_35.scaler Empty
+variable 4 12 2 .Empty_35.scalerRate Empty
+variable 3 27 1 .hod.2y15.posScaler SHMS 2y+ paddle 15
+variable 3 27 2 .hod.2y15.posScalerRate SHMS 2y+ paddle 15
+variable 4 15 1 .Empty_38.scaler Empty
+variable 4 15 2 .Empty_38.scalerRate Empty
+variable 5 4 1 .Empty_39.scaler Empty
+variable 5 4 2 .Empty_39.scalerRate Empty
+variable 3 11 1 .hod.2y15.negScaler SHMS 2y- paddle 15
+variable 3 11 2 .hod.2y15.negScalerRate SHMS 2y- paddle 15
+variable 1 10 1 .hod.1y13.negScaler SHMS 1Y- paddle 13
+variable 1 10 2 .hod.1y13.negScalerRate SHMS 1Y- paddle 13
+variable 1 26 1 .hod.1y13.posScaler SHMS 1Y+ paddle 13
+variable 1 26 2 .hod.1y13.posScalerRate SHMS 1Y+ paddle 13
+variable 7 12 1 .PRHI.scaler SHMS PRHI
+variable 7 12 2 .PRHI.scalerRate SHMS PRHI
+variable 1 3 1 .hod.1y7.negScaler SHMS 1Y- paddle 7
+variable 1 3 2 .hod.1y7.negScalerRate SHMS 1Y- paddle 7
+variable 1 19 1 .hod.1y7.posScaler SHMS 1Y+ paddle 7
+variable 1 19 2 .hod.1y7.posScalerRate SHMS 1Y+ paddle 7
+variable 0 19 1 .hod.1x7.negScaler SHMS 1X- paddle 7
+variable 0 19 2 .hod.1x7.negScalerRate SHMS 1X- paddle 7
+variable 0 3 1 .hod.1x7.posScaler SHMS 1X+ paddle 7
+variable 0 3 2 .hod.1x7.posScalerRate SHMS 1X+ paddle 7
+variable 7 31 1 .1Mhz.scaler 1MHz
+variable 7 31 2 .1Mhz.scalerRate 1MHz
+variable 7 31 5 .1Mhz.scalerTime 1MHz
+variable 0 11 1 .Empty.scaler Empty
+variable 0 11 2 .Empty.scalerRate Empty
+variable 2 21 1 .hod.2x4.negScaler SHMS 2X- paddle 4
+variable 2 21 2 .hod.2x4.negScalerRate SHMS 2X- paddle 4
+variable 3 23 1 .hod.2y8.posScaler SHMS 2y+ paddle 8
+variable 3 23 2 .hod.2y8.posScalerRate SHMS 2y+ paddle 8
+variable 6 27 1 .hEL_HI.scaler HMS EL_HI
+variable 6 27 2 .hEL_HI.scalerRate HMS EL_HI
+variable 3 7 1 .hod.2y8.negScaler SHMS 2y- paddle 8
+variable 3 7 2 .hod.2y8.negScalerRate SHMS 2y- paddle 8
+variable 7 25 1 .BCM4A.scaler BCM4a
+variable 7 25 2 .BCM4A.scalerRate BCM4a
+variable 7 25 3 .BCM4A.scalerCurrent BCM4a
+variable 7 25 4 .BCM4A.scalerCharge BCM4a
+variable 7 26 1 .BCM4B.scaler BCM4b
+variable 7 26 2 .BCM4B.scalerRate BCM4b
+variable 7 26 3 .BCM4B.scalerCurrent BCM4b
+variable 7 26 4 .BCM4B.scalerCharge BCM4b
+variable 3 1 1 .hod.2y3.negScaler SHMS 2y- paddle 3
+variable 3 1 2 .hod.2y3.negScalerRate SHMS 2y- paddle 3
+variable 3 17 1 .hod.2y3.posScaler SHMS 2y+ paddle 3
+variable 3 17 2 .hod.2y3.posScalerRate SHMS 2y+ paddle 3
+variable 5 2 1 .pPRE150.scaler SHMS PRE150
+variable 5 2 2 .pPRE150.scalerRate SHMS PRE150
+variable 5 10 1 .hPRE150.scaler HMS PRE150
+variable 5 10 2 .hPRE150.scalerRate HMS PRE150
+variable 5 16 1 .pL1ACCP.scaler  SHMS L1 Accept
+variable 5 16 2 .pL1ACCP.scalerRate  SHMS L1 Accept
+variable 0 15 1 .Empty_3.scaler Empty
+variable 0 15 2 .Empty_3.scalerRate Empty
+variable 3 9 1 .hod.2y11.negScaler SHMS 2y- paddle 11
+variable 3 9 2 .hod.2y11.negScalerRate SHMS 2y- paddle 11
+variable 3 25 1 .hod.2y11.posScaler SHMS 2y+ paddle 11
+variable 3 25 2 .hod.2y11.posScalerRate SHMS 2y+ paddle 11
+variable 1 27 1 .Empty_7.scaler Empty
+variable 1 27 2 .Empty_7.scalerRate Empty
+variable 2 28 1 .hod.2x10.negScaler SHMS 2X- paddle 10
+variable 2 28 2 .hod.2x10.negScalerRate SHMS 2X- paddle 10
+variable 1 17 1 .hod.1y3.posScaler SHMS 1Y+ paddle 3
+variable 1 17 2 .hod.1y3.posScalerRate SHMS 1Y+ paddle 3
+variable 1 1 1 .hod.1y3.negScaler SHMS 1Y- paddle 3
+variable 1 1 2 .hod.1y3.negScalerRate SHMS 1Y- paddle 3
+variable 1 12 1 .hod.1y10.negScaler SHMS 1Y- paddle 10
+variable 1 12 2 .hod.1y10.negScalerRate SHMS 1Y- paddle 10
+variable 1 28 1 .hod.1y10.posScaler SHMS 1Y+ paddle 10
+variable 1 28 2 .hod.1y10.posScalerRate SHMS 1Y+ paddle 10
+variable 0 8 1 .hod.1x9.posScaler SHMS 1X+ paddle 9
+variable 0 8 2 .hod.1x9.posScalerRate SHMS 1X+ paddle 9
+variable 0 24 1 .hod.1x9.negScaler SHMS 1X- paddle 9
+variable 0 24 2 .hod.1x9.negScalerRate SHMS 1X- paddle 9
+variable 4 4 1 .hod.2y18.negScaler SHMS 2y- paddle 18
+variable 4 4 2 .hod.2y18.negScalerRate SHMS 2y- paddle 18
+variable 6 20 1 .pEL_REAL.scaler SHMS EL_REAL
+variable 6 20 2 .pEL_REAL.scalerRate SHMS EL_REAL
+variable 4 20 1 .hod.2y18.posScaler SHMS 2y+ paddle 18
+variable 4 20 2 .hod.2y18.posScalerRate SHMS 2y+ paddle 18
+variable 6 11 1 .hTRIG2.scaler HMS  TRIG2
+variable 6 11 2 .hTRIG2.scalerRate HMS  TRIG2
+variable 7 3 1 .S2Y.scaler SHMS S2Y
+variable 7 3 2 .S2Y.scalerRate SHMS S2Y
+variable 7 2 1 .S2X.scaler SHMS S2X
+variable 7 2 2 .S2X.scalerRate SHMS S2X
+variable 3 5 1 .hod.2y4.negScaler SHMS 2y- paddle 4
+variable 3 5 2 .hod.2y4.negScalerRate SHMS 2y- paddle 4
+variable 3 21 1 .hod.2y4.posScaler SHMS 2y+ paddle 4
+variable 3 21 2 .hod.2y4.posScalerRate SHMS 2y+ paddle 4
+variable 7 24 1 .Empty_66.scaler Empty
+variable 7 24 2 .Empty_66.scalerRate Empty
+variable 7 18 1 .Empty_60.scaler Empty
+variable 7 18 2 .Empty_60.scalerRate Empty
+variable 0 26 1 .hod.1x13.negScaler SHMS 1X- paddle 13
+variable 0 26 2 .hod.1x13.negScalerRate SHMS 1X- paddle 13
+variable 0 10 1 .hod.1x13.posScaler SHMS 1X+ paddle 13
+variable 0 10 2 .hod.1x13.posScalerRate SHMS 1X+ paddle 13
+variable 2 26 1 .hod.2x13.negScaler SHMS 2X- paddle 13
+variable 2 26 2 .hod.2x13.negScalerRate SHMS 2X- paddle 13
+variable 6 31 1 .Empty_54.scaler Empty
+variable 6 31 2 .Empty_54.scalerRate Empty
+variable 2 10 1 .hod.2x13.posScaler SHMS 2X+ paddle 13
+variable 2 10 2 .hod.2x13.posScalerRate SHMS 2X+ paddle 13
+variable 6 23 1 .Empty_52.scaler Empty
+variable 6 23 2 .Empty_52.scalerRate Empty
+variable 2 17 1 .hod.2x3.negScaler SHMS 2X- paddle 3
+variable 2 17 2 .hod.2x3.negScalerRate SHMS 2X- paddle 3
+variable 2 1 1 .hod.2x3.posScaler SHMS 2X+ paddle 3
+variable 2 1 2 .hod.2x3.posScalerRate SHMS 2X+ paddle 3
+variable 2 7 1 .hod.2x8.posScaler SHMS 2X+ paddle 8
+variable 2 7 2 .hod.2x8.posScalerRate SHMS 2X+ paddle 8
+variable 3 30 1 .hod.2y14.posScaler SHMS 2y+ paddle 14
+variable 3 30 2 .hod.2y14.posScalerRate SHMS 2y+ paddle 14
+variable 6 19 1 .pEL_HI.scaler SHMS EL_HI
+variable 6 19 2 .pEL_HI.scalerRate SHMS EL_HI
+variable 7 0 1 .S1X.scaler SHMS S1X
+variable 7 0 2 .S1X.scalerRate SHMS S1X
+variable 7 1 1 .S1Y.scaler SHMS S1Y
+variable 7 1 2 .S1Y.scalerRate SHMS S1Y
+variable 1 8 1 .hod.1y9.negScaler SHMS 1Y- paddle 9
+variable 1 8 2 .hod.1y9.negScalerRate SHMS 1Y- paddle 9
+variable 7 8 1 .HCER.scaler SHMS HGC
+variable 7 8 2 .HCER.scalerRate SHMS HGC
+variable 1 24 1 .hod.1y9.posScaler SHMS 1Y+ paddle 9
+variable 1 24 2 .hod.1y9.posScalerRate SHMS 1Y+ paddle 9
+variable 1 22 1 .hod.1y6.posScaler SHMS 1Y+ paddle 6
+variable 1 22 2 .hod.1y6.posScalerRate SHMS 1Y+ paddle 6
+variable 1 6 1 .hod.1y6.negScaler SHMS 1Y- paddle 6
+variable 1 6 2 .hod.1y6.negScalerRate SHMS 1Y- paddle 6
+variable 0 5 1 .hod.1x4.posScaler SHMS 1X+ paddle 4
+variable 0 5 2 .hod.1x4.posScalerRate SHMS 1X+ paddle 4
+variable 0 21 1 .hod.1x4.negScaler SHMS 1X- paddle 4
+variable 0 21 2 .hod.1x4.negScalerRate SHMS 1X- paddle 4
+variable 6 21 1 .pEL_CLEAN.scaler SHMS EL_CLEAN
+variable 6 21 2 .pEL_CLEAN.scalerRate SHMS EL_CLEAN
+variable 7 30 1 .Unser.scaler Unser
+variable 7 30 2 .Unser.scalerRate Unser
+variable 7 30 3 .Unser.scalerCurrent Unser
+variable 7 30 4 .Unser.scalerCharge Unser
+variable 3 8 1 .hod.2y9.negScaler SHMS 2y- paddle 9
+variable 3 8 2 .hod.2y9.negScalerRate SHMS 2y- paddle 9
+variable 3 24 1 .hod.2y9.posScaler SHMS 2y+ paddle 9
+variable 3 24 2 .hod.2y9.posScalerRate SHMS 2y+ paddle 9
+variable 7 6 1 .pTREF3.scaler SHMS TREF3
+variable 7 6 2 .pTREF3.scalerRate SHMS TREF3
+variable 7 7 1 .AERO.scaler SHMS AERO
+variable 7 7 2 .AERO.scalerRate SHMS AERO
+variable 4 5 1 .hod.2y20.negScaler SHMS 2y- paddle 20
+variable 4 5 2 .hod.2y20.negScalerRate SHMS 2y- paddle 20
+variable 4 21 1 .hod.2y20.posScaler SHMS 2y+ paddle 20
+variable 4 21 2 .hod.2y20.posScalerRate SHMS 2y+ paddle 20
+variable 0 14 1 .Empty_2.scaler Empty
+variable 0 14 2 .Empty_2.scalerRate Empty
+variable 2 12 1 .hod.2x10.posScaler SHMS 2X+ paddle 10
+variable 2 12 2 .hod.2x10.posScalerRate SHMS 2X+ paddle 10
+variable 7 27 1 .BCM1.scaler BCM1
+variable 7 27 2 .BCM1.scalerRate BCM1
+variable 7 27 3 .BCM1.scalerCurrent BCM1
+variable 7 27 4 .BCM1.scalerCharge BCM1
+variable 0 31 1 .Empty_6.scaler Empty
+variable 0 31 2 .Empty_6.scalerRate Empty
+variable 0 27 1 .Empty_4.scaler Empty
+variable 0 27 2 .Empty_4.scalerRate Empty
+variable 0 29 1 .Empty_5.scaler Empty
+variable 0 29 2 .Empty_5.scalerRate Empty
+variable 1 30 1 .Empty_8.scaler Empty
+variable 1 30 2 .Empty_8.scalerRate Empty
+variable 1 31 1 .Empty_9.scaler Empty
+variable 1 31 2 .Empty_9.scalerRate Empty
+variable 6 14 1 .hTRIG5.scaler HMS  TRIG5
+variable 6 14 2 .hTRIG5.scalerRate HMS  TRIG5
+variable 6 13 1 .hTRIG4.scaler HMS  TRIG4
+variable 6 13 2 .hTRIG4.scalerRate HMS  TRIG4
+variable 6 15 1 .hTRIG6.scaler HMS  TRIG6
+variable 6 15 2 .hTRIG6.scalerRate HMS  TRIG6
+variable 6 10 1 .hTRIG1.scaler HMS  TRIG1
+variable 6 10 2 .hTRIG1.scalerRate HMS  TRIG1
+variable 6 12 1 .hTRIG3.scaler HMS  TRIG3
+variable 6 12 2 .hTRIG3.scalerRate HMS  TRIG3
+variable 3 12 1 .hod.2y10.negScaler SHMS 2y- paddle 10
+variable 3 12 2 .hod.2y10.negScalerRate SHMS 2y- paddle 10
+variable 3 28 1 .hod.2y10.posScaler SHMS 2y+ paddle 10
+variable 3 28 2 .hod.2y10.posScalerRate SHMS 2y+ paddle 10
+variable 2 23 1 .hod.2x8.negScaler SHMS 2X- paddle 8
+variable 2 23 2 .hod.2x8.negScalerRate SHMS 2X- paddle 8
+variable 2 3 1 .hod.2x7.posScaler SHMS 2X+ paddle 7
+variable 2 3 2 .hod.2x7.posScalerRate SHMS 2X+ paddle 7
+variable 6 18 1 .pEL_LO.scaler SHMS EL_LO
+variable 6 18 2 .pEL_LO.scalerRate SHMS EL_LO
+variable 2 19 1 .hod.2x7.negScaler SHMS 2X- paddle 7
+variable 2 19 2 .hod.2x7.negScalerRate SHMS 2X- paddle 7
+variable 2 5 1 .hod.2x4.posScaler SHMS 2X+ paddle 4
+variable 2 5 2 .hod.2x4.posScalerRate SHMS 2X+ paddle 4
+variable 1 4 1 .hod.1y2.negScaler SHMS 1Y- paddle 2
+variable 1 4 2 .hod.1y2.negScalerRate SHMS 1Y- paddle 2
+variable 1 20 1 .hod.1y2.posScaler SHMS 1Y+ paddle 2
+variable 1 20 2 .hod.1y2.posScalerRate SHMS 1Y+ paddle 2
+variable 7 29 1 .BCM17.scaler BCM17
+variable 7 29 2 .BCM17.scalerRate BCM17
+variable 7 29 3 .BCM17.scalerCurrent BCM17
+variable 7 29 4 .BCM17.scalerCharge BCM17
+variable 1 9 1 .hod.1y11.negScaler SHMS 1Y- paddle 11
+variable 1 9 2 .hod.1y11.negScalerRate SHMS 1Y- paddle 11
+variable 1 25 1 .hod.1y11.posScaler SHMS 1Y+ paddle 11
+variable 1 25 2 .hod.1y11.posScalerRate SHMS 1Y+ paddle 11
+variable 1 18 1 .hod.1y5.posScaler SHMS 1Y+ paddle 5
+variable 1 18 2 .hod.1y5.posScalerRate SHMS 1Y+ paddle 5
+variable 1 2 1 .hod.1y5.negScaler SHMS 1Y- paddle 5
+variable 1 2 2 .hod.1y5.negScalerRate SHMS 1Y- paddle 5
+variable 5 12 1 .Empty_43.scaler Empty
+variable 5 12 2 .Empty_43.scalerRate Empty
+variable 5 7 1 .Empty_42.scaler Empty
+variable 5 7 2 .Empty_42.scalerRate Empty
+variable 5 6 1 .Empty_41.scaler Empty
+variable 5 6 2 .Empty_41.scalerRate Empty
+variable 0 0 1 .hod.1x1.posScaler SHMS 1X+ paddle 1
+variable 0 0 2 .hod.1x1.posScalerRate SHMS 1X+ paddle 1
+variable 6 6 1 .Empty_47.scaler Empty
+variable 6 6 2 .Empty_47.scalerRate Empty
+variable 0 16 1 .hod.1x1.negScaler SHMS 1X- paddle 1
+variable 0 16 2 .hod.1x1.negScalerRate SHMS 1X- paddle 1
+variable 5 14 1 .Empty_45.scaler Empty
+variable 5 14 2 .Empty_45.scalerRate Empty
+variable 5 13 1 .Empty_44.scaler Empty
+variable 5 13 2 .Empty_44.scalerRate Empty
+variable 6 8 1 .Empty_49.scaler Empty
+variable 6 8 2 .Empty_49.scalerRate Empty
+variable 6 7 1 .Empty_48.scaler Empty
+variable 6 7 2 .Empty_48.scalerRate Empty
+variable 6 4 1 .pTRIG5.scaler SHMS TRIG5
+variable 6 4 2 .pTRIG5.scalerRate SHMS TRIG5
+variable 6 3 1 .pTRIG4.scaler SHMS TRIG4
+variable 6 3 2 .pTRIG4.scalerRate SHMS TRIG4
+variable 4 23 1 .Empty_19.scaler Empty
+variable 4 23 2 .Empty_19.scalerRate Empty
+variable 6 26 1 .hEL_LO.scaler HMS EL_LO
+variable 6 26 2 .hEL_LO.scalerRate HMS EL_LO
+variable 0 13 1 .hod.1x12.posScaler SHMS 1X+ paddle 12
+variable 0 13 2 .hod.1x12.posScalerRate SHMS 1X+ paddle 12
+variable 3 14 1 .hod.2y14.negScaler SHMS 2y- paddle 14
+variable 3 14 2 .hod.2y14.negScalerRate SHMS 2y- paddle 14
+variable 0 30 1 .hod.1x12.negScaler SHMS 1X- paddle 12
+variable 0 30 2 .hod.1x12.negScalerRate SHMS 1X- paddle 12
+variable 3 18 1 .hod.2y5.posScaler SHMS 2y+ paddle 5
+variable 3 18 2 .hod.2y5.posScalerRate SHMS 2y+ paddle 5
+variable 3 2 1 .hod.2y5.negScaler SHMS 2y- paddle 5
+variable 3 2 2 .hod.2y5.negScalerRate SHMS 2y- paddle 5
+variable 2 30 1 .hod.2x14.negScaler SHMS 2X- paddle 14
+variable 2 30 2 .hod.2x14.negScalerRate SHMS 2X- paddle 14
+variable 2 14 1 .hod.2x14.posScaler SHMS 2X+ paddle 14
+variable 2 14 2 .hod.2x14.posScalerRate SHMS 2X+ paddle 14
+variable 5 8 1 .hPRE40.scaler HMS PRE40
+variable 5 8 2 .hPRE40.scalerRate HMS PRE40
+variable 2 4 1 .hod.2x2.posScaler SHMS 2X+ paddle 2
+variable 2 4 2 .hod.2x2.posScalerRate SHMS 2X+ paddle 2
+variable 2 20 1 .hod.2x2.negScaler SHMS 2X- paddle 2
+variable 2 20 2 .hod.2x2.negScalerRate SHMS 2X- paddle 2
+variable 5 5 1 .Empty_40.scaler Empty
+variable 5 5 2 .Empty_40.scalerRate Empty
+variable 5 15 1 .Empty_46.scaler Empty
+variable 5 15 2 .Empty_46.scalerRate Empty
+variable 4 0 1 .hod.2y17.negScaler SHMS 2y- paddle 17
+variable 4 0 2 .hod.2y17.negScalerRate SHMS 2y- paddle 17
+variable 4 16 1 .hod.2y17.posScaler SHMS 2y+ paddle 17
+variable 4 16 2 .hod.2y17.posScalerRate SHMS 2y+ paddle 17
+variable 1 7 1 .hod.1y8.negScaler SHMS 1Y- paddle 8
+variable 1 7 2 .hod.1y8.negScalerRate SHMS 1Y- paddle 8
+variable 5 1 1 .pPRE100.scaler SHMS PRE100
+variable 5 1 2 .pPRE100.scalerRate SHMS PRE100
+variable 1 23 1 .hod.1y8.posScaler SHMS 1Y+ paddle 8
+variable 1 23 2 .hod.1y8.posScalerRate SHMS 1Y+ paddle 8
+variable 1 0 1 .hod.1y1.negScaler SHMS 1Y- paddle 1
+variable 1 0 2 .hod.1y1.negScalerRate SHMS 1Y- paddle 1
+variable 1 16 1 .hod.1y1.posScaler SHMS 1Y+ paddle 1
+variable 1 16 2 .hod.1y1.posScalerRate SHMS 1Y+ paddle 1
+variable 0 18 1 .hod.1x5.negScaler SHMS 1X- paddle 5
+variable 0 18 2 .hod.1x5.negScalerRate SHMS 1X- paddle 5
+variable 0 2 1 .hod.1x5.posScaler SHMS 1X+ paddle 5
+variable 0 2 2 .hod.1x5.posScalerRate SHMS 1X+ paddle 5
+variable 5 0 1 .pPRE40.scaler SHMS PRE40
+variable 5 0 2 .pPRE40.scalerRate SHMS PRE40
+variable 0 4 1 .hod.1x2.posScaler SHMS 1X+ paddle 2
+variable 0 4 2 .hod.1x2.posScalerRate SHMS 1X+ paddle 2
+variable 0 20 1 .hod.1x2.negScaler SHMS 1X- paddle 2
+variable 0 20 2 .hod.1x2.negScalerRate SHMS 1X- paddle 2
+variable 4 22 1 .Empty_18.scaler Empty
+variable 4 22 2 .Empty_18.scalerRate Empty
+variable 1 11 1 .Empty_10.scaler Empty
+variable 1 11 2 .Empty_10.scalerRate Empty
+variable 1 14 1 .Empty_11.scaler Empty
+variable 1 14 2 .Empty_11.scalerRate Empty
+variable 1 15 1 .Empty_12.scaler Empty
+variable 1 15 2 .Empty_12.scalerRate Empty
+variable 2 11 1 .Empty_13.scaler Empty
+variable 2 11 2 .Empty_13.scalerRate Empty
+variable 2 15 1 .Empty_14.scaler Empty
+variable 2 15 2 .Empty_14.scalerRate Empty
+variable 2 27 1 .Empty_15.scaler Empty
+variable 2 27 2 .Empty_15.scalerRate Empty
+variable 2 31 1 .Empty_16.scaler Empty
+variable 2 31 2 .Empty_16.scalerRate Empty
+variable 4 19 1 .Empty_17.scaler Empty
+variable 4 19 2 .Empty_17.scalerRate Empty
+variable 3 22 1 .hod.2y6.posScaler SHMS 2y+ paddle 6
+variable 3 22 2 .hod.2y6.posScalerRate SHMS 2y+ paddle 6
+variable 3 6 1 .hod.2y6.negScaler SHMS 2y- paddle 6
+variable 3 6 2 .hod.2y6.negScalerRate SHMS 2y- paddle 6
+variable 3 0 1 .hod.2y1.negScaler SHMS 2y- paddle 1
+variable 3 0 2 .hod.2y1.negScalerRate SHMS 2y- paddle 1
+variable 3 16 1 .hod.2y1.posScaler SHMS 2y+ paddle 1
+variable 3 16 2 .hod.2y1.posScalerRate SHMS 2y+ paddle 1
+variable 4 2 1 .hod.2y21.negScaler SHMS 2y- paddle 21
+variable 4 2 2 .hod.2y21.negScalerRate SHMS 2y- paddle 21
+variable 4 18 1 .hod.2y21.posScaler SHMS 2y+ paddle 21
+variable 4 18 2 .hod.2y21.posScalerRate SHMS 2y+ paddle 21
+variable 0 9 1 .hod.1x11.posScaler SHMS 1X+ paddle 11
+variable 0 9 2 .hod.1x11.posScalerRate SHMS 1X+ paddle 11
+variable 0 25 1 .hod.1x11.negScaler SHMS 1X- paddle 11
+variable 0 25 2 .hod.1x11.negScalerRate SHMS 1X- paddle 11
+variable 3 13 1 .hod.2y12.negScaler SHMS 2y- paddle 12
+variable 3 13 2 .hod.2y12.negScalerRate SHMS 2y- paddle 12
+variable 2 9 1 .hod.2x11.posScaler SHMS 2X+ paddle 11
+variable 2 9 2 .hod.2x11.posScalerRate SHMS 2X+ paddle 11
+variable 2 25 1 .hod.2x11.negScaler SHMS 2X- paddle 11
+variable 2 25 2 .hod.2x11.negScalerRate SHMS 2X- paddle 11
+variable 2 0 1 .hod.2x1.posScaler SHMS 2X+ paddle 1
+variable 2 0 2 .hod.2x1.posScalerRate SHMS 2X+ paddle 1
+variable 2 16 1 .hod.2x1.negScaler SHMS 2X- paddle 1
+variable 2 16 2 .hod.2x1.negScalerRate SHMS 2X- paddle 1
+variable 3 26 1 .hod.2y13.posScaler SHMS 2y+ paddle 13
+variable 3 26 2 .hod.2y13.posScalerRate SHMS 2y+ paddle 13
+variable 3 10 1 .hod.2y13.negScaler SHMS 2y- paddle 13
+variable 3 10 2 .hod.2y13.negScalerRate SHMS 2y- paddle 13
+variable 2 22 1 .hod.2x6.negScaler SHMS 2X- paddle 6
+variable 2 22 2 .hod.2x6.negScalerRate SHMS 2X- paddle 6
+variable 6 16 1 .pSTOF.scaler SHMS STOF
+variable 6 16 2 .pSTOF.scalerRate SHMS STOF
+variable 2 6 1 .hod.2x6.posScaler SHMS 2X+ paddle 6
+variable 2 6 2 .hod.2x6.posScalerRate SHMS 2X+ paddle 6
+variable 5 9 1 .hPRE100.scaler HMS PRE100
+variable 5 9 2 .hPRE100.scalerRate HMS PRE100
+variable 4 25 1 .Empty_21.scaler Empty
+variable 4 25 2 .Empty_21.scalerRate Empty
+variable 4 24 1 .Empty_20.scaler Empty
+variable 4 24 2 .Empty_20.scalerRate Empty
+variable 4 27 1 .Empty_23.scaler Empty
+variable 4 27 2 .Empty_23.scalerRate Empty
+variable 4 26 1 .Empty_22.scaler Empty
+variable 4 26 2 .Empty_22.scalerRate Empty
+variable 4 29 1 .Empty_25.scaler Empty
+variable 4 29 2 .Empty_25.scalerRate Empty
+variable 4 28 1 .Empty_24.scaler Empty
+variable 4 28 2 .Empty_24.scalerRate Empty
+variable 4 31 1 .Empty_27.scaler Empty
+variable 4 31 2 .Empty_27.scalerRate Empty
+variable 4 30 1 .Empty_26.scaler Empty
+variable 4 30 2 .Empty_26.scalerRate Empty
+variable 4 6 1 .Empty_29.scaler Empty
+variable 4 6 2 .Empty_29.scalerRate Empty
+variable 4 3 1 .Empty_28.scaler Empty
+variable 4 3 2 .Empty_28.scalerRate Empty
+variable 6 17 1 .pEL_LO_LO.scaler SHMS EL_LO_LO
+variable 6 17 2 .pEL_LO_LO.scalerRate SHMS EL_LO_LO
+variable 1 29 1 .hod.1y12.posScaler SHMS 1Y+ paddle 12
+variable 1 29 2 .hod.1y12.posScalerRate SHMS 1Y+ paddle 12
+variable 1 13 1 .hod.1y12.negScaler SHMS 1Y- paddle 12
+variable 1 13 2 .hod.1y12.negScalerRate SHMS 1Y- paddle 12
+variable 5 3 1 .pPRE200.scaler SHMS PRE200
+variable 5 3 2 .pPRE200.scalerRate SHMS PRE200
+variable 1 21 1 .hod.1y4.posScaler SHMS 1Y+ paddle 4
+variable 1 21 2 .hod.1y4.posScalerRate SHMS 1Y+ paddle 4
+variable 1 5 1 .hod.1y4.negScaler SHMS 1Y- paddle 4
+variable 1 5 2 .hod.1y4.negScalerRate SHMS 1Y- paddle 4
+variable 0 22 1 .hod.1x6.negScaler SHMS 1X- paddle 6
+variable 0 22 2 .hod.1x6.negScalerRate SHMS 1X- paddle 6
+variable 7 13 1 .Empty_55.scaler Empty
+variable 7 13 2 .Empty_55.scalerRate Empty
+variable 7 14 1 .Empty_56.scaler Empty
+variable 7 14 2 .Empty_56.scalerRate Empty
+variable 7 15 1 .Empty_57.scaler Empty
+variable 7 15 2 .Empty_57.scalerRate Empty
+variable 6 9 1 .Empty_50.scaler Empty
+variable 6 9 2 .Empty_50.scalerRate Empty
+variable 6 22 1 .Empty_51.scaler Empty
+variable 6 22 2 .Empty_51.scalerRate Empty
+variable 0 6 1 .hod.1x6.posScaler SHMS 1X+ paddle 6
+variable 0 6 2 .hod.1x6.posScalerRate SHMS 1X+ paddle 6
+variable 6 30 1 .Empty_53.scaler Empty
+variable 6 30 2 .Empty_53.scalerRate Empty
+variable 7 16 1 .Empty_58.scaler Empty
+variable 7 16 2 .Empty_58.scalerRate Empty
+variable 7 17 1 .Empty_59.scaler Empty
+variable 7 17 2 .Empty_59.scalerRate Empty
+variable 5 11 1 .hPRE200.scaler HMS PRE200
+variable 5 11 2 .hPRE200.scalerRate HMS PRE200
+variable 4 9 1 .Empty_32.scaler Empty
+variable 4 9 2 .Empty_32.scalerRate Empty
+variable 6 28 1 .hEL_REAL.scaler HMS EL_REAL
+variable 6 28 2 .hEL_REAL.scalerRate HMS EL_REAL
+variable 3 4 1 .hod.2y2.negScaler SHMS 2y- paddle 2
+variable 3 4 2 .hod.2y2.negScalerRate SHMS 2y- paddle 2
+variable 4 11 1 .Empty_34.scaler Empty
+variable 4 11 2 .Empty_34.scalerRate Empty
+variable 3 20 1 .hod.2y2.posScaler SHMS 2y+ paddle 2
+variable 3 20 2 .hod.2y2.posScalerRate SHMS 2y+ paddle 2
+variable 7 9 1 .NCER.scaler SHMS NGC
+variable 7 9 2 .NCER.scalerRate SHMS NGC
+variable 2 18 1 .hod.2x5.negScaler SHMS 2X- paddle 5
+variable 2 18 2 .hod.2x5.negScalerRate SHMS 2X- paddle 5
+variable 2 2 1 .hod.2x5.posScaler SHMS 2X+ paddle 5
+variable 2 2 2 .hod.2x5.posScalerRate SHMS 2X+ paddle 5
+variable 7 5 1 .S2XS2Y.scaler SHMS S2T
+variable 7 5 2 .S2XS2Y.scalerRate SHMS S2T
diff --git a/DEF-files/HMS/PRODUCTION/hstackana_production.def b/DEF-files/HMS/PRODUCTION/hstackana_production.def
index cb40f2a34945b52883f5e8875ba2c3bcb41a3f9a..d35c065692e7587219b90c2e005146ef7318ed01 100644
--- a/DEF-files/HMS/PRODUCTION/hstackana_production.def
+++ b/DEF-files/HMS/PRODUCTION/hstackana_production.def
@@ -6,6 +6,6 @@
 #include "DEF-files/HMS/PRODUCTION/GTR/hgtr_histos.def"
 #include "DEF-files/HMS/PRODUCTION/RASTER/hraster_histos.def"
 #include "DEF-files/HMS/PRODUCTION/TRIG/htrig_histos.def"
-#include "DEF-files/HMS/PRODUCTION/EPICS/hepics_histos.def"
+#include "DEF-files/HMS/PRODUCTION/EPICS/hepics_vars.def"
 #include "DEF-files/HMS/PRODUCTION/REACT/hreact_histos.def"
 #include "DEF-files/HMS/PRODUCTION/PID/hpid_histos.def"
diff --git a/DEF-files/HMS/PRODUCTION/hstackana_production.def.bck b/DEF-files/HMS/PRODUCTION/hstackana_production.def.bck
index cda0f9e0b245f7862f8ae3ceb120a8102e24fc37..cb40f2a34945b52883f5e8875ba2c3bcb41a3f9a 100644
--- a/DEF-files/HMS/PRODUCTION/hstackana_production.def.bck
+++ b/DEF-files/HMS/PRODUCTION/hstackana_production.def.bck
@@ -1,11 +1,3 @@
-#include "DEF-files/HMS/PRODUCTION/BLOCK/hblock_vars.def"
-
-#include "DEF-files/HMS/TEST_STANDS/CER/hcerana_histos.def"
-#include "DEF-files/HMS/TEST_STANDS/DC/hdcana_histos.def"
-#include "DEF-files/HMS/TEST_STANDS/HODO/hhodoana_histos.def"
-#include "DEF-files/HMS/TEST_STANDS/CAL/hcalana_histos.def"
-#include "DEF-files/HMS/TEST_STANDS/TRIG/htrigana_histos.def"
-
 #include "DEF-files/HMS/PRODUCTION/CAL/hcal_histos.def"
 #include "DEF-files/HMS/PRODUCTION/CER/hcer_histos.def"
 #include "DEF-files/HMS/PRODUCTION/DC/hdc_histos.def"
diff --git a/DEF-files/SHMS/PRODUCTION/pstackana_production.def b/DEF-files/SHMS/PRODUCTION/pstackana_production.def
index 776d42962962e217409d9f8f3c53fe878cf61c0c..a1e03b974c1c91f01f2c14012b1072e62c42e464 100644
--- a/DEF-files/SHMS/PRODUCTION/pstackana_production.def
+++ b/DEF-files/SHMS/PRODUCTION/pstackana_production.def
@@ -1,8 +1,8 @@
 #include "DEF-files/SHMS/PRODUCTION/AERO/paero_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/CAL/pcal_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/DC/pdc_histos.def"
-#include "DEF-files/SHMS/PRODUCTION/EPICS/pepics_histos.def"
-#include "DEF-files/SHMS/PRODUCTION/GTR/hgtr_histos.def"
+#include "DEF-files/SHMS/PRODUCTION/EPICS/pepics_vars.def"
+#include "DEF-files/SHMS/PRODUCTION/GTR/pgtr_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/HGCER/phgcer_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/HODO/phodo_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/KIN/pkin_histos.def"
diff --git a/DEF-files/SHMS/PRODUCTION/pstackana_production.def.bck b/DEF-files/SHMS/PRODUCTION/pstackana_production.def.bck
index 9f0b280d1c2ccdec13ef5b0a39379bd67602e4c1..776d42962962e217409d9f8f3c53fe878cf61c0c 100644
--- a/DEF-files/SHMS/PRODUCTION/pstackana_production.def.bck
+++ b/DEF-files/SHMS/PRODUCTION/pstackana_production.def.bck
@@ -1,13 +1,3 @@
-#include "DEF-files/SHMS/PRODUCTION/BLOCK/pblock_vars.def"
-
-#include "DEF-files/SHMS/TEST_STANDS/AERO/paeroana_histos.def"
-#include "DEF-files/SHMS/TEST_STANDS/CAL/pcalana_histos.def"
-#include "DEF-files/SHMS/TEST_STANDS/DC/pdcana_histos.def"
-#include "DEF-files/SHMS/TEST_STANDS/HGCER/pgcerana_histos.def"
-#include "DEF-files/SHMS/TEST_STANDS/HODO/phodoana_histos.def"
-#include "DEF-files/SHMS/TEST_STANDS/NGCER/pngcerana_histos.def"
-#include "DEF-files/SHMS/TEST_STANDS/TRIG/ptrigana_histos.def"
-
 #include "DEF-files/SHMS/PRODUCTION/AERO/paero_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/CAL/pcal_histos.def"
 #include "DEF-files/SHMS/PRODUCTION/DC/pdc_histos.def"
diff --git a/PARAM/HMS/CAL/CALIB/hcal_calib.param b/PARAM/HMS/CAL/CALIB/hcal_calib.param
deleted file mode 120000
index aa4ff2bdf62e3cd332c7d04feb1185b62be3560f..0000000000000000000000000000000000000000
--- a/PARAM/HMS/CAL/CALIB/hcal_calib.param
+++ /dev/null
@@ -1 +0,0 @@
-Fall_Comm_2017/hcal_calib_1235.param
\ No newline at end of file
diff --git a/PARAM/HMS/CAL/CALIB/hcal_calib.param b/PARAM/HMS/CAL/CALIB/hcal_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..8d9f075e71dbf916b09991f942d0880e14d6c04a
--- /dev/null
+++ b/PARAM/HMS/CAL/CALIB/hcal_calib.param
@@ -0,0 +1,10 @@
+; Calibration constants for run 1235_200000, 25267 events processed
+
+hcal_pos_gain_cor=  9.74, 10.65, 11.11,  9.31, 11.69,  9.46, 10.18, 15.49, 12.01, 13.14, 12.06,  9.32,  0.00,
+                   13.91, 20.12, 10.27, 11.75, 11.65, 10.53, 10.95, 10.69, 11.36, 10.18,  9.49, 12.24,  0.00,
+                   28.15, 14.77, 16.91, 18.90, 16.42, 16.87, 19.42, 17.40, 17.81, 22.50, 17.32, 18.72,  0.00,
+                    0.00, 25.35, 30.18, 25.58, 24.51, 23.24, 30.10, 24.59, 22.41, 26.53, 22.92, 25.45,  0.00,
+hcal_neg_gain_cor= 20.33, 11.87, 12.20, 12.71, 11.77, 16.24, 15.43, 13.69, 11.59, 12.92, 14.14, 16.85,  0.00,
+                    9.47,  7.17, 14.47, 15.39, 13.87, 12.94, 15.45, 14.88, 15.65, 16.67, 18.17, 15.53,  0.00,
+                    0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,
+                    0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,  0.00,
\ No newline at end of file
diff --git a/PARAM/HMS/CER/CALIB/hcer_calib.param b/PARAM/HMS/CER/CALIB/hcer_calib.param
deleted file mode 120000
index ace5be072032f79ab0fde3e38ca4eacacb4ed282..0000000000000000000000000000000000000000
--- a/PARAM/HMS/CER/CALIB/hcer_calib.param
+++ /dev/null
@@ -1 +0,0 @@
-Fall_Comm_2017/hcer_calib_1212.param
\ No newline at end of file
diff --git a/PARAM/HMS/CER/CALIB/hcer_calib.param b/PARAM/HMS/CER/CALIB/hcer_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..ca8cef457c088695b352bf3d6468e1e82931ba9c
--- /dev/null
+++ b/PARAM/HMS/CER/CALIB/hcer_calib.param
@@ -0,0 +1 @@
+hcer_adc_to_npe = 1./5.735, 1./5.741
\ No newline at end of file
diff --git a/PARAM/SHMS/AERO/CALIB/paero_calib.param b/PARAM/SHMS/AERO/CALIB/paero_calib.param
deleted file mode 120000
index 4b55a5d9d51cb9ffc5a3d1ffce5e81ea2f9a4582..0000000000000000000000000000000000000000
--- a/PARAM/SHMS/AERO/CALIB/paero_calib.param
+++ /dev/null
@@ -1 +0,0 @@
-Fall_Comm_2017/paero_calib_1585.param
\ No newline at end of file
diff --git a/PARAM/SHMS/AERO/CALIB/paero_calib.param b/PARAM/SHMS/AERO/CALIB/paero_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..f868fea963fc4b7a4a2c9708dbafd69a263f5077
--- /dev/null
+++ b/PARAM/SHMS/AERO/CALIB/paero_calib.param
@@ -0,0 +1,3 @@
+; SHMS aerogel gain factors from 0.5% C production run 1585
+paero_pos_gain = 1./7.56425, 1./10.3021, 1./11.0215, 1./13.746, 1./10.4022, 1./11.2585, 1./11.7267
+paero_neg_gain = 1./12.1112, 1./11.9825, 1./12.3054, 1./12.5971, 1./11.6322, 1./8.2361, 1./12.8493
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/CALIB/pcal_calib.param b/PARAM/SHMS/CAL/CALIB/pcal_calib.param
deleted file mode 120000
index 3be66e21534afcbde3387cf37c9a8981a1ab3e8b..0000000000000000000000000000000000000000
--- a/PARAM/SHMS/CAL/CALIB/pcal_calib.param
+++ /dev/null
@@ -1 +0,0 @@
-Fall_Comm_2017/pcal_calib_1969.param
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/CALIB/pcal_calib.param b/PARAM/SHMS/CAL/CALIB/pcal_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..9e2fd29776f0a1d3718529bec9f9078a72ef1703
--- /dev/null
+++ b/PARAM/SHMS/CAL/CALIB/pcal_calib.param
@@ -0,0 +1,18 @@
+; Calibration constants for run 1969_400000, 32287 events processed
+
+pcal_neg_gain_cor = 43.54, 18.53, 27.48, 29.66, 31.37, 27.98, 31.29, 48.98, 26.99, 28.91, 32.37, 29.46, 36.33, 49.04,
+pcal_pos_gain_cor = 41.08, 17.84, 26.91, 27.67, 30.64, 32.34, 28.31, 24.01, 27.93, 25.98, 30.58, 26.75, 24.00, 25.00,
+pcal_arr_gain_cor =  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,
+                   14.56,  40.0,  40.0, 32.96, 59.08, 49.25,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,
+                  40.0, 40.0,  9.80, 21.97, 46.21, 59.91, 58.99, 74.33,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,
+                    40.0, 67.23, 27.92, 46.84, 38.90, 31.64, 84.10, 63.79, 50.88,  40.0,  40.0,  40.0,  40.0, 39.44, 51.22,  40.0,
+                    4.04,40.0, 31.43, 28.42, 64.73, 57.99, 47.88, 32.49, 35.05,148.79,  40.0,  40.0, 42.21, 73.94, 39.95, 82.72,
+                   45.94,  8.40, 33.01, 71.45, 18.71, 42.92, 45.68, 57.90, 75.64, 39.23, 57.67, 51.90, 76.50, 19.18, 27.55, 53.63,
+                   29.51,  1.35, 53.28, 46.69, 25.90, 45.39, 58.98, 45.60, 40.63, 39.63, 34.46, 23.45, 42.02, 38.42, 31.82,  40.0,
+                   22.75, 50.29, 17.00, 14.07, 18.62, 13.30, 19.12, 23.62,  7.51, 18.47, 27.17, 21.75, 28.68, 17.15, 12.17,117.68,
+                   -9.35, 25.52, 25.50, 35.28, 51.08, 44.57, 26.10, 47.38, 49.22, 71.07, 28.12, 66.22, 28.81, 26.92, 47.26,  40.0,
+                    40.0,  40.0, 20.36, 43.09, 25.22, 60.80, 49.06, 61.20, 20.11,  40.0,  40.0, 37.81, 55.16, 34.19, 19.32,  4.46,
+                    40.0,  5.65, 62.22, 28.48, 32.43, 41.48, 21.16, 52.10,  40.0,  40.0,  40.0,  40.0, 45.00, 25.76, 33.54,40.0,
+                    40.0,  40.0, 32.74, 28.59,  40.0,  40.0,  5.11,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0, 15.89,
+                    40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,
+                    40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,  40.0,
diff --git a/PARAM/SHMS/HGCER/CALIB/phgcer_calib.param b/PARAM/SHMS/HGCER/CALIB/phgcer_calib.param
deleted file mode 120000
index 32ba2c447246b02069336f6788dbd96eb3a26a3d..0000000000000000000000000000000000000000
--- a/PARAM/SHMS/HGCER/CALIB/phgcer_calib.param
+++ /dev/null
@@ -1 +0,0 @@
-Fall_Comm_2017/phgcer_calib_1583.param
\ No newline at end of file
diff --git a/PARAM/SHMS/HGCER/CALIB/phgcer_calib.param b/PARAM/SHMS/HGCER/CALIB/phgcer_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..46a2d429609c06cbf5727409cb3515d4f3f94335
--- /dev/null
+++ b/PARAM/SHMS/HGCER/CALIB/phgcer_calib.param
@@ -0,0 +1,2 @@
+; Garth H. gain calibration from Run 1583, Dec 14 2017
+phgcer_adc_to_npe = 1.0/6.587, 1.0/7.069, 1.0/6.507, 1.0/6.367
diff --git a/hallc_replay_gui.py b/hallc_replay_gui.py
index 7ee74e68dd8b2be5a4040a8ea2e04b5e55bf16bb..0a7de19960d4685cf243652d9fdb4ea16994aad0 100755
--- a/hallc_replay_gui.py
+++ b/hallc_replay_gui.py
@@ -1,6 +1,11 @@
 #!/apps/python/python-2.7.1/bin/python
 
-import Tkinter as tk
+import sys
+
+if sys.version_info[0] < 3:
+    import Tkinter as tk
+else:	
+    import tkinter as tk
 import os
 
 root = tk.Tk()
@@ -30,27 +35,27 @@ def hms_var_states():
         hms_def_file_text.append("\n")
 
     if hcal_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/CAL/hcal_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/CAL/hcal_histos.def"\n''')
     if hcer_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/CER/hcer_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/CER/hcer_histos.def"\n''')
     if hdc_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/DC/hdc_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/DC/hdc_histos.def"\n''')
     if hhodo_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/HODO/hhodo_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/HODO/hhodo_histos.def"\n''')
     if hkin_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/KIN/hkin_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/KIN/hkin_histos.def"\n''')
     if hgtr_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/GTR/hgtr_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/GTR/hgtr_histos.def"\n''')
     if hraster_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/RASTER/hraster_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/RASTER/hraster_histos.def"\n''')
     if htrig_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/TRIG/htrig_histos.def"\n''')
-    if hepics_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/EPICS/hepics_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/TRIG/htrig_histos.def"\n''')
+    if hepics_vars.get() == 1:
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/EPICS/hepics_vars.def"\n''')
     if hreact_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/REACT/hreact_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/REACT/hreact_histos.def"\n''')
     if hpid_histos.get() == 1:
-	hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/PID/hpid_histos.def"\n''')
+        hms_def_file_text.append('''#include "DEF-files/HMS/PRODUCTION/PID/hpid_histos.def"\n''')
    
     print ("Backing up current HMS Output DEF-file ...")
     command = "mv " + hms_def_filename + " " + hms_def_filename_bck
@@ -84,31 +89,31 @@ def shms_var_states():
         shms_def_file_text.append("\n")
 
     if paero_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/AERO/paero_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/AERO/paero_histos.def"\n''')
     if pcal_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/CAL/pcal_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/CAL/pcal_histos.def"\n''')
     if pdc_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/DC/pdc_histos.def"\n''')
-    if pepics_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/EPICS/pepics_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/DC/pdc_histos.def"\n''')
+    if pepics_vars.get() == 1:
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/EPICS/pepics_vars.def"\n''')
     if pgtr_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/GTR/hgtr_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/GTR/pgtr_histos.def"\n''')
     if phgcer_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/HGCER/phgcer_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/HGCER/phgcer_histos.def"\n''')
     if phodo_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/HODO/phodo_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/HODO/phodo_histos.def"\n''')
     if pkin_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/KIN/pkin_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/KIN/pkin_histos.def"\n''')
     if pngcer_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/NGCER/pngcer_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/NGCER/pngcer_histos.def"\n''')
     if praster_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/RASTER/praster_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/RASTER/praster_histos.def"\n''')
     if ptrig_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/TRIG/ptrig_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/TRIG/ptrig_histos.def"\n''')
     if preact_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/REACT/preact_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/REACT/preact_histos.def"\n''')
     if ppid_histos.get() == 1:
-	shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/PID/ppid_histos.def"\n''')
+        shms_def_file_text.append('''#include "DEF-files/SHMS/PRODUCTION/PID/ppid_histos.def"\n''')
    
     print ("Backing up current SHMS Output DEF-file ...")
     command = "mv " + shms_def_filename + " " + shms_def_filename_bck
@@ -127,7 +132,7 @@ def set_hms_production_defaults():
     hkin_histos.set(1)
     hgtr_histos.set(1)
     hraster_histos.set(1)
-    hepics_histos.set(1)
+    hepics_vars.set(1)
     hreact_histos.set(1)
     hpid_histos.set(1)
     hcalana_histos.set(0)
@@ -140,7 +145,7 @@ def set_shms_production_defaults():
     paero_histos.set(1)
     pcal_histos.set(1)
     pdc_histos.set(1)
-    pepics_histos.set(1)
+    pepics_vars.set(1)
     pgtr_histos.set(1)
     phgcer_histos.set(1)
     phodo_histos.set(1)
@@ -182,14 +187,14 @@ hkin_histos = tk.IntVar()
 hgtr_histos = tk.IntVar()
 hraster_histos = tk.IntVar()
 htrig_histos = tk.IntVar()
-hepics_histos = tk.IntVar()
+hepics_vars = tk.IntVar()
 hreact_histos = tk.IntVar()
 hpid_histos = tk.IntVar()
 
 paero_histos = tk.IntVar()
 pcal_histos = tk.IntVar()
 pdc_histos = tk.IntVar()
-pepics_histos = tk.IntVar()
+pepics_vars = tk.IntVar()
 pgtr_histos = tk.IntVar()
 phgcer_histos = tk.IntVar()
 phodo_histos = tk.IntVar()
@@ -297,7 +302,7 @@ irow=irow+1
 tk.Checkbutton(root, 
               text="Epics",
               padx = 20, 
-              variable=hepics_histos).grid(row=irow,column=icol,sticky=tk.W)
+              variable=hepics_vars).grid(row=irow,column=icol,sticky=tk.W)
 irow=irow+1
 tk.Checkbutton(root, 
               text="Reaction",
@@ -413,7 +418,7 @@ irow=irow+1
 tk.Checkbutton(root, 
               text="Epics",
               padx = 20, 
-              variable=pepics_histos).grid(row=irow,column=icol,sticky=tk.W)
+              variable=pepics_vars).grid(row=irow,column=icol,sticky=tk.W)
 irow=irow+1
 tk.Checkbutton(root, 
               text="Reaction",
diff --git a/scaler_parse.py b/scaler_parse.py
new file mode 100755
index 0000000000000000000000000000000000000000..1d1d039a2bdde286b8c288e123c5927d30eaa954
--- /dev/null
+++ b/scaler_parse.py
@@ -0,0 +1,79 @@
+#!/usr/bin/python
+
+import argparse
+
+def get_args():
+    '''This function parses and returns arguments passed in'''
+    parser = argparse.ArgumentParser()
+    parser.add_argument(
+        '-r','--runs',type=str,help='Run list',required=True,nargs="+")
+    parser.add_argument(
+        '-f','--infile',type=str,help='Scaler list file',required=True)
+    parser.add_argument(
+        '-o','--outfile',type=str,help='Output file',required=True)
+    args = parser.parse_args()
+    infilename = args.infile
+    outfilename = args.outfile
+    runlist = args.runs[0].split(",")
+
+    return runlist, infilename, outfilename
+
+runlist, infilename, outfilename = get_args()
+
+print "\nScaler File Name: [ %s ]\n" % infilename
+print "\nOutput File Name: [ %s ]\n" % outfilename
+
+final_runlist = []
+for r in runlist:
+    minirunlist = r.split("-")
+    nruns = len(minirunlist)
+    if nruns == 1:
+       #print "Run: [%s]" % r
+       scaler_filename = "replay_coin_scalers_" + r + ".report"
+       final_runlist.append(scaler_filename)
+    else:
+       startrun=int(minirunlist[0])
+       endrun=int(minirunlist[1])
+       while startrun <= endrun:
+           #print "MiniRun: [%s]" % startrun
+           scaler_filename = "replay_coin_scalers_" + str(startrun) + ".report"
+           final_runlist.append(scaler_filename)
+           startrun=startrun+1
+
+#print final_runlist
+
+basic_name_array = ["Run Number"]
+scaler_name_array = []
+with open(infilename) as fp:
+    scaler_name_array = fp.read().splitlines()
+fp.close()
+
+of = open(outfilename,'w')
+scaler_name_array_run_number = basic_name_array+scaler_name_array
+mx = len(max(scaler_name_array_run_number))
+print (" ".join(["{:<{mx}}".format(ele,mx=mx) for ele in scaler_name_array_run_number]))
+of.write(" ".join(["{:<{mx}}".format(ele,mx=mx) for ele in scaler_name_array_run_number]))
+of.write("\n")
+
+for runfile in final_runlist:
+    with open(runfile) as fp:
+        runfile_linelist = fp.read().splitlines()
+	runnumbersplit = runfile.split("_")
+	runnumbersplit2 = runnumbersplit[3].split(".")
+        run_number_array=[]
+        run_number_array.append(runnumbersplit2[0])
+	scaler_value_array=[]
+        for line in runfile_linelist:
+            parsed_line = line.split(":")
+            for scaler in scaler_name_array:
+                	if parsed_line[0].rstrip(" ") == scaler:
+			    full_value = parsed_line[1].lstrip()
+		            numerical_value = full_value.split(" ")
+                            scaler_value_array.append(numerical_value[0])
+        scaler_value_array_run_number=run_number_array+scaler_value_array
+        print (" ".join(["{:<{mx}}".format(ele,mx=mx) for ele in scaler_value_array_run_number]))
+        of.write(" ".join(["{:<{mx}}".format(ele,mx=mx) for ele in scaler_value_array_run_number]))
+        of.write("\n")
+        fp.close()
+
+of.close()