diff --git a/DEF-files/HMS/GEN/hstackana.def b/DEF-files/HMS/GEN/hstackana.def
new file mode 100644
index 0000000000000000000000000000000000000000..3e849f4aa25a24008e66eee37bde95fac58f2a16
--- /dev/null
+++ b/DEF-files/HMS/GEN/hstackana.def
@@ -0,0 +1,22 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+#block T.hms.*
+block H.dc.*
+block H.tr.*
+#block H.hod.*
+#block H.cer.*
+#block H.cal.*
+block H.gtr.*
+
+TH1D hhdc_resid_1 '' H.dc.residual[0] 200 -1.0 1.0 
+TH1D hhdc_resid_2 '' H.dc.residual[1] 200 -1.0 1.0 
+TH1D hhdc_resid_3 '' H.dc.residual[2] 200 -1.0 1.0 
+TH1D hhdc_resid_4 '' H.dc.residual[3] 200 -1.0 1.0 
+TH1D hhdc_resid_5 '' H.dc.residual[4] 200 -1.0 1.0 
+TH1D hhdc_resid_6 '' H.dc.residual[5] 200 -1.0 1.0 
+TH1D hhdc_resid_7 '' H.dc.residual[6] 200 -1.0 1.0 
+TH1D hhdc_resid_8 '' H.dc.residual[7] 200 -1.0 1.0 
+TH1D hhdc_resid_9 '' H.dc.residual[8] 200 -1.0 1.0 
+TH1D hhdc_resid_10 '' H.dc.residual[9] 200 -1.0 1.0 
+TH1D hhdc_resid_11 '' H.dc.residual[10] 200 -1.0 1.0 
+TH1D hhdc_resid_12 '' H.dc.residual[11] 200 -1.0 1.0
\ No newline at end of file
diff --git a/DEF-files/HMS/GEN/hstackana_cuts.def b/DEF-files/HMS/GEN/hstackana_cuts.def
new file mode 100644
index 0000000000000000000000000000000000000000..3af34a5e9835ac62bdbfcc30004dda336ed171d9
--- /dev/null
+++ b/DEF-files/HMS/GEN/hstackana_cuts.def
@@ -0,0 +1,13 @@
+Block: RawDecode
+
+Pedestal_event 0
+RawDecode_master 1
+
+Block: Decode
+Decode_master 1
+
+Block: CoarseTracking
+CoarseTracking_master 1
+
+Block: CoarseReconstruct
+CourseReconstruct 0
diff --git a/DEF-files/SHMS/GEN/pstackana.def b/DEF-files/SHMS/GEN/pstackana.def
new file mode 100644
index 0000000000000000000000000000000000000000..2e93e5644ff5ea024b5ab0752871026eea5cc818
--- /dev/null
+++ b/DEF-files/SHMS/GEN/pstackana.def
@@ -0,0 +1,11 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block T.shms.*
+block P.ngcer.*
+block P.dc.*
+block P.tr.*
+block P.hod.*
+block P.hgcer.*
+block P.aero.*
+block P.cal.*
+#block P.gtr.*
\ No newline at end of file
diff --git a/DEF-files/SHMS/GEN/pstackana_cuts.def b/DEF-files/SHMS/GEN/pstackana_cuts.def
new file mode 100644
index 0000000000000000000000000000000000000000..3af34a5e9835ac62bdbfcc30004dda336ed171d9
--- /dev/null
+++ b/DEF-files/SHMS/GEN/pstackana_cuts.def
@@ -0,0 +1,13 @@
+Block: RawDecode
+
+Pedestal_event 0
+RawDecode_master 1
+
+Block: Decode
+Decode_master 1
+
+Block: CoarseTracking
+CoarseTracking_master 1
+
+Block: CoarseReconstruct
+CourseReconstruct 0
diff --git a/MAPS/HMS/DETEC/hms_stack.map b/MAPS/HMS/DETEC/hms_stack.map
new file mode 100644
index 0000000000000000000000000000000000000000..00e0b05c2346aaf52c22972a92350dbd6b194fb1
--- /dev/null
+++ b/MAPS/HMS/DETEC/hms_stack.map
@@ -0,0 +1,1546 @@
+! THMS_ID=10       ::  ADC,TDC
+! HDC_ID=11        ::  TDC
+! HSCIN_ID=13      ::  ADC+,ADC-,TDC+,TDC-
+! HCER_ID=14       ::  (TDC),ADC
+! HCAL_ID=15       ::  ADC
+
+
+DETECTOR=10
+
+ROC=11
+
+SLOT=17
+   8,   1,   1,   0  ! hASUM
+   9,   1,   2,   0  ! hBSUM
+  10,   1,   3,   0  ! hCSUM
+  11,   1,   4,   0  ! hDSUM
+  12,   1,   5,   0  ! hPSHWR
+  13,   1,   6,   0  ! hSHWR
+  14,   1,   7,   0  ! hAERSUM
+  15,   1,   8,   0  ! hCERSUM
+
+SLOT=2
+   0,   2,   1,   1  ! h1X
+   1,   2,   2,   1  ! h1Y
+   2,   2,   3,   1  ! h2X
+   3,   2,   4,   1  ! h2Y
+   4,   2,   5,   1  ! h1T
+   5,   2,   6,   1  ! h2T
+   6,   2,   7,   1  ! hT1
+   7,   2,   8,   1  ! hASUM
+   8,   2,   9,   1  ! hBSUM
+   9,   2,  10,   1  ! hCSUM
+  10,   2,  11,   1  ! hDSUM
+  11,   2,  12,   1  ! hPSHWRLO
+  12,   2,  13,   1  ! hPSHWRHI
+  13,   2,  14,   1  ! hSHWR
+  14,   2,  15,   1  ! hAERSUM
+  15,   2,  16,   1  ! hCERSUM
+
+SLOT=20
+ 127,   2,  17,   1  ! hT2
+
+ROC=3
+
+SLOT=5
+ 111,   2,  18,   1  ! hDCREF1
+
+SLOT=8
+ 127,   2,  19,   1  ! hDCREF2
+
+SLOT=10
+ 127,   2,  20,   1  ! hDCREF3
+
+SLOT=17
+ 127,   2,  21,   1  ! hDCREF4
+
+
+DETECTOR=11  ! HMS chambers
+
+ROC=3
+
+SLOT=5
+REFINDEX=0
+ 111,1000,   0,   0
+  96,   3,   1  ! Plane U, wire 1
+  97,   3,   2  ! Plane U, wire 2
+  98,   3,   3  ! Plane U, wire 3
+  99,   3,   4  ! Plane U, wire 4
+ 100,   3,   5  ! Plane U, wire 5
+ 101,   3,   6  ! Plane U, wire 6
+ 102,   3,   7  ! Plane U, wire 7
+ 103,   3,   8  ! Plane U, wire 8
+ 104,   3,   9  ! Plane U, wire 9
+ 105,   3,  10  ! Plane U, wire 10
+ 106,   3,  11  ! Plane U, wire 11
+ 107,   3,  12  ! Plane U, wire 12
+ 108,   3,  13  ! Plane U, wire 13
+ 109,   3,  14  ! Plane U, wire 14
+ 110,   1, 113  ! Plane X, wire 113
+  80,   3,  15  ! Plane U, wire 15
+  81,   3,  16  ! Plane U, wire 16
+  82,   3,  17  ! Plane U, wire 17
+  83,   3,  18  ! Plane U, wire 18
+  84,   3,  19  ! Plane U, wire 19
+  85,   3,  20  ! Plane U, wire 20
+  86,   3,  21  ! Plane U, wire 21
+  87,   3,  22  ! Plane U, wire 22
+  88,   3,  23  ! Plane U, wire 23
+  89,   3,  24  ! Plane U, wire 24
+  90,   3,  25  ! Plane U, wire 25
+  91,   3,  26  ! Plane U, wire 26
+  92,   3,  27  ! Plane U, wire 27
+  93,   3,  28  ! Plane U, wire 28
+  94,   3,  29  ! Plane U, wire 29
+  64,   3,  30  ! Plane U, wire 30
+  65,   3,  31  ! Plane U, wire 31
+  66,   3,  32  ! Plane U, wire 32
+  67,   3,  33  ! Plane U, wire 33
+  68,   3,  34  ! Plane U, wire 34
+  69,   3,  35  ! Plane U, wire 35
+  70,   3,  36  ! Plane U, wire 36
+  71,   3,  37  ! Plane U, wire 37
+  72,   3,  38  ! Plane U, wire 38
+  73,   3,  39  ! Plane U, wire 39
+  74,   3,  40  ! Plane U, wire 40
+  75,   3,  41  ! Plane U, wire 41
+  76,   3,  42  ! Plane U, wire 42
+  77,   3,  43  ! Plane U, wire 43
+  78,   3,  44  ! Plane U, wire 44
+  79,   3,  45  ! Plane U, wire 45
+  48,   3,  46  ! Plane U, wire 46
+  49,   3,  47  ! Plane U, wire 47
+  50,   3,  48  ! Plane U, wire 48
+  51,   3,  49  ! Plane U, wire 49
+  52,   3,  50  ! Plane U, wire 50
+  53,   3,  51  ! Plane U, wire 51
+  54,   3,  52  ! Plane U, wire 52
+  55,   3,  53  ! Plane U, wire 53
+  56,   3,  54  ! Plane U, wire 54
+  57,   3,  55  ! Plane U, wire 55
+  58,   3,  56  ! Plane U, wire 56
+  59,   3,  57  ! Plane U, wire 57
+  60,   3,  58  ! Plane U, wire 58
+  61,   3,  59  ! Plane U, wire 59
+  62,   3,  60  ! Plane U, wire 60
+  32,   3,  61  ! Plane U, wire 61
+  33,   3,  62  ! Plane U, wire 62
+  34,   3,  63  ! Plane U, wire 63
+  35,   3,  64  ! Plane U, wire 64
+  36,   3,  65  ! Plane U, wire 65
+  37,   3,  66  ! Plane U, wire 66
+  38,   3,  67  ! Plane U, wire 67
+  39,   3,  68  ! Plane U, wire 68
+  40,   3,  69  ! Plane U, wire 69
+  41,   3,  70  ! Plane U, wire 70
+  42,   3,  71  ! Plane U, wire 71
+  43,   3,  72  ! Plane U, wire 72
+  44,   3,  73  ! Plane U, wire 73
+  45,   3,  74  ! Plane U, wire 74
+  46,   3,  75  ! Plane U, wire 75
+  47,   3,  76  ! Plane U, wire 76
+  16,   3,  77  ! Plane U, wire 77
+  17,   3,  78  ! Plane U, wire 78
+  18,   3,  79  ! Plane U, wire 79
+  19,   3,  80  ! Plane U, wire 80
+  20,   3,  81  ! Plane U, wire 81
+  21,   3,  82  ! Plane U, wire 82
+  22,   3,  83  ! Plane U, wire 83
+  23,   3,  84  ! Plane U, wire 84
+  24,   3,  85  ! Plane U, wire 85
+  25,   3,  86  ! Plane U, wire 86
+  26,   3,  87  ! Plane U, wire 87
+  27,   3,  88  ! Plane U, wire 88
+  28,   3,  89  ! Plane U, wire 89
+  29,   3,  90  ! Plane U, wire 90
+  30,   3,  91  ! Plane U, wire 91
+   0,   3,  92  ! Plane U, wire 92
+   1,   3,  93  ! Plane U, wire 93
+   2,   3,  94  ! Plane U, wire 94
+   3,   3,  95  ! Plane U, wire 95
+   4,   3,  96  ! Plane U, wire 96
+   5,   3,  97  ! Plane U, wire 97
+   6,   3,  98  ! Plane U, wire 98
+   7,   3,  99  ! Plane U, wire 99
+   8,   3, 100  ! Plane U, wire 100
+   9,   3, 101  ! Plane U, wire 101
+  10,   3, 102  ! Plane U, wire 102
+  11,   3, 103  ! Plane U, wire 103
+  12,   3, 104  ! Plane U, wire 104
+  13,   3, 105  ! Plane U, wire 105
+  14,   3, 106  ! Plane U, wire 106
+  15,   3, 107  ! Plane U, wire 107
+
+SLOT=7
+REFINDEX=0
+  96,   4,   1  ! Plane V, wire 1
+  97,   4,   2  ! Plane V, wire 2
+  98,   4,   3  ! Plane V, wire 3
+  99,   4,   4  ! Plane V, wire 4
+ 100,   4,   5  ! Plane V, wire 5
+ 101,   4,   6  ! Plane V, wire 6
+ 102,   4,   7  ! Plane V, wire 7
+ 103,   4,   8  ! Plane V, wire 8
+ 104,   4,   9  ! Plane V, wire 9
+ 105,   4,  10  ! Plane V, wire 10
+ 106,   4,  11  ! Plane V, wire 11
+ 107,   4,  12  ! Plane V, wire 12
+ 108,   4,  13  ! Plane V, wire 13
+ 109,   4,  14  ! Plane V, wire 14
+ 110,   6, 113  ! Plane X', wire 113
+ 112,   4,  15  ! Plane V, wire 15
+ 113,   4,  16  ! Plane V, wire 16
+ 114,   4,  17  ! Plane V, wire 17
+ 115,   4,  18  ! Plane V, wire 18
+ 116,   4,  19  ! Plane V, wire 19
+ 117,   4,  20  ! Plane V, wire 20
+ 118,   4,  21  ! Plane V, wire 21
+ 119,   4,  22  ! Plane V, wire 22
+ 120,   4,  23  ! Plane V, wire 23
+ 121,   4,  24  ! Plane V, wire 24
+ 122,   4,  25  ! Plane V, wire 25
+ 123,   4,  26  ! Plane V, wire 26
+ 124,   4,  27  ! Plane V, wire 27
+ 125,   4,  28  ! Plane V, wire 28
+ 126,   4,  29  ! Plane V, wire 29
+
+SLOT=8
+REFINDEX=0
+ 127,1000,   0,   1
+   0,   4,  30  ! Plane V, wire 30
+   1,   4,  31  ! Plane V, wire 31
+   2,   4,  32  ! Plane V, wire 32
+   3,   4,  33  ! Plane V, wire 33
+   4,   4,  34  ! Plane V, wire 34
+   5,   4,  35  ! Plane V, wire 35
+   6,   4,  36  ! Plane V, wire 36
+   7,   4,  37  ! Plane V, wire 37
+   8,   4,  38  ! Plane V, wire 38
+   9,   4,  39  ! Plane V, wire 39
+  10,   4,  40  ! Plane V, wire 40
+  11,   4,  41  ! Plane V, wire 41
+  12,   4,  42  ! Plane V, wire 42
+  13,   4,  43  ! Plane V, wire 43
+  14,   4,  44  ! Plane V, wire 44
+  15,   4,  45  ! Plane V, wire 45
+  16,   4,  46  ! Plane V, wire 46
+  17,   4,  47  ! Plane V, wire 47
+  18,   4,  48  ! Plane V, wire 48
+  19,   4,  49  ! Plane V, wire 49
+  20,   4,  50  ! Plane V, wire 50
+  21,   4,  51  ! Plane V, wire 51
+  22,   4,  52  ! Plane V, wire 52
+  23,   4,  53  ! Plane V, wire 53
+  24,   4,  54  ! Plane V, wire 54
+  25,   4,  55  ! Plane V, wire 55
+  26,   4,  56  ! Plane V, wire 56
+  27,   4,  57  ! Plane V, wire 57
+  28,   4,  58  ! Plane V, wire 58
+  29,   4,  59  ! Plane V, wire 59
+  30,   4,  60  ! Plane V, wire 60
+  32,   4,  61  ! Plane V, wire 61
+  33,   4,  62  ! Plane V, wire 62
+  34,   4,  63  ! Plane V, wire 63
+  35,   4,  64  ! Plane V, wire 64
+  36,   4,  65  ! Plane V, wire 65
+  37,   4,  66  ! Plane V, wire 66
+  38,   4,  67  ! Plane V, wire 67
+  39,   4,  68  ! Plane V, wire 68
+  40,   4,  69  ! Plane V, wire 69
+  41,   4,  70  ! Plane V, wire 70
+  42,   4,  71  ! Plane V, wire 71
+  43,   4,  72  ! Plane V, wire 72
+  44,   4,  73  ! Plane V, wire 73
+  45,   4,  74  ! Plane V, wire 74
+  46,   4,  75  ! Plane V, wire 75
+  47,   4,  76  ! Plane V, wire 76
+  48,   4,  77  ! Plane V, wire 77
+  49,   4,  78  ! Plane V, wire 78
+  50,   4,  79  ! Plane V, wire 79
+  51,   4,  80  ! Plane V, wire 80
+  52,   4,  81  ! Plane V, wire 81
+  53,   4,  82  ! Plane V, wire 82
+  54,   4,  83  ! Plane V, wire 83
+  55,   4,  84  ! Plane V, wire 84
+  56,   4,  85  ! Plane V, wire 85
+  57,   4,  86  ! Plane V, wire 86
+  58,   4,  87  ! Plane V, wire 87
+  59,   4,  88  ! Plane V, wire 88
+  60,   4,  89  ! Plane V, wire 89
+  61,   4,  90  ! Plane V, wire 90
+  62,   4,  91  ! Plane V, wire 91
+
+SLOT=4
+REFINDEX=0
+  96,   4,  92  ! Plane V, wire 92
+  97,   4,  93  ! Plane V, wire 93
+  98,   4,  94  ! Plane V, wire 94
+  99,   4,  95  ! Plane V, wire 95
+ 100,   4,  96  ! Plane V, wire 96
+ 101,   4,  97  ! Plane V, wire 97
+ 102,   4,  98  ! Plane V, wire 98
+ 103,   4,  99  ! Plane V, wire 99
+ 104,   4, 100  ! Plane V, wire 100
+ 105,   4, 101  ! Plane V, wire 101
+ 106,   4, 102  ! Plane V, wire 102
+ 107,   4, 103  ! Plane V, wire 103
+ 108,   4, 104  ! Plane V, wire 104
+ 109,   4, 105  ! Plane V, wire 105
+ 110,   4, 106  ! Plane V, wire 106
+ 111,   4, 107  ! Plane V, wire 107
+  80,   1,   1  ! Plane X, wire 1
+  81,   1,   2  ! Plane X, wire 2
+  82,   1,   3  ! Plane X, wire 3
+  83,   1,   4  ! Plane X, wire 4
+  84,   1,   5  ! Plane X, wire 5
+  85,   1,   6  ! Plane X, wire 6
+  86,   1,   7  ! Plane X, wire 7
+  87,   1,   8  ! Plane X, wire 8
+  88,   1,   9  ! Plane X, wire 9
+  89,   1,  10  ! Plane X, wire 10
+  90,   1,  11  ! Plane X, wire 11
+  91,   1,  12  ! Plane X, wire 12
+  92,   1,  13  ! Plane X, wire 13
+  93,   1,  14  ! Plane X, wire 14
+  94,   1,  15  ! Plane X, wire 15
+  95,   1,  16  ! Plane X, wire 16
+  64,   1,  17  ! Plane X, wire 17
+  65,   1,  18  ! Plane X, wire 18
+  66,   1,  19  ! Plane X, wire 19
+  67,   1,  20  ! Plane X, wire 20
+  68,   1,  21  ! Plane X, wire 21
+  69,   1,  22  ! Plane X, wire 22
+  70,   1,  23  ! Plane X, wire 23
+  71,   1,  24  ! Plane X, wire 24
+  72,   1,  25  ! Plane X, wire 25
+  73,   1,  26  ! Plane X, wire 26
+  74,   1,  27  ! Plane X, wire 27
+  75,   1,  28  ! Plane X, wire 28
+  76,   1,  29  ! Plane X, wire 29
+  77,   1,  30  ! Plane X, wire 30
+  78,   1,  31  ! Plane X, wire 31
+  79,   1,  32  ! Plane X, wire 32
+  48,   1,  33  ! Plane X, wire 33
+  49,   1,  34  ! Plane X, wire 34
+  50,   1,  35  ! Plane X, wire 35
+  51,   1,  36  ! Plane X, wire 36
+  52,   1,  37  ! Plane X, wire 37
+  53,   1,  38  ! Plane X, wire 38
+  54,   1,  39  ! Plane X, wire 39
+  55,   1,  40  ! Plane X, wire 40
+  56,   1,  41  ! Plane X, wire 41
+  57,   1,  42  ! Plane X, wire 42
+  58,   1,  43  ! Plane X, wire 43
+  59,   1,  44  ! Plane X, wire 44
+  60,   1,  45  ! Plane X, wire 45
+  61,   1,  46  ! Plane X, wire 46
+  62,   1,  47  ! Plane X, wire 47
+  63,   1,  48  ! Plane X, wire 48
+  32,   1,  49  ! Plane X, wire 49
+  33,   1,  50  ! Plane X, wire 50
+  34,   1,  51  ! Plane X, wire 51
+  35,   1,  52  ! Plane X, wire 52
+  36,   1,  53  ! Plane X, wire 53
+  37,   1,  54  ! Plane X, wire 54
+  38,   1,  55  ! Plane X, wire 55
+  39,   1,  56  ! Plane X, wire 56
+  40,   1,  57  ! Plane X, wire 57
+  41,   1,  58  ! Plane X, wire 58
+  42,   1,  59  ! Plane X, wire 59
+  43,   1,  60  ! Plane X, wire 60
+  44,   1,  61  ! Plane X, wire 61
+  45,   1,  62  ! Plane X, wire 62
+  46,   1,  63  ! Plane X, wire 63
+  47,   1,  64  ! Plane X, wire 64
+  16,   1,  65  ! Plane X, wire 65
+  17,   1,  66  ! Plane X, wire 66
+  18,   1,  67  ! Plane X, wire 67
+  19,   1,  68  ! Plane X, wire 68
+  20,   1,  69  ! Plane X, wire 69
+  21,   1,  70  ! Plane X, wire 70
+  22,   1,  71  ! Plane X, wire 71
+  23,   1,  72  ! Plane X, wire 72
+  24,   1,  73  ! Plane X, wire 73
+  25,   1,  74  ! Plane X, wire 74
+  26,   1,  75  ! Plane X, wire 75
+  27,   1,  76  ! Plane X, wire 76
+  28,   1,  77  ! Plane X, wire 77
+  29,   1,  78  ! Plane X, wire 78
+  30,   1,  79  ! Plane X, wire 79
+  31,   1,  80  ! Plane X, wire 80
+   0,   1,  81  ! Plane X, wire 81
+   1,   1,  82  ! Plane X, wire 82
+   2,   1,  83  ! Plane X, wire 83
+   3,   1,  84  ! Plane X, wire 84
+   4,   1,  85  ! Plane X, wire 85
+   5,   1,  86  ! Plane X, wire 86
+   6,   1,  87  ! Plane X, wire 87
+   7,   1,  88  ! Plane X, wire 88
+   8,   1,  89  ! Plane X, wire 89
+   9,   1,  90  ! Plane X, wire 90
+  10,   1,  91  ! Plane X, wire 91
+  11,   1,  92  ! Plane X, wire 92
+  12,   1,  93  ! Plane X, wire 93
+  13,   1,  94  ! Plane X, wire 94
+  14,   1,  95  ! Plane X, wire 95
+  15,   1,  96  ! Plane X, wire 96
+
+SLOT=7
+REFINDEX=0
+  80,   1,  97  ! Plane X, wire 97
+  81,   1,  98  ! Plane X, wire 98
+  82,   1,  99  ! Plane X, wire 99
+  83,   1, 100  ! Plane X, wire 100
+  84,   1, 101  ! Plane X, wire 101
+  85,   1, 102  ! Plane X, wire 102
+  86,   1, 103  ! Plane X, wire 103
+  87,   1, 104  ! Plane X, wire 104
+  88,   1, 105  ! Plane X, wire 105
+  89,   1, 106  ! Plane X, wire 106
+  90,   1, 107  ! Plane X, wire 107
+  91,   1, 108  ! Plane X, wire 108
+  92,   1, 109  ! Plane X, wire 109
+  93,   1, 110  ! Plane X, wire 110
+  94,   1, 111  ! Plane X, wire 111
+  95,   1, 112  ! Plane X, wire 112
+
+SLOT=4
+REFINDEX=0
+ 112,   6,   1  ! Plane X', wire 1
+ 113,   6,   2  ! Plane X', wire 2
+ 114,   6,   3  ! Plane X', wire 3
+ 115,   6,   4  ! Plane X', wire 4
+ 116,   6,   5  ! Plane X', wire 5
+ 117,   6,   6  ! Plane X', wire 6
+ 118,   6,   7  ! Plane X', wire 7
+ 119,   6,   8  ! Plane X', wire 8
+ 120,   6,   9  ! Plane X', wire 9
+ 121,   6,  10  ! Plane X', wire 10
+ 122,   6,  11  ! Plane X', wire 11
+ 123,   6,  12  ! Plane X', wire 12
+ 124,   6,  13  ! Plane X', wire 13
+ 125,   6,  14  ! Plane X', wire 14
+ 126,   6,  15  ! Plane X', wire 15
+ 127,   6,  16  ! Plane X', wire 16
+
+SLOT=5
+REFINDEX=0
+ 112,   6,  17  ! Plane X', wire 17
+ 113,   6,  18  ! Plane X', wire 18
+ 114,   6,  19  ! Plane X', wire 19
+ 115,   6,  20  ! Plane X', wire 20
+ 116,   6,  21  ! Plane X', wire 21
+ 117,   6,  22  ! Plane X', wire 22
+ 118,   6,  23  ! Plane X', wire 23
+ 119,   6,  24  ! Plane X', wire 24
+ 120,   6,  25  ! Plane X', wire 25
+ 121,   6,  26  ! Plane X', wire 26
+ 122,   6,  27  ! Plane X', wire 27
+ 123,   6,  28  ! Plane X', wire 28
+ 124,   6,  29  ! Plane X', wire 29
+ 125,   6,  30  ! Plane X', wire 30
+ 126,   6,  31  ! Plane X', wire 31
+ 127,   6,  32  ! Plane X', wire 32
+
+SLOT=7
+REFINDEX=0
+   0,   6,  33  ! Plane X', wire 33
+   1,   6,  34  ! Plane X', wire 34
+   2,   6,  35  ! Plane X', wire 35
+   3,   6,  36  ! Plane X', wire 36
+   4,   6,  37  ! Plane X', wire 37
+   5,   6,  38  ! Plane X', wire 38
+   6,   6,  39  ! Plane X', wire 39
+   7,   6,  40  ! Plane X', wire 40
+   8,   6,  41  ! Plane X', wire 41
+   9,   6,  42  ! Plane X', wire 42
+  10,   6,  43  ! Plane X', wire 43
+  11,   6,  44  ! Plane X', wire 44
+  12,   6,  45  ! Plane X', wire 45
+  13,   6,  46  ! Plane X', wire 46
+  14,   6,  47  ! Plane X', wire 47
+  15,   6,  48  ! Plane X', wire 48
+  16,   6,  49  ! Plane X', wire 49
+  17,   6,  50  ! Plane X', wire 50
+  18,   6,  51  ! Plane X', wire 51
+  19,   6,  52  ! Plane X', wire 52
+  20,   6,  53  ! Plane X', wire 53
+  21,   6,  54  ! Plane X', wire 54
+  22,   6,  55  ! Plane X', wire 55
+  23,   6,  56  ! Plane X', wire 56
+  24,   6,  57  ! Plane X', wire 57
+  25,   6,  58  ! Plane X', wire 58
+  26,   6,  59  ! Plane X', wire 59
+  27,   6,  60  ! Plane X', wire 60
+  28,   6,  61  ! Plane X', wire 61
+  29,   6,  62  ! Plane X', wire 62
+  30,   6,  63  ! Plane X', wire 63
+  31,   6,  64  ! Plane X', wire 64
+  32,   6,  65  ! Plane X', wire 65
+  33,   6,  66  ! Plane X', wire 66
+  34,   6,  67  ! Plane X', wire 67
+  35,   6,  68  ! Plane X', wire 68
+  36,   6,  69  ! Plane X', wire 69
+  37,   6,  70  ! Plane X', wire 70
+  38,   6,  71  ! Plane X', wire 71
+  39,   6,  72  ! Plane X', wire 72
+  40,   6,  73  ! Plane X', wire 73
+  41,   6,  74  ! Plane X', wire 74
+  42,   6,  75  ! Plane X', wire 75
+  43,   6,  76  ! Plane X', wire 76
+  44,   6,  77  ! Plane X', wire 77
+  45,   6,  78  ! Plane X', wire 78
+  46,   6,  79  ! Plane X', wire 79
+  47,   6,  80  ! Plane X', wire 80
+  48,   6,  81  ! Plane X', wire 81
+  49,   6,  82  ! Plane X', wire 82
+  50,   6,  83  ! Plane X', wire 83
+  51,   6,  84  ! Plane X', wire 84
+  52,   6,  85  ! Plane X', wire 85
+  53,   6,  86  ! Plane X', wire 86
+  54,   6,  87  ! Plane X', wire 87
+  55,   6,  88  ! Plane X', wire 88
+  56,   6,  89  ! Plane X', wire 89
+  57,   6,  90  ! Plane X', wire 90
+  58,   6,  91  ! Plane X', wire 91
+  59,   6,  92  ! Plane X', wire 92
+  60,   6,  93  ! Plane X', wire 93
+  61,   6,  94  ! Plane X', wire 94
+  62,   6,  95  ! Plane X', wire 95
+  63,   6,  96  ! Plane X', wire 96
+  64,   6,  97  ! Plane X', wire 97
+  65,   6,  98  ! Plane X', wire 98
+  66,   6,  99  ! Plane X', wire 99
+  67,   6, 100  ! Plane X', wire 100
+  68,   6, 101  ! Plane X', wire 101
+  69,   6, 102  ! Plane X', wire 102
+  70,   6, 103  ! Plane X', wire 103
+  71,   6, 104  ! Plane X', wire 104
+  72,   6, 105  ! Plane X', wire 105
+  73,   6, 106  ! Plane X', wire 106
+  74,   6, 107  ! Plane X', wire 107
+  75,   6, 108  ! Plane X', wire 108
+  76,   6, 109  ! Plane X', wire 109
+  77,   6, 110  ! Plane X', wire 110
+  78,   6, 111  ! Plane X', wire 111
+  79,   6, 112  ! Plane X', wire 112
+
+SLOT=8
+REFINDEX=0
+  64,   2,   1  ! Plane Y, wire 1
+  65,   2,   2  ! Plane Y, wire 2
+  66,   2,   3  ! Plane Y, wire 3
+  67,   2,   4  ! Plane Y, wire 4
+  68,   2,   5  ! Plane Y, wire 5
+  69,   2,   6  ! Plane Y, wire 6
+  70,   2,   7  ! Plane Y, wire 7
+  71,   2,   8  ! Plane Y, wire 8
+  72,   2,   9  ! Plane Y, wire 9
+  73,   2,  10  ! Plane Y, wire 10
+  74,   2,  11  ! Plane Y, wire 11
+  75,   2,  12  ! Plane Y, wire 12
+  76,   2,  13  ! Plane Y, wire 13
+  80,   2,  14  ! Plane Y, wire 14
+  81,   2,  15  ! Plane Y, wire 15
+  82,   2,  16  ! Plane Y, wire 16
+  83,   2,  17  ! Plane Y, wire 17
+  84,   2,  18  ! Plane Y, wire 18
+  85,   2,  19  ! Plane Y, wire 19
+  86,   2,  20  ! Plane Y, wire 20
+  87,   2,  21  ! Plane Y, wire 21
+  88,   2,  22  ! Plane Y, wire 22
+  89,   2,  23  ! Plane Y, wire 23
+  90,   2,  24  ! Plane Y, wire 24
+  91,   2,  25  ! Plane Y, wire 25
+  92,   2,  26  ! Plane Y, wire 26
+  96,   2,  27  ! Plane Y, wire 27
+  97,   2,  28  ! Plane Y, wire 28
+  98,   2,  29  ! Plane Y, wire 29
+  99,   2,  30  ! Plane Y, wire 30
+ 100,   2,  31  ! Plane Y, wire 31
+ 101,   2,  32  ! Plane Y, wire 32
+ 102,   2,  33  ! Plane Y, wire 33
+ 103,   2,  34  ! Plane Y, wire 34
+ 104,   2,  35  ! Plane Y, wire 35
+ 105,   2,  36  ! Plane Y, wire 36
+ 106,   2,  37  ! Plane Y, wire 37
+ 107,   2,  38  ! Plane Y, wire 38
+ 108,   2,  39  ! Plane Y, wire 39
+ 112,   2,  40  ! Plane Y, wire 40
+ 113,   2,  41  ! Plane Y, wire 41
+ 114,   2,  42  ! Plane Y, wire 42
+ 115,   2,  43  ! Plane Y, wire 43
+ 116,   2,  44  ! Plane Y, wire 44
+ 117,   2,  45  ! Plane Y, wire 45
+ 118,   2,  46  ! Plane Y, wire 46
+ 119,   2,  47  ! Plane Y, wire 47
+ 120,   2,  48  ! Plane Y, wire 48
+ 121,   2,  49  ! Plane Y, wire 49
+ 122,   2,  50  ! Plane Y, wire 50
+ 123,   2,  51  ! Plane Y, wire 51
+ 124,   2,  52  ! Plane Y, wire 52
+
+SLOT=10
+REFINDEX=0
+ 127,1000,   0,   2
+   0,   5,   1  ! Plane Y', wire 1
+   1,   5,   2  ! Plane Y', wire 2
+   2,   5,   3  ! Plane Y', wire 3
+   3,   5,   4  ! Plane Y', wire 4
+   4,   5,   5  ! Plane Y', wire 5
+   5,   5,   6  ! Plane Y', wire 6
+   6,   5,   7  ! Plane Y', wire 7
+   7,   5,   8  ! Plane Y', wire 8
+   8,   5,   9  ! Plane Y', wire 9
+   9,   5,  10  ! Plane Y', wire 10
+  10,   5,  11  ! Plane Y', wire 11
+  11,   5,  12  ! Plane Y', wire 12
+  12,   5,  13  ! Plane Y', wire 13
+  16,   5,  14  ! Plane Y', wire 14
+  17,   5,  15  ! Plane Y', wire 15
+  18,   5,  16  ! Plane Y', wire 16
+  19,   5,  17  ! Plane Y', wire 17
+  20,   5,  18  ! Plane Y', wire 18
+  21,   5,  19  ! Plane Y', wire 19
+  22,   5,  20  ! Plane Y', wire 20
+  23,   5,  21  ! Plane Y', wire 21
+  24,   5,  22  ! Plane Y', wire 22
+  25,   5,  23  ! Plane Y', wire 23
+  26,   5,  24  ! Plane Y', wire 24
+  27,   5,  25  ! Plane Y', wire 25
+  28,   5,  26  ! Plane Y', wire 26
+  32,   5,  27  ! Plane Y', wire 27
+  33,   5,  28  ! Plane Y', wire 28
+  34,   5,  29  ! Plane Y', wire 29
+  35,   5,  30  ! Plane Y', wire 30
+  36,   5,  31  ! Plane Y', wire 31
+  37,   5,  32  ! Plane Y', wire 32
+  38,   5,  33  ! Plane Y', wire 33
+  39,   5,  34  ! Plane Y', wire 34
+  40,   5,  35  ! Plane Y', wire 35
+  41,   5,  36  ! Plane Y', wire 36
+  42,   5,  37  ! Plane Y', wire 37
+  43,   5,  38  ! Plane Y', wire 38
+  44,   5,  39  ! Plane Y', wire 39
+  48,   5,  40  ! Plane Y', wire 40
+  49,   5,  41  ! Plane Y', wire 41
+  50,   5,  42  ! Plane Y', wire 42
+  51,   5,  43  ! Plane Y', wire 43
+  52,   5,  44  ! Plane Y', wire 44
+  53,   5,  45  ! Plane Y', wire 45
+  54,   5,  46  ! Plane Y', wire 46
+  55,   5,  47  ! Plane Y', wire 47
+  56,   5,  48  ! Plane Y', wire 48
+  57,   5,  49  ! Plane Y', wire 49
+  58,   5,  50  ! Plane Y', wire 50
+  59,   5,  51  ! Plane Y', wire 51
+  60,   5,  52  ! Plane Y', wire 52
+
+SLOT=16
+REFINDEX=0
+  96,   9,   1  ! Plane U, wire 1
+  97,   9,   2  ! Plane U, wire 2
+  98,   9,   3  ! Plane U, wire 3
+  99,   9,   4  ! Plane U, wire 4
+ 100,   9,   5  ! Plane U, wire 5
+ 101,   9,   6  ! Plane U, wire 6
+ 102,   9,   7  ! Plane U, wire 7
+ 103,   9,   8  ! Plane U, wire 8
+ 104,   9,   9  ! Plane U, wire 9
+ 105,   9,  10  ! Plane U, wire 10
+ 106,   9,  11  ! Plane U, wire 11
+ 107,   9,  12  ! Plane U, wire 12
+ 108,   9,  13  ! Plane U, wire 13
+ 109,   9,  14  ! Plane U, wire 14
+ 110,   7, 113  ! Plane X, wire 113
+ 112,   9,  15  ! Plane U, wire 15
+ 113,   9,  16  ! Plane U, wire 16
+ 114,   9,  17  ! Plane U, wire 17
+ 115,   9,  18  ! Plane U, wire 18
+ 116,   9,  19  ! Plane U, wire 19
+ 117,   9,  20  ! Plane U, wire 20
+ 118,   9,  21  ! Plane U, wire 21
+ 119,   9,  22  ! Plane U, wire 22
+ 120,   9,  23  ! Plane U, wire 23
+ 121,   9,  24  ! Plane U, wire 24
+ 122,   9,  25  ! Plane U, wire 25
+ 123,   9,  26  ! Plane U, wire 26
+ 124,   9,  27  ! Plane U, wire 27
+ 125,   9,  28  ! Plane U, wire 28
+ 126,   9,  29  ! Plane U, wire 29
+
+SLOT=14
+REFINDEX=0
+   0,   9,  30  ! Plane U, wire 30
+   1,   9,  31  ! Plane U, wire 31
+   2,   9,  32  ! Plane U, wire 32
+   3,   9,  33  ! Plane U, wire 33
+   4,   9,  34  ! Plane U, wire 34
+   5,   9,  35  ! Plane U, wire 35
+   6,   9,  36  ! Plane U, wire 36
+   7,   9,  37  ! Plane U, wire 37
+   8,   9,  38  ! Plane U, wire 38
+   9,   9,  39  ! Plane U, wire 39
+  10,   9,  40  ! Plane U, wire 40
+  11,   9,  41  ! Plane U, wire 41
+  12,   9,  42  ! Plane U, wire 42
+  13,   9,  43  ! Plane U, wire 43
+  14,   9,  44  ! Plane U, wire 44
+  15,   9,  45  ! Plane U, wire 45
+  32,   9,  46  ! Plane U, wire 46
+  33,   9,  47  ! Plane U, wire 47
+  34,   9,  48  ! Plane U, wire 48
+  35,   9,  49  ! Plane U, wire 49
+  36,   9,  50  ! Plane U, wire 50
+  37,   9,  51  ! Plane U, wire 51
+  38,   9,  52  ! Plane U, wire 52
+  39,   9,  53  ! Plane U, wire 53
+  40,   9,  54  ! Plane U, wire 54
+  41,   9,  55  ! Plane U, wire 55
+  42,   9,  56  ! Plane U, wire 56
+  43,   9,  57  ! Plane U, wire 57
+  44,   9,  58  ! Plane U, wire 58
+  45,   9,  59  ! Plane U, wire 59
+  46,   9,  60  ! Plane U, wire 60
+  48,   9,  61  ! Plane U, wire 61
+  49,   9,  62  ! Plane U, wire 62
+  50,   9,  63  ! Plane U, wire 63
+  51,   9,  64  ! Plane U, wire 64
+  52,   9,  65  ! Plane U, wire 65
+  53,   9,  66  ! Plane U, wire 66
+  54,   9,  67  ! Plane U, wire 67
+  55,   9,  68  ! Plane U, wire 68
+  56,   9,  69  ! Plane U, wire 69
+  57,   9,  70  ! Plane U, wire 70
+  58,   9,  71  ! Plane U, wire 71
+  59,   9,  72  ! Plane U, wire 72
+  60,   9,  73  ! Plane U, wire 73
+  61,   9,  74  ! Plane U, wire 74
+  62,   9,  75  ! Plane U, wire 75
+  63,   9,  76  ! Plane U, wire 76
+  64,   9,  77  ! Plane U, wire 77
+  65,   9,  78  ! Plane U, wire 78
+  66,   9,  79  ! Plane U, wire 79
+  67,   9,  80  ! Plane U, wire 80
+  68,   9,  81  ! Plane U, wire 81
+  69,   9,  82  ! Plane U, wire 82
+  70,   9,  83  ! Plane U, wire 83
+  71,   9,  84  ! Plane U, wire 84
+  72,   9,  85  ! Plane U, wire 85
+  73,   9,  86  ! Plane U, wire 86
+  74,   9,  87  ! Plane U, wire 87
+  75,   9,  88  ! Plane U, wire 88
+  76,   9,  89  ! Plane U, wire 89
+  77,   9,  90  ! Plane U, wire 90
+  78,   9,  91  ! Plane U, wire 91
+  80,   9,  92  ! Plane U, wire 92
+  81,   9,  93  ! Plane U, wire 93
+  82,   9,  94  ! Plane U, wire 94
+  83,   9,  95  ! Plane U, wire 95
+  84,   9,  96  ! Plane U, wire 96
+  85,   9,  97  ! Plane U, wire 97
+  86,   9,  98  ! Plane U, wire 98
+  87,   9,  99  ! Plane U, wire 99
+  88,   9, 100  ! Plane U, wire 100
+  89,   9, 101  ! Plane U, wire 101
+  90,   9, 102  ! Plane U, wire 102
+  91,   9, 103  ! Plane U, wire 103
+  92,   9, 104  ! Plane U, wire 104
+  93,   9, 105  ! Plane U, wire 105
+  94,   9, 106  ! Plane U, wire 106
+  95,   9, 107  ! Plane U, wire 107
+
+SLOT=16
+REFINDEX=0
+  80,  10,   1  ! Plane V, wire 1
+  81,  10,   2  ! Plane V, wire 2
+  82,  10,   3  ! Plane V, wire 3
+  83,  10,   4  ! Plane V, wire 4
+  84,  10,   5  ! Plane V, wire 5
+  85,  10,   6  ! Plane V, wire 6
+  86,  10,   7  ! Plane V, wire 7
+  87,  10,   8  ! Plane V, wire 8
+  88,  10,   9  ! Plane V, wire 9
+  89,  10,  10  ! Plane V, wire 10
+  90,  10,  11  ! Plane V, wire 11
+  91,  10,  12  ! Plane V, wire 12
+  92,  10,  13  ! Plane V, wire 13
+  93,  10,  14  ! Plane V, wire 14
+  94,  12, 113  ! Plane X', wire 113
+
+SLOT=14
+REFINDEX=0
+  96,  10,  15  ! Plane V, wire 15
+  97,  10,  16  ! Plane V, wire 16
+  98,  10,  17  ! Plane V, wire 17
+  99,  10,  18  ! Plane V, wire 18
+ 100,  10,  19  ! Plane V, wire 19
+ 101,  10,  20  ! Plane V, wire 20
+ 102,  10,  21  ! Plane V, wire 21
+ 103,  10,  22  ! Plane V, wire 22
+ 104,  10,  23  ! Plane V, wire 23
+ 105,  10,  24  ! Plane V, wire 24
+ 106,  10,  25  ! Plane V, wire 25
+ 107,  10,  26  ! Plane V, wire 26
+ 108,  10,  27  ! Plane V, wire 27
+ 109,  10,  28  ! Plane V, wire 28
+ 110,  10,  29  ! Plane V, wire 29
+ 112,  10,  30  ! Plane V, wire 30
+ 113,  10,  31  ! Plane V, wire 31
+ 114,  10,  32  ! Plane V, wire 32
+ 115,  10,  33  ! Plane V, wire 33
+ 116,  10,  34  ! Plane V, wire 34
+ 117,  10,  35  ! Plane V, wire 35
+ 118,  10,  36  ! Plane V, wire 36
+ 119,  10,  37  ! Plane V, wire 37
+ 120,  10,  38  ! Plane V, wire 38
+ 121,  10,  39  ! Plane V, wire 39
+ 122,  10,  40  ! Plane V, wire 40
+ 123,  10,  41  ! Plane V, wire 41
+ 124,  10,  42  ! Plane V, wire 42
+ 125,  10,  43  ! Plane V, wire 43
+ 126,  10,  44  ! Plane V, wire 44
+ 127,  10,  45  ! Plane V, wire 45
+
+SLOT=17
+REFINDEX=0
+ 127,1000,   0,   3
+   0,  10,  46  ! Plane V, wire 46
+   1,  10,  47  ! Plane V, wire 47
+   2,  10,  48  ! Plane V, wire 48
+   3,  10,  49  ! Plane V, wire 49
+   4,  10,  50  ! Plane V, wire 50
+   5,  10,  51  ! Plane V, wire 51
+   6,  10,  52  ! Plane V, wire 52
+   7,  10,  53  ! Plane V, wire 53
+   8,  10,  54  ! Plane V, wire 54
+   9,  10,  55  ! Plane V, wire 55
+  10,  10,  56  ! Plane V, wire 56
+  11,  10,  57  ! Plane V, wire 57
+  12,  10,  58  ! Plane V, wire 58
+  13,  10,  59  ! Plane V, wire 59
+  14,  10,  60  ! Plane V, wire 60
+  16,  10,  61  ! Plane V, wire 61
+  17,  10,  62  ! Plane V, wire 62
+  18,  10,  63  ! Plane V, wire 63
+  19,  10,  64  ! Plane V, wire 64
+  20,  10,  65  ! Plane V, wire 65
+  21,  10,  66  ! Plane V, wire 66
+  22,  10,  67  ! Plane V, wire 67
+  23,  10,  68  ! Plane V, wire 68
+  24,  10,  69  ! Plane V, wire 69
+  25,  10,  70  ! Plane V, wire 70
+  26,  10,  71  ! Plane V, wire 71
+  27,  10,  72  ! Plane V, wire 72
+  28,  10,  73  ! Plane V, wire 73
+  29,  10,  74  ! Plane V, wire 74
+  30,  10,  75  ! Plane V, wire 75
+  31,  10,  76  ! Plane V, wire 76
+  32,  10,  77  ! Plane V, wire 77
+  33,  10,  78  ! Plane V, wire 78
+  34,  10,  79  ! Plane V, wire 79
+  35,  10,  80  ! Plane V, wire 80
+  36,  10,  81  ! Plane V, wire 81
+  37,  10,  82  ! Plane V, wire 82
+  38,  10,  83  ! Plane V, wire 83
+  39,  10,  84  ! Plane V, wire 84
+  40,  10,  85  ! Plane V, wire 85
+  41,  10,  86  ! Plane V, wire 86
+  42,  10,  87  ! Plane V, wire 87
+  43,  10,  88  ! Plane V, wire 88
+  44,  10,  89  ! Plane V, wire 89
+  45,  10,  90  ! Plane V, wire 90
+  46,  10,  91  ! Plane V, wire 91
+  48,  10,  92  ! Plane V, wire 92
+  49,  10,  93  ! Plane V, wire 93
+  50,  10,  94  ! Plane V, wire 94
+  51,  10,  95  ! Plane V, wire 95
+  52,  10,  96  ! Plane V, wire 96
+  53,  10,  97  ! Plane V, wire 97
+  54,  10,  98  ! Plane V, wire 98
+  55,  10,  99  ! Plane V, wire 99
+  56,  10, 100  ! Plane V, wire 100
+  57,  10, 101  ! Plane V, wire 101
+  58,  10, 102  ! Plane V, wire 102
+  59,  10, 103  ! Plane V, wire 103
+  60,  10, 104  ! Plane V, wire 104
+  61,  10, 105  ! Plane V, wire 105
+  62,  10, 106  ! Plane V, wire 106
+  63,  10, 107  ! Plane V, wire 107
+
+SLOT=13
+REFINDEX=0
+   0,   7,   1  ! Plane X, wire 1
+   1,   7,   2  ! Plane X, wire 2
+   2,   7,   3  ! Plane X, wire 3
+   3,   7,   4  ! Plane X, wire 4
+   4,   7,   5  ! Plane X, wire 5
+   5,   7,   6  ! Plane X, wire 6
+   6,   7,   7  ! Plane X, wire 7
+   7,   7,   8  ! Plane X, wire 8
+   8,   7,   9  ! Plane X, wire 9
+   9,   7,  10  ! Plane X, wire 10
+  10,   7,  11  ! Plane X, wire 11
+  11,   7,  12  ! Plane X, wire 12
+  12,   7,  13  ! Plane X, wire 13
+  13,   7,  14  ! Plane X, wire 14
+  14,   7,  15  ! Plane X, wire 15
+  15,   7,  16  ! Plane X, wire 16
+  16,   7,  17  ! Plane X, wire 17
+  17,   7,  18  ! Plane X, wire 18
+  18,   7,  19  ! Plane X, wire 19
+  19,   7,  20  ! Plane X, wire 20
+  20,   7,  21  ! Plane X, wire 21
+  21,   7,  22  ! Plane X, wire 22
+  22,   7,  23  ! Plane X, wire 23
+  23,   7,  24  ! Plane X, wire 24
+  24,   7,  25  ! Plane X, wire 25
+  25,   7,  26  ! Plane X, wire 26
+  26,   7,  27  ! Plane X, wire 27
+  27,   7,  28  ! Plane X, wire 28
+  28,   7,  29  ! Plane X, wire 29
+  29,   7,  30  ! Plane X, wire 30
+  30,   7,  31  ! Plane X, wire 31
+  31,   7,  32  ! Plane X, wire 32
+  32,   7,  33  ! Plane X, wire 33
+  33,   7,  34  ! Plane X, wire 34
+  34,   7,  35  ! Plane X, wire 35
+  35,   7,  36  ! Plane X, wire 36
+  36,   7,  37  ! Plane X, wire 37
+  37,   7,  38  ! Plane X, wire 38
+  38,   7,  39  ! Plane X, wire 39
+  39,   7,  40  ! Plane X, wire 40
+  40,   7,  41  ! Plane X, wire 41
+  41,   7,  42  ! Plane X, wire 42
+  42,   7,  43  ! Plane X, wire 43
+  43,   7,  44  ! Plane X, wire 44
+  44,   7,  45  ! Plane X, wire 45
+  45,   7,  46  ! Plane X, wire 46
+  46,   7,  47  ! Plane X, wire 47
+  47,   7,  48  ! Plane X, wire 48
+  48,   7,  49  ! Plane X, wire 49
+  49,   7,  50  ! Plane X, wire 50
+  50,   7,  51  ! Plane X, wire 51
+  51,   7,  52  ! Plane X, wire 52
+  52,   7,  53  ! Plane X, wire 53
+  53,   7,  54  ! Plane X, wire 54
+  54,   7,  55  ! Plane X, wire 55
+  55,   7,  56  ! Plane X, wire 56
+  56,   7,  57  ! Plane X, wire 57
+  57,   7,  58  ! Plane X, wire 58
+  58,   7,  59  ! Plane X, wire 59
+  59,   7,  60  ! Plane X, wire 60
+  60,   7,  61  ! Plane X, wire 61
+  61,   7,  62  ! Plane X, wire 62
+  62,   7,  63  ! Plane X, wire 63
+  63,   7,  64  ! Plane X, wire 64
+  64,   7,  65  ! Plane X, wire 65
+  65,   7,  66  ! Plane X, wire 66
+  66,   7,  67  ! Plane X, wire 67
+  67,   7,  68  ! Plane X, wire 68
+  68,   7,  69  ! Plane X, wire 69
+  69,   7,  70  ! Plane X, wire 70
+  70,   7,  71  ! Plane X, wire 71
+  71,   7,  72  ! Plane X, wire 72
+  72,   7,  73  ! Plane X, wire 73
+  73,   7,  74  ! Plane X, wire 74
+  74,   7,  75  ! Plane X, wire 75
+  75,   7,  76  ! Plane X, wire 76
+  76,   7,  77  ! Plane X, wire 77
+  77,   7,  78  ! Plane X, wire 78
+  78,   7,  79  ! Plane X, wire 79
+  79,   7,  80  ! Plane X, wire 80
+  80,   7,  81  ! Plane X, wire 81
+  81,   7,  82  ! Plane X, wire 82
+  82,   7,  83  ! Plane X, wire 83
+  83,   7,  84  ! Plane X, wire 84
+  84,   7,  85  ! Plane X, wire 85
+  85,   7,  86  ! Plane X, wire 86
+  86,   7,  87  ! Plane X, wire 87
+  87,   7,  88  ! Plane X, wire 88
+  88,   7,  89  ! Plane X, wire 89
+  89,   7,  90  ! Plane X, wire 90
+  90,   7,  91  ! Plane X, wire 91
+  91,   7,  92  ! Plane X, wire 92
+  92,   7,  93  ! Plane X, wire 93
+  93,   7,  94  ! Plane X, wire 94
+  94,   7,  95  ! Plane X, wire 95
+  95,   7,  96  ! Plane X, wire 96
+  96,   7,  97  ! Plane X, wire 97
+  97,   7,  98  ! Plane X, wire 98
+  98,   7,  99  ! Plane X, wire 99
+  99,   7, 100  ! Plane X, wire 100
+ 100,   7, 101  ! Plane X, wire 101
+ 101,   7, 102  ! Plane X, wire 102
+ 102,   7, 103  ! Plane X, wire 103
+ 103,   7, 104  ! Plane X, wire 104
+ 104,   7, 105  ! Plane X, wire 105
+ 105,   7, 106  ! Plane X, wire 106
+ 106,   7, 107  ! Plane X, wire 107
+ 107,   7, 108  ! Plane X, wire 108
+ 108,   7, 109  ! Plane X, wire 109
+ 109,   7, 110  ! Plane X, wire 110
+ 110,   7, 111  ! Plane X, wire 111
+ 111,   7, 112  ! Plane X, wire 112
+ 112,  12,   1  ! Plane X', wire 1
+ 113,  12,   2  ! Plane X', wire 2
+ 114,  12,   3  ! Plane X', wire 3
+ 115,  12,   4  ! Plane X', wire 4
+ 116,  12,   5  ! Plane X', wire 5
+ 117,  12,   6  ! Plane X', wire 6
+ 118,  12,   7  ! Plane X', wire 7
+ 119,  12,   8  ! Plane X', wire 8
+ 120,  12,   9  ! Plane X', wire 9
+ 121,  12,  10  ! Plane X', wire 10
+ 122,  12,  11  ! Plane X', wire 11
+ 123,  12,  12  ! Plane X', wire 12
+ 124,  12,  13  ! Plane X', wire 13
+ 125,  12,  14  ! Plane X', wire 14
+ 126,  12,  15  ! Plane X', wire 15
+ 127,  12,  16  ! Plane X', wire 16
+
+SLOT=14
+REFINDEX=0
+  16,  12,  17  ! Plane X', wire 17
+  17,  12,  18  ! Plane X', wire 18
+  18,  12,  19  ! Plane X', wire 19
+  19,  12,  20  ! Plane X', wire 20
+  20,  12,  21  ! Plane X', wire 21
+  21,  12,  22  ! Plane X', wire 22
+  22,  12,  23  ! Plane X', wire 23
+  23,  12,  24  ! Plane X', wire 24
+  24,  12,  25  ! Plane X', wire 25
+  25,  12,  26  ! Plane X', wire 26
+  26,  12,  27  ! Plane X', wire 27
+  27,  12,  28  ! Plane X', wire 28
+  28,  12,  29  ! Plane X', wire 29
+  29,  12,  30  ! Plane X', wire 30
+  30,  12,  31  ! Plane X', wire 31
+  31,  12,  32  ! Plane X', wire 32
+
+SLOT=16
+REFINDEX=0
+   0,  12,  33  ! Plane X', wire 33
+   1,  12,  34  ! Plane X', wire 34
+   2,  12,  35  ! Plane X', wire 35
+   3,  12,  36  ! Plane X', wire 36
+   4,  12,  37  ! Plane X', wire 37
+   5,  12,  38  ! Plane X', wire 38
+   6,  12,  39  ! Plane X', wire 39
+   7,  12,  40  ! Plane X', wire 40
+   8,  12,  41  ! Plane X', wire 41
+   9,  12,  42  ! Plane X', wire 42
+  10,  12,  43  ! Plane X', wire 43
+  11,  12,  44  ! Plane X', wire 44
+  12,  12,  45  ! Plane X', wire 45
+  13,  12,  46  ! Plane X', wire 46
+  14,  12,  47  ! Plane X', wire 47
+  15,  12,  48  ! Plane X', wire 48
+  16,  12,  49  ! Plane X', wire 49
+  17,  12,  50  ! Plane X', wire 50
+  18,  12,  51  ! Plane X', wire 51
+  19,  12,  52  ! Plane X', wire 52
+  20,  12,  53  ! Plane X', wire 53
+  21,  12,  54  ! Plane X', wire 54
+  22,  12,  55  ! Plane X', wire 55
+  23,  12,  56  ! Plane X', wire 56
+  24,  12,  57  ! Plane X', wire 57
+  25,  12,  58  ! Plane X', wire 58
+  26,  12,  59  ! Plane X', wire 59
+  27,  12,  60  ! Plane X', wire 60
+  28,  12,  61  ! Plane X', wire 61
+  29,  12,  62  ! Plane X', wire 62
+  30,  12,  63  ! Plane X', wire 63
+  31,  12,  64  ! Plane X', wire 64
+  32,  12,  65  ! Plane X', wire 65
+  33,  12,  66  ! Plane X', wire 66
+  34,  12,  67  ! Plane X', wire 67
+  35,  12,  68  ! Plane X', wire 68
+  36,  12,  69  ! Plane X', wire 69
+  37,  12,  70  ! Plane X', wire 70
+  38,  12,  71  ! Plane X', wire 71
+  39,  12,  72  ! Plane X', wire 72
+  40,  12,  73  ! Plane X', wire 73
+  41,  12,  74  ! Plane X', wire 74
+  42,  12,  75  ! Plane X', wire 75
+  43,  12,  76  ! Plane X', wire 76
+  44,  12,  77  ! Plane X', wire 77
+  45,  12,  78  ! Plane X', wire 78
+  46,  12,  79  ! Plane X', wire 79
+  47,  12,  80  ! Plane X', wire 80
+  48,  12,  81  ! Plane X', wire 81
+  49,  12,  82  ! Plane X', wire 82
+  50,  12,  83  ! Plane X', wire 83
+  51,  12,  84  ! Plane X', wire 84
+  52,  12,  85  ! Plane X', wire 85
+  53,  12,  86  ! Plane X', wire 86
+  54,  12,  87  ! Plane X', wire 87
+  55,  12,  88  ! Plane X', wire 88
+  56,  12,  89  ! Plane X', wire 89
+  57,  12,  90  ! Plane X', wire 90
+  58,  12,  91  ! Plane X', wire 91
+  59,  12,  92  ! Plane X', wire 92
+  60,  12,  93  ! Plane X', wire 93
+  61,  12,  94  ! Plane X', wire 94
+  62,  12,  95  ! Plane X', wire 95
+  63,  12,  96  ! Plane X', wire 96
+  64,  12,  97  ! Plane X', wire 97
+  65,  12,  98  ! Plane X', wire 98
+  66,  12,  99  ! Plane X', wire 99
+  67,  12, 100  ! Plane X', wire 100
+  68,  12, 101  ! Plane X', wire 101
+  69,  12, 102  ! Plane X', wire 102
+  70,  12, 103  ! Plane X', wire 103
+  71,  12, 104  ! Plane X', wire 104
+  72,  12, 105  ! Plane X', wire 105
+  73,  12, 106  ! Plane X', wire 106
+  74,  12, 107  ! Plane X', wire 107
+  75,  12, 108  ! Plane X', wire 108
+  76,  12, 109  ! Plane X', wire 109
+  77,  12, 110  ! Plane X', wire 110
+  78,  12, 111  ! Plane X', wire 111
+  79,  12, 112  ! Plane X', wire 112
+
+SLOT=17
+REFINDEX=0
+  64,   8,   1  ! Plane Y, wire 1
+  65,   8,   2  ! Plane Y, wire 2
+  66,   8,   3  ! Plane Y, wire 3
+  67,   8,   4  ! Plane Y, wire 4
+  68,   8,   5  ! Plane Y, wire 5
+  69,   8,   6  ! Plane Y, wire 6
+  70,   8,   7  ! Plane Y, wire 7
+  71,   8,   8  ! Plane Y, wire 8
+  72,   8,   9  ! Plane Y, wire 9
+  73,   8,  10  ! Plane Y, wire 10
+  74,   8,  11  ! Plane Y, wire 11
+  75,   8,  12  ! Plane Y, wire 12
+  76,   8,  13  ! Plane Y, wire 13
+  80,   8,  14  ! Plane Y, wire 14
+  81,   8,  15  ! Plane Y, wire 15
+  82,   8,  16  ! Plane Y, wire 16
+  83,   8,  17  ! Plane Y, wire 17
+  84,   8,  18  ! Plane Y, wire 18
+  85,   8,  19  ! Plane Y, wire 19
+  86,   8,  20  ! Plane Y, wire 20
+  87,   8,  21  ! Plane Y, wire 21
+  88,   8,  22  ! Plane Y, wire 22
+  89,   8,  23  ! Plane Y, wire 23
+  90,   8,  24  ! Plane Y, wire 24
+  91,   8,  25  ! Plane Y, wire 25
+  92,   8,  26  ! Plane Y, wire 26
+  96,   8,  27  ! Plane Y, wire 27
+  97,   8,  28  ! Plane Y, wire 28
+  98,   8,  29  ! Plane Y, wire 29
+  99,   8,  30  ! Plane Y, wire 30
+ 100,   8,  31  ! Plane Y, wire 31
+ 101,   8,  32  ! Plane Y, wire 32
+ 102,   8,  33  ! Plane Y, wire 33
+ 103,   8,  34  ! Plane Y, wire 34
+ 104,   8,  35  ! Plane Y, wire 35
+ 105,   8,  36  ! Plane Y, wire 36
+ 106,   8,  37  ! Plane Y, wire 37
+ 107,   8,  38  ! Plane Y, wire 38
+ 108,   8,  39  ! Plane Y, wire 39
+ 112,   8,  40  ! Plane Y, wire 40
+ 113,   8,  41  ! Plane Y, wire 41
+ 114,   8,  42  ! Plane Y, wire 42
+ 115,   8,  43  ! Plane Y, wire 43
+ 116,   8,  44  ! Plane Y, wire 44
+ 117,   8,  45  ! Plane Y, wire 45
+ 118,   8,  46  ! Plane Y, wire 46
+ 119,   8,  47  ! Plane Y, wire 47
+ 120,   8,  48  ! Plane Y, wire 48
+ 121,   8,  49  ! Plane Y, wire 49
+ 122,   8,  50  ! Plane Y, wire 50
+ 123,   8,  51  ! Plane Y, wire 51
+ 124,   8,  52  ! Plane Y, wire 52
+
+SLOT=10
+REFINDEX=0
+ 127,1000,   0,   1
+  64,  11,   1  ! Plane Y', wire 1
+  65,  11,   2  ! Plane Y', wire 2
+  66,  11,   3  ! Plane Y', wire 3
+  67,  11,   4  ! Plane Y', wire 4
+  68,  11,   5  ! Plane Y', wire 5
+  69,  11,   6  ! Plane Y', wire 6
+  70,  11,   7  ! Plane Y', wire 7
+  71,  11,   8  ! Plane Y', wire 8
+  72,  11,   9  ! Plane Y', wire 9
+  73,  11,  10  ! Plane Y', wire 10
+  74,  11,  11  ! Plane Y', wire 11
+  75,  11,  12  ! Plane Y', wire 12
+  76,  11,  13  ! Plane Y', wire 13
+  80,  11,  14  ! Plane Y', wire 14
+  81,  11,  15  ! Plane Y', wire 15
+  82,  11,  16  ! Plane Y', wire 16
+  83,  11,  17  ! Plane Y', wire 17
+  84,  11,  18  ! Plane Y', wire 18
+  85,  11,  19  ! Plane Y', wire 19
+  86,  11,  20  ! Plane Y', wire 20
+  87,  11,  21  ! Plane Y', wire 21
+  88,  11,  22  ! Plane Y', wire 22
+  89,  11,  23  ! Plane Y', wire 23
+  90,  11,  24  ! Plane Y', wire 24
+  91,  11,  25  ! Plane Y', wire 25
+  92,  11,  26  ! Plane Y', wire 26
+  96,  11,  27  ! Plane Y', wire 27
+  97,  11,  28  ! Plane Y', wire 28
+  98,  11,  29  ! Plane Y', wire 29
+  99,  11,  30  ! Plane Y', wire 30
+ 100,  11,  31  ! Plane Y', wire 31
+ 101,  11,  32  ! Plane Y', wire 32
+ 102,  11,  33  ! Plane Y', wire 33
+ 103,  11,  34  ! Plane Y', wire 34
+ 104,  11,  35  ! Plane Y', wire 35
+ 105,  11,  36  ! Plane Y', wire 36
+ 106,  11,  37  ! Plane Y', wire 37
+ 107,  11,  38  ! Plane Y', wire 38
+ 108,  11,  39  ! Plane Y', wire 39
+ 112,  11,  40  ! Plane Y', wire 40
+ 113,  11,  41  ! Plane Y', wire 41
+ 114,  11,  42  ! Plane Y', wire 42
+ 115,  11,  43  ! Plane Y', wire 43
+ 116,  11,  44  ! Plane Y', wire 44
+ 117,  11,  45  ! Plane Y', wire 45
+ 118,  11,  46  ! Plane Y', wire 46
+ 119,  11,  47  ! Plane Y', wire 47
+ 120,  11,  48  ! Plane Y', wire 48
+ 121,  11,  49  ! Plane Y', wire 49
+ 122,  11,  50  ! Plane Y', wire 50
+ 123,  11,  51  ! Plane Y', wire 51
+ 124,  11,  52  ! Plane Y', wire 52
+
+
+DETECTOR=13
+
+ROC=11
+
+SLOT=8
+   0,   1,   1,   0  ! h1x01A+
+   1,   1,   2,   0  ! h1x02A+
+   2,   1,   3,   0  ! h1x03A+
+   3,   1,   4,   0  ! h1x04A+
+   4,   1,   5,   0  ! h1x05A+
+   5,   1,   6,   0  ! h1x06A+
+   6,   1,   7,   0  ! h1x07A+
+   7,   1,   8,   0  ! h1x08A+
+   8,   1,   9,   0  ! h1x09A+
+   9,   1,  10,   0  ! h1x10A+
+  10,   1,  11,   0  ! h1x11A+
+  11,   1,  12,   0  ! h1x12A+
+  12,   1,  13,   0  ! h1x13A+
+  13,   1,  14,   0  ! h1x14A+
+  14,   1,  15,   0  ! h1x15A+
+  15,   1,  16,   0  ! h1x16A+
+
+SLOT=9
+   0,   1,   1,   1  ! h1x01A-
+   1,   1,   2,   1  ! h1x02A-
+   2,   1,   3,   1  ! h1x03A-
+   3,   1,   4,   1  ! h1x04A-
+   4,   1,   5,   1  ! h1x05A-
+   5,   1,   6,   1  ! h1x06A-
+   6,   1,   7,   1  ! h1x07A-
+   7,   1,   8,   1  ! h1x08A-
+   8,   1,   9,   1  ! h1x09A-
+   9,   1,  10,   1  ! h1x10A-
+  10,   1,  11,   1  ! h1x11A-
+  11,   1,  12,   1  ! h1x12A-
+  12,   1,  13,   1  ! h1x13A-
+  13,   1,  14,   1  ! h1x14A-
+  14,   1,  15,   1  ! h1x15A-
+  15,   1,  16,   1  ! h1x16A-
+
+SLOT=10
+   0,   2,   1,   0  ! h1y01A+
+   1,   2,   2,   0  ! h1y02A+
+   2,   2,   3,   0  ! h1y03A+
+   3,   2,   4,   0  ! h1y04A+
+   4,   2,   5,   0  ! h1y05A+
+   5,   2,   6,   0  ! h1y06A+
+   6,   2,   7,   0  ! h1y07A+
+   7,   2,   8,   0  ! h1y08A+
+   8,   2,   9,   0  ! h1y09A+
+   9,   2,  10,   0  ! h1y10A+
+  10,   2,   1,   1  ! h1y01A-
+  11,   2,   2,   1  ! h1y02A-
+  12,   2,   3,   1  ! h1y03A-
+  13,   2,   4,   1  ! h1y04A-
+  14,   2,   5,   1  ! h1y05A-
+  15,   2,   6,   1  ! h1y06A-
+
+SLOT=13
+   0,   2,   7,   1  ! h1y07A-
+   1,   2,   8,   1  ! h1y08A-
+   2,   2,   9,   1  ! h1y09A-
+   3,   2,  10,   1  ! h1y10A-
+   4,   3,   1,   0  ! h2x01A+
+   5,   3,   2,   0  ! h2x02A+
+   6,   3,   3,   0  ! h2x03A+
+   7,   3,   4,   0  ! h2x04A+
+   8,   3,   5,   0  ! h2x05A+
+   9,   3,   6,   0  ! h2x06A+
+  10,   3,   7,   0  ! h2x07A+
+  11,   3,   8,   0  ! h2x08A+
+  12,   3,   9,   0  ! h2x09A+
+  13,   3,  10,   0  ! h2x10A+
+  14,   3,  11,   0  ! h2x11A+
+  15,   3,  12,   0  ! h2x12A+
+
+SLOT=14
+   0,   3,  13,   0  ! h2x13A+
+   1,   3,  14,   0  ! h2x14A+
+   2,   3,  15,   0  ! h2x15A+
+   3,   3,  16,   0  ! h2x16A+
+   4,   3,   1,   1  ! h2x01A-
+   5,   3,   2,   1  ! h2x02A-
+   6,   3,   3,   1  ! h2x03A-
+   7,   3,   4,   1  ! h2x04A-
+   8,   3,   5,   1  ! h2x05A-
+   9,   3,   6,   1  ! h2x06A-
+  10,   3,   7,   1  ! h2x07A-
+  11,   3,   8,   1  ! h2x08A-
+  12,   3,   9,   1  ! h2x09A-
+  13,   3,  10,   1  ! h2x10A-
+  14,   3,  11,   1  ! h2x11A-
+  15,   3,  12,   1  ! h2x12A-
+
+SLOT=15
+   0,   3,  13,   1  ! h2x13A-
+   1,   3,  14,   1  ! h2x14A-
+   2,   3,  15,   1  ! h2x15A-
+   3,   3,  16,   1  ! h2x16A-
+   4,   4,   1,   0  ! h2y01A+
+   5,   4,   2,   0  ! h2y02A+
+   6,   4,   3,   0  ! h2y03A+
+   7,   4,   4,   0  ! h2y04A+
+   8,   4,   5,   0  ! h2y05A+
+   9,   4,   6,   0  ! h2y06A+
+  10,   4,   7,   0  ! h2y07A+
+  11,   4,   8,   0  ! h2y08A+
+  12,   4,   9,   0  ! h2y09A+
+  13,   4,  10,   0  ! h2y10A+
+  14,   4,   1,   1  ! h2y01A-
+  15,   4,   2,   1  ! h2y02A-
+
+SLOT=16
+   0,   4,   3,   1  ! h2y03A-
+   1,   4,   4,   1  ! h2y04A-
+   2,   4,   5,   1  ! h2y05A-
+   3,   4,   6,   1  ! h2y06A-
+   4,   4,   7,   1  ! h2y07A-
+   5,   4,   8,   1  ! h2y08A-
+   6,   4,   9,   1  ! h2y09A-
+   7,   4,  10,   1  ! h2y10A-
+
+SLOT=20
+REFINDEX=0
+ 127,1000,   0,   0
+   0,   1,   1,   2  ! h1x01T+
+   1,   1,   3,   2  ! h1x03T+
+   2,   1,   5,   2  ! h1x05T+
+   3,   1,   7,   2  ! h1x07T+
+   4,   1,   2,   2  ! h1x02T+
+   5,   1,   4,   2  ! h1x04T+
+   6,   1,   6,   2  ! h1x06T+
+   7,   1,   8,   2  ! h1x08T+
+   8,   1,   9,   2  ! h1x09T+
+   9,   1,  11,   2  ! h1x11T+
+  10,   1,  13,   2  ! h1x13T+
+  11,   1,  15,   2  ! h1x15T+
+  12,   1,  10,   2  ! h1x10T+
+  13,   1,  12,   2  ! h1x12T+
+  14,   1,  14,   2  ! h1x14T+
+  15,   1,  16,   2  ! h1x16T+
+  16,   1,   1,   3  ! h1x01T-
+  17,   1,   3,   3  ! h1x03T-
+  18,   1,   5,   3  ! h1x05T-
+  19,   1,   7,   3  ! h1x07T-
+  20,   1,   2,   3  ! h1x02T-
+  21,   1,   4,   3  ! h1x04T-
+  22,   1,   6,   3  ! h1x06T-
+  23,   1,   8,   3  ! h1x08T-
+  24,   1,   9,   3  ! h1x09T-
+  25,   1,  11,   3  ! h1x11T-
+  26,   1,  13,   3  ! h1x13T-
+  27,   1,  15,   3  ! h1x15T-
+  28,   1,  10,   3  ! h1x10T-
+  29,   1,  12,   3  ! h1x12T-
+  30,   1,  14,   3  ! h1x14T-
+  31,   1,  16,   3  ! h1x16T-
+  32,   2,   1,   2  ! h1y01T+
+  33,   2,   3,   2  ! h1y03T+
+  34,   2,   5,   2  ! h1y05T+
+  35,   2,   7,   2  ! h1y07T+
+  36,   2,   2,   2  ! h1y02T+
+  37,   2,   4,   2  ! h1y04T+
+  38,   2,   6,   2  ! h1y06T+
+  39,   2,   8,   2  ! h1y08T+
+  40,   2,   9,   2  ! h1y09T+
+  44,   2,  10,   2  ! h1y10T+
+  48,   2,   1,   3  ! h1y01T-
+  49,   2,   3,   3  ! h1y03T-
+  50,   2,   5,   3  ! h1y05T-
+  51,   2,   7,   3  ! h1y07T-
+  52,   2,   2,   3  ! h1y02T-
+  53,   2,   4,   3  ! h1y04T-
+  54,   2,   6,   3  ! h1y06T-
+  55,   2,   8,   3  ! h1y08T-
+  56,   2,   9,   3  ! h1y09T-
+  60,   2,  10,   3  ! h1y10T-
+  64,   3,   1,   2  ! h2x01T+
+  65,   3,   3,   2  ! h2x03T+
+  66,   3,   5,   2  ! h2x05T+
+  67,   3,   7,   2  ! h2x07T+
+  68,   3,   2,   2  ! h2x02T+
+  69,   3,   4,   2  ! h2x04T+
+  70,   3,   6,   2  ! h2x06T+
+  71,   3,   8,   2  ! h2x08T+
+  72,   3,   9,   2  ! h2x09T+
+  73,   3,  11,   2  ! h2x11T+
+  74,   3,  13,   2  ! h2x13T+
+  75,   3,  15,   2  ! h2x15T+
+  76,   3,  10,   2  ! h2x10T+
+  77,   3,  12,   2  ! h2x12T+
+  78,   3,  14,   2  ! h2x14T+
+  79,   3,  16,   2  ! h2x16T+
+  80,   3,   1,   3  ! h2x01T-
+  81,   3,   3,   3  ! h2x03T-
+  82,   3,   5,   3  ! h2x05T-
+  83,   3,   7,   3  ! h2x07T-
+  84,   3,   2,   3  ! h2x02T-
+  85,   3,   4,   3  ! h2x04T-
+  86,   3,   6,   3  ! h2x06T-
+  87,   3,   8,   3  ! h2x08T-
+  88,   3,   9,   3  ! h2x09T-
+  89,   3,  11,   3  ! h2x11T-
+  90,   3,  13,   3  ! h2x13T-
+  91,   3,  15,   3  ! h2x15T-
+  92,   3,  10,   3  ! h2x10T-
+  93,   3,  12,   3  ! h2x12T-
+  94,   3,  14,   3  ! h2x14T-
+  95,   3,  16,   3  ! h2x16T-
+  96,   4,   1,   2  ! h2y01T+
+  97,   4,   3,   2  ! h2y03T+
+  98,   4,   5,   2  ! h2y05T+
+  99,   4,   7,   2  ! h2y07T+
+ 100,   4,   2,   2  ! h2y02T+
+ 101,   4,   4,   2  ! h2y04T+
+ 102,   4,   6,   2  ! h2y06T+
+ 103,   4,   8,   2  ! h2y08T+
+ 104,   4,   9,   2  ! h2y09T+
+ 108,   4,  10,   2  ! h2y10T+
+ 112,   4,   1,   3  ! h2y01T-
+ 113,   4,   3,   3  ! h2y03T-
+ 114,   4,   5,   3  ! h2y05T-
+ 115,   4,   7,   3  ! h2y07T-
+ 116,   4,   2,   3  ! h2y02T-
+ 117,   4,   4,   3  ! h2y04T-
+ 118,   4,   6,   3  ! h2y06T-
+ 119,   4,   8,   3  ! h2y08T-
+ 120,   4,   9,   3  ! h2y09T-
+ 124,   4,  10,   3  ! h2y10T-
+
+
+DETECTOR=14
+
+ROC=11
+
+SLOT=7
+  14,   1,   1,   0  ! hCER01
+  15,   1,   2,   0  ! hCER02
+
+
+DETECTOR=15
+
+ROC=11
+
+SLOT=3
+   0,   1,   1,   0  ! hA01+
+   1,   1,   2,   0  ! hA02+
+   2,   1,   3,   0  ! hA03+
+   3,   1,   4,   0  ! hA04+
+   4,   1,   5,   0  ! hA05+
+   5,   1,   6,   0  ! hA06+
+   6,   1,   7,   0  ! hA07+
+   7,   1,   8,   0  ! hA08+
+   8,   1,   9,   0  ! hA09+
+   9,   1,  10,   0  ! hA10+
+  10,   1,  11,   0  ! hA11+
+  11,   1,  12,   0  ! hA12+
+  12,   1,  13,   0  ! hA13+
+  13,   1,   1,   1  ! hA01-
+  14,   1,   2,   1  ! hA02-
+  15,   1,   3,   1  ! hA03-
+
+SLOT=4
+   0,   1,   4,   1  ! hA04-
+   1,   1,   5,   1  ! hA05-
+   2,   1,   6,   1  ! hA06-
+   3,   1,   7,   1  ! hA07-
+   4,   1,   8,   1  ! hA08-
+   5,   1,   9,   1  ! hA09-
+   6,   1,  10,   1  ! hA10-
+   7,   1,  11,   1  ! hA11-
+   8,   1,  12,   1  ! hA12-
+   9,   1,  13,   1  ! hA13-
+  10,   2,   1,   0  ! hB01+
+  11,   2,   2,   0  ! hB02+
+  12,   2,   3,   0  ! hB03+
+  13,   2,   4,   0  ! hB04+
+  14,   2,   5,   0  ! hB05+
+  15,   2,   6,   0  ! hB06+
+
+SLOT=5
+   0,   2,   7,   0  ! hB07+
+   1,   2,   8,   0  ! hB08+
+   2,   2,   9,   0  ! hB09+
+   3,   2,  10,   0  ! hB10+
+   4,   2,  11,   0  ! hB11+
+   5,   2,  12,   0  ! hB12+
+   6,   2,  13,   0  ! hB13+
+   7,   2,   1,   1  ! hB01-
+   8,   2,   2,   1  ! hB02-
+   9,   2,   3,   1  ! hB03-
+  10,   2,   4,   1  ! hB04-
+  11,   2,   5,   1  ! hB05-
+  12,   2,   6,   1  ! hB06-
+  13,   2,   7,   1  ! hB07-
+  14,   2,   8,   1  ! hB08-
+  15,   2,   9,   1  ! hB09-
+
+SLOT=6
+   0,   2,  10,   1  ! hB10-
+   1,   2,  11,   1  ! hB11-
+   2,   2,  12,   1  ! hB12-
+   3,   2,  13,   1  ! hB13-
+   4,   3,   1,   0  ! hC01+
+   5,   3,   2,   0  ! hC02+
+   6,   3,   3,   0  ! hC03+
+   7,   3,   4,   0  ! hC04+
+   8,   3,   5,   0  ! hC05+
+   9,   3,   6,   0  ! hC06+
+  10,   3,   7,   0  ! hC07+
+  11,   3,   8,   0  ! hC08+
+  12,   3,   9,   0  ! hC09+
+  13,   3,  10,   0  ! hC10+
+  14,   3,  11,   0  ! hC11+
+  15,   3,  12,   0  ! hC12+
+
+SLOT=7
+   0,   3,  13,   0  ! hC13+
+   1,   4,   1,   0  ! hD01+
+   2,   4,   2,   0  ! hD02+
+   3,   4,   3,   0  ! hD03+
+   4,   4,   4,   0  ! hD04+
+   5,   4,   5,   0  ! hD05+
+   6,   4,   6,   0  ! hD06+
+   7,   4,   7,   0  ! hD07+
+   8,   4,   8,   0  ! hD08+
+   9,   4,   9,   0  ! hD09+
+  10,   4,  10,   0  ! hD10+
+  11,   4,  11,   0  ! hD11+
+  12,   4,  12,   0  ! hD12+
+  13,   4,  13,   0  ! hD13+
diff --git a/MAPS/SHMS/DETEC/shms_stack.map b/MAPS/SHMS/DETEC/shms_stack.map
new file mode 100644
index 0000000000000000000000000000000000000000..c478db5a6dfa6556702bcc53622e07c0aed53be4
--- /dev/null
+++ b/MAPS/SHMS/DETEC/shms_stack.map
@@ -0,0 +1,2008 @@
+! TSHMS_ID=20      ::  ADC,TDC
+! PNGCER_ID=21     ::  ADC
+! PDC_ID=22        ::  TDC
+! PSCIN_ID=23      ::  ,ADC+,ADC-,TDC+,TDC-
+! PHGCER_ID=24     ::  ADC
+! PAERO_ID=25      ::  ,ADC+,ADC-
+! PCAL_ID=26       ::  ADC
+
+
+DETECTOR=20
+
+ROC=2
+
+SLOT=14
+   0,   1,   1,   0  ! pAERSUM
+   1,   1,   2,   0  ! pHGCERSUM
+   2,   1,   3,   0  ! pNGCERSUM
+
+SLOT=20
+  15,   2,   1,   1  ! pT1
+
+SLOT=19
+  31,   2,   2,   1  ! pT2
+  32,   2,   3,   1  ! p1X
+  33,   2,   4,   1  ! p1Y
+  34,   2,   5,   1  ! p2X
+  35,   2,   6,   1  ! p2Y
+  36,   2,   7,   1  ! p1T
+  37,   2,   8,   1  ! p2T
+  38,   2,   9,   1  ! pT3
+  39,   2,  10,   1  ! pAERSUM
+  40,   2,  11,   1  ! pHGCERSUM
+  41,   2,  12,   1  ! pNGCERSUM
+
+ROC=6
+
+SLOT=6
+  79,   2,  13,   1  ! pDCREF1
+
+SLOT=7
+  79,   2,  14,   1  ! pDCREF2
+
+SLOT=8
+  79,   2,  15,   1  ! pDCREF3
+
+SLOT=9
+  79,   2,  16,   1  ! pDCREF4
+
+SLOT=10
+  79,   2,  17,   1  ! pDCREF5
+
+SLOT=11
+  47,   2,  18,   1  ! pDCREF6
+
+SLOT=12
+  47,   2,  19,   1  ! pDCREF7
+
+SLOT=13
+  47,   2,  20,   1  ! pDCREF8
+
+SLOT=14
+  15,   2,  21,   1  ! pDCREF9
+
+SLOT=15
+  47,   2,  22,   1  ! pDCREF10
+
+
+DETECTOR=21
+
+ROC=2
+
+SLOT=13
+  12,   1,   1,   0  ! pNGCER01
+  13,   1,   2,   0  ! pNGCER02
+  14,   1,   3,   0  ! pNGCER03
+  15,   1,   4,   0  ! pNGCER04
+
+
+DETECTOR=22  ! SHMS chambers
+
+ROC=6
+
+SLOT=9
+REFCHAN=79
+  78,   1,   1  ! DC1, Plane U, wire 1
+  77,   1,   2  ! DC1, Plane U, wire 2
+  76,   1,   3  ! DC1, Plane U, wire 3
+  75,   1,   4  ! DC1, Plane U, wire 4
+  74,   1,   5  ! DC1, Plane U, wire 5
+  73,   1,   6  ! DC1, Plane U, wire 6
+  72,   1,   7  ! DC1, Plane U, wire 7
+  71,   1,   8  ! DC1, Plane U, wire 8
+  70,   1,   9  ! DC1, Plane U, wire 9
+  69,   1,  10  ! DC1, Plane U, wire 10
+  68,   1,  11  ! DC1, Plane U, wire 11
+  67,   1,  12  ! DC1, Plane U, wire 12
+  66,   1,  13  ! DC1, Plane U, wire 13
+  65,   1,  14  ! DC1, Plane U, wire 14
+  64,   1,  15  ! DC1, Plane U, wire 15
+
+SLOT=7
+REFCHAN=79
+  31,   1,  16  ! DC1, Plane U, wire 16
+  30,   1,  17  ! DC1, Plane U, wire 17
+  29,   1,  18  ! DC1, Plane U, wire 18
+  28,   1,  19  ! DC1, Plane U, wire 19
+  27,   1,  20  ! DC1, Plane U, wire 20
+  26,   1,  21  ! DC1, Plane U, wire 21
+  25,   1,  22  ! DC1, Plane U, wire 22
+  24,   1,  23  ! DC1, Plane U, wire 23
+  23,   1,  24  ! DC1, Plane U, wire 24
+  22,   1,  25  ! DC1, Plane U, wire 25
+  21,   1,  26  ! DC1, Plane U, wire 26
+  20,   1,  27  ! DC1, Plane U, wire 27
+  19,   1,  28  ! DC1, Plane U, wire 28
+  18,   1,  29  ! DC1, Plane U, wire 29
+  17,   1,  30  ! DC1, Plane U, wire 30
+  16,   1,  31  ! DC1, Plane U, wire 31
+
+SLOT=6
+REFCHAN=79
+  95,   1,  32  ! DC1, Plane U, wire 32
+  94,   1,  33  ! DC1, Plane U, wire 33
+  93,   1,  34  ! DC1, Plane U, wire 34
+  92,   1,  35  ! DC1, Plane U, wire 35
+  91,   1,  36  ! DC1, Plane U, wire 36
+  90,   1,  37  ! DC1, Plane U, wire 37
+  89,   1,  38  ! DC1, Plane U, wire 38
+  88,   1,  39  ! DC1, Plane U, wire 39
+  87,   1,  40  ! DC1, Plane U, wire 40
+  86,   1,  41  ! DC1, Plane U, wire 41
+  85,   1,  42  ! DC1, Plane U, wire 42
+  84,   1,  43  ! DC1, Plane U, wire 43
+  83,   1,  44  ! DC1, Plane U, wire 44
+  82,   1,  45  ! DC1, Plane U, wire 45
+  81,   1,  46  ! DC1, Plane U, wire 46
+  80,   1,  47  ! DC1, Plane U, wire 47
+  31,   1,  48  ! DC1, Plane U, wire 48
+  30,   1,  49  ! DC1, Plane U, wire 49
+  29,   1,  50  ! DC1, Plane U, wire 50
+  28,   1,  51  ! DC1, Plane U, wire 51
+  27,   1,  52  ! DC1, Plane U, wire 52
+  26,   1,  53  ! DC1, Plane U, wire 53
+  25,   1,  54  ! DC1, Plane U, wire 54
+  24,   1,  55  ! DC1, Plane U, wire 55
+  23,   1,  56  ! DC1, Plane U, wire 56
+  22,   1,  57  ! DC1, Plane U, wire 57
+  21,   1,  58  ! DC1, Plane U, wire 58
+  20,   1,  59  ! DC1, Plane U, wire 59
+  19,   1,  60  ! DC1, Plane U, wire 60
+  18,   1,  61  ! DC1, Plane U, wire 61
+  17,   1,  62  ! DC1, Plane U, wire 62
+  16,   1,  63  ! DC1, Plane U, wire 63
+
+SLOT=8
+REFCHAN=79
+ 112,   1,  64  ! DC1, Plane U, wire 64
+ 113,   1,  65  ! DC1, Plane U, wire 65
+ 114,   1,  66  ! DC1, Plane U, wire 66
+ 115,   1,  67  ! DC1, Plane U, wire 67
+ 116,   1,  68  ! DC1, Plane U, wire 68
+ 117,   1,  69  ! DC1, Plane U, wire 69
+ 118,   1,  70  ! DC1, Plane U, wire 70
+ 119,   1,  71  ! DC1, Plane U, wire 71
+ 120,   1,  72  ! DC1, Plane U, wire 72
+ 121,   1,  73  ! DC1, Plane U, wire 73
+ 122,   1,  74  ! DC1, Plane U, wire 74
+ 123,   1,  75  ! DC1, Plane U, wire 75
+ 124,   1,  76  ! DC1, Plane U, wire 76
+ 125,   1,  77  ! DC1, Plane U, wire 77
+ 126,   1,  78  ! DC1, Plane U, wire 78
+ 127,   1,  79  ! DC1, Plane U, wire 79
+  48,   1,  80  ! DC1, Plane U, wire 80
+  49,   1,  81  ! DC1, Plane U, wire 81
+  50,   1,  82  ! DC1, Plane U, wire 82
+  51,   1,  83  ! DC1, Plane U, wire 83
+  52,   1,  84  ! DC1, Plane U, wire 84
+  53,   1,  85  ! DC1, Plane U, wire 85
+  54,   1,  86  ! DC1, Plane U, wire 86
+  55,   1,  87  ! DC1, Plane U, wire 87
+  56,   1,  88  ! DC1, Plane U, wire 88
+  57,   1,  89  ! DC1, Plane U, wire 89
+  58,   1,  90  ! DC1, Plane U, wire 90
+  59,   1,  91  ! DC1, Plane U, wire 91
+  60,   1,  92  ! DC1, Plane U, wire 92
+  61,   1,  93  ! DC1, Plane U, wire 93
+  62,   1,  94  ! DC1, Plane U, wire 94
+  63,   1,  95  ! DC1, Plane U, wire 95
+
+SLOT=9
+REFCHAN=79
+ 112,   1,  96  ! DC1, Plane U, wire 96
+ 113,   1,  97  ! DC1, Plane U, wire 97
+ 114,   1,  98  ! DC1, Plane U, wire 98
+ 115,   1,  99  ! DC1, Plane U, wire 99
+ 116,   1, 100  ! DC1, Plane U, wire 100
+ 117,   1, 101  ! DC1, Plane U, wire 101
+ 118,   1, 102  ! DC1, Plane U, wire 102
+ 119,   1, 103  ! DC1, Plane U, wire 103
+ 120,   1, 104  ! DC1, Plane U, wire 104
+ 121,   1, 105  ! DC1, Plane U, wire 105
+ 122,   1, 106  ! DC1, Plane U, wire 106
+ 123,   1, 107  ! DC1, Plane U, wire 107
+
+SLOT=8
+REFCHAN=79
+  75,   2,   1  ! DC1, Plane U', wire 1
+  74,   2,   2  ! DC1, Plane U', wire 2
+  73,   2,   3  ! DC1, Plane U', wire 3
+  72,   2,   4  ! DC1, Plane U', wire 4
+  71,   2,   5  ! DC1, Plane U', wire 5
+  70,   2,   6  ! DC1, Plane U', wire 6
+  69,   2,   7  ! DC1, Plane U', wire 7
+  68,   2,   8  ! DC1, Plane U', wire 8
+  67,   2,   9  ! DC1, Plane U', wire 9
+  66,   2,  10  ! DC1, Plane U', wire 10
+  65,   2,  11  ! DC1, Plane U', wire 11
+  64,   2,  12  ! DC1, Plane U', wire 12
+
+SLOT=6
+REFCHAN=79
+ 127,   2,  13  ! DC1, Plane U', wire 13
+ 126,   2,  14  ! DC1, Plane U', wire 14
+ 125,   2,  15  ! DC1, Plane U', wire 15
+ 124,   2,  16  ! DC1, Plane U', wire 16
+ 123,   2,  17  ! DC1, Plane U', wire 17
+ 122,   2,  18  ! DC1, Plane U', wire 18
+ 121,   2,  19  ! DC1, Plane U', wire 19
+ 120,   2,  20  ! DC1, Plane U', wire 20
+ 119,   2,  21  ! DC1, Plane U', wire 21
+ 118,   2,  22  ! DC1, Plane U', wire 22
+ 117,   2,  23  ! DC1, Plane U', wire 23
+ 116,   2,  24  ! DC1, Plane U', wire 24
+ 115,   2,  25  ! DC1, Plane U', wire 25
+ 114,   2,  26  ! DC1, Plane U', wire 26
+ 113,   2,  27  ! DC1, Plane U', wire 27
+ 112,   2,  28  ! DC1, Plane U', wire 28
+  47,   2,  29  ! DC1, Plane U', wire 29
+  46,   2,  30  ! DC1, Plane U', wire 30
+  45,   2,  31  ! DC1, Plane U', wire 31
+  44,   2,  32  ! DC1, Plane U', wire 32
+  43,   2,  33  ! DC1, Plane U', wire 33
+  42,   2,  34  ! DC1, Plane U', wire 34
+  41,   2,  35  ! DC1, Plane U', wire 35
+  40,   2,  36  ! DC1, Plane U', wire 36
+  39,   2,  37  ! DC1, Plane U', wire 37
+  38,   2,  38  ! DC1, Plane U', wire 38
+  37,   2,  39  ! DC1, Plane U', wire 39
+  36,   2,  40  ! DC1, Plane U', wire 40
+  35,   2,  41  ! DC1, Plane U', wire 41
+  34,   2,  42  ! DC1, Plane U', wire 42
+  33,   2,  43  ! DC1, Plane U', wire 43
+  32,   2,  44  ! DC1, Plane U', wire 44
+
+SLOT=9
+REFCHAN=79
+   0,   2,  45  ! DC1, Plane U', wire 45
+   1,   2,  46  ! DC1, Plane U', wire 46
+   2,   2,  47  ! DC1, Plane U', wire 47
+   3,   2,  48  ! DC1, Plane U', wire 48
+   4,   2,  49  ! DC1, Plane U', wire 49
+   5,   2,  50  ! DC1, Plane U', wire 50
+   6,   2,  51  ! DC1, Plane U', wire 51
+   7,   2,  52  ! DC1, Plane U', wire 52
+   8,   2,  53  ! DC1, Plane U', wire 53
+   9,   2,  54  ! DC1, Plane U', wire 54
+  10,   2,  55  ! DC1, Plane U', wire 55
+  11,   2,  56  ! DC1, Plane U', wire 56
+  12,   2,  57  ! DC1, Plane U', wire 57
+  13,   2,  58  ! DC1, Plane U', wire 58
+  14,   2,  59  ! DC1, Plane U', wire 59
+  15,   2,  60  ! DC1, Plane U', wire 60
+
+SLOT=8
+REFCHAN=79
+  96,   2,  61  ! DC1, Plane U', wire 61
+  97,   2,  62  ! DC1, Plane U', wire 62
+  98,   2,  63  ! DC1, Plane U', wire 63
+  99,   2,  64  ! DC1, Plane U', wire 64
+ 100,   2,  65  ! DC1, Plane U', wire 65
+ 101,   2,  66  ! DC1, Plane U', wire 66
+ 102,   2,  67  ! DC1, Plane U', wire 67
+ 103,   2,  68  ! DC1, Plane U', wire 68
+ 104,   2,  69  ! DC1, Plane U', wire 69
+ 105,   2,  70  ! DC1, Plane U', wire 70
+ 106,   2,  71  ! DC1, Plane U', wire 71
+ 107,   2,  72  ! DC1, Plane U', wire 72
+ 108,   2,  73  ! DC1, Plane U', wire 73
+ 109,   2,  74  ! DC1, Plane U', wire 74
+ 110,   2,  75  ! DC1, Plane U', wire 75
+ 111,   2,  76  ! DC1, Plane U', wire 76
+
+SLOT=10
+REFCHAN=79
+  80,   2,  77  ! DC1, Plane U', wire 77
+  81,   2,  78  ! DC1, Plane U', wire 78
+  82,   2,  79  ! DC1, Plane U', wire 79
+  83,   2,  80  ! DC1, Plane U', wire 80
+  84,   2,  81  ! DC1, Plane U', wire 81
+  85,   2,  82  ! DC1, Plane U', wire 82
+  86,   2,  83  ! DC1, Plane U', wire 83
+  87,   2,  84  ! DC1, Plane U', wire 84
+  88,   2,  85  ! DC1, Plane U', wire 85
+  89,   2,  86  ! DC1, Plane U', wire 86
+  90,   2,  87  ! DC1, Plane U', wire 87
+  91,   2,  88  ! DC1, Plane U', wire 88
+  92,   2,  89  ! DC1, Plane U', wire 89
+  93,   2,  90  ! DC1, Plane U', wire 90
+  94,   2,  91  ! DC1, Plane U', wire 91
+  95,   2,  92  ! DC1, Plane U', wire 92
+  16,   2,  93  ! DC1, Plane U', wire 93
+  17,   2,  94  ! DC1, Plane U', wire 94
+  18,   2,  95  ! DC1, Plane U', wire 95
+  19,   2,  96  ! DC1, Plane U', wire 96
+  20,   2,  97  ! DC1, Plane U', wire 97
+  21,   2,  98  ! DC1, Plane U', wire 98
+  22,   2,  99  ! DC1, Plane U', wire 99
+  23,   2, 100  ! DC1, Plane U', wire 100
+  24,   2, 101  ! DC1, Plane U', wire 101
+  25,   2, 102  ! DC1, Plane U', wire 102
+  26,   2, 103  ! DC1, Plane U', wire 103
+  27,   2, 104  ! DC1, Plane U', wire 104
+  28,   2, 105  ! DC1, Plane U', wire 105
+  29,   2, 106  ! DC1, Plane U', wire 106
+  30,   2, 107  ! DC1, Plane U', wire 107
+
+SLOT=9
+REFCHAN=79
+  46,   5,   1  ! DC1, Plane V, wire 1
+  45,   5,   2  ! DC1, Plane V, wire 2
+  44,   5,   3  ! DC1, Plane V, wire 3
+  43,   5,   4  ! DC1, Plane V, wire 4
+  42,   5,   5  ! DC1, Plane V, wire 5
+  41,   5,   6  ! DC1, Plane V, wire 6
+  40,   5,   7  ! DC1, Plane V, wire 7
+  39,   5,   8  ! DC1, Plane V, wire 8
+  38,   5,   9  ! DC1, Plane V, wire 9
+  37,   5,  10  ! DC1, Plane V, wire 10
+  36,   5,  11  ! DC1, Plane V, wire 11
+  35,   5,  12  ! DC1, Plane V, wire 12
+  34,   5,  13  ! DC1, Plane V, wire 13
+  33,   5,  14  ! DC1, Plane V, wire 14
+  32,   5,  15  ! DC1, Plane V, wire 15
+
+SLOT=8
+REFCHAN=79
+  31,   5,  16  ! DC1, Plane V, wire 16
+  30,   5,  17  ! DC1, Plane V, wire 17
+  29,   5,  18  ! DC1, Plane V, wire 18
+  28,   5,  19  ! DC1, Plane V, wire 19
+  27,   5,  20  ! DC1, Plane V, wire 20
+  26,   5,  21  ! DC1, Plane V, wire 21
+  25,   5,  22  ! DC1, Plane V, wire 22
+  24,   5,  23  ! DC1, Plane V, wire 23
+  23,   5,  24  ! DC1, Plane V, wire 24
+  22,   5,  25  ! DC1, Plane V, wire 25
+  21,   5,  26  ! DC1, Plane V, wire 26
+  20,   5,  27  ! DC1, Plane V, wire 27
+  19,   5,  28  ! DC1, Plane V, wire 28
+  18,   5,  29  ! DC1, Plane V, wire 29
+  17,   5,  30  ! DC1, Plane V, wire 30
+  16,   5,  31  ! DC1, Plane V, wire 31
+
+SLOT=10
+REFCHAN=79
+  15,   5,  32  ! DC1, Plane V, wire 32
+  14,   5,  33  ! DC1, Plane V, wire 33
+  13,   5,  34  ! DC1, Plane V, wire 34
+  12,   5,  35  ! DC1, Plane V, wire 35
+  11,   5,  36  ! DC1, Plane V, wire 36
+  10,   5,  37  ! DC1, Plane V, wire 37
+   9,   5,  38  ! DC1, Plane V, wire 38
+   8,   5,  39  ! DC1, Plane V, wire 39
+   7,   5,  40  ! DC1, Plane V, wire 40
+   6,   5,  41  ! DC1, Plane V, wire 41
+   5,   5,  42  ! DC1, Plane V, wire 42
+   4,   5,  43  ! DC1, Plane V, wire 43
+   3,   5,  44  ! DC1, Plane V, wire 44
+   2,   5,  45  ! DC1, Plane V, wire 45
+   1,   5,  46  ! DC1, Plane V, wire 46
+   0,   5,  47  ! DC1, Plane V, wire 47
+
+SLOT=9
+REFCHAN=79
+  63,   5,  48  ! DC1, Plane V, wire 48
+  62,   5,  49  ! DC1, Plane V, wire 49
+  61,   5,  50  ! DC1, Plane V, wire 50
+  60,   5,  51  ! DC1, Plane V, wire 51
+  59,   5,  52  ! DC1, Plane V, wire 52
+  58,   5,  53  ! DC1, Plane V, wire 53
+  57,   5,  54  ! DC1, Plane V, wire 54
+  56,   5,  55  ! DC1, Plane V, wire 55
+  55,   5,  56  ! DC1, Plane V, wire 56
+  54,   5,  57  ! DC1, Plane V, wire 57
+  53,   5,  58  ! DC1, Plane V, wire 58
+  52,   5,  59  ! DC1, Plane V, wire 59
+  51,   5,  60  ! DC1, Plane V, wire 60
+  50,   5,  61  ! DC1, Plane V, wire 61
+  49,   5,  62  ! DC1, Plane V, wire 62
+  48,   5,  63  ! DC1, Plane V, wire 63
+
+SLOT=7
+REFCHAN=79
+  32,   5,  64  ! DC1, Plane V, wire 64
+  33,   5,  65  ! DC1, Plane V, wire 65
+  34,   5,  66  ! DC1, Plane V, wire 66
+  35,   5,  67  ! DC1, Plane V, wire 67
+  36,   5,  68  ! DC1, Plane V, wire 68
+  37,   5,  69  ! DC1, Plane V, wire 69
+  38,   5,  70  ! DC1, Plane V, wire 70
+  39,   5,  71  ! DC1, Plane V, wire 71
+  40,   5,  72  ! DC1, Plane V, wire 72
+  41,   5,  73  ! DC1, Plane V, wire 73
+  42,   5,  74  ! DC1, Plane V, wire 74
+  43,   5,  75  ! DC1, Plane V, wire 75
+  44,   5,  76  ! DC1, Plane V, wire 76
+  45,   5,  77  ! DC1, Plane V, wire 77
+  46,   5,  78  ! DC1, Plane V, wire 78
+  47,   5,  79  ! DC1, Plane V, wire 79
+  96,   5,  80  ! DC1, Plane V, wire 80
+  97,   5,  81  ! DC1, Plane V, wire 81
+  98,   5,  82  ! DC1, Plane V, wire 82
+  99,   5,  83  ! DC1, Plane V, wire 83
+ 100,   5,  84  ! DC1, Plane V, wire 84
+ 101,   5,  85  ! DC1, Plane V, wire 85
+ 102,   5,  86  ! DC1, Plane V, wire 86
+ 103,   5,  87  ! DC1, Plane V, wire 87
+ 104,   5,  88  ! DC1, Plane V, wire 88
+ 105,   5,  89  ! DC1, Plane V, wire 89
+ 106,   5,  90  ! DC1, Plane V, wire 90
+ 107,   5,  91  ! DC1, Plane V, wire 91
+ 108,   5,  92  ! DC1, Plane V, wire 92
+ 109,   5,  93  ! DC1, Plane V, wire 93
+ 110,   5,  94  ! DC1, Plane V, wire 94
+ 111,   5,  95  ! DC1, Plane V, wire 95
+  64,   5,  96  ! DC1, Plane V, wire 96
+  65,   5,  97  ! DC1, Plane V, wire 97
+  66,   5,  98  ! DC1, Plane V, wire 98
+  67,   5,  99  ! DC1, Plane V, wire 99
+  68,   5, 100  ! DC1, Plane V, wire 100
+  69,   5, 101  ! DC1, Plane V, wire 101
+  70,   5, 102  ! DC1, Plane V, wire 102
+  71,   5, 103  ! DC1, Plane V, wire 103
+  72,   5, 104  ! DC1, Plane V, wire 104
+  73,   5, 105  ! DC1, Plane V, wire 105
+  74,   5, 106  ! DC1, Plane V, wire 106
+  75,   5, 107  ! DC1, Plane V, wire 107
+
+SLOT=10
+REFCHAN=79
+  75,   6,   1  ! DC1, Plane V', wire 1
+  74,   6,   2  ! DC1, Plane V', wire 2
+  73,   6,   3  ! DC1, Plane V', wire 3
+  72,   6,   4  ! DC1, Plane V', wire 4
+  71,   6,   5  ! DC1, Plane V', wire 5
+  70,   6,   6  ! DC1, Plane V', wire 6
+  69,   6,   7  ! DC1, Plane V', wire 7
+  68,   6,   8  ! DC1, Plane V', wire 8
+  67,   6,   9  ! DC1, Plane V', wire 9
+  66,   6,  10  ! DC1, Plane V', wire 10
+  65,   6,  11  ! DC1, Plane V', wire 11
+  64,   6,  12  ! DC1, Plane V', wire 12
+  47,   6,  13  ! DC1, Plane V', wire 13
+  46,   6,  14  ! DC1, Plane V', wire 14
+  45,   6,  15  ! DC1, Plane V', wire 15
+  44,   6,  16  ! DC1, Plane V', wire 16
+  43,   6,  17  ! DC1, Plane V', wire 17
+  42,   6,  18  ! DC1, Plane V', wire 18
+  41,   6,  19  ! DC1, Plane V', wire 19
+  40,   6,  20  ! DC1, Plane V', wire 20
+  39,   6,  21  ! DC1, Plane V', wire 21
+  38,   6,  22  ! DC1, Plane V', wire 22
+  37,   6,  23  ! DC1, Plane V', wire 23
+  36,   6,  24  ! DC1, Plane V', wire 24
+  35,   6,  25  ! DC1, Plane V', wire 25
+  34,   6,  26  ! DC1, Plane V', wire 26
+  33,   6,  27  ! DC1, Plane V', wire 27
+  32,   6,  28  ! DC1, Plane V', wire 28
+
+SLOT=9
+REFCHAN=79
+ 111,   6,  29  ! DC1, Plane V', wire 29
+ 110,   6,  30  ! DC1, Plane V', wire 30
+ 109,   6,  31  ! DC1, Plane V', wire 31
+ 108,   6,  32  ! DC1, Plane V', wire 32
+ 107,   6,  33  ! DC1, Plane V', wire 33
+ 106,   6,  34  ! DC1, Plane V', wire 34
+ 105,   6,  35  ! DC1, Plane V', wire 35
+ 104,   6,  36  ! DC1, Plane V', wire 36
+ 103,   6,  37  ! DC1, Plane V', wire 37
+ 102,   6,  38  ! DC1, Plane V', wire 38
+ 101,   6,  39  ! DC1, Plane V', wire 39
+ 100,   6,  40  ! DC1, Plane V', wire 40
+  99,   6,  41  ! DC1, Plane V', wire 41
+  98,   6,  42  ! DC1, Plane V', wire 42
+  97,   6,  43  ! DC1, Plane V', wire 43
+  96,   6,  44  ! DC1, Plane V', wire 44
+
+SLOT=8
+REFCHAN=79
+  80,   6,  45  ! DC1, Plane V', wire 45
+  81,   6,  46  ! DC1, Plane V', wire 46
+  82,   6,  47  ! DC1, Plane V', wire 47
+  83,   6,  48  ! DC1, Plane V', wire 48
+  84,   6,  49  ! DC1, Plane V', wire 49
+  85,   6,  50  ! DC1, Plane V', wire 50
+  86,   6,  51  ! DC1, Plane V', wire 51
+  87,   6,  52  ! DC1, Plane V', wire 52
+  88,   6,  53  ! DC1, Plane V', wire 53
+  89,   6,  54  ! DC1, Plane V', wire 54
+  90,   6,  55  ! DC1, Plane V', wire 55
+  91,   6,  56  ! DC1, Plane V', wire 56
+  92,   6,  57  ! DC1, Plane V', wire 57
+  93,   6,  58  ! DC1, Plane V', wire 58
+  94,   6,  59  ! DC1, Plane V', wire 59
+  95,   6,  60  ! DC1, Plane V', wire 60
+
+SLOT=7
+REFCHAN=79
+ 112,   6,  61  ! DC1, Plane V', wire 61
+ 113,   6,  62  ! DC1, Plane V', wire 62
+ 114,   6,  63  ! DC1, Plane V', wire 63
+ 115,   6,  64  ! DC1, Plane V', wire 64
+ 116,   6,  65  ! DC1, Plane V', wire 65
+ 117,   6,  66  ! DC1, Plane V', wire 66
+ 118,   6,  67  ! DC1, Plane V', wire 67
+ 119,   6,  68  ! DC1, Plane V', wire 68
+ 120,   6,  69  ! DC1, Plane V', wire 69
+ 121,   6,  70  ! DC1, Plane V', wire 70
+ 122,   6,  71  ! DC1, Plane V', wire 71
+ 123,   6,  72  ! DC1, Plane V', wire 72
+ 124,   6,  73  ! DC1, Plane V', wire 73
+ 125,   6,  74  ! DC1, Plane V', wire 74
+ 126,   6,  75  ! DC1, Plane V', wire 75
+ 127,   6,  76  ! DC1, Plane V', wire 76
+  80,   6,  77  ! DC1, Plane V', wire 77
+  81,   6,  78  ! DC1, Plane V', wire 78
+  82,   6,  79  ! DC1, Plane V', wire 79
+  83,   6,  80  ! DC1, Plane V', wire 80
+  84,   6,  81  ! DC1, Plane V', wire 81
+  85,   6,  82  ! DC1, Plane V', wire 82
+  86,   6,  83  ! DC1, Plane V', wire 83
+  87,   6,  84  ! DC1, Plane V', wire 84
+  88,   6,  85  ! DC1, Plane V', wire 85
+  89,   6,  86  ! DC1, Plane V', wire 86
+  90,   6,  87  ! DC1, Plane V', wire 87
+  91,   6,  88  ! DC1, Plane V', wire 88
+  92,   6,  89  ! DC1, Plane V', wire 89
+  93,   6,  90  ! DC1, Plane V', wire 90
+  94,   6,  91  ! DC1, Plane V', wire 91
+  95,   6,  92  ! DC1, Plane V', wire 92
+
+SLOT=6
+REFCHAN=79
+  64,   6,  93  ! DC1, Plane V', wire 93
+  65,   6,  94  ! DC1, Plane V', wire 94
+  66,   6,  95  ! DC1, Plane V', wire 95
+  67,   6,  96  ! DC1, Plane V', wire 96
+  68,   6,  97  ! DC1, Plane V', wire 97
+  69,   6,  98  ! DC1, Plane V', wire 98
+  70,   6,  99  ! DC1, Plane V', wire 99
+  71,   6, 100  ! DC1, Plane V', wire 100
+  72,   6, 101  ! DC1, Plane V', wire 101
+  73,   6, 102  ! DC1, Plane V', wire 102
+  74,   6, 103  ! DC1, Plane V', wire 103
+  75,   6, 104  ! DC1, Plane V', wire 104
+  76,   6, 105  ! DC1, Plane V', wire 105
+  77,   6, 106  ! DC1, Plane V', wire 106
+  78,   6, 107  ! DC1, Plane V', wire 107
+
+SLOT=8
+REFCHAN=79
+  15,   3,   1  ! DC1, Plane X, wire 1
+  14,   3,   2  ! DC1, Plane X, wire 2
+  13,   3,   3  ! DC1, Plane X, wire 3
+  12,   3,   4  ! DC1, Plane X, wire 4
+  11,   3,   5  ! DC1, Plane X, wire 5
+  10,   3,   6  ! DC1, Plane X, wire 6
+   9,   3,   7  ! DC1, Plane X, wire 7
+   8,   3,   8  ! DC1, Plane X, wire 8
+   7,   3,   9  ! DC1, Plane X, wire 9
+   6,   3,  10  ! DC1, Plane X, wire 10
+   5,   3,  11  ! DC1, Plane X, wire 11
+   4,   3,  12  ! DC1, Plane X, wire 12
+   3,   3,  13  ! DC1, Plane X, wire 13
+   2,   3,  14  ! DC1, Plane X, wire 14
+   1,   3,  15  ! DC1, Plane X, wire 15
+   0,   3,  16  ! DC1, Plane X, wire 16
+
+SLOT=7
+REFCHAN=79
+  63,   3,  17  ! DC1, Plane X, wire 17
+  62,   3,  18  ! DC1, Plane X, wire 18
+  61,   3,  19  ! DC1, Plane X, wire 19
+  60,   3,  20  ! DC1, Plane X, wire 20
+  59,   3,  21  ! DC1, Plane X, wire 21
+  58,   3,  22  ! DC1, Plane X, wire 22
+  57,   3,  23  ! DC1, Plane X, wire 23
+  56,   3,  24  ! DC1, Plane X, wire 24
+  55,   3,  25  ! DC1, Plane X, wire 25
+  54,   3,  26  ! DC1, Plane X, wire 26
+  53,   3,  27  ! DC1, Plane X, wire 27
+  52,   3,  28  ! DC1, Plane X, wire 28
+  51,   3,  29  ! DC1, Plane X, wire 29
+  50,   3,  30  ! DC1, Plane X, wire 30
+  49,   3,  31  ! DC1, Plane X, wire 31
+  48,   3,  32  ! DC1, Plane X, wire 32
+
+SLOT=6
+REFCHAN=79
+  63,   3,  33  ! DC1, Plane X, wire 33
+  62,   3,  34  ! DC1, Plane X, wire 34
+  61,   3,  35  ! DC1, Plane X, wire 35
+  60,   3,  36  ! DC1, Plane X, wire 36
+  59,   3,  37  ! DC1, Plane X, wire 37
+  58,   3,  38  ! DC1, Plane X, wire 38
+  57,   3,  39  ! DC1, Plane X, wire 39
+  56,   3,  40  ! DC1, Plane X, wire 40
+  55,   3,  41  ! DC1, Plane X, wire 41
+  54,   3,  42  ! DC1, Plane X, wire 42
+  53,   3,  43  ! DC1, Plane X, wire 43
+  52,   3,  44  ! DC1, Plane X, wire 44
+  51,   3,  45  ! DC1, Plane X, wire 45
+  50,   3,  46  ! DC1, Plane X, wire 46
+  49,   3,  47  ! DC1, Plane X, wire 47
+  48,   3,  48  ! DC1, Plane X, wire 48
+
+SLOT=10
+REFCHAN=79
+  48,   3,  49  ! DC1, Plane X, wire 49
+  49,   3,  50  ! DC1, Plane X, wire 50
+  50,   3,  51  ! DC1, Plane X, wire 51
+  51,   3,  52  ! DC1, Plane X, wire 52
+  52,   3,  53  ! DC1, Plane X, wire 53
+  53,   3,  54  ! DC1, Plane X, wire 54
+  54,   3,  55  ! DC1, Plane X, wire 55
+  55,   3,  56  ! DC1, Plane X, wire 56
+  56,   3,  57  ! DC1, Plane X, wire 57
+  57,   3,  58  ! DC1, Plane X, wire 58
+  58,   3,  59  ! DC1, Plane X, wire 59
+  59,   3,  60  ! DC1, Plane X, wire 60
+  60,   3,  61  ! DC1, Plane X, wire 61
+  61,   3,  62  ! DC1, Plane X, wire 62
+  62,   3,  63  ! DC1, Plane X, wire 63
+  63,   3,  64  ! DC1, Plane X, wire 64
+
+SLOT=9
+REFCHAN=79
+  80,   3,  65  ! DC1, Plane X, wire 65
+  81,   3,  66  ! DC1, Plane X, wire 66
+  82,   3,  67  ! DC1, Plane X, wire 67
+  83,   3,  68  ! DC1, Plane X, wire 68
+  84,   3,  69  ! DC1, Plane X, wire 69
+  85,   3,  70  ! DC1, Plane X, wire 70
+  86,   3,  71  ! DC1, Plane X, wire 71
+  87,   3,  72  ! DC1, Plane X, wire 72
+  88,   3,  73  ! DC1, Plane X, wire 73
+  89,   3,  74  ! DC1, Plane X, wire 74
+  90,   3,  75  ! DC1, Plane X, wire 75
+  91,   3,  76  ! DC1, Plane X, wire 76
+  92,   3,  77  ! DC1, Plane X, wire 77
+  93,   3,  78  ! DC1, Plane X, wire 78
+  94,   3,  79  ! DC1, Plane X, wire 79
+  30,   4,   1  ! DC1, Plane X', wire 1
+  29,   4,   2  ! DC1, Plane X', wire 2
+  28,   4,   3  ! DC1, Plane X', wire 3
+  27,   4,   4  ! DC1, Plane X', wire 4
+  26,   4,   5  ! DC1, Plane X', wire 5
+  25,   4,   6  ! DC1, Plane X', wire 6
+  24,   4,   7  ! DC1, Plane X', wire 7
+  23,   4,   8  ! DC1, Plane X', wire 8
+  22,   4,   9  ! DC1, Plane X', wire 9
+  21,   4,  10  ! DC1, Plane X', wire 10
+  20,   4,  11  ! DC1, Plane X', wire 11
+  19,   4,  12  ! DC1, Plane X', wire 12
+  18,   4,  13  ! DC1, Plane X', wire 13
+  17,   4,  14  ! DC1, Plane X', wire 14
+  16,   4,  15  ! DC1, Plane X', wire 15
+
+SLOT=8
+REFCHAN=79
+  47,   4,  16  ! DC1, Plane X', wire 16
+  46,   4,  17  ! DC1, Plane X', wire 17
+  45,   4,  18  ! DC1, Plane X', wire 18
+  44,   4,  19  ! DC1, Plane X', wire 19
+  43,   4,  20  ! DC1, Plane X', wire 20
+  42,   4,  21  ! DC1, Plane X', wire 21
+  41,   4,  22  ! DC1, Plane X', wire 22
+  40,   4,  23  ! DC1, Plane X', wire 23
+  39,   4,  24  ! DC1, Plane X', wire 24
+  38,   4,  25  ! DC1, Plane X', wire 25
+  37,   4,  26  ! DC1, Plane X', wire 26
+  36,   4,  27  ! DC1, Plane X', wire 27
+  35,   4,  28  ! DC1, Plane X', wire 28
+  34,   4,  29  ! DC1, Plane X', wire 29
+  33,   4,  30  ! DC1, Plane X', wire 30
+  32,   4,  31  ! DC1, Plane X', wire 31
+
+SLOT=7
+REFCHAN=79
+   0,   4,  32  ! DC1, Plane X', wire 32
+   1,   4,  33  ! DC1, Plane X', wire 33
+   2,   4,  34  ! DC1, Plane X', wire 34
+   3,   4,  35  ! DC1, Plane X', wire 35
+   4,   4,  36  ! DC1, Plane X', wire 36
+   5,   4,  37  ! DC1, Plane X', wire 37
+   6,   4,  38  ! DC1, Plane X', wire 38
+   7,   4,  39  ! DC1, Plane X', wire 39
+   8,   4,  40  ! DC1, Plane X', wire 40
+   9,   4,  41  ! DC1, Plane X', wire 41
+  10,   4,  42  ! DC1, Plane X', wire 42
+  11,   4,  43  ! DC1, Plane X', wire 43
+  12,   4,  44  ! DC1, Plane X', wire 44
+  13,   4,  45  ! DC1, Plane X', wire 45
+  14,   4,  46  ! DC1, Plane X', wire 46
+  15,   4,  47  ! DC1, Plane X', wire 47
+
+SLOT=6
+REFCHAN=79
+  96,   4,  48  ! DC1, Plane X', wire 48
+  97,   4,  49  ! DC1, Plane X', wire 49
+  98,   4,  50  ! DC1, Plane X', wire 50
+  99,   4,  51  ! DC1, Plane X', wire 51
+ 100,   4,  52  ! DC1, Plane X', wire 52
+ 101,   4,  53  ! DC1, Plane X', wire 53
+ 102,   4,  54  ! DC1, Plane X', wire 54
+ 103,   4,  55  ! DC1, Plane X', wire 55
+ 104,   4,  56  ! DC1, Plane X', wire 56
+ 105,   4,  57  ! DC1, Plane X', wire 57
+ 106,   4,  58  ! DC1, Plane X', wire 58
+ 107,   4,  59  ! DC1, Plane X', wire 59
+ 108,   4,  60  ! DC1, Plane X', wire 60
+ 109,   4,  61  ! DC1, Plane X', wire 61
+ 110,   4,  62  ! DC1, Plane X', wire 62
+ 111,   4,  63  ! DC1, Plane X', wire 63
+   0,   4,  64  ! DC1, Plane X', wire 64
+   1,   4,  65  ! DC1, Plane X', wire 65
+   2,   4,  66  ! DC1, Plane X', wire 66
+   3,   4,  67  ! DC1, Plane X', wire 67
+   4,   4,  68  ! DC1, Plane X', wire 68
+   5,   4,  69  ! DC1, Plane X', wire 69
+   6,   4,  70  ! DC1, Plane X', wire 70
+   7,   4,  71  ! DC1, Plane X', wire 71
+   8,   4,  72  ! DC1, Plane X', wire 72
+   9,   4,  73  ! DC1, Plane X', wire 73
+  10,   4,  74  ! DC1, Plane X', wire 74
+  11,   4,  75  ! DC1, Plane X', wire 75
+  12,   4,  76  ! DC1, Plane X', wire 76
+  13,   4,  77  ! DC1, Plane X', wire 77
+  14,   4,  78  ! DC1, Plane X', wire 78
+  15,   4,  79  ! DC1, Plane X', wire 79
+
+SLOT=14
+REFCHAN=15
+  46,  12,   1  ! DC2, Plane U, wire 1
+  45,  12,   2  ! DC2, Plane U, wire 2
+  44,  12,   3  ! DC2, Plane U, wire 3
+  43,  12,   4  ! DC2, Plane U, wire 4
+  42,  12,   5  ! DC2, Plane U, wire 5
+  41,  12,   6  ! DC2, Plane U, wire 6
+  40,  12,   7  ! DC2, Plane U, wire 7
+  39,  12,   8  ! DC2, Plane U, wire 8
+  38,  12,   9  ! DC2, Plane U, wire 9
+  37,  12,  10  ! DC2, Plane U, wire 10
+  36,  12,  11  ! DC2, Plane U, wire 11
+  35,  12,  12  ! DC2, Plane U, wire 12
+  34,  12,  13  ! DC2, Plane U, wire 13
+  33,  12,  14  ! DC2, Plane U, wire 14
+  32,  12,  15  ! DC2, Plane U, wire 15
+
+SLOT=11
+REFCHAN=47
+ 127,  12,  16  ! DC2, Plane U, wire 16
+ 126,  12,  17  ! DC2, Plane U, wire 17
+ 125,  12,  18  ! DC2, Plane U, wire 18
+ 124,  12,  19  ! DC2, Plane U, wire 19
+ 123,  12,  20  ! DC2, Plane U, wire 20
+ 122,  12,  21  ! DC2, Plane U, wire 21
+ 121,  12,  22  ! DC2, Plane U, wire 22
+ 120,  12,  23  ! DC2, Plane U, wire 23
+ 119,  12,  24  ! DC2, Plane U, wire 24
+ 118,  12,  25  ! DC2, Plane U, wire 25
+ 117,  12,  26  ! DC2, Plane U, wire 26
+ 116,  12,  27  ! DC2, Plane U, wire 27
+ 115,  12,  28  ! DC2, Plane U, wire 28
+ 114,  12,  29  ! DC2, Plane U, wire 29
+ 113,  12,  30  ! DC2, Plane U, wire 30
+ 112,  12,  31  ! DC2, Plane U, wire 31
+  63,  12,  32  ! DC2, Plane U, wire 32
+  62,  12,  33  ! DC2, Plane U, wire 33
+  61,  12,  34  ! DC2, Plane U, wire 34
+  60,  12,  35  ! DC2, Plane U, wire 35
+  59,  12,  36  ! DC2, Plane U, wire 36
+  58,  12,  37  ! DC2, Plane U, wire 37
+  57,  12,  38  ! DC2, Plane U, wire 38
+  56,  12,  39  ! DC2, Plane U, wire 39
+  55,  12,  40  ! DC2, Plane U, wire 40
+  54,  12,  41  ! DC2, Plane U, wire 41
+  53,  12,  42  ! DC2, Plane U, wire 42
+  52,  12,  43  ! DC2, Plane U, wire 43
+  51,  12,  44  ! DC2, Plane U, wire 44
+  50,  12,  45  ! DC2, Plane U, wire 45
+  49,  12,  46  ! DC2, Plane U, wire 46
+  48,  12,  47  ! DC2, Plane U, wire 47
+
+SLOT=10
+REFCHAN=79
+ 127,  12,  48  ! DC2, Plane U, wire 48
+ 126,  12,  49  ! DC2, Plane U, wire 49
+ 125,  12,  50  ! DC2, Plane U, wire 50
+ 124,  12,  51  ! DC2, Plane U, wire 51
+ 123,  12,  52  ! DC2, Plane U, wire 52
+ 122,  12,  53  ! DC2, Plane U, wire 53
+ 121,  12,  54  ! DC2, Plane U, wire 54
+ 120,  12,  55  ! DC2, Plane U, wire 55
+ 119,  12,  56  ! DC2, Plane U, wire 56
+ 118,  12,  57  ! DC2, Plane U, wire 57
+ 117,  12,  58  ! DC2, Plane U, wire 58
+ 116,  12,  59  ! DC2, Plane U, wire 59
+ 115,  12,  60  ! DC2, Plane U, wire 60
+ 114,  12,  61  ! DC2, Plane U, wire 61
+ 113,  12,  62  ! DC2, Plane U, wire 62
+ 112,  12,  63  ! DC2, Plane U, wire 63
+
+SLOT=13
+REFCHAN=47
+  80,  12,  64  ! DC2, Plane U, wire 64
+  81,  12,  65  ! DC2, Plane U, wire 65
+  82,  12,  66  ! DC2, Plane U, wire 66
+  83,  12,  67  ! DC2, Plane U, wire 67
+  84,  12,  68  ! DC2, Plane U, wire 68
+  85,  12,  69  ! DC2, Plane U, wire 69
+  86,  12,  70  ! DC2, Plane U, wire 70
+  87,  12,  71  ! DC2, Plane U, wire 71
+  88,  12,  72  ! DC2, Plane U, wire 72
+  89,  12,  73  ! DC2, Plane U, wire 73
+  90,  12,  74  ! DC2, Plane U, wire 74
+  91,  12,  75  ! DC2, Plane U, wire 75
+  92,  12,  76  ! DC2, Plane U, wire 76
+  93,  12,  77  ! DC2, Plane U, wire 77
+  94,  12,  78  ! DC2, Plane U, wire 78
+  95,  12,  79  ! DC2, Plane U, wire 79
+  16,  12,  80  ! DC2, Plane U, wire 80
+  17,  12,  81  ! DC2, Plane U, wire 81
+  18,  12,  82  ! DC2, Plane U, wire 82
+  19,  12,  83  ! DC2, Plane U, wire 83
+  20,  12,  84  ! DC2, Plane U, wire 84
+  21,  12,  85  ! DC2, Plane U, wire 85
+  22,  12,  86  ! DC2, Plane U, wire 86
+  23,  12,  87  ! DC2, Plane U, wire 87
+  24,  12,  88  ! DC2, Plane U, wire 88
+  25,  12,  89  ! DC2, Plane U, wire 89
+  26,  12,  90  ! DC2, Plane U, wire 90
+  27,  12,  91  ! DC2, Plane U, wire 91
+  28,  12,  92  ! DC2, Plane U, wire 92
+  29,  12,  93  ! DC2, Plane U, wire 93
+  30,  12,  94  ! DC2, Plane U, wire 94
+  31,  12,  95  ! DC2, Plane U, wire 95
+
+SLOT=14
+REFCHAN=15
+  80,  12,  96  ! DC2, Plane U, wire 96
+  81,  12,  97  ! DC2, Plane U, wire 97
+  82,  12,  98  ! DC2, Plane U, wire 98
+  83,  12,  99  ! DC2, Plane U, wire 99
+  84,  12, 100  ! DC2, Plane U, wire 100
+  85,  12, 101  ! DC2, Plane U, wire 101
+  86,  12, 102  ! DC2, Plane U, wire 102
+  87,  12, 103  ! DC2, Plane U, wire 103
+  88,  12, 104  ! DC2, Plane U, wire 104
+  89,  12, 105  ! DC2, Plane U, wire 105
+  90,  12, 106  ! DC2, Plane U, wire 106
+  91,  12, 107  ! DC2, Plane U, wire 107
+
+SLOT=13
+REFCHAN=47
+  43,  11,   1  ! DC2, Plane U', wire 1
+  42,  11,   2  ! DC2, Plane U', wire 2
+  41,  11,   3  ! DC2, Plane U', wire 3
+  40,  11,   4  ! DC2, Plane U', wire 4
+  39,  11,   5  ! DC2, Plane U', wire 5
+  38,  11,   6  ! DC2, Plane U', wire 6
+  37,  11,   7  ! DC2, Plane U', wire 7
+  36,  11,   8  ! DC2, Plane U', wire 8
+  35,  11,   9  ! DC2, Plane U', wire 9
+  34,  11,  10  ! DC2, Plane U', wire 10
+  33,  11,  11  ! DC2, Plane U', wire 11
+  32,  11,  12  ! DC2, Plane U', wire 12
+
+SLOT=11
+REFCHAN=47
+  95,  11,  13  ! DC2, Plane U', wire 13
+  94,  11,  14  ! DC2, Plane U', wire 14
+  93,  11,  15  ! DC2, Plane U', wire 15
+  92,  11,  16  ! DC2, Plane U', wire 16
+  91,  11,  17  ! DC2, Plane U', wire 17
+  90,  11,  18  ! DC2, Plane U', wire 18
+  89,  11,  19  ! DC2, Plane U', wire 19
+  88,  11,  20  ! DC2, Plane U', wire 20
+  87,  11,  21  ! DC2, Plane U', wire 21
+  86,  11,  22  ! DC2, Plane U', wire 22
+  85,  11,  23  ! DC2, Plane U', wire 23
+  84,  11,  24  ! DC2, Plane U', wire 24
+  83,  11,  25  ! DC2, Plane U', wire 25
+  82,  11,  26  ! DC2, Plane U', wire 26
+  81,  11,  27  ! DC2, Plane U', wire 27
+  80,  11,  28  ! DC2, Plane U', wire 28
+  15,  11,  29  ! DC2, Plane U', wire 29
+  14,  11,  30  ! DC2, Plane U', wire 30
+  13,  11,  31  ! DC2, Plane U', wire 31
+  12,  11,  32  ! DC2, Plane U', wire 32
+  11,  11,  33  ! DC2, Plane U', wire 33
+  10,  11,  34  ! DC2, Plane U', wire 34
+   9,  11,  35  ! DC2, Plane U', wire 35
+   8,  11,  36  ! DC2, Plane U', wire 36
+   7,  11,  37  ! DC2, Plane U', wire 37
+   6,  11,  38  ! DC2, Plane U', wire 38
+   5,  11,  39  ! DC2, Plane U', wire 39
+   4,  11,  40  ! DC2, Plane U', wire 40
+   3,  11,  41  ! DC2, Plane U', wire 41
+   2,  11,  42  ! DC2, Plane U', wire 42
+   1,  11,  43  ! DC2, Plane U', wire 43
+   0,  11,  44  ! DC2, Plane U', wire 44
+
+SLOT=13
+REFCHAN=47
+  96,  11,  45  ! DC2, Plane U', wire 45
+  97,  11,  46  ! DC2, Plane U', wire 46
+  98,  11,  47  ! DC2, Plane U', wire 47
+  99,  11,  48  ! DC2, Plane U', wire 48
+ 100,  11,  49  ! DC2, Plane U', wire 49
+ 101,  11,  50  ! DC2, Plane U', wire 50
+ 102,  11,  51  ! DC2, Plane U', wire 51
+ 103,  11,  52  ! DC2, Plane U', wire 52
+ 104,  11,  53  ! DC2, Plane U', wire 53
+ 105,  11,  54  ! DC2, Plane U', wire 54
+ 106,  11,  55  ! DC2, Plane U', wire 55
+ 107,  11,  56  ! DC2, Plane U', wire 56
+ 108,  11,  57  ! DC2, Plane U', wire 57
+ 109,  11,  58  ! DC2, Plane U', wire 58
+ 110,  11,  59  ! DC2, Plane U', wire 59
+ 111,  11,  60  ! DC2, Plane U', wire 60
+  64,  11,  61  ! DC2, Plane U', wire 61
+  65,  11,  62  ! DC2, Plane U', wire 62
+  66,  11,  63  ! DC2, Plane U', wire 63
+  67,  11,  64  ! DC2, Plane U', wire 64
+  68,  11,  65  ! DC2, Plane U', wire 65
+  69,  11,  66  ! DC2, Plane U', wire 66
+  70,  11,  67  ! DC2, Plane U', wire 67
+  71,  11,  68  ! DC2, Plane U', wire 68
+  72,  11,  69  ! DC2, Plane U', wire 69
+  73,  11,  70  ! DC2, Plane U', wire 70
+  74,  11,  71  ! DC2, Plane U', wire 71
+  75,  11,  72  ! DC2, Plane U', wire 72
+  76,  11,  73  ! DC2, Plane U', wire 73
+  77,  11,  74  ! DC2, Plane U', wire 74
+  78,  11,  75  ! DC2, Plane U', wire 75
+  79,  11,  76  ! DC2, Plane U', wire 76
+
+SLOT=15
+REFCHAN=47
+  48,  11,  77  ! DC2, Plane U', wire 77
+  49,  11,  78  ! DC2, Plane U', wire 78
+  50,  11,  79  ! DC2, Plane U', wire 79
+  51,  11,  80  ! DC2, Plane U', wire 80
+  52,  11,  81  ! DC2, Plane U', wire 81
+  53,  11,  82  ! DC2, Plane U', wire 82
+  54,  11,  83  ! DC2, Plane U', wire 83
+  55,  11,  84  ! DC2, Plane U', wire 84
+  56,  11,  85  ! DC2, Plane U', wire 85
+  57,  11,  86  ! DC2, Plane U', wire 86
+  58,  11,  87  ! DC2, Plane U', wire 87
+  59,  11,  88  ! DC2, Plane U', wire 88
+  60,  11,  89  ! DC2, Plane U', wire 89
+  61,  11,  90  ! DC2, Plane U', wire 90
+  62,  11,  91  ! DC2, Plane U', wire 91
+  63,  11,  92  ! DC2, Plane U', wire 92
+
+SLOT=14
+REFCHAN=15
+ 112,  11,  93  ! DC2, Plane U', wire 93
+ 113,  11,  94  ! DC2, Plane U', wire 94
+ 114,  11,  95  ! DC2, Plane U', wire 95
+ 115,  11,  96  ! DC2, Plane U', wire 96
+ 116,  11,  97  ! DC2, Plane U', wire 97
+ 117,  11,  98  ! DC2, Plane U', wire 98
+ 118,  11,  99  ! DC2, Plane U', wire 99
+ 119,  11, 100  ! DC2, Plane U', wire 100
+ 120,  11, 101  ! DC2, Plane U', wire 101
+ 121,  11, 102  ! DC2, Plane U', wire 102
+ 122,  11, 103  ! DC2, Plane U', wire 103
+ 123,  11, 104  ! DC2, Plane U', wire 104
+ 124,  11, 105  ! DC2, Plane U', wire 105
+ 125,  11, 106  ! DC2, Plane U', wire 106
+ 126,  11, 107  ! DC2, Plane U', wire 107
+  14,   8,   1  ! DC2, Plane V, wire 1
+  13,   8,   2  ! DC2, Plane V, wire 2
+  12,   8,   3  ! DC2, Plane V, wire 3
+  11,   8,   4  ! DC2, Plane V, wire 4
+  10,   8,   5  ! DC2, Plane V, wire 5
+   9,   8,   6  ! DC2, Plane V, wire 6
+   8,   8,   7  ! DC2, Plane V, wire 7
+   7,   8,   8  ! DC2, Plane V, wire 8
+   6,   8,   9  ! DC2, Plane V, wire 9
+   5,   8,  10  ! DC2, Plane V, wire 10
+   4,   8,  11  ! DC2, Plane V, wire 11
+   3,   8,  12  ! DC2, Plane V, wire 12
+   2,   8,  13  ! DC2, Plane V, wire 13
+   1,   8,  14  ! DC2, Plane V, wire 14
+   0,   8,  15  ! DC2, Plane V, wire 15
+
+SLOT=12
+REFCHAN=47
+ 127,   8,  16  ! DC2, Plane V, wire 16
+ 126,   8,  17  ! DC2, Plane V, wire 17
+ 125,   8,  18  ! DC2, Plane V, wire 18
+ 124,   8,  19  ! DC2, Plane V, wire 19
+ 123,   8,  20  ! DC2, Plane V, wire 20
+ 122,   8,  21  ! DC2, Plane V, wire 21
+ 121,   8,  22  ! DC2, Plane V, wire 22
+ 120,   8,  23  ! DC2, Plane V, wire 23
+ 119,   8,  24  ! DC2, Plane V, wire 24
+ 118,   8,  25  ! DC2, Plane V, wire 25
+ 117,   8,  26  ! DC2, Plane V, wire 26
+ 116,   8,  27  ! DC2, Plane V, wire 27
+ 115,   8,  28  ! DC2, Plane V, wire 28
+ 114,   8,  29  ! DC2, Plane V, wire 29
+ 113,   8,  30  ! DC2, Plane V, wire 30
+ 112,   8,  31  ! DC2, Plane V, wire 31
+
+SLOT=14
+REFCHAN=15
+ 111,   8,  32  ! DC2, Plane V, wire 32
+ 110,   8,  33  ! DC2, Plane V, wire 33
+ 109,   8,  34  ! DC2, Plane V, wire 34
+ 108,   8,  35  ! DC2, Plane V, wire 35
+ 107,   8,  36  ! DC2, Plane V, wire 36
+ 106,   8,  37  ! DC2, Plane V, wire 37
+ 105,   8,  38  ! DC2, Plane V, wire 38
+ 104,   8,  39  ! DC2, Plane V, wire 39
+ 103,   8,  40  ! DC2, Plane V, wire 40
+ 102,   8,  41  ! DC2, Plane V, wire 41
+ 101,   8,  42  ! DC2, Plane V, wire 42
+ 100,   8,  43  ! DC2, Plane V, wire 43
+  99,   8,  44  ! DC2, Plane V, wire 44
+  98,   8,  45  ! DC2, Plane V, wire 45
+  97,   8,  46  ! DC2, Plane V, wire 46
+  96,   8,  47  ! DC2, Plane V, wire 47
+  31,   8,  48  ! DC2, Plane V, wire 48
+  30,   8,  49  ! DC2, Plane V, wire 49
+  29,   8,  50  ! DC2, Plane V, wire 50
+  28,   8,  51  ! DC2, Plane V, wire 51
+  27,   8,  52  ! DC2, Plane V, wire 52
+  26,   8,  53  ! DC2, Plane V, wire 53
+  25,   8,  54  ! DC2, Plane V, wire 54
+  24,   8,  55  ! DC2, Plane V, wire 55
+  23,   8,  56  ! DC2, Plane V, wire 56
+  22,   8,  57  ! DC2, Plane V, wire 57
+  21,   8,  58  ! DC2, Plane V, wire 58
+  20,   8,  59  ! DC2, Plane V, wire 59
+  19,   8,  60  ! DC2, Plane V, wire 60
+  18,   8,  61  ! DC2, Plane V, wire 61
+  17,   8,  62  ! DC2, Plane V, wire 62
+  16,   8,  63  ! DC2, Plane V, wire 63
+
+SLOT=12
+REFCHAN=47
+   0,   8,  64  ! DC2, Plane V, wire 64
+   1,   8,  65  ! DC2, Plane V, wire 65
+   2,   8,  66  ! DC2, Plane V, wire 66
+   3,   8,  67  ! DC2, Plane V, wire 67
+   4,   8,  68  ! DC2, Plane V, wire 68
+   5,   8,  69  ! DC2, Plane V, wire 69
+   6,   8,  70  ! DC2, Plane V, wire 70
+   7,   8,  71  ! DC2, Plane V, wire 71
+   8,   8,  72  ! DC2, Plane V, wire 72
+   9,   8,  73  ! DC2, Plane V, wire 73
+  10,   8,  74  ! DC2, Plane V, wire 74
+  11,   8,  75  ! DC2, Plane V, wire 75
+  12,   8,  76  ! DC2, Plane V, wire 76
+  13,   8,  77  ! DC2, Plane V, wire 77
+  14,   8,  78  ! DC2, Plane V, wire 78
+  15,   8,  79  ! DC2, Plane V, wire 79
+  64,   8,  80  ! DC2, Plane V, wire 80
+  65,   8,  81  ! DC2, Plane V, wire 81
+  66,   8,  82  ! DC2, Plane V, wire 82
+  67,   8,  83  ! DC2, Plane V, wire 83
+  68,   8,  84  ! DC2, Plane V, wire 84
+  69,   8,  85  ! DC2, Plane V, wire 85
+  70,   8,  86  ! DC2, Plane V, wire 86
+  71,   8,  87  ! DC2, Plane V, wire 87
+  72,   8,  88  ! DC2, Plane V, wire 88
+  73,   8,  89  ! DC2, Plane V, wire 89
+  74,   8,  90  ! DC2, Plane V, wire 90
+  75,   8,  91  ! DC2, Plane V, wire 91
+  76,   8,  92  ! DC2, Plane V, wire 92
+  77,   8,  93  ! DC2, Plane V, wire 93
+  78,   8,  94  ! DC2, Plane V, wire 94
+  79,   8,  95  ! DC2, Plane V, wire 95
+  32,   8,  96  ! DC2, Plane V, wire 96
+  33,   8,  97  ! DC2, Plane V, wire 97
+  34,   8,  98  ! DC2, Plane V, wire 98
+  35,   8,  99  ! DC2, Plane V, wire 99
+  36,   8, 100  ! DC2, Plane V, wire 100
+  37,   8, 101  ! DC2, Plane V, wire 101
+  38,   8, 102  ! DC2, Plane V, wire 102
+  39,   8, 103  ! DC2, Plane V, wire 103
+  40,   8, 104  ! DC2, Plane V, wire 104
+  41,   8, 105  ! DC2, Plane V, wire 105
+  42,   8, 106  ! DC2, Plane V, wire 106
+  43,   8, 107  ! DC2, Plane V, wire 107
+
+SLOT=15
+REFCHAN=47
+  43,   7,   1  ! DC2, Plane V', wire 1
+  42,   7,   2  ! DC2, Plane V', wire 2
+  41,   7,   3  ! DC2, Plane V', wire 3
+  40,   7,   4  ! DC2, Plane V', wire 4
+  39,   7,   5  ! DC2, Plane V', wire 5
+  38,   7,   6  ! DC2, Plane V', wire 6
+  37,   7,   7  ! DC2, Plane V', wire 7
+  36,   7,   8  ! DC2, Plane V', wire 8
+  35,   7,   9  ! DC2, Plane V', wire 9
+  34,   7,  10  ! DC2, Plane V', wire 10
+  33,   7,  11  ! DC2, Plane V', wire 11
+  32,   7,  12  ! DC2, Plane V', wire 12
+  15,   7,  13  ! DC2, Plane V', wire 13
+  14,   7,  14  ! DC2, Plane V', wire 14
+  13,   7,  15  ! DC2, Plane V', wire 15
+  12,   7,  16  ! DC2, Plane V', wire 16
+  11,   7,  17  ! DC2, Plane V', wire 17
+  10,   7,  18  ! DC2, Plane V', wire 18
+   9,   7,  19  ! DC2, Plane V', wire 19
+   8,   7,  20  ! DC2, Plane V', wire 20
+   7,   7,  21  ! DC2, Plane V', wire 21
+   6,   7,  22  ! DC2, Plane V', wire 22
+   5,   7,  23  ! DC2, Plane V', wire 23
+   4,   7,  24  ! DC2, Plane V', wire 24
+   3,   7,  25  ! DC2, Plane V', wire 25
+   2,   7,  26  ! DC2, Plane V', wire 26
+   1,   7,  27  ! DC2, Plane V', wire 27
+   0,   7,  28  ! DC2, Plane V', wire 28
+
+SLOT=14
+REFCHAN=15
+  79,   7,  29  ! DC2, Plane V', wire 29
+  78,   7,  30  ! DC2, Plane V', wire 30
+  77,   7,  31  ! DC2, Plane V', wire 31
+  76,   7,  32  ! DC2, Plane V', wire 32
+  75,   7,  33  ! DC2, Plane V', wire 33
+  74,   7,  34  ! DC2, Plane V', wire 34
+  73,   7,  35  ! DC2, Plane V', wire 35
+  72,   7,  36  ! DC2, Plane V', wire 36
+  71,   7,  37  ! DC2, Plane V', wire 37
+  70,   7,  38  ! DC2, Plane V', wire 38
+  69,   7,  39  ! DC2, Plane V', wire 39
+  68,   7,  40  ! DC2, Plane V', wire 40
+  67,   7,  41  ! DC2, Plane V', wire 41
+  66,   7,  42  ! DC2, Plane V', wire 42
+  65,   7,  43  ! DC2, Plane V', wire 43
+  64,   7,  44  ! DC2, Plane V', wire 44
+
+SLOT=13
+REFCHAN=47
+  48,   7,  45  ! DC2, Plane V', wire 45
+  49,   7,  46  ! DC2, Plane V', wire 46
+  50,   7,  47  ! DC2, Plane V', wire 47
+  51,   7,  48  ! DC2, Plane V', wire 48
+  52,   7,  49  ! DC2, Plane V', wire 49
+  53,   7,  50  ! DC2, Plane V', wire 50
+  54,   7,  51  ! DC2, Plane V', wire 51
+  55,   7,  52  ! DC2, Plane V', wire 52
+  56,   7,  53  ! DC2, Plane V', wire 53
+  57,   7,  54  ! DC2, Plane V', wire 54
+  58,   7,  55  ! DC2, Plane V', wire 55
+  59,   7,  56  ! DC2, Plane V', wire 56
+  60,   7,  57  ! DC2, Plane V', wire 57
+  61,   7,  58  ! DC2, Plane V', wire 58
+  62,   7,  59  ! DC2, Plane V', wire 59
+  63,   7,  60  ! DC2, Plane V', wire 60
+
+SLOT=12
+REFCHAN=47
+  80,   7,  61  ! DC2, Plane V', wire 61
+  81,   7,  62  ! DC2, Plane V', wire 62
+  82,   7,  63  ! DC2, Plane V', wire 63
+  83,   7,  64  ! DC2, Plane V', wire 64
+  84,   7,  65  ! DC2, Plane V', wire 65
+  85,   7,  66  ! DC2, Plane V', wire 66
+  86,   7,  67  ! DC2, Plane V', wire 67
+  87,   7,  68  ! DC2, Plane V', wire 68
+  88,   7,  69  ! DC2, Plane V', wire 69
+  89,   7,  70  ! DC2, Plane V', wire 70
+  90,   7,  71  ! DC2, Plane V', wire 71
+  91,   7,  72  ! DC2, Plane V', wire 72
+  92,   7,  73  ! DC2, Plane V', wire 73
+  93,   7,  74  ! DC2, Plane V', wire 74
+  94,   7,  75  ! DC2, Plane V', wire 75
+  95,   7,  76  ! DC2, Plane V', wire 76
+  48,   7,  77  ! DC2, Plane V', wire 77
+  49,   7,  78  ! DC2, Plane V', wire 78
+  50,   7,  79  ! DC2, Plane V', wire 79
+  51,   7,  80  ! DC2, Plane V', wire 80
+  52,   7,  81  ! DC2, Plane V', wire 81
+  53,   7,  82  ! DC2, Plane V', wire 82
+  54,   7,  83  ! DC2, Plane V', wire 83
+  55,   7,  84  ! DC2, Plane V', wire 84
+  56,   7,  85  ! DC2, Plane V', wire 85
+  57,   7,  86  ! DC2, Plane V', wire 86
+  58,   7,  87  ! DC2, Plane V', wire 87
+  59,   7,  88  ! DC2, Plane V', wire 88
+  60,   7,  89  ! DC2, Plane V', wire 89
+  61,   7,  90  ! DC2, Plane V', wire 90
+  62,   7,  91  ! DC2, Plane V', wire 91
+  63,   7,  92  ! DC2, Plane V', wire 92
+
+SLOT=11
+REFCHAN=47
+  32,   7,  93  ! DC2, Plane V', wire 93
+  33,   7,  94  ! DC2, Plane V', wire 94
+  34,   7,  95  ! DC2, Plane V', wire 95
+  35,   7,  96  ! DC2, Plane V', wire 96
+  36,   7,  97  ! DC2, Plane V', wire 97
+  37,   7,  98  ! DC2, Plane V', wire 98
+  38,   7,  99  ! DC2, Plane V', wire 99
+  39,   7, 100  ! DC2, Plane V', wire 100
+  40,   7, 101  ! DC2, Plane V', wire 101
+  41,   7, 102  ! DC2, Plane V', wire 102
+  42,   7, 103  ! DC2, Plane V', wire 103
+  43,   7, 104  ! DC2, Plane V', wire 104
+  44,   7, 105  ! DC2, Plane V', wire 105
+  45,   7, 106  ! DC2, Plane V', wire 106
+  46,   7, 107  ! DC2, Plane V', wire 107
+
+SLOT=12
+REFCHAN=47
+ 111,  10,   1  ! DC2, Plane X, wire 1
+ 110,  10,   2  ! DC2, Plane X, wire 2
+ 109,  10,   3  ! DC2, Plane X, wire 3
+ 108,  10,   4  ! DC2, Plane X, wire 4
+ 107,  10,   5  ! DC2, Plane X, wire 5
+ 106,  10,   6  ! DC2, Plane X, wire 6
+ 105,  10,   7  ! DC2, Plane X, wire 7
+ 104,  10,   8  ! DC2, Plane X, wire 8
+ 103,  10,   9  ! DC2, Plane X, wire 9
+ 102,  10,  10  ! DC2, Plane X, wire 10
+ 101,  10,  11  ! DC2, Plane X, wire 11
+ 100,  10,  12  ! DC2, Plane X, wire 12
+  99,  10,  13  ! DC2, Plane X, wire 13
+  98,  10,  14  ! DC2, Plane X, wire 14
+  97,  10,  15  ! DC2, Plane X, wire 15
+  96,  10,  16  ! DC2, Plane X, wire 16
+  31,  10,  17  ! DC2, Plane X, wire 17
+  30,  10,  18  ! DC2, Plane X, wire 18
+  29,  10,  19  ! DC2, Plane X, wire 19
+  28,  10,  20  ! DC2, Plane X, wire 20
+  27,  10,  21  ! DC2, Plane X, wire 21
+  26,  10,  22  ! DC2, Plane X, wire 22
+  25,  10,  23  ! DC2, Plane X, wire 23
+  24,  10,  24  ! DC2, Plane X, wire 24
+  23,  10,  25  ! DC2, Plane X, wire 25
+  22,  10,  26  ! DC2, Plane X, wire 26
+  21,  10,  27  ! DC2, Plane X, wire 27
+  20,  10,  28  ! DC2, Plane X, wire 28
+  19,  10,  29  ! DC2, Plane X, wire 29
+  18,  10,  30  ! DC2, Plane X, wire 30
+  17,  10,  31  ! DC2, Plane X, wire 31
+  16,  10,  32  ! DC2, Plane X, wire 32
+
+SLOT=11
+REFCHAN=47
+  31,  10,  33  ! DC2, Plane X, wire 33
+  30,  10,  34  ! DC2, Plane X, wire 34
+  29,  10,  35  ! DC2, Plane X, wire 35
+  28,  10,  36  ! DC2, Plane X, wire 36
+  27,  10,  37  ! DC2, Plane X, wire 37
+  26,  10,  38  ! DC2, Plane X, wire 38
+  25,  10,  39  ! DC2, Plane X, wire 39
+  24,  10,  40  ! DC2, Plane X, wire 40
+  23,  10,  41  ! DC2, Plane X, wire 41
+  22,  10,  42  ! DC2, Plane X, wire 42
+  21,  10,  43  ! DC2, Plane X, wire 43
+  20,  10,  44  ! DC2, Plane X, wire 44
+  19,  10,  45  ! DC2, Plane X, wire 45
+  18,  10,  46  ! DC2, Plane X, wire 46
+  17,  10,  47  ! DC2, Plane X, wire 47
+  16,  10,  48  ! DC2, Plane X, wire 48
+
+SLOT=15
+REFCHAN=47
+  16,  10,  49  ! DC2, Plane X, wire 49
+  17,  10,  50  ! DC2, Plane X, wire 50
+  18,  10,  51  ! DC2, Plane X, wire 51
+  19,  10,  52  ! DC2, Plane X, wire 52
+  20,  10,  53  ! DC2, Plane X, wire 53
+  21,  10,  54  ! DC2, Plane X, wire 54
+  22,  10,  55  ! DC2, Plane X, wire 55
+  23,  10,  56  ! DC2, Plane X, wire 56
+  24,  10,  57  ! DC2, Plane X, wire 57
+  25,  10,  58  ! DC2, Plane X, wire 58
+  26,  10,  59  ! DC2, Plane X, wire 59
+  27,  10,  60  ! DC2, Plane X, wire 60
+  28,  10,  61  ! DC2, Plane X, wire 61
+  29,  10,  62  ! DC2, Plane X, wire 62
+  30,  10,  63  ! DC2, Plane X, wire 63
+  31,  10,  64  ! DC2, Plane X, wire 64
+
+SLOT=14
+REFCHAN=15
+  48,  10,  65  ! DC2, Plane X, wire 65
+  49,  10,  66  ! DC2, Plane X, wire 66
+  50,  10,  67  ! DC2, Plane X, wire 67
+  51,  10,  68  ! DC2, Plane X, wire 68
+  52,  10,  69  ! DC2, Plane X, wire 69
+  53,  10,  70  ! DC2, Plane X, wire 70
+  54,  10,  71  ! DC2, Plane X, wire 71
+  55,  10,  72  ! DC2, Plane X, wire 72
+  56,  10,  73  ! DC2, Plane X, wire 73
+  57,  10,  74  ! DC2, Plane X, wire 74
+  58,  10,  75  ! DC2, Plane X, wire 75
+  59,  10,  76  ! DC2, Plane X, wire 76
+  60,  10,  77  ! DC2, Plane X, wire 77
+  61,  10,  78  ! DC2, Plane X, wire 78
+  62,  10,  79  ! DC2, Plane X, wire 79
+
+SLOT=13
+REFCHAN=47
+ 126,   9,   1  ! DC2, Plane X', wire 1
+ 125,   9,   2  ! DC2, Plane X', wire 2
+ 124,   9,   3  ! DC2, Plane X', wire 3
+ 123,   9,   4  ! DC2, Plane X', wire 4
+ 122,   9,   5  ! DC2, Plane X', wire 5
+ 121,   9,   6  ! DC2, Plane X', wire 6
+ 120,   9,   7  ! DC2, Plane X', wire 7
+ 119,   9,   8  ! DC2, Plane X', wire 8
+ 118,   9,   9  ! DC2, Plane X', wire 9
+ 117,   9,  10  ! DC2, Plane X', wire 10
+ 116,   9,  11  ! DC2, Plane X', wire 11
+ 115,   9,  12  ! DC2, Plane X', wire 12
+ 114,   9,  13  ! DC2, Plane X', wire 13
+ 113,   9,  14  ! DC2, Plane X', wire 14
+ 112,   9,  15  ! DC2, Plane X', wire 15
+  15,   9,  16  ! DC2, Plane X', wire 16
+  14,   9,  17  ! DC2, Plane X', wire 17
+  13,   9,  18  ! DC2, Plane X', wire 18
+  12,   9,  19  ! DC2, Plane X', wire 19
+  11,   9,  20  ! DC2, Plane X', wire 20
+  10,   9,  21  ! DC2, Plane X', wire 21
+   9,   9,  22  ! DC2, Plane X', wire 22
+   8,   9,  23  ! DC2, Plane X', wire 23
+   7,   9,  24  ! DC2, Plane X', wire 24
+   6,   9,  25  ! DC2, Plane X', wire 25
+   5,   9,  26  ! DC2, Plane X', wire 26
+   4,   9,  27  ! DC2, Plane X', wire 27
+   3,   9,  28  ! DC2, Plane X', wire 28
+   2,   9,  29  ! DC2, Plane X', wire 29
+   1,   9,  30  ! DC2, Plane X', wire 30
+   0,   9,  31  ! DC2, Plane X', wire 31
+
+SLOT=11
+REFCHAN=47
+  96,   9,  32  ! DC2, Plane X', wire 32
+  97,   9,  33  ! DC2, Plane X', wire 33
+  98,   9,  34  ! DC2, Plane X', wire 34
+  99,   9,  35  ! DC2, Plane X', wire 35
+ 100,   9,  36  ! DC2, Plane X', wire 36
+ 101,   9,  37  ! DC2, Plane X', wire 37
+ 102,   9,  38  ! DC2, Plane X', wire 38
+ 103,   9,  39  ! DC2, Plane X', wire 39
+ 104,   9,  40  ! DC2, Plane X', wire 40
+ 105,   9,  41  ! DC2, Plane X', wire 41
+ 106,   9,  42  ! DC2, Plane X', wire 42
+ 107,   9,  43  ! DC2, Plane X', wire 43
+ 108,   9,  44  ! DC2, Plane X', wire 44
+ 109,   9,  45  ! DC2, Plane X', wire 45
+ 110,   9,  46  ! DC2, Plane X', wire 46
+ 111,   9,  47  ! DC2, Plane X', wire 47
+  64,   9,  48  ! DC2, Plane X', wire 48
+  65,   9,  49  ! DC2, Plane X', wire 49
+  66,   9,  50  ! DC2, Plane X', wire 50
+  67,   9,  51  ! DC2, Plane X', wire 51
+  68,   9,  52  ! DC2, Plane X', wire 52
+  69,   9,  53  ! DC2, Plane X', wire 53
+  70,   9,  54  ! DC2, Plane X', wire 54
+  71,   9,  55  ! DC2, Plane X', wire 55
+  72,   9,  56  ! DC2, Plane X', wire 56
+  73,   9,  57  ! DC2, Plane X', wire 57
+  74,   9,  58  ! DC2, Plane X', wire 58
+  75,   9,  59  ! DC2, Plane X', wire 59
+  76,   9,  60  ! DC2, Plane X', wire 60
+  77,   9,  61  ! DC2, Plane X', wire 61
+  78,   9,  62  ! DC2, Plane X', wire 62
+  79,   9,  63  ! DC2, Plane X', wire 63
+
+SLOT=10
+REFCHAN=79
+  96,   9,  64  ! DC2, Plane X', wire 64
+  97,   9,  65  ! DC2, Plane X', wire 65
+  98,   9,  66  ! DC2, Plane X', wire 66
+  99,   9,  67  ! DC2, Plane X', wire 67
+ 100,   9,  68  ! DC2, Plane X', wire 68
+ 101,   9,  69  ! DC2, Plane X', wire 69
+ 102,   9,  70  ! DC2, Plane X', wire 70
+ 103,   9,  71  ! DC2, Plane X', wire 71
+ 104,   9,  72  ! DC2, Plane X', wire 72
+ 105,   9,  73  ! DC2, Plane X', wire 73
+ 106,   9,  74  ! DC2, Plane X', wire 74
+ 107,   9,  75  ! DC2, Plane X', wire 75
+ 108,   9,  76  ! DC2, Plane X', wire 76
+ 109,   9,  77  ! DC2, Plane X', wire 77
+ 110,   9,  78  ! DC2, Plane X', wire 78
+ 111,   9,  79  ! DC2, Plane X', wire 79
+
+
+DETECTOR=23
+
+ROC=2
+
+SLOT=3
+   0,   1,   1,   0  ! p1x01A+
+   1,   1,   2,   0  ! p1x02A+
+   2,   1,   3,   0  ! p1x03A+
+   3,   1,   4,   0  ! p1x04A+
+   4,   1,   5,   0  ! p1x05A+
+   5,   1,   6,   0  ! p1x06A+
+   6,   1,   7,   0  ! p1x07A+
+   7,   1,   8,   0  ! p1x08A+
+   8,   1,   9,   0  ! p1x09A+
+   9,   1,  10,   0  ! p1x10A+
+  10,   1,  11,   0  ! p1x11A+
+  11,   1,  12,   0  ! p1x12A+
+  12,   1,  13,   0  ! p1x13A+
+  13,   1,   1,   1  ! p1x01A-
+  14,   1,   2,   1  ! p1x02A-
+  15,   1,   3,   1  ! p1x03A-
+
+SLOT=4
+   0,   1,   4,   1  ! p1x04A-
+   1,   1,   5,   1  ! p1x05A-
+   2,   1,   6,   1  ! p1x06A-
+   3,   1,   7,   1  ! p1x07A-
+   4,   1,   8,   1  ! p1x08A-
+   5,   1,   9,   1  ! p1x09A-
+   6,   1,  10,   1  ! p1x10A-
+   7,   1,  11,   1  ! p1x11A-
+   8,   1,  12,   1  ! p1x12A-
+   9,   1,  13,   1  ! p1x13A-
+  10,   2,   1,   1  ! p1y01A-
+  11,   2,   2,   1  ! p1y02A-
+  12,   2,   3,   1  ! p1y03A-
+  13,   2,   4,   1  ! p1y04A-
+  14,   2,   5,   1  ! p1y05A-
+  15,   2,   6,   1  ! p1y06A-
+
+SLOT=5
+   0,   2,   7,   1  ! p1y07A-
+   1,   2,   8,   1  ! p1y08A-
+   2,   2,   9,   1  ! p1y09A-
+   3,   2,  10,   1  ! p1y10A-
+   4,   2,  11,   1  ! p1y11A-
+   5,   2,  12,   1  ! p1y12A-
+   6,   2,  13,   1  ! p1y13A-
+   7,   2,   1,   0  ! p1y01A+
+   8,   2,   2,   0  ! p1y02A+
+   9,   2,   3,   0  ! p1y03A+
+  10,   2,   4,   0  ! p1y04A+
+  11,   2,   5,   0  ! p1y05A+
+  12,   2,   6,   0  ! p1y06A+
+  13,   2,   7,   0  ! p1y07A+
+  14,   2,   8,   0  ! p1y08A+
+  15,   2,   9,   0  ! p1y09A+
+
+SLOT=6
+   0,   2,  10,   0  ! p1y10A+
+   1,   2,  11,   0  ! p1y11A+
+   2,   2,  12,   0  ! p1y12A+
+   3,   2,  13,   0  ! p1y13A+
+   4,   3,   1,   0  ! p2x01A+
+   5,   3,   2,   0  ! p2x02A+
+   6,   3,   3,   0  ! p2x03A+
+   7,   3,   4,   0  ! p2x04A+
+   8,   3,   5,   0  ! p2x05A+
+   9,   3,   6,   0  ! p2x06A+
+  10,   3,   7,   0  ! p2x07A+
+  11,   3,   8,   0  ! p2x08A+
+  12,   3,   9,   0  ! p2x09A+
+  13,   3,  10,   0  ! p2x10A+
+  14,   3,  11,   0  ! p2x11A+
+  15,   3,  12,   0  ! p2x12A+
+
+SLOT=7
+   0,   3,  13,   0  ! p2x13A+
+   1,   3,  14,   0  ! p2x14A+
+   2,   3,   1,   1  ! p2x01A-
+   3,   3,   2,   1  ! p2x02A-
+   4,   3,   3,   1  ! p2x03A-
+   5,   3,   4,   1  ! p2x04A-
+   6,   3,   5,   1  ! p2x05A-
+   7,   3,   6,   1  ! p2x06A-
+   8,   3,   7,   1  ! p2x07A-
+   9,   3,   8,   1  ! p2x08A-
+  10,   3,   9,   1  ! p2x09A-
+  11,   3,  10,   1  ! p2x10A-
+  12,   3,  11,   1  ! p2x11A-
+  13,   3,  12,   1  ! p2x12A-
+  14,   3,  13,   1  ! p2x13A-
+  15,   3,  14,   1  ! p2x14A-
+
+SLOT=8
+   0,   4,   1,   1  ! p2y01A-
+   1,   4,   2,   1  ! p2y02A-
+   2,   4,   3,   1  ! p2y03A-
+   3,   4,   4,   1  ! p2y04A-
+   4,   4,   5,   1  ! p2y05A-
+   5,   4,   6,   1  ! p2y06A-
+   6,   4,   7,   1  ! p2y07A-
+   7,   4,   8,   1  ! p2y08A-
+   8,   4,   9,   1  ! p2y09A-
+   9,   4,  10,   1  ! p2y10A-
+  10,   4,  11,   1  ! p2y11A-
+  11,   4,  12,   1  ! p2y12A-
+  12,   4,  13,   1  ! p2y13A-
+  13,   4,  14,   1  ! p2y14A-
+  14,   4,  15,   1  ! p2y15A-
+  15,   4,  16,   1  ! p2y16A-
+
+SLOT=9
+   0,   4,  17,   1  ! p2y17A-
+   1,   4,  18,   1  ! p2y18A-
+   2,   4,  19,   1  ! p2y19A-
+   3,   4,  20,   1  ! p2y20A-
+   4,   4,  21,   1  ! p2y21A-
+   5,   4,   1,   0  ! p2y01A+
+   6,   4,   2,   0  ! p2y02A+
+   7,   4,   3,   0  ! p2y03A+
+   8,   4,   4,   0  ! p2y04A+
+   9,   4,   5,   0  ! p2y05A+
+  10,   4,   6,   0  ! p2y06A+
+  11,   4,   7,   0  ! p2y07A+
+  12,   4,   8,   0  ! p2y08A+
+  13,   4,   9,   0  ! p2y09A+
+  14,   4,  10,   0  ! p2y10A+
+  15,   4,  11,   0  ! p2y11A+
+
+SLOT=10
+   0,   4,  12,   0  ! p2y12A+
+   1,   4,  13,   0  ! p2y13A+
+   2,   4,  14,   0  ! p2y14A+
+   3,   4,  15,   0  ! p2y15A+
+   4,   4,  16,   0  ! p2y16A+
+   5,   4,  17,   0  ! p2y17A+
+   6,   4,  18,   0  ! p2y18A+
+   7,   4,  19,   0  ! p2y19A+
+   8,   4,  20,   0  ! p2y20A+
+   9,   4,  21,   0  ! p2y21A+
+
+SLOT=20
+REFINDEX=0
+  15,1000,   0,   0
+   0,   1,   1,   2  ! p1x01T+
+   1,   1,   3,   2  ! p1x03T+
+   2,   1,   5,   2  ! p1x05T+
+   3,   1,   7,   2  ! p1x07T+
+   4,   1,   2,   2  ! p1x02T+
+   5,   1,   4,   2  ! p1x04T+
+   6,   1,   6,   2  ! p1x06T+
+   7,   1,   8,   2  ! p1x08T+
+   8,   1,   9,   2  ! p1x09T+
+   9,   1,  11,   2  ! p1x11T+
+  10,   1,  13,   2  ! p1x13T+
+  12,   1,  10,   2  ! p1x10T+
+  13,   1,  12,   2  ! p1x12T+
+  16,   1,   1,   3  ! p1x01T-
+  17,   1,   3,   3  ! p1x03T-
+  18,   1,   5,   3  ! p1x05T-
+  19,   1,   7,   3  ! p1x07T-
+  20,   1,   2,   3  ! p1x02T-
+  21,   1,   4,   3  ! p1x04T-
+  22,   1,   6,   3  ! p1x06T-
+  23,   1,   8,   3  ! p1x08T-
+  24,   1,   9,   3  ! p1x09T-
+  25,   1,  11,   3  ! p1x11T-
+  26,   1,  13,   3  ! p1x13T-
+  28,   1,  10,   3  ! p1x10T-
+  30,   1,  12,   3  ! p1x12T-
+  32,   2,   1,   3  ! p1y01T-
+  33,   2,   3,   3  ! p1y03T-
+  34,   2,   5,   3  ! p1y05T-
+  35,   2,   7,   3  ! p1y07T-
+  36,   2,   2,   3  ! p1y02T-
+  37,   2,   4,   3  ! p1y04T-
+  38,   2,   6,   3  ! p1y06T-
+  39,   2,   8,   3  ! p1y08T-
+  40,   2,   9,   3  ! p1y09T-
+  41,   2,  11,   3  ! p1y11T-
+  42,   2,  13,   3  ! p1y13T-
+  44,   2,  10,   3  ! p1y10T-
+  45,   2,  12,   3  ! p1y12T-
+  48,   2,   1,   2  ! p1y01T+
+  49,   2,   3,   2  ! p1y03T+
+  50,   2,   5,   2  ! p1y05T+
+  51,   2,   7,   2  ! p1y07T+
+  52,   2,   2,   2  ! p1y02T+
+  53,   2,   4,   2  ! p1y04T+
+  54,   2,   6,   2  ! p1y06T+
+  55,   2,   8,   2  ! p1y08T+
+  56,   2,   9,   2  ! p1y09T+
+  57,   2,  11,   2  ! p1y11T+
+  58,   2,  13,   2  ! p1y13T+
+  60,   2,  10,   2  ! p1y10T+
+  61,   2,  12,   2  ! p1y12T+
+  64,   3,   1,   2  ! p2x01T+
+  65,   3,   3,   2  ! p2x03T+
+  66,   3,   5,   2  ! p2x05T+
+  67,   3,   7,   2  ! p2x07T+
+  68,   3,   2,   2  ! p2x02T+
+  69,   3,   4,   2  ! p2x04T+
+  70,   3,   6,   2  ! p2x06T+
+  71,   3,   8,   2  ! p2x08T+
+  72,   3,   9,   2  ! p2x09T+
+  73,   3,  11,   2  ! p2x11T+
+  74,   3,  13,   2  ! p2x13T+
+  76,   3,  10,   2  ! p2x10T+
+  77,   3,  12,   2  ! p2x12T+
+  78,   3,  14,   2  ! p2x14T+
+  80,   3,   1,   3  ! p2x01T-
+  81,   3,   3,   3  ! p2x03T-
+  82,   3,   5,   3  ! p2x05T-
+  83,   3,   7,   3  ! p2x07T-
+  84,   3,   2,   3  ! p2x02T-
+  85,   3,   4,   3  ! p2x04T-
+  86,   3,   6,   3  ! p2x06T-
+  87,   3,   8,   3  ! p2x08T-
+  88,   3,   9,   3  ! p2x09T-
+  89,   3,  11,   3  ! p2x11T-
+  90,   3,  13,   3  ! p2x13T-
+  92,   3,  10,   3  ! p2x10T-
+  93,   3,  12,   3  ! p2x12T-
+  94,   3,  14,   3  ! p2x14T-
+  96,   4,   1,   3  ! p2y01T-
+  97,   4,   3,   3  ! p2y03T-
+  98,   4,   5,   3  ! p2y05T-
+  99,   4,   7,   3  ! p2y07T-
+ 100,   4,   2,   3  ! p2y02T-
+ 101,   4,   4,   3  ! p2y04T-
+ 102,   4,   6,   3  ! p2y06T-
+ 103,   4,   8,   3  ! p2y08T-
+ 104,   4,   9,   3  ! p2y09T-
+ 105,   4,  11,   3  ! p2y11T-
+ 106,   4,  13,   3  ! p2y13T-
+ 107,   4,  15,   3  ! p2y15T-
+ 108,   4,  10,   3  ! p2y10T-
+ 109,   4,  12,   3  ! p2y12T-
+ 110,   4,  14,   3  ! p2y14T-
+ 111,   4,  16,   3  ! p2y16T-
+ 112,   4,  17,   3  ! p2y17T-
+ 113,   4,  19,   3  ! p2y19T-
+ 114,   4,  21,   3  ! p2y21T-
+ 116,   4,  18,   3  ! p2y18T-
+ 117,   4,  20,   3  ! p2y20T-
+
+SLOT=19
+REFINDEX=0
+  31,1000,   0,   1
+   0,   4,   1,   2  ! p2y01T+
+   1,   4,   3,   2  ! p2y03T+
+   2,   4,   5,   2  ! p2y05T+
+   3,   4,   7,   2  ! p2y07T+
+   4,   4,   2,   2  ! p2y02T+
+   5,   4,   4,   2  ! p2y04T+
+   6,   4,   6,   2  ! p2y06T+
+   7,   4,   8,   2  ! p2y08T+
+   8,   4,   9,   2  ! p2y09T+
+   9,   4,  11,   2  ! p2y11T+
+  10,   4,  13,   2  ! p2y13T+
+  11,   4,  15,   2  ! p2y15T+
+  12,   4,  10,   2  ! p2y10T+
+  13,   4,  12,   2  ! p2y12T+
+  14,   4,  14,   2  ! p2y14T+
+  15,   4,  16,   2  ! p2y16T+
+  16,   4,  17,   2  ! p2y17T+
+  17,   4,  19,   2  ! p2y19T+
+  18,   4,  21,   2  ! p2y21T+
+  20,   4,  18,   2  ! p2y18T+
+  21,   4,  20,   2  ! p2y20T+
+
+
+DETECTOR=24
+
+ROC=2
+
+SLOT=13
+   8,   1,   1,   0  ! pHGCER01
+   9,   1,   2,   0  ! pHGCER02
+  10,   1,   3,   0  ! pHGCER03
+  11,   1,   4,   0  ! pHGCER04
+
+
+DETECTOR=25
+
+ROC=2
+
+SLOT=10
+  10,   1,   1,   0  ! pAER01+
+  11,   1,   2,   0  ! pAER02+
+  12,   1,   3,   0  ! pAER03+
+  13,   1,   4,   0  ! pAER04+
+  14,   1,   5,   0  ! pAER05+
+  15,   1,   6,   0  ! pAER06+
+
+SLOT=13
+   0,   1,   7,   0  ! pAER07+
+   1,   1,   1,   1  ! pAER01-
+   2,   1,   2,   1  ! pAER02-
+   3,   1,   3,   1  ! pAER03-
+   4,   1,   4,   1  ! pAER04-
+   5,   1,   5,   1  ! pAER05-
+   6,   1,   6,   1  ! pAER06-
+   7,   1,   7,   1  ! pAER07-
+
+
+DETECTOR=26
+
+ROC=4
+
+SLOT=3
+   0,   1,   1,   0  ! pPRSH1+
+   1,   1,   2,   0  ! pPRSH2+
+   2,   1,   3,   0  ! pPRSH3+
+   3,   1,   4,   0  ! pPRSH4+
+   4,   1,   5,   0  ! pPRSH5+
+   5,   1,   6,   0  ! pPRSH6+
+   6,   1,   7,   0  ! pPRSH7+
+   7,   1,   8,   0  ! pPRSH8+
+   8,   1,   9,   0  ! pPRSH9+
+   9,   1,  10,   0  ! pPRSH10+
+  10,   1,  11,   0  ! pPRSH11+
+  11,   1,  12,   0  ! pPRSH12+
+  12,   1,  13,   0  ! pPRSH13+
+  13,   1,  14,   0  ! pPRSH14+
+
+SLOT=4
+   0,   1,   1,   1  ! pPRSH1-
+   1,   1,   2,   1  ! pPRSH2-
+   2,   1,   3,   1  ! pPRSH3-
+   3,   1,   4,   1  ! pPRSH4-
+   4,   1,   5,   1  ! pPRSH5-
+   5,   1,   6,   1  ! pPRSH6-
+   6,   1,   7,   1  ! pPRSH7-
+   7,   1,   8,   1  ! pPRSH8-
+   8,   1,   9,   1  ! pPRSH9-
+   9,   1,  10,   1  ! pPRSH10-
+  10,   1,  11,   1  ! pPRSH11-
+  11,   1,  12,   1  ! pPRSH12-
+  12,   1,  13,   1  ! pPRSH13-
+  13,   1,  14,   1  ! pPRSH14-
+
+SLOT=5
+   0,   2,   1,   0  ! Row 1, Column 1
+   1,   2,   2,   0  ! Row 2, Column 1
+   2,   2,   3,   0  ! Row 3, Column 1
+   3,   2,   4,   0  ! Row 4, Column 1
+   4,   2,   5,   0  ! Row 5, Column 1
+   5,   2,   6,   0  ! Row 6, Column 1
+   6,   2,   7,   0  ! Row 7, Column 1
+   7,   2,   8,   0  ! Row 8, Column 1
+   8,   2,   9,   0  ! Row 9, Column 1
+   9,   2,  10,   0  ! Row 10, Column 1
+  10,   2,  11,   0  ! Row 11, Column 1
+  11,   2,  12,   0  ! Row 12, Column 1
+  12,   2,  13,   0  ! Row 13, Column 1
+  13,   2,  14,   0  ! Row 14, Column 1
+  14,   2,  15,   0  ! Row 15, Column 1
+  15,   2,  16,   0  ! Row 16, Column 1
+
+SLOT=6
+   0,   2,  17,   0  ! Row 1, Column 2
+   1,   2,  18,   0  ! Row 2, Column 2
+   2,   2,  19,   0  ! Row 3, Column 2
+   3,   2,  20,   0  ! Row 4, Column 2
+   4,   2,  21,   0  ! Row 5, Column 2
+   5,   2,  22,   0  ! Row 6, Column 2
+   6,   2,  23,   0  ! Row 7, Column 2
+   7,   2,  24,   0  ! Row 8, Column 2
+   8,   2,  25,   0  ! Row 9, Column 2
+   9,   2,  26,   0  ! Row 10, Column 2
+  10,   2,  27,   0  ! Row 11, Column 2
+  11,   2,  28,   0  ! Row 12, Column 2
+  12,   2,  29,   0  ! Row 13, Column 2
+  13,   2,  30,   0  ! Row 14, Column 2
+  14,   2,  31,   0  ! Row 15, Column 2
+  15,   2,  32,   0  ! Row 16, Column 2
+
+SLOT=7
+   0,   2,  33,   0  ! Row 1, Column 3
+   1,   2,  34,   0  ! Row 2, Column 3
+   2,   2,  35,   0  ! Row 3, Column 3
+   3,   2,  36,   0  ! Row 4, Column 3
+   4,   2,  37,   0  ! Row 5, Column 3
+   5,   2,  38,   0  ! Row 6, Column 3
+   6,   2,  39,   0  ! Row 7, Column 3
+   7,   2,  40,   0  ! Row 8, Column 3
+   8,   2,  41,   0  ! Row 9, Column 3
+   9,   2,  42,   0  ! Row 10, Column 3
+  10,   2,  43,   0  ! Row 11, Column 3
+  11,   2,  44,   0  ! Row 12, Column 3
+  12,   2,  45,   0  ! Row 13, Column 3
+  13,   2,  46,   0  ! Row 14, Column 3
+  14,   2,  47,   0  ! Row 15, Column 3
+  15,   2,  48,   0  ! Row 16, Column 3
+
+SLOT=8
+   0,   2,  49,   0  ! Row 1, Column 4
+   1,   2,  50,   0  ! Row 2, Column 4
+   2,   2,  51,   0  ! Row 3, Column 4
+   3,   2,  52,   0  ! Row 4, Column 4
+   4,   2,  53,   0  ! Row 5, Column 4
+   5,   2,  54,   0  ! Row 6, Column 4
+   6,   2,  55,   0  ! Row 7, Column 4
+   7,   2,  56,   0  ! Row 8, Column 4
+   8,   2,  57,   0  ! Row 9, Column 4
+   9,   2,  58,   0  ! Row 10, Column 4
+  10,   2,  59,   0  ! Row 11, Column 4
+  11,   2,  60,   0  ! Row 12, Column 4
+  12,   2,  61,   0  ! Row 13, Column 4
+  13,   2,  62,   0  ! Row 14, Column 4
+  14,   2,  63,   0  ! Row 15, Column 4
+  15,   2,  64,   0  ! Row 16, Column 4
+
+SLOT=9
+   0,   2,  65,   0  ! Row 1, Column 5
+   1,   2,  66,   0  ! Row 2, Column 5
+   2,   2,  67,   0  ! Row 3, Column 5
+   3,   2,  68,   0  ! Row 4, Column 5
+   4,   2,  69,   0  ! Row 5, Column 5
+   5,   2,  70,   0  ! Row 6, Column 5
+   6,   2,  71,   0  ! Row 7, Column 5
+   7,   2,  72,   0  ! Row 8, Column 5
+   8,   2,  73,   0  ! Row 9, Column 5
+   9,   2,  74,   0  ! Row 10, Column 5
+  10,   2,  75,   0  ! Row 11, Column 5
+  11,   2,  76,   0  ! Row 12, Column 5
+  12,   2,  77,   0  ! Row 13, Column 5
+  13,   2,  78,   0  ! Row 14, Column 5
+  14,   2,  79,   0  ! Row 15, Column 5
+  15,   2,  80,   0  ! Row 16, Column 5
+
+SLOT=10
+   0,   2,  81,   0  ! Row 1, Column 6
+   1,   2,  82,   0  ! Row 2, Column 6
+   2,   2,  83,   0  ! Row 3, Column 6
+   3,   2,  84,   0  ! Row 4, Column 6
+   4,   2,  85,   0  ! Row 5, Column 6
+   5,   2,  86,   0  ! Row 6, Column 6
+   6,   2,  87,   0  ! Row 7, Column 6
+   7,   2,  88,   0  ! Row 8, Column 6
+   8,   2,  89,   0  ! Row 9, Column 6
+   9,   2,  90,   0  ! Row 10, Column 6
+  10,   2,  91,   0  ! Row 11, Column 6
+  11,   2,  92,   0  ! Row 12, Column 6
+  12,   2,  93,   0  ! Row 13, Column 6
+  13,   2,  94,   0  ! Row 14, Column 6
+  14,   2,  95,   0  ! Row 15, Column 6
+  15,   2,  96,   0  ! Row 16, Column 6
+
+SLOT=13
+   0,   2,  97,   0  ! Row 1, Column 7
+   1,   2,  98,   0  ! Row 2, Column 7
+   2,   2,  99,   0  ! Row 3, Column 7
+   3,   2, 100,   0  ! Row 4, Column 7
+   4,   2, 101,   0  ! Row 5, Column 7
+   5,   2, 102,   0  ! Row 6, Column 7
+   6,   2, 103,   0  ! Row 7, Column 7
+   7,   2, 104,   0  ! Row 8, Column 7
+   8,   2, 105,   0  ! Row 9, Column 7
+   9,   2, 106,   0  ! Row 10, Column 7
+  10,   2, 107,   0  ! Row 11, Column 7
+  11,   2, 108,   0  ! Row 12, Column 7
+  12,   2, 109,   0  ! Row 13, Column 7
+  13,   2, 110,   0  ! Row 14, Column 7
+  14,   2, 111,   0  ! Row 15, Column 7
+  15,   2, 112,   0  ! Row 16, Column 7
+
+SLOT=14
+   0,   2, 113,   0  ! Row 1, Column 8
+   1,   2, 114,   0  ! Row 2, Column 8
+   2,   2, 115,   0  ! Row 3, Column 8
+   3,   2, 116,   0  ! Row 4, Column 8
+   4,   2, 117,   0  ! Row 5, Column 8
+   5,   2, 118,   0  ! Row 6, Column 8
+   6,   2, 119,   0  ! Row 7, Column 8
+   7,   2, 120,   0  ! Row 8, Column 8
+   8,   2, 121,   0  ! Row 9, Column 8
+   9,   2, 122,   0  ! Row 10, Column 8
+  10,   2, 123,   0  ! Row 11, Column 8
+  11,   2, 124,   0  ! Row 12, Column 8
+  12,   2, 125,   0  ! Row 13, Column 8
+  13,   2, 126,   0  ! Row 14, Column 8
+  14,   2, 127,   0  ! Row 15, Column 8
+  15,   2, 128,   0  ! Row 16, Column 8
+
+SLOT=15
+   0,   2, 129,   0  ! Row 1, Column 9
+   1,   2, 130,   0  ! Row 2, Column 9
+   2,   2, 131,   0  ! Row 3, Column 9
+   3,   2, 132,   0  ! Row 4, Column 9
+   4,   2, 133,   0  ! Row 5, Column 9
+   5,   2, 134,   0  ! Row 6, Column 9
+   6,   2, 135,   0  ! Row 7, Column 9
+   7,   2, 136,   0  ! Row 8, Column 9
+   8,   2, 137,   0  ! Row 9, Column 9
+   9,   2, 138,   0  ! Row 10, Column 9
+  10,   2, 139,   0  ! Row 11, Column 9
+  11,   2, 140,   0  ! Row 12, Column 9
+  12,   2, 141,   0  ! Row 13, Column 9
+  13,   2, 142,   0  ! Row 14, Column 9
+  14,   2, 143,   0  ! Row 15, Column 9
+  15,   2, 144,   0  ! Row 16, Column 9
+
+SLOT=16
+   0,   2, 145,   0  ! Row 1, Column 10
+   1,   2, 146,   0  ! Row 2, Column 10
+   2,   2, 147,   0  ! Row 3, Column 10
+   3,   2, 148,   0  ! Row 4, Column 10
+   4,   2, 149,   0  ! Row 5, Column 10
+   5,   2, 150,   0  ! Row 6, Column 10
+   6,   2, 151,   0  ! Row 7, Column 10
+   7,   2, 152,   0  ! Row 8, Column 10
+   8,   2, 153,   0  ! Row 9, Column 10
+   9,   2, 154,   0  ! Row 10, Column 10
+  10,   2, 155,   0  ! Row 11, Column 10
+  11,   2, 156,   0  ! Row 12, Column 10
+  12,   2, 157,   0  ! Row 13, Column 10
+  13,   2, 158,   0  ! Row 14, Column 10
+  14,   2, 159,   0  ! Row 15, Column 10
+  15,   2, 160,   0  ! Row 16, Column 10
+
+SLOT=17
+   0,   2, 161,   0  ! Row 1, Column 11
+   1,   2, 162,   0  ! Row 2, Column 11
+   2,   2, 163,   0  ! Row 3, Column 11
+   3,   2, 164,   0  ! Row 4, Column 11
+   4,   2, 165,   0  ! Row 5, Column 11
+   5,   2, 166,   0  ! Row 6, Column 11
+   6,   2, 167,   0  ! Row 7, Column 11
+   7,   2, 168,   0  ! Row 8, Column 11
+   8,   2, 169,   0  ! Row 9, Column 11
+   9,   2, 170,   0  ! Row 10, Column 11
+  10,   2, 171,   0  ! Row 11, Column 11
+  11,   2, 172,   0  ! Row 12, Column 11
+  12,   2, 173,   0  ! Row 13, Column 11
+  13,   2, 174,   0  ! Row 14, Column 11
+  14,   2, 175,   0  ! Row 15, Column 11
+  15,   2, 176,   0  ! Row 16, Column 11
+
+SLOT=18
+   0,   2, 177,   0  ! Row 1, Column 12
+   1,   2, 178,   0  ! Row 2, Column 12
+   2,   2, 179,   0  ! Row 3, Column 12
+   3,   2, 180,   0  ! Row 4, Column 12
+   4,   2, 181,   0  ! Row 5, Column 12
+   5,   2, 182,   0  ! Row 6, Column 12
+   6,   2, 183,   0  ! Row 7, Column 12
+   7,   2, 184,   0  ! Row 8, Column 12
+   8,   2, 185,   0  ! Row 9, Column 12
+   9,   2, 186,   0  ! Row 10, Column 12
+  10,   2, 187,   0  ! Row 11, Column 12
+  11,   2, 188,   0  ! Row 12, Column 12
+  12,   2, 189,   0  ! Row 13, Column 12
+  13,   2, 190,   0  ! Row 14, Column 12
+  14,   2, 191,   0  ! Row 15, Column 12
+  15,   2, 192,   0  ! Row 16, Column 12
+
+SLOT=19
+   0,   2, 193,   0  ! Row 1, Column 13
+   1,   2, 194,   0  ! Row 2, Column 13
+   2,   2, 195,   0  ! Row 3, Column 13
+   3,   2, 196,   0  ! Row 4, Column 13
+   4,   2, 197,   0  ! Row 5, Column 13
+   5,   2, 198,   0  ! Row 6, Column 13
+   6,   2, 199,   0  ! Row 7, Column 13
+   7,   2, 200,   0  ! Row 8, Column 13
+   8,   2, 201,   0  ! Row 9, Column 13
+   9,   2, 202,   0  ! Row 10, Column 13
+  10,   2, 203,   0  ! Row 11, Column 13
+  11,   2, 204,   0  ! Row 12, Column 13
+  12,   2, 205,   0  ! Row 13, Column 13
+  13,   2, 206,   0  ! Row 14, Column 13
+  14,   2, 207,   0  ! Row 15, Column 13
+  15,   2, 208,   0  ! Row 16, Column 13
+
+SLOT=20
+   0,   2, 209,   0  ! Row 1, Column 14
+   1,   2, 210,   0  ! Row 2, Column 14
+   2,   2, 211,   0  ! Row 3, Column 14
+   3,   2, 212,   0  ! Row 4, Column 14
+   4,   2, 213,   0  ! Row 5, Column 14
+   5,   2, 214,   0  ! Row 6, Column 14
+   6,   2, 215,   0  ! Row 7, Column 14
+   7,   2, 216,   0  ! Row 8, Column 14
+   8,   2, 217,   0  ! Row 9, Column 14
+   9,   2, 218,   0  ! Row 10, Column 14
+  10,   2, 219,   0  ! Row 11, Column 14
+  11,   2, 220,   0  ! Row 12, Column 14
+  12,   2, 221,   0  ! Row 13, Column 14
+  13,   2, 222,   0  ! Row 14, Column 14
+  14,   2, 223,   0  ! Row 15, Column 14
+  15,   2, 224,   0  ! Row 16, Column 14
diff --git a/PARAM/HMS/GEN/hgoldtrack.param b/PARAM/HMS/GEN/hgoldtrack.param
new file mode 100644
index 0000000000000000000000000000000000000000..48f62c1f26d5a0a487940a1ac8fb1c9555eb25a2
--- /dev/null
+++ b/PARAM/HMS/GEN/hgoldtrack.param
@@ -0,0 +1,23 @@
+
+hmin_hit = 4, 4
+
+hmin_combos = 3, 3
+
+hstub_max_xpdiff = 0.5
+
+hsingle_stub = 1
+
+hxloscin  = 1, 1
+hxhiscin  = 16, 16
+hyloscin  = 1, 1
+hyhiscin  = 10, 10 
+
+htrack_eff_test_num_scin_planes = 2
+
+hdc_tdc_min_win = -55000,-55000,-55000,-55000,-55000,-55000
+ 		  -55000,-55000,-55000,-55000,-55000,-55000
+
+hdc_tdc_max_win = 55000,55000,55000,55000,55000,55000
+                  55000,55000,55000,55000,55000,55000
+
+
diff --git a/PARAM/HMS/GEN/htracking.param b/PARAM/HMS/GEN/htracking.param
index 99b502a69f6dcf31d4ff079ffe72c0f887f10e34..e56b394c9416fa6229598a47e546edd6ac85770d 100644
--- a/PARAM/HMS/GEN/htracking.param
+++ b/PARAM/HMS/GEN/htracking.param
@@ -1,26 +1,25 @@
-; hms pattern recognition and tracking code parameters
-; hmax_pr_hits is the maximum number of decoded hits allowed in a chamber for
-;              pattern recognition to proceed. This protexts against unusual
-;              kami kaze events which hang the analyzer to a long time.
-;
-        hmax_pr_hits =    35, 35
-; maximum number of possible focal plane tracks, must be <= 20
-        hntracks_max_fp = 10
-; if h_remove_sppt_if_one_y_plane=1 then remove space point if space point
-;    contains only one y plane.
-; Recommend h_remove_sppt_if_one_y_plane=0.  
-        h_remove_sppt_if_one_y_plane=0
-; hminhit(i)   minimum number of hits in each space point (one for each chamber)
-	hmin_hit =     5, 5
-; hmin_combos(i) minimum number of pairs in each space point ( one per chamber)
-; should be 3/3 for 4/6 tracking, and 4/4 for 5/6 tracking (JRA)
-	hmin_combos = 4, 4 
-; hspace_point_criterion(i) minimum separation of distinct space points
-; recommended value for hspace_point_criterion ( based on meeting
-; Feb 2003) 
-       hspace_point_criterion = 1.0, 1.0
+; Maximum number of hits allowed in chambers for pattern recognition to proceed (one for each chamber)
+hmax_pr_hits = 35, 35
+
+; Maximum number of possible focal plane tracks, must be <= 20
+hntracks_max_fp = 10
+
+; Remove space point if space point contains only one y plane (0 recommended)
+h_remove_sppt_if_one_y_plane = 0
+
+; Minimum number of hits in each space point (one per chamber)
+hmin_hit = 5, 5
+
+; Minimum number of pairs in each space point (one per chamber)
+; Should be 3/3 for 4/6 tracking, and 4/4 for 5/6 tracking
+hmin_combos = 4, 4 
+
+; Minimum separation of distinct space points
+hspace_point_criterion = 1.0, 1.0
+
+; Maximum difference between xp returned by stub and expected xp
+hstub_max_xpdiff = .05
 
-        hstub_max_xpdiff = .05
 ;
 ; The following four criteria are applied to the stub fit results at the
 ; focal plane position to link stubs to tracks
diff --git a/SCRIPTS/HMS/replay_hms.C b/SCRIPTS/HMS/replay_hms.C
new file mode 100644
index 0000000000000000000000000000000000000000..4bd644d32480aba66a199831437f0cd9625f423e
--- /dev/null
+++ b/SCRIPTS/HMS/replay_hms.C
@@ -0,0 +1,116 @@
+void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
+
+  // Get RunNumber and MaxEvent if not provided.
+  if(RunNumber == 0) {
+    cout << "Enter a Run Number (-1 to exit): ";
+    cin >> RunNumber;
+    if( RunNumber<=0 ) return;
+  }
+  if(MaxEvent == 0) {
+    cout << "\nNumber of Events to analyze: ";
+    cin >> MaxEvent;
+    if(MaxEvent == 0) {
+      cerr << "...Invalid entry\n";
+      exit;
+    }
+  }
+
+  // Create file name patterns.
+  const char* RunFileNamePattern = "raw/hms_all_%05d.dat";
+  const char* ROOTFileNamePattern = "ROOTfiles/hms_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");
+
+  // 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.
+  gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber);
+  gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
+
+  // Load params for HMS trigger configuration
+  gHcParms->Load("PARAM/TRIG/thms.param");
+
+  // Load custom tracking params
+  gHcParms->Load("PARAM/HMS/GEN/hgoldtrack.param");
+
+  // Load the Hall C style detector map
+  gHcDetectorMap = new THcDetectorMap();
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/hms_stack.map");
+
+  // Add trigger apparatus
+  THaApparatus* TRG = new THcTrigApp("T", "TRG");
+  gHaApps->Add(TRG);
+  // Add trigger detector to trigger apparatus
+  THcTrigDet* hms = new THcTrigDet("hms", "HMS Trigger Information");
+  TRG->AddDetector(hms);
+  
+  // Set up the equipment to be analyzed.
+  THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
+  gHaApps->Add(HMS);
+  // Add drift chambers to HMS apparatus
+  THcDC* dc = new THcDC("dc", "Drift Chambers");
+  HMS->AddDetector(dc);
+  // Add hodoscope to HMS apparatus
+  THcHodoscope* hod = new THcHodoscope("hod", "Hodoscope");
+  HMS->AddDetector(hod);
+  // Add Cherenkov to HMS apparatus
+  THcCherenkov* cer = new THcCherenkov("cer", "Heavy Gas Cherenkov");
+  HMS->AddDetector(cer);
+  // Add calorimeter to HMS apparatus
+  THcShower* cal = new THcShower("cal", "Calorimeter");
+  HMS->AddDetector(cal);
+
+  // Include golden track information
+  THaGoldenTrack* gtr = new THaGoldenTrack("H.gtr", "HMS Golden Track", "H");
+  gHaPhysics->Add(gtr);
+  
+  // Set up the analyzer - we use the standard one,
+  // but this could be an experiment-specific one as well.
+  // The Analyzer controls the reading of the data, executes
+  // tests/cuts, loops over Acpparatus's and PhysicsModules,
+  // and executes the output routines.
+  THcAnalyzer* analyzer = new THcAnalyzer;
+
+  // A simple event class to be output to the resulting tree.
+  // Creating your own descendant of THaEvent is one way of
+  // defining and controlling the output.
+  THaEvent* event = new THaEvent;
+
+  // Define the run(s) that we want to analyze.
+  // We just set up one, but this could be many.
+  char RunFileName[100];
+  sprintf(RunFileName, RunFileNamePattern, RunNumber);
+  THaRun* run = new THaRun(RunFileName);
+
+  // Eventually need to learn to skip over, or properly analyze
+  // the pedestal events
+  run->SetEventRange(1, MaxEvent);    // Physics Event number, does not
+                                      // include scaler or control events.
+  run->SetNscan(1);
+  run->SetDataRequired(0x7);
+  run->Print();
+
+  // Define the analysis parameters
+  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber);
+  analyzer->SetCountMode(2);    // 0 = counter is # of physics triggers
+                                // 1 = counter is # of all decode reads
+                                // 2 = counter is event number
+ analyzer->SetEvent(event);
+ analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
+ analyzer->SetOutFile(ROOTFileName.Data());
+ analyzer->SetOdefFile("DEF-files/HMS/GEN/hstackana.def");
+ analyzer->SetCutFile("DEF-files/HMS/GEN/hstackana_cuts.def");    // optional
+
+ // File to record cuts accounting information
+ //analyzer->SetSummaryFile("summary_example.log");    // optional
+
+  // Start the actual analysis.
+  analyzer->Process(run);
+  // Create report file from template.
+  //analyzer->PrintReport(    // optional
+  //  "TEMPLATES/dcana.template",
+  //  Form("REPORT_OUTPUT/replay_hms_%05d.report", RunNumber)
+  //);
+}
diff --git a/SCRIPTS/SHMS/replay_shms.C b/SCRIPTS/SHMS/replay_shms.C
new file mode 100644
index 0000000000000000000000000000000000000000..017649963c702e616da4445eb9974e9b2e0a57b1
--- /dev/null
+++ b/SCRIPTS/SHMS/replay_shms.C
@@ -0,0 +1,122 @@
+void replay_shms(Int_t RunNumber=0, Int_t MaxEvent=0) {
+
+  // Get RunNumber and MaxEvent if not provided.
+  if(RunNumber == 0) {
+    cout << "Enter a Run Number (-1 to exit): ";
+    cin >> RunNumber;
+    if( RunNumber<=0 ) return;
+  }
+  if(MaxEvent == 0) {
+    cout << "\nNumber of Events to analyze: ";
+    cin >> MaxEvent;
+    if(MaxEvent == 0) {
+      cerr << "...Invalid entry\n";
+      exit;
+    }
+  }
+
+  // Create file name patterns.
+  const char* RunFileNamePattern = "raw/shms_all_%05d.dat";
+  const char* ROOTFileNamePattern = "ROOTfiles/shms_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");
+
+  // 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.
+  gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber);
+  gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
+
+  // Load params for SHMS trigger configuration
+  gHcParms->Load("PARAM/TRIG/tshms.param");
+
+  // Load custom tracking params
+  //gHcParms->Load("PARAM/SHMS/GEN/hgoldtrack.param");
+
+  // Load the Hall C style detector map
+  gHcDetectorMap = new THcDetectorMap();
+  gHcDetectorMap->Load("MAPS/SHMS/DETEC/shms_stack.map");
+
+  // Add trigger apparatus
+  THaApparatus* TRG = new THcTrigApp("T", "TRG");
+  gHaApps->Add(TRG);
+  // Add trigger detector to trigger apparatus
+  THcTrigDet* shms = new THcTrigDet("shms", "SHMS Trigger Information");
+  TRG->AddDetector(shms);
+  
+  // Set up the equipment to be analyzed.
+  THaApparatus* SHMS = new THcHallCSpectrometer("P", "SHMS");
+  gHaApps->Add(SHMS);
+  // Add Noble Gas Cherenkov to SHMS apparatus
+  THcCherenkov* ngcer = new THcCherenkov("ngcer", "Noble Gas Cherenkov");
+  SHMS->AddDetector(ngcer);
+  // Add drift chambers to SHMS apparatus
+  THcDC* dc = new THcDC("dc", "Drift Chambers");
+  SHMS->AddDetector(dc);
+  // Add hodoscope to SHMS apparatus
+  THcHodoscope* hod = new THcHodoscope("hod", "Hodoscope");
+  SHMS->AddDetector(hod);
+  // Add Heavy Gas Cherenkov to SHMS apparatus
+  THcCherenkov* hgcer = new THcCherenkov("hgcer", "Heavy Gas Cherenkov");
+  SHMS->AddDetector(hgcer);
+  // Add Heavy Gas Cherenkov to SHMS apparatus
+  THcAerogel* aero = new THcAerogel("aero", "Aerogel");
+  SHMS->AddDetector(aero);
+  // Add calorimeter to SHMS apparatus
+  THcShower* cal = new THcShower("cal", "Calorimeter");
+  SHMS->AddDetector(cal);
+
+  // Include golden track information
+  THaGoldenTrack* gtr = new THaGoldenTrack("P.gtr", "SHMS Golden Track", "P");
+  gHaPhysics->Add(gtr);
+  
+  // Set up the analyzer - we use the standard one,
+  // but this could be an experiment-specific one as well.
+  // The Analyzer controls the reading of the data, executes
+  // tests/cuts, loops over Acpparatus's and PhysicsModules,
+  // and executes the output routines.
+  THcAnalyzer* analyzer = new THcAnalyzer;
+
+  // A simple event class to be output to the resulting tree.
+  // Creating your own descendant of THaEvent is one way of
+  // defining and controlling the output.
+  THaEvent* event = new THaEvent;
+
+  // Define the run(s) that we want to analyze.
+  // We just set up one, but this could be many.
+  char RunFileName[100];
+  sprintf(RunFileName, RunFileNamePattern, RunNumber);
+  THaRun* run = new THaRun(RunFileName);
+
+  // Eventually need to learn to skip over, or properly analyze
+  // the pedestal events
+  run->SetEventRange(1, MaxEvent);    // Physics Event number, does not
+                                      // include scaler or control events.
+  run->SetNscan(1);
+  run->SetDataRequired(0x7);
+  run->Print();
+
+  // Define the analysis parameters
+  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber);
+  analyzer->SetCountMode(2);    // 0 = counter is # of physics triggers
+                                // 1 = counter is # of all decode reads
+                                // 2 = counter is event number
+  analyzer->SetEvent(event);
+  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
+  analyzer->SetOutFile(ROOTFileName.Data());
+  analyzer->SetOdefFile("DEF-files/SHMS/GEN/pstackana.def");
+  analyzer->SetCutFile("DEF-files/SHMS/GEN/pstackana_cuts.def");    // optional
+
+  // File to record cuts accounting information
+  //analyzer->SetSummaryFile("summary_example.log");    // optional
+
+  // Start the actual analysis.
+  analyzer->Process(run);
+  // Create report file from template.
+  //analyzer->PrintReport(    // optional
+  //  "TEMPLATES/dcana.template",
+  //  Form("REPORT_OUTPUT/replay_shms_%05d.report", RunNumber)
+  //);
+}
diff --git a/onlineGUI/Config/kpp.cfg b/onlineGUI/Config/kpp.cfg
new file mode 100755
index 0000000000000000000000000000000000000000..7231866367a78198572050f1b79e00770859e61a
--- /dev/null
+++ b/onlineGUI/Config/kpp.cfg
@@ -0,0 +1,119 @@
+protorootfile ../ROOTfiles/shms_replay_XXXXX.root
+guicolor lightblue
+#canvassize 1600 800
+canvassize 800 800
+newpage 3 3
+title Trigger Times
+macro Macros/kpp_analysis.C("h_p1X_tdc")
+macro Macros/kpp_analysis.C("h_p1Y_tdc")
+macro Macros/kpp_analysis.C("h_p2X_tdc")
+macro Macros/kpp_analysis.C("h_p2Y_tdc")
+macro Macros/kpp_analysis.C("h_p1T_tdc")
+macro Macros/kpp_analysis.C("h_p2T_tdc")
+macro Macros/kpp_analysis.C("h_pT1_tdc")
+macro Macros/kpp_analysis.C("h_pT2_tdc")
+macro Macros/kpp_analysis.C("h_pT3_tdc")
+newpage 4 3
+title DC Reference Times
+macro Macros/kpp_analysis.C("h_pDCREF1_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF2_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF3_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF4_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF5_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF6_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF7_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF8_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF9_tdc")
+macro Macros/kpp_analysis.C("h_pDCREF10_tdc")
+newpage 4 3
+title Hodoscope Plane Reference Times
+macro Macros/kpp_analysis.C("h_p1XmpT2_tdc")
+macro Macros/kpp_analysis.C("h_p1YmpT2_tdc")
+macro Macros/kpp_analysis.C("h_p2XmpT2_tdc")
+macro Macros/kpp_analysis.C("h_p2YmpT2_tdc")
+macro Macros/kpp_analysis.C("h_p1XmpT3_tdc")
+macro Macros/kpp_analysis.C("h_p1YmpT3_tdc")
+macro Macros/kpp_analysis.C("h_p2XmpT3_tdc")
+macro Macros/kpp_analysis.C("h_p2YmpT3_tdc")
+macro Macros/kpp_analysis.C("h_p1TmpT2_tdc")
+macro Macros/kpp_analysis.C("h_p1TmpT3_tdc")
+macro Macros/kpp_analysis.C("h_p2TmpT2_tdc")
+macro Macros/kpp_analysis.C("h_p2TmpT3_tdc")
+newpage 2 2
+title Focal Plane Times
+macro Macros/kpp_analysis.C("h_p1X_fpTime")
+macro Macros/kpp_analysis.C("h_p1Y_fpTime")
+macro Macros/kpp_analysis.C("h_p2X_fpTime")
+macro Macros/kpp_analysis.C("h_p2Y_fpTime")
+newpage 2 2 logz
+title Negative Hodoscope Corrected TDC Times
+macro Macros/kpp_analysis.C("h2_p1X_negTdcCorr")
+macro Macros/kpp_analysis.C("h2_p1Y_negTdcCorr")
+macro Macros/kpp_analysis.C("h2_p2X_negTdcCorr")
+macro Macros/kpp_analysis.C("h2_p2Y_negTdcCorr")
+newpage 2 2 logz
+title Positive Hodoscope Corrected TDC Times
+macro Macros/kpp_analysis.C("h2_p1X_posTdcCorr")
+macro Macros/kpp_analysis.C("h2_p1Y_posTdcCorr")
+macro Macros/kpp_analysis.C("h2_p2X_posTdcCorr")
+macro Macros/kpp_analysis.C("h2_p2Y_posTdcCorr")
+newpage 2 2 logz
+title Negative Hodoscope Pulse Time - TDC Time
+macro Macros/kpp_analysis.C("h2_p1Xneg_pt_tt_diff")
+macro Macros/kpp_analysis.C("h2_p1Yneg_pt_tt_diff")
+macro Macros/kpp_analysis.C("h2_p2Xneg_pt_tt_diff")
+macro Macros/kpp_analysis.C("h2_p2Yneg_pt_tt_diff")
+newpage 2 2 logz
+title Positive Hodoscope Pulse Time - TDC Time
+macro Macros/kpp_analysis.C("h2_p1Xpos_pt_tt_diff")
+macro Macros/kpp_analysis.C("h2_p1Ypos_pt_tt_diff")
+macro Macros/kpp_analysis.C("h2_p2Xpos_pt_tt_diff")
+macro Macros/kpp_analysis.C("h2_p2Ypos_pt_tt_diff")
+newpage 2 2 logz
+title Hodoscope Corrected TDC Time Differences
+macro Macros/kpp_analysis.C("h2_p1X_tdcCorrDiff")
+macro Macros/kpp_analysis.C("h2_p1Y_tdcCorrDiff")
+macro Macros/kpp_analysis.C("h2_p2X_tdcCorrDiff")
+macro Macros/kpp_analysis.C("h2_p2Y_tdcCorrDiff")
+newpage 2 2 
+title Plane Times
+macro Macros/kpp_analysis.C("h_p1X_plTime")
+macro Macros/kpp_analysis.C("h_p1Y_plTime")
+macro Macros/kpp_analysis.C("h_p2X_plTime")
+macro Macros/kpp_analysis.C("h_p2Y_plTime")
+newpage 3 2 logz
+title Aerogel ADC Pulse Times
+macro Macros/kpp_analysis.C("h2_paero_negPulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_paero_posPulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_paero_negPulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_paero_posPulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_paero_negPulseTime_pT3_diff")
+macro Macros/kpp_analysis.C("h2_paero_posPulseTime_pT3_diff")
+newpage 3 2 logz
+title Pre-Shower ADC Pulse Times
+macro Macros/kpp_analysis.C("h2_ppshwr_negPulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_ppshwr_posPulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_ppshwr_negPulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_ppshwr_posPulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_ppshwr_negPulseTime_pT3_diff")
+macro Macros/kpp_analysis.C("h2_ppshwr_posPulseTime_pT3_diff")
+newpage 3 1 logz
+title Shower ADC Pulse Times
+macro Macros/kpp_analysis.C("h2_pshwr_pulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_pshwr_pulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_pshwr_pulseTime_pT3_diff")
+newpage 3 1 logz
+title Heavy Gas ADC Pulse Times
+macro Macros/kpp_analysis.C("h2_phgc_pulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_phgc_pulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_phgc_pulseTime_pT3_diff")
+newpage 3 1 logz
+title Noble Gas ADC Pulse Times
+macro Macros/kpp_analysis.C("h2_pngc_pulseTime_pT1_diff")
+macro Macros/kpp_analysis.C("h2_pngc_pulseTime_pT2_diff")
+macro Macros/kpp_analysis.C("h2_pngc_pulseTime_pT3_diff")
+
+
+
+
+
diff --git a/onlineGUI/Macros/kpp_analysis.C b/onlineGUI/Macros/kpp_analysis.C
new file mode 100644
index 0000000000000000000000000000000000000000..1df73b6466cee03f3b03e267ef5e0b176dd396e2
--- /dev/null
+++ b/onlineGUI/Macros/kpp_analysis.C
@@ -0,0 +1,595 @@
+
+void UserScript() {
+
+  // Declare constants
+  static const Double_t clk2tdc     = 0.100;
+  static const Double_t clk2adc     = 0.0625;
+  static const UInt_t   ndcRefTimes = 10;
+
+  static const UInt_t nbars_1x = 13;
+  static const UInt_t nbars_1y = 13;
+  static const UInt_t nbars_2x = 14;
+  static const UInt_t nbars_2y = 21;
+
+  static const UInt_t nshwr_blks      = 224;
+  static const UInt_t npos_pshwr_blks = 14;
+  static const UInt_t nneg_pshwr_blks = 14;
+
+  static const UInt_t nhgc_pmts = 4;
+  static const UInt_t nngc_pmts = 4;
+
+  static const UInt_t npos_aero_pmts = 7;
+  static const UInt_t nneg_aero_pmts = 7; 
+
+  static const UInt_t maxTdcHits = 128;
+  static const UInt_t maxAdcHits = 4;
+
+  // =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
+
+  // Declare variables
+  Double_t p1X_tdcTime, p1Y_tdcTime, p2X_tdcTime, p2Y_tdcTime;
+  Double_t p1T_tdcTime, p2T_tdcTime;
+  Double_t pT1_tdcTime, pT2_tdcTime, pT3_tdcTime;
+  Double_t pDCREF_tdcTime[ndcRefTimes];
+
+  // Hodoscope hits
+  Int_t    p1X_negAdcHits, p1Y_negAdcHits, p2X_negAdcHits, p2Y_negAdcHits;
+  Int_t    p1X_negTdcHits, p1Y_negTdcHits, p2X_negTdcHits, p2Y_negTdcHits;
+  Double_t p1X_negAdcPaddle[maxAdcHits*nbars_1x], p1Y_negAdcPaddle[maxAdcHits*nbars_1y];
+  Double_t p2X_negAdcPaddle[maxAdcHits*nbars_2x], p2Y_negAdcPaddle[maxAdcHits*nbars_2y];
+  Double_t p1X_negTdcPaddle[maxTdcHits*nbars_1x], p1Y_negTdcPaddle[maxTdcHits*nbars_1y];
+  Double_t p2X_negTdcPaddle[maxTdcHits*nbars_2x], p2Y_negTdcPaddle[maxTdcHits*nbars_2y];
+  Double_t p1X_negAdcPulseTime[maxAdcHits*nbars_1x], p1Y_negAdcPulseTime[maxAdcHits*nbars_1y];
+  Double_t p2X_negAdcPulseTime[maxAdcHits*nbars_2x], p2Y_negAdcPulseTime[maxAdcHits*nbars_2y];
+  Double_t p1X_negTdcTime[maxTdcHits*nbars_1x], p1Y_negTdcTime[maxTdcHits*nbars_1y];
+  Double_t p2X_negTdcTime[maxTdcHits*nbars_2x], p2Y_negTdcTime[maxTdcHits*nbars_2y];
+  Int_t    p1X_posAdcHits, p1Y_posAdcHits, p2X_posAdcHits, p2Y_posAdcHits;
+  Int_t    p1X_posTdcHits, p1Y_posTdcHits, p2X_posTdcHits, p2Y_posTdcHits;
+  Double_t p1X_posAdcPaddle[maxAdcHits*nbars_1x], p1Y_posAdcPaddle[maxAdcHits*nbars_1y];
+  Double_t p2X_posAdcPaddle[maxAdcHits*nbars_2x], p2Y_posAdcPaddle[maxAdcHits*nbars_2y];
+  Double_t p1X_posTdcPaddle[maxTdcHits*nbars_1x], p1Y_posTdcPaddle[maxTdcHits*nbars_1y];
+  Double_t p2X_posTdcPaddle[maxTdcHits*nbars_2x], p2Y_posTdcPaddle[maxTdcHits*nbars_2y];
+  Double_t p1X_posAdcPulseTime[maxAdcHits*nbars_1x], p1Y_posAdcPulseTime[maxAdcHits*nbars_1y];
+  Double_t p2X_posAdcPulseTime[maxAdcHits*nbars_2x], p2Y_posAdcPulseTime[maxAdcHits*nbars_2y];
+  Double_t p1X_posTdcTime[maxTdcHits*nbars_1x], p1Y_posTdcTime[maxTdcHits*nbars_1y];
+  Double_t p2X_posTdcTime[maxTdcHits*nbars_2x], p2Y_posTdcTime[maxTdcHits*nbars_2y];
+
+  // "Good" hodo hits
+  Int_t    p1X_nGoodHodoHits, p1Y_nGoodHodoHits, p2X_nGoodHodoHits, p2Y_nGoodHodoHits;
+  Double_t p1X_goodPaddle[maxAdcHits*nbars_1x], p1Y_goodPaddle[maxAdcHits*nbars_1y];
+  Double_t p2X_goodPaddle[maxAdcHits*nbars_2x], p2Y_goodPaddle[maxAdcHits*nbars_2y];
+  Double_t p1X_goodNegTdcTimeCorr[maxTdcHits*nbars_1x], p1Y_goodNegTdcTimeCorr[maxTdcHits*nbars_1y];
+  Double_t p2X_goodNegTdcTimeCorr[maxTdcHits*nbars_2x], p2Y_goodNegTdcTimeCorr[maxTdcHits*nbars_2y];
+  Double_t p1X_goodPosTdcTimeCorr[maxTdcHits*nbars_1x], p1Y_goodPosTdcTimeCorr[maxTdcHits*nbars_1y];
+  Double_t p2X_goodPosTdcTimeCorr[maxTdcHits*nbars_2x], p2Y_goodPosTdcTimeCorr[maxTdcHits*nbars_2y];
+  
+  // Hodoscope focal plane times
+  Double_t p1X_fpTime, p1Y_fpTime, p2X_fpTime, p2Y_fpTime;
+  Double_t p1X_plTime, p1Y_plTime, p2X_plTime, p2Y_plTime;
+
+  // Aerogel ADC
+  Int_t paero_posHits, paero_negHits;
+  Double_t paero_posPmt[maxAdcHits*npos_aero_pmts], paero_negPmt[maxAdcHits*nneg_aero_pmts];
+  Double_t paero_posPulseTime[maxAdcHits*npos_aero_pmts], paero_negPulseTime[maxAdcHits*nneg_aero_pmts];
+
+  // Pre-Shower ADC
+  Int_t ppshwr_posHits, ppshwr_negHits;
+  Double_t ppshwr_posPmt[maxAdcHits*npos_pshwr_blks], ppshwr_negPmt[maxAdcHits*nneg_pshwr_blks];
+  Double_t ppshwr_posPulseTime[maxAdcHits*npos_pshwr_blks], ppshwr_negPulseTime[maxAdcHits*nneg_pshwr_blks];
+
+  // Shower ADC
+  Int_t pshwr_hits;
+  Double_t pshwr_pmt[maxAdcHits*nshwr_blks], pshwr_pulseTime[maxAdcHits*nshwr_blks];
+
+  // Heavy gas Cherenkov ADC
+  Int_t phgc_hits;
+  Double_t phgc_pmt[maxAdcHits*nhgc_pmts], phgc_pulseTime[maxAdcHits*nhgc_pmts];
+  
+  // Noble gas Cherenkov ADC
+  Int_t pngc_hits;
+  Double_t pngc_pmt[maxAdcHits*nngc_pmts], pngc_pulseTime[maxAdcHits*nngc_pmts];
+  
+  Long64_t nentries;
+
+  // =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
+
+  // Declare Histos
+  TH1F *h_p1X_tdc, *h_p1Y_tdc, *h_p2X_tdc, *h_p2Y_tdc;
+  TH1F *h_p1T_tdc, *h_p2T_tdc;
+  TH1F *h_pT1_tdc, *h_pT2_tdc, *h_pT3_tdc;
+  TH1F *h_p1XmpT2_tdc, *h_p1YmpT2_tdc, *h_p2XmpT2_tdc, *h_p2YmpT2_tdc;
+  TH1F *h_p1XmpT3_tdc, *h_p1YmpT3_tdc, *h_p2XmpT3_tdc, *h_p2YmpT3_tdc;
+  TH1F *h_p1TmpT2_tdc, *h_p2TmpT2_tdc, *h_p1TmpT3_tdc, *h_p2TmpT3_tdc;
+  TH1F *h_pDCREF_tdc[ndcRefTimes];
+
+  TH2F *h2_p1Xneg_pt_tt_diff, *h2_p1Yneg_pt_tt_diff, *h2_p2Xneg_pt_tt_diff, *h2_p2Yneg_pt_tt_diff;
+  TH2F *h2_p1Xpos_pt_tt_diff, *h2_p1Ypos_pt_tt_diff, *h2_p2Xpos_pt_tt_diff, *h2_p2Ypos_pt_tt_diff;
+
+  TH1F *h_p1X_fpTime, *h_p1Y_fpTime, *h_p2X_fpTime, *h_p2Y_fpTime;
+  TH1F *h_p1X_plTime, *h_p1Y_plTime, *h_p2X_plTime, *h_p2Y_plTime;
+
+  TH2F *h2_p1X_negTdcCorr, *h2_p1Y_negTdcCorr, *h2_p2X_negTdcCorr, *h2_p2Y_negTdcCorr;
+  TH2F *h2_p1X_posTdcCorr, *h2_p1Y_posTdcCorr, *h2_p2X_posTdcCorr, *h2_p2Y_posTdcCorr;
+  TH2F *h2_p1X_tdcCorrDiff, *h2_p1Y_tdcCorrDiff, *h2_p2X_tdcCorrDiff, *h2_p2Y_tdcCorrDiff;
+
+  TH2F *h2_paero_posPulseTime_pT1_diff, *h2_paero_negPulseTime_pT1_diff;
+  TH2F *h2_paero_posPulseTime_pT2_diff, *h2_paero_negPulseTime_pT2_diff;
+  TH2F *h2_paero_posPulseTime_pT3_diff, *h2_paero_negPulseTime_pT3_diff;
+
+  TH2F *h2_ppshwr_posPulseTime_pT1_diff, *h2_ppshwr_negPulseTime_pT1_diff;
+  TH2F *h2_ppshwr_posPulseTime_pT2_diff, *h2_ppshwr_negPulseTime_pT2_diff;
+  TH2F *h2_ppshwr_posPulseTime_pT3_diff, *h2_ppshwr_negPulseTime_pT3_diff;
+
+  TH2F *h2_pshwr_pulseTime_pT1_diff;
+  TH2F *h2_pshwr_pulseTime_pT2_diff;
+  TH2F *h2_pshwr_pulseTime_pT3_diff;
+
+  TH2F *h2_phgc_pulseTime_pT1_diff;
+  TH2F *h2_phgc_pulseTime_pT2_diff;
+  TH2F *h2_phgc_pulseTime_pT3_diff;
+  
+  TH2F *h2_pngc_pulseTime_pT1_diff;
+  TH2F *h2_pngc_pulseTime_pT2_diff;
+  TH2F *h2_pngc_pulseTime_pT3_diff;
+
+  // =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
+  
+  // Declare trees
+  TTree *T = (TTree*) gDirectory->Get("T");
+
+  // Acquire the number of entries
+  nentries = T->GetEntries();
+
+  // Acquire the branches
+  // Trigger time information
+  T->SetBranchAddress("T.shms.p1X_tdcTime", &p1X_tdcTime);
+  T->SetBranchAddress("T.shms.p1Y_tdcTime", &p1Y_tdcTime);
+  T->SetBranchAddress("T.shms.p2X_tdcTime", &p2X_tdcTime);
+  T->SetBranchAddress("T.shms.p2Y_tdcTime", &p2Y_tdcTime);
+  T->SetBranchAddress("T.shms.p1T_tdcTime", &p1T_tdcTime);
+  T->SetBranchAddress("T.shms.p2T_tdcTime", &p2T_tdcTime);
+  T->SetBranchAddress("T.shms.pT1_tdcTime", &pT1_tdcTime);
+  T->SetBranchAddress("T.shms.pT2_tdcTime", &pT2_tdcTime);
+  T->SetBranchAddress("T.shms.pT3_tdcTime", &pT3_tdcTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  // DC reference times
+  for (UInt_t iref = 0; iref < ndcRefTimes; iref++)
+    T->SetBranchAddress(Form("T.shms.pDCREF%d_tdcTime", iref+1), &pDCREF_tdcTime[iref]);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  // Hodoscope focal plane time calculation
+  T->SetBranchAddress("P.hod.1x.fptime", &p1X_fpTime);
+  T->SetBranchAddress("P.hod.1y.fptime", &p1Y_fpTime);
+  T->SetBranchAddress("P.hod.2x.fptime", &p2X_fpTime);
+  T->SetBranchAddress("P.hod.2y.fptime", &p2Y_fpTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  // Hodoscope ADC information
+  T->SetBranchAddress("Ndata.P.hod.1x.negAdcCounter", &p1X_negAdcHits);
+  T->SetBranchAddress("Ndata.P.hod.1y.negAdcCounter", &p1Y_negAdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2x.negAdcCounter", &p2X_negAdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2y.negAdcCounter", &p2Y_negAdcHits);
+  T->SetBranchAddress("P.hod.1x.negAdcCounter", p1X_negAdcPaddle);
+  T->SetBranchAddress("P.hod.1y.negAdcCounter", p1Y_negAdcPaddle);
+  T->SetBranchAddress("P.hod.2x.negAdcCounter", p2X_negAdcPaddle);
+  T->SetBranchAddress("P.hod.2y.negAdcCounter", p2Y_negAdcPaddle);
+  T->SetBranchAddress("P.hod.1x.negAdcPulseTimeRaw", p1X_negAdcPulseTime);
+  T->SetBranchAddress("P.hod.1y.negAdcPulseTimeRaw", p1Y_negAdcPulseTime);
+  T->SetBranchAddress("P.hod.2x.negAdcPulseTimeRaw", p2X_negAdcPulseTime);
+  T->SetBranchAddress("P.hod.2y.negAdcPulseTimeRaw", p2Y_negAdcPulseTime);
+  T->SetBranchAddress("Ndata.P.hod.1x.posAdcCounter", &p1X_posAdcHits);
+  T->SetBranchAddress("Ndata.P.hod.1y.posAdcCounter", &p1Y_posAdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2x.posAdcCounter", &p2X_posAdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2y.posAdcCounter", &p2Y_posAdcHits);
+  T->SetBranchAddress("P.hod.1x.posAdcCounter", p1X_posAdcPaddle);
+  T->SetBranchAddress("P.hod.1y.posAdcCounter", p1Y_posAdcPaddle);
+  T->SetBranchAddress("P.hod.2x.posAdcCounter", p2X_posAdcPaddle);
+  T->SetBranchAddress("P.hod.2y.posAdcCounter", p2Y_posAdcPaddle);
+  T->SetBranchAddress("P.hod.1x.posAdcPulseTimeRaw", p1X_posAdcPulseTime);
+  T->SetBranchAddress("P.hod.1y.posAdcPulseTimeRaw", p1Y_posAdcPulseTime);
+  T->SetBranchAddress("P.hod.2x.posAdcPulseTimeRaw", p2X_posAdcPulseTime);
+  T->SetBranchAddress("P.hod.2y.posAdcPulseTimeRaw", p2Y_posAdcPulseTime);
+  // Hodoscope TDC information
+  T->SetBranchAddress("Ndata.P.hod.1x.negTdcCounter", &p1X_negTdcHits);
+  T->SetBranchAddress("Ndata.P.hod.1y.negTdcCounter", &p1Y_negTdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2x.negTdcCounter", &p2X_negTdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2y.negTdcCounter", &p2Y_negTdcHits);
+  T->SetBranchAddress("P.hod.1x.negTdcCounter", p1X_negTdcPaddle);
+  T->SetBranchAddress("P.hod.1y.negTdcCounter", p1Y_negTdcPaddle);
+  T->SetBranchAddress("P.hod.2x.negTdcCounter", p2X_negTdcPaddle);
+  T->SetBranchAddress("P.hod.2y.negTdcCounter", p2Y_negTdcPaddle);
+  T->SetBranchAddress("P.hod.1x.negTdcTime", p1X_negTdcTime);
+  T->SetBranchAddress("P.hod.1y.negTdcTime", p1Y_negTdcTime);
+  T->SetBranchAddress("P.hod.2x.negTdcTime", p2X_negTdcTime);
+  T->SetBranchAddress("P.hod.2y.negTdcTime", p2Y_negTdcTime);
+  T->SetBranchAddress("Ndata.P.hod.1x.posTdcCounter", &p1X_posTdcHits);
+  T->SetBranchAddress("Ndata.P.hod.1y.posTdcCounter", &p1Y_posTdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2x.posTdcCounter", &p2X_posTdcHits);
+  T->SetBranchAddress("Ndata.P.hod.2y.posTdcCounter", &p2Y_posTdcHits);
+  T->SetBranchAddress("P.hod.1x.posTdcCounter", p1X_posTdcPaddle);
+  T->SetBranchAddress("P.hod.1y.posTdcCounter", p1Y_posTdcPaddle);
+  T->SetBranchAddress("P.hod.2x.posTdcCounter", p2X_posTdcPaddle);
+  T->SetBranchAddress("P.hod.2y.posTdcCounter", p2Y_posTdcPaddle);
+  T->SetBranchAddress("P.hod.1x.posTdcTime", p1X_posTdcTime);
+  T->SetBranchAddress("P.hod.1y.posTdcTime", p1Y_posTdcTime);
+  T->SetBranchAddress("P.hod.2x.posTdcTime", p2X_posTdcTime);
+  T->SetBranchAddress("P.hod.2y.posTdcTime", p2Y_posTdcTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  // "Good" hodoscope hits
+  // Hodoscope corrected times (not corrected for TOF to focal plane)
+  T->SetBranchAddress("Ndata.P.hod.1x.GoodPaddle", &p1X_nGoodHodoHits);
+  T->SetBranchAddress("Ndata.P.hod.1y.GoodPaddle", &p1Y_nGoodHodoHits);
+  T->SetBranchAddress("Ndata.P.hod.2x.GoodPaddle", &p2X_nGoodHodoHits);
+  T->SetBranchAddress("Ndata.P.hod.2y.GoodPaddle", &p2Y_nGoodHodoHits);
+  T->SetBranchAddress("P.hod.1x.GoodPaddle", p1X_goodPaddle);
+  T->SetBranchAddress("P.hod.1y.GoodPaddle", p1Y_goodPaddle);
+  T->SetBranchAddress("P.hod.2x.GoodPaddle", p2X_goodPaddle);
+  T->SetBranchAddress("P.hod.2y.GoodPaddle", p2Y_goodPaddle);
+  T->SetBranchAddress("P.hod.1x.GoodNegTdcTimeCorr", p1X_goodNegTdcTimeCorr);
+  T->SetBranchAddress("P.hod.1y.GoodNegTdcTimeCorr", p1Y_goodNegTdcTimeCorr);
+  T->SetBranchAddress("P.hod.2x.GoodNegTdcTimeCorr", p2X_goodNegTdcTimeCorr);
+  T->SetBranchAddress("P.hod.2y.GoodNegTdcTimeCorr", p2Y_goodNegTdcTimeCorr); 
+  T->SetBranchAddress("P.hod.1x.GoodPosTdcTimeCorr", p1X_goodPosTdcTimeCorr);
+  T->SetBranchAddress("P.hod.1y.GoodPosTdcTimeCorr", p1Y_goodPosTdcTimeCorr);
+  T->SetBranchAddress("P.hod.2x.GoodPosTdcTimeCorr", p2X_goodPosTdcTimeCorr);
+  T->SetBranchAddress("P.hod.2y.GoodPosTdcTimeCorr", p2Y_goodPosTdcTimeCorr); 
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  T->SetBranchAddress("Ndata.P.aero.negAdcCounter", &paero_negHits);
+  T->SetBranchAddress("Ndata.P.aero.posAdcCounter", &paero_posHits);
+  T->SetBranchAddress("P.aero.negAdcCounter", paero_negPmt);
+  T->SetBranchAddress("P.aero.posAdcCounter", paero_posPmt);
+  T->SetBranchAddress("P.aero.negAdcPulseTimeRaw", paero_negPulseTime);
+  T->SetBranchAddress("P.aero.posAdcPulseTimeRaw", paero_posPulseTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  T->SetBranchAddress("Ndata.P.cal.pr.negAdcCounter", &ppshwr_negHits);
+  T->SetBranchAddress("Ndata.P.cal.pr.posAdcCounter", &ppshwr_posHits);
+  T->SetBranchAddress("P.cal.pr.negAdcCounter", ppshwr_negPmt);
+  T->SetBranchAddress("P.cal.pr.posAdcCounter", ppshwr_posPmt);
+  T->SetBranchAddress("P.cal.pr.negAdcPulseTimeRaw", ppshwr_negPulseTime);
+  T->SetBranchAddress("P.cal.pr.posAdcPulseTimeRaw", ppshwr_posPulseTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  T->SetBranchAddress("Ndata.P.cal.fly.adcCounter", &pshwr_hits);
+  T->SetBranchAddress("P.cal.fly.adcCounter", pshwr_pmt);
+  T->SetBranchAddress("P.cal.fly.adcPulseTimeRaw", pshwr_pulseTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  T->SetBranchAddress("Ndata.P.hgcer.adcCounter", &phgc_hits);
+  T->SetBranchAddress("P.hgcer.adcCounter", &phgc_pmt);
+  T->SetBranchAddress("P.hgcer.adcPulseTimeRaw", &phgc_pulseTime);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  T->SetBranchAddress("Ndata.P.ngcer.adcCounter", &pngc_hits);
+  T->SetBranchAddress("P.ngcer.adcCounter", &pngc_pmt);
+  T->SetBranchAddress("P.ngcer.adcPulseTimeRaw", &pngc_pulseTime);
+  
+  // =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
+          
+  // Create histos
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h_p1X_tdc = new TH1F("h_p1X_tdc", "S1X Coincidence Time; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1Y_tdc = new TH1F("h_p1Y_tdc", "S1Y Coincidence Time; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2X_tdc = new TH1F("h_p2X_tdc", "S2X Coincidence Time; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2Y_tdc = new TH1F("h_p2Y_tdc", "S2Y Coincidence Time; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1T_tdc = new TH1F("h_p1T_tdc", "S1X/S1Y Coincidence Time; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2T_tdc = new TH1F("h_p2T_tdc", "S2X/S2Y Coincidence Time; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_pT1_tdc = new TH1F("h_pT1_tdc", "Hodoscope Trigger (Slot 20 Channel 15); TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_pT2_tdc = new TH1F("h_pT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31); TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_pT3_tdc = new TH1F("h_pT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38); TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  for (UInt_t iref = 0; iref < ndcRefTimes; iref++)
+    h_pDCREF_tdc[iref] = new TH1F(Form("h_pDCREF%d_tdc", iref+1), Form("DC Reference Time %d; TDC Time (ns); Counts / 1 ns", iref+1), 200, 1200, 1400);
+  h_p1XmpT2_tdc = new TH1F("h_p1XmpT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31) - S1X; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1YmpT2_tdc = new TH1F("h_p1YmpT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31) - S1Y; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2XmpT2_tdc = new TH1F("h_p2XmpT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31) - S2X; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2YmpT2_tdc = new TH1F("h_p2YmpT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31) - S2Y; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1TmpT2_tdc = new TH1F("h_p1TmpT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31) - S1; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2TmpT2_tdc = new TH1F("h_p2TmpT2_tdc", "Hodoscope Trigger (Slot 19 Channel 31) - S2; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1XmpT3_tdc = new TH1F("h_p1XmpT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38) - S1X; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1YmpT3_tdc = new TH1F("h_p1YmpT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38) - S1Y; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2XmpT3_tdc = new TH1F("h_p2XmpT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38) - S2X; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2YmpT3_tdc = new TH1F("h_p2YmpT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38) - S2Y; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p1TmpT3_tdc = new TH1F("h_p1TmpT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38) - S1; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+  h_p2TmpT3_tdc = new TH1F("h_p2TmpT3_tdc", "Hodoscope Trigger (Slot 19 Channel 38) - S2; TDC Time (ns); Counts / 1 ns", 250, 0, 250);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_p1Xneg_pt_tt_diff = new TH2F("h2_p1Xneg_pt_tt_diff", "S1X- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_1x, 0.5, nbars_1x + 0.5, 300, 0, 300);
+  h2_p1Yneg_pt_tt_diff = new TH2F("h2_p1Yneg_pt_tt_diff", "S1Y- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_1y, 0.5, nbars_1y + 0.5, 300, 0, 300);
+  h2_p2Xneg_pt_tt_diff = new TH2F("h2_p2Xneg_pt_tt_diff", "S2X- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_2x, 0.5, nbars_2x + 0.5, 300, 0, 300);
+  h2_p2Yneg_pt_tt_diff = new TH2F("h2_p2Yneg_pt_tt_diff", "S2Y- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_2y, 0.5, nbars_2y + 0.5, 300, 0, 300);
+  h2_p1Xpos_pt_tt_diff = new TH2F("h2_p1Xpos_pt_tt_diff", "S1X- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_1x, 0.5, nbars_1x + 0.5, 300, 0, 300);
+  h2_p1Ypos_pt_tt_diff = new TH2F("h2_p1Ypos_pt_tt_diff", "S1Y- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_1y, 0.5, nbars_1y + 0.5, 300, 0, 300);
+  h2_p2Xpos_pt_tt_diff = new TH2F("h2_p2Xpos_pt_tt_diff", "S2X- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_2x, 0.5, nbars_2x + 0.5, 300, 0, 300);
+  h2_p2Ypos_pt_tt_diff = new TH2F("h2_p2Ypos_pt_tt_diff", "S2Y- Pulse Time - TDC Time; Pulse Time - TDC Time (ns); Counts / 1 ns", nbars_2y, 0.5, nbars_2y + 0.5, 300, 0, 300);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h_p1X_fpTime = new TH1F("h_p1X_fpTime", "S1X Focal Plane Time; TDC Time (ns); Counts / 1ns", 100, 0, 100);
+  h_p1Y_fpTime = new TH1F("h_p1Y_fpTime", "S1Y Focal Plane Time; TDC Time (ns); Counts / 1ns", 100, 0, 100);
+  h_p2X_fpTime = new TH1F("h_p2X_fpTime", "S2X Focal Plane Time; TDC Time (ns); Counts / 1ns", 100, 0, 100);
+  h_p2Y_fpTime = new TH1F("h_p2Y_fpTime", "S2Y Focal Plane Time; TDC Time (ns); Counts / 1ns", 100, 0, 100);
+
+  h_p1X_plTime = new TH1F("h_p1X_plTime", "S1X Plane Time; TDC Time (ns); Counts / 1ns", 200, -100, 100);
+  h_p1Y_plTime = new TH1F("h_p1Y_plTime", "S1Y Plane Time; TDC Time (ns); Counts / 1ns", 200, -100, 100);
+  h_p2X_plTime = new TH1F("h_p2X_plTime", "S2X Plane Time; TDC Time (ns); Counts / 1ns", 200, -100, 100);
+  h_p2Y_plTime = new TH1F("h_p2Y_plTime", "S2Y Plane Time; TDC Time (ns); Counts / 1ns", 200, -100, 100);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_p1X_negTdcCorr = new TH2F("h2_p1X_negTdcCorr", "S1X- Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_1x, 0.5, nbars_1x + 0.5, 200, -100, 100);
+  h2_p1Y_negTdcCorr = new TH2F("h2_p1Y_negTdcCorr", "S1Y- Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_1y, 0.5, nbars_1y + 0.5, 200, -100, 100);
+  h2_p2X_negTdcCorr = new TH2F("h2_p2X_negTdcCorr", "S2X- Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_2x, 0.5, nbars_2x + 0.5, 200, -100, 100);
+  h2_p2Y_negTdcCorr = new TH2F("h2_p2Y_negTdcCorr", "S2Y- Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_2y, 0.5, nbars_2y + 0.5, 200, -100, 100);
+  h2_p1X_posTdcCorr = new TH2F("h2_p1X_posTdcCorr", "S1X+ Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_1x, 0.5, nbars_1x + 0.5, 200, -100, 100);
+  h2_p1Y_posTdcCorr = new TH2F("h2_p1Y_posTdcCorr", "S1Y+ Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_1y, 0.5, nbars_1y + 0.5, 200, -100, 100);
+  h2_p2X_posTdcCorr = new TH2F("h2_p2X_posTdcCorr", "S2X+ Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_2x, 0.5, nbars_2x + 0.5, 200, -100, 100);
+  h2_p2Y_posTdcCorr = new TH2F("h2_p2Y_posTdcCorr", "S2Y+ Corrected TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_2y, 0.5, nbars_2y + 0.5, 200, -100, 100);
+  h2_p1X_tdcCorrDiff = new TH2F("h2_p1X_tdcCorrDiff", "S1X-/S1X+ Corrected TDC Time Difference vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_1x, 0.5, nbars_1x + 0.5, 100, -50, 50);
+  h2_p1Y_tdcCorrDiff = new TH2F("h2_p1Y_tdcCorrDiff", "S1Y-/S1Y+ Corrected TDC Time Difference vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_1y, 0.5, nbars_1y + 0.5, 100, -50, 50);
+  h2_p2X_tdcCorrDiff = new TH2F("h2_p2X_tdcCorrDiff", "S2X-/S2X+ Corrected TDC Time Difference vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_2x, 0.5, nbars_2x + 0.5, 100, -50, 50);
+  h2_p2Y_tdcCorrDiff = new TH2F("h2_p2Y_tdcCorrDiff", "S2Y-/S2Y+ Corrected TDC Time Difference vs. Paddle Number; Paddle Number; TDC Time (ns)", nbars_2y, 0.5, nbars_2y + 0.5, 100, -50, 50);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_paero_negPulseTime_pT1_diff = new TH2F("h2_paero_negPulseTime_pT1_diff", "SHMS Negative Aerogel ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", nneg_aero_pmts, 0.5, nneg_aero_pmts + 0.5, 500, -250, 250);
+  h2_paero_negPulseTime_pT2_diff = new TH2F("h2_paero_negPulseTime_pT2_diff", "SHMS Negative Aerogel ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", nneg_aero_pmts, 0.5, nneg_aero_pmts + 0.5, 500, -250, 250);
+  h2_paero_negPulseTime_pT3_diff = new TH2F("h2_paero_negPulseTime_pT3_diff", "SHMS Negative Aerogel ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", nneg_aero_pmts, 0.5, nneg_aero_pmts + 0.5, 500, -250, 250);
+  h2_paero_posPulseTime_pT1_diff = new TH2F("h2_paero_posPulseTime_pT1_diff", "SHMS Positive Aerogel ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", npos_aero_pmts, 0.5, npos_aero_pmts + 0.5, 500, -250, 250);
+  h2_paero_posPulseTime_pT2_diff = new TH2F("h2_paero_posPulseTime_pT2_diff", "SHMS Positive Aerogel ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", npos_aero_pmts, 0.5, npos_aero_pmts + 0.5, 500, -250, 250);
+  h2_paero_posPulseTime_pT3_diff = new TH2F("h2_paero_posPulseTime_pT3_diff", "SHMS Positive Aerogel ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", npos_aero_pmts, 0.5, npos_aero_pmts + 0.5, 500, -250, 250);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_ppshwr_negPulseTime_pT1_diff = new TH2F("h2_ppshwr_negPulseTime_pT1_diff", "SHMS Negative Pre Shower ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", nneg_pshwr_blks, 0.5, nneg_pshwr_blks + 0.5, 500, -250, 250);
+  h2_ppshwr_negPulseTime_pT2_diff = new TH2F("h2_ppshwr_negPulseTime_pT2_diff", "SHMS Negative Pre Shower ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", nneg_pshwr_blks, 0.5, nneg_pshwr_blks + 0.5, 500, -250, 250);
+  h2_ppshwr_negPulseTime_pT3_diff = new TH2F("h2_ppshwr_negPulseTime_pT3_diff", "SHMS Negative Pre Shower ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", nneg_pshwr_blks, 0.5, nneg_pshwr_blks + 0.5, 500, -250, 250);
+  h2_ppshwr_posPulseTime_pT1_diff = new TH2F("h2_ppshwr_posPulseTime_pT1_diff", "SHMS Positive Pre Shower ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", npos_pshwr_blks, 0.5, npos_pshwr_blks + 0.5, 500, -250, 250);
+  h2_ppshwr_posPulseTime_pT2_diff = new TH2F("h2_ppshwr_posPulseTime_pT2_diff", "SHMS Positive Pre Shower ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", npos_pshwr_blks, 0.5, npos_pshwr_blks + 0.5, 500, -250, 250);
+  h2_ppshwr_posPulseTime_pT3_diff = new TH2F("h2_ppshwr_posPulseTime_pT3_diff", "SHMS Positive Pre Shower ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", npos_pshwr_blks, 0.5, npos_pshwr_blks + 0.5, 500, -250, 250);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_pshwr_pulseTime_pT1_diff = new TH2F("h2_pshwr_pulseTime_pT1_diff", "SHMS Shower ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", nshwr_blks, 0.5, nshwr_blks + 0.5, 500, -250, 250);
+  h2_pshwr_pulseTime_pT2_diff = new TH2F("h2_pshwr_pulseTime_pT2_diff", "SHMS Shower ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", nshwr_blks, 0.5, nshwr_blks + 0.5, 500, -250, 250);
+  h2_pshwr_pulseTime_pT3_diff = new TH2F("h2_pshwr_pulseTime_pT3_diff", "SHMS Shower ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", nshwr_blks, 0.5, nshwr_blks + 0.5, 500, -250, 250);
+
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_phgc_pulseTime_pT1_diff = new TH2F("h2_phgc_pulseTime_pT1_diff", "SHMS Heavy Gas Cherenkov ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", nhgc_pmts, 0.5, nhgc_pmts + 0.5, 500, -250, 250);
+  h2_phgc_pulseTime_pT2_diff = new TH2F("h2_phgc_pulseTime_pT2_diff", "SHMS Heavy Gas Cherenkov ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", nhgc_pmts, 0.5, nhgc_pmts + 0.5, 500, -250, 250);
+  h2_phgc_pulseTime_pT3_diff = new TH2F("h2_phgc_pulseTime_pT3_diff", "SHMS Heavy Gas Cherenkov ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", nhgc_pmts, 0.5, nhgc_pmts + 0.5, 500, -250, 250);
+  
+  // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//
+
+  h2_pngc_pulseTime_pT1_diff = new TH2F("h2_pngc_pulseTime_pT1_diff", "SHMS Noble Gas Cherenkov ADC Pulse Time - T1; PMT Number; ADC Pulse Time - Trigger 1 Time (ns)", nngc_pmts, 0.5, nngc_pmts + 0.5, 500, -250, 250);
+  h2_pngc_pulseTime_pT2_diff = new TH2F("h2_pngc_pulseTime_pT2_diff", "SHMS Noble Gas Cherenkov ADC Pulse Time - T2; PMT Number; ADC Pulse Time - Trigger 2 Time (ns)", nngc_pmts, 0.5, nngc_pmts + 0.5, 500, -250, 250);
+  h2_pngc_pulseTime_pT3_diff = new TH2F("h2_pngc_pulseTime_pT3_diff", "SHMS Noble Gas Cherenkov ADC Pulse Time - T3; PMT Number; ADC Pulse Time - Trigger 3 Time (ns)", nngc_pmts, 0.5, nngc_pmts + 0.5, 500, -250, 250);
+  
+  // =:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
+
+  // Loop of entries in tree
+  for(UInt_t ievent = 0; ievent < nentries; ievent++) {
+    
+    T->GetEntry(ievent);
+
+    // cout << "========================" << endl;
+    // cout << "Event Number = " << ievent << endl;
+    // cout << "========================" << endl;   
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    // Fill "good" hit histos
+    for (UInt_t igoodhit = 0; igoodhit < p1X_nGoodHodoHits; igoodhit++) {
+      h2_p1X_negTdcCorr->Fill(p1X_goodPaddle[igoodhit], p1X_goodNegTdcTimeCorr[igoodhit]);
+      h2_p1X_posTdcCorr->Fill(p1X_goodPaddle[igoodhit], p1X_goodPosTdcTimeCorr[igoodhit]);
+      h2_p1X_tdcCorrDiff->Fill(p1X_goodPaddle[igoodhit], p1X_goodPosTdcTimeCorr[igoodhit] - p1X_goodNegTdcTimeCorr[igoodhit]);
+      if (TMath::Abs(p1X_goodPosTdcTimeCorr[igoodhit] - p1X_goodNegTdcTimeCorr[igoodhit]) > 0.1) continue;
+      h_p1X_plTime->Fill(p1X_goodPosTdcTimeCorr[igoodhit]);
+    }
+    for (UInt_t igoodhit = 0; igoodhit < p1Y_nGoodHodoHits; igoodhit++) {
+      h2_p1Y_negTdcCorr->Fill(p1Y_goodPaddle[igoodhit], p1Y_goodNegTdcTimeCorr[igoodhit]);
+      h2_p1Y_posTdcCorr->Fill(p1Y_goodPaddle[igoodhit], p1Y_goodPosTdcTimeCorr[igoodhit]);
+      h2_p1Y_tdcCorrDiff->Fill(p1Y_goodPaddle[igoodhit], p1Y_goodPosTdcTimeCorr[igoodhit] - p1Y_goodNegTdcTimeCorr[igoodhit]);
+      if (TMath::Abs(p1Y_goodPosTdcTimeCorr[igoodhit] - p1Y_goodNegTdcTimeCorr[igoodhit]) > 0.1) continue;
+      h_p1Y_plTime->Fill(p1Y_goodPosTdcTimeCorr[igoodhit]);
+    }
+    for (UInt_t igoodhit = 0; igoodhit < p2X_nGoodHodoHits; igoodhit++) {
+      h2_p2X_negTdcCorr->Fill(p2X_goodPaddle[igoodhit], p2X_goodNegTdcTimeCorr[igoodhit]);
+      h2_p2X_posTdcCorr->Fill(p2X_goodPaddle[igoodhit], p2X_goodPosTdcTimeCorr[igoodhit]);
+      h2_p2X_tdcCorrDiff->Fill(p2X_goodPaddle[igoodhit], p2X_goodPosTdcTimeCorr[igoodhit] - p2X_goodNegTdcTimeCorr[igoodhit]);
+      if (TMath::Abs(p2X_goodPosTdcTimeCorr[igoodhit] - p2X_goodNegTdcTimeCorr[igoodhit]) > 0.1) continue;
+      h_p2X_plTime->Fill(p2X_goodPosTdcTimeCorr[igoodhit]);
+    }
+    for (UInt_t igoodhit = 0; igoodhit < p2Y_nGoodHodoHits; igoodhit++) {
+      h2_p2Y_negTdcCorr->Fill(p2Y_goodPaddle[igoodhit], p2Y_goodNegTdcTimeCorr[igoodhit]);
+      h2_p2Y_posTdcCorr->Fill(p2Y_goodPaddle[igoodhit], p2Y_goodPosTdcTimeCorr[igoodhit]);
+      h2_p2Y_tdcCorrDiff->Fill(p2Y_goodPaddle[igoodhit], p2Y_goodPosTdcTimeCorr[igoodhit] - p2Y_goodNegTdcTimeCorr[igoodhit]);
+      if (TMath::Abs(p2Y_goodPosTdcTimeCorr[igoodhit] - p2Y_goodNegTdcTimeCorr[igoodhit]) > 0.1) continue;
+      h_p2Y_plTime->Fill(p2Y_goodPosTdcTimeCorr[igoodhit]);
+    }
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    // Fill pulse/tdc time difference histos
+
+    // cout << "Num of ADC Hits = " << p1X_negAdcHits << endl;
+    // cout << "ADC Paddle Number = " << p1X_negAdcPaddle[iadchit] << endl;
+    // cout << "Num of TDC Hits = " << p1X_negTdcHits << endl;
+    // cout << "TDC Paddle Number = " << p1X_negTdcPaddle[itdchit] << endl;
+
+    for (UInt_t iadchit = 0; iadchit < p1X_negAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p1X_negTdcHits; itdchit++) {
+	if (p1X_negAdcPaddle[iadchit] != p1X_negTdcPaddle[itdchit]) continue;
+	h2_p1Xneg_pt_tt_diff->Fill(p1X_negAdcPaddle[iadchit], p1X_negAdcPulseTime[iadchit]*clk2adc - p1X_negTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p1Y_negAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p1Y_negTdcHits; itdchit++) {
+	if (p1Y_negAdcPaddle[iadchit] != p1Y_negTdcPaddle[itdchit]) continue;
+	h2_p1Yneg_pt_tt_diff->Fill(p1Y_negAdcPaddle[iadchit], p1Y_negAdcPulseTime[iadchit]*clk2adc - p1Y_negTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p2X_negAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p2X_negTdcHits; itdchit++) {
+	if (p2X_negAdcPaddle[iadchit] != p2X_negTdcPaddle[itdchit]) continue;
+	h2_p2Xneg_pt_tt_diff->Fill(p2X_negAdcPaddle[iadchit], p2X_negAdcPulseTime[iadchit]*clk2adc - p2X_negTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p2Y_negAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p2Y_negTdcHits; itdchit++) {
+	if (p2Y_negAdcPaddle[iadchit] != p2Y_negTdcPaddle[itdchit]) continue;
+	h2_p2Yneg_pt_tt_diff->Fill(p2Y_negAdcPaddle[iadchit], p2Y_negAdcPulseTime[iadchit]*clk2adc - p2Y_negTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p1X_posAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p1X_posTdcHits; itdchit++) {
+	if (p1X_posAdcPaddle[iadchit] != p1X_posTdcPaddle[itdchit]) continue;
+	h2_p1Xpos_pt_tt_diff->Fill(p1X_posAdcPaddle[iadchit], p1X_posAdcPulseTime[iadchit]*clk2adc - p1X_posTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p1Y_posAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p1Y_posTdcHits; itdchit++) {
+	if (p1Y_nGoodHodoHits < 1) continue;
+	if (p1Y_posAdcPaddle[iadchit] != p1Y_posTdcPaddle[itdchit]) continue;
+	h2_p1Ypos_pt_tt_diff->Fill(p1Y_posAdcPaddle[iadchit], p1Y_posAdcPulseTime[iadchit]*clk2adc - p1Y_posTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p2X_posAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p2X_posTdcHits; itdchit++) {
+	if (p2X_posAdcPaddle[iadchit] != p2X_posTdcPaddle[itdchit]) continue;
+	h2_p2Xpos_pt_tt_diff->Fill(p2X_posAdcPaddle[iadchit], p2X_posAdcPulseTime[iadchit]*clk2adc - p2X_posTdcTime[itdchit]*clk2tdc);
+      }
+    }
+    for (UInt_t iadchit = 0; iadchit < p2Y_posAdcHits; iadchit++) {
+      for (UInt_t itdchit = 0; itdchit < p2Y_posTdcHits; itdchit++) {
+	if (p2Y_posAdcPaddle[iadchit] != p2Y_posTdcPaddle[itdchit]) continue;
+	h2_p2Ypos_pt_tt_diff->Fill(p2Y_posAdcPaddle[iadchit], p2Y_posAdcPulseTime[iadchit]*clk2adc - p2Y_posTdcTime[itdchit]*clk2tdc);
+      }
+    }
+           
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    // Fill trigger time histos
+    h_p1X_tdc->Fill(p1X_tdcTime*clk2tdc);
+    h_p1Y_tdc->Fill(p1Y_tdcTime*clk2tdc);
+    h_p2X_tdc->Fill(p2X_tdcTime*clk2tdc); 
+    h_p2Y_tdc->Fill(p2Y_tdcTime*clk2tdc);
+    h_p1T_tdc->Fill(p1T_tdcTime*clk2tdc); 
+    h_p2T_tdc->Fill(p2T_tdcTime*clk2tdc);
+
+    h_pT1_tdc->Fill(pT1_tdcTime*clk2tdc); 
+    h_pT2_tdc->Fill(pT2_tdcTime*clk2tdc); 
+    h_pT3_tdc->Fill(pT3_tdcTime*clk2tdc);
+
+    for (UInt_t iref = 0; iref < ndcRefTimes; iref++)
+      h_pDCREF_tdc[iref]->Fill(pDCREF_tdcTime[iref]*clk2tdc);
+
+    h_p1XmpT2_tdc->Fill((pT2_tdcTime - p1X_tdcTime)*clk2tdc); 
+    h_p1YmpT2_tdc->Fill((pT2_tdcTime - p1Y_tdcTime)*clk2tdc);
+    h_p2XmpT2_tdc->Fill((pT2_tdcTime - p2X_tdcTime)*clk2tdc); 
+    h_p2YmpT2_tdc->Fill((pT2_tdcTime - p2Y_tdcTime)*clk2tdc);
+    h_p1TmpT2_tdc->Fill((pT2_tdcTime - p1T_tdcTime)*clk2tdc); 
+    h_p2TmpT2_tdc->Fill((pT2_tdcTime - p2T_tdcTime)*clk2tdc);
+
+    h_p1XmpT3_tdc->Fill((pT3_tdcTime - p1X_tdcTime)*clk2tdc); 
+    h_p1YmpT3_tdc->Fill((pT3_tdcTime - p1Y_tdcTime)*clk2tdc);
+    h_p2XmpT3_tdc->Fill((pT3_tdcTime - p2X_tdcTime)*clk2tdc); 
+    h_p2YmpT3_tdc->Fill((pT3_tdcTime - p2Y_tdcTime)*clk2tdc);
+    h_p1TmpT3_tdc->Fill((pT3_tdcTime - p1T_tdcTime)*clk2tdc); 
+    h_p2TmpT3_tdc->Fill((pT3_tdcTime - p2T_tdcTime)*clk2tdc);
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    h_p1X_fpTime->Fill(p1X_fpTime); h_p1Y_fpTime->Fill(p1Y_fpTime);
+    h_p2X_fpTime->Fill(p2X_fpTime); h_p2Y_fpTime->Fill(p2Y_fpTime);
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    for (UInt_t iaerohit = 0; iaerohit < paero_negHits; iaerohit++) {
+      h2_paero_negPulseTime_pT1_diff->Fill(paero_negPmt[iaerohit], paero_negPulseTime[iaerohit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_paero_negPulseTime_pT2_diff->Fill(paero_negPmt[iaerohit], paero_negPulseTime[iaerohit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_paero_negPulseTime_pT3_diff->Fill(paero_negPmt[iaerohit], paero_negPulseTime[iaerohit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+    for (UInt_t iaerohit = 0; iaerohit < paero_posHits; iaerohit++) {
+      h2_paero_posPulseTime_pT1_diff->Fill(paero_posPmt[iaerohit], paero_posPulseTime[iaerohit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_paero_posPulseTime_pT2_diff->Fill(paero_posPmt[iaerohit], paero_posPulseTime[iaerohit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_paero_posPulseTime_pT3_diff->Fill(paero_posPmt[iaerohit], paero_posPulseTime[iaerohit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+    
+    for (UInt_t ipshwrhit = 0; ipshwrhit < ppshwr_negHits; ipshwrhit++) {
+      h2_ppshwr_negPulseTime_pT1_diff->Fill(ppshwr_negPmt[ipshwrhit], ppshwr_negPulseTime[ipshwrhit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_ppshwr_negPulseTime_pT2_diff->Fill(ppshwr_negPmt[ipshwrhit], ppshwr_negPulseTime[ipshwrhit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_ppshwr_negPulseTime_pT3_diff->Fill(ppshwr_negPmt[ipshwrhit], ppshwr_negPulseTime[ipshwrhit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+    for (UInt_t ipshwrhit = 0; ipshwrhit < ppshwr_posHits; ipshwrhit++) {
+      h2_ppshwr_posPulseTime_pT1_diff->Fill(ppshwr_posPmt[ipshwrhit], ppshwr_posPulseTime[ipshwrhit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_ppshwr_posPulseTime_pT2_diff->Fill(ppshwr_posPmt[ipshwrhit], ppshwr_posPulseTime[ipshwrhit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_ppshwr_posPulseTime_pT3_diff->Fill(ppshwr_posPmt[ipshwrhit], ppshwr_posPulseTime[ipshwrhit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    for (UInt_t ishwrhit = 0; ishwrhit < pshwr_hits; ishwrhit++) {
+      h2_pshwr_pulseTime_pT1_diff->Fill(pshwr_pmt[ishwrhit], pshwr_pulseTime[ishwrhit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_pshwr_pulseTime_pT2_diff->Fill(pshwr_pmt[ishwrhit], pshwr_pulseTime[ishwrhit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_pshwr_pulseTime_pT3_diff->Fill(pshwr_pmt[ishwrhit], pshwr_pulseTime[ishwrhit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    for (UInt_t ihgchit = 0; ihgchit < phgc_hits; ihgchit++) {
+      h2_phgc_pulseTime_pT1_diff->Fill(phgc_pmt[ihgchit], phgc_pulseTime[ihgchit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_phgc_pulseTime_pT2_diff->Fill(phgc_pmt[ihgchit], phgc_pulseTime[ihgchit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_phgc_pulseTime_pT3_diff->Fill(phgc_pmt[ihgchit], phgc_pulseTime[ihgchit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    for (UInt_t ingchit = 0; ingchit < pngc_hits; ingchit++) {
+      h2_pngc_pulseTime_pT1_diff->Fill(pngc_pmt[ingchit], pngc_pulseTime[ingchit]*clk2adc - pT1_tdcTime*clk2tdc);
+      h2_pngc_pulseTime_pT2_diff->Fill(pngc_pmt[ingchit], pngc_pulseTime[ingchit]*clk2adc - pT2_tdcTime*clk2tdc);
+      h2_pngc_pulseTime_pT3_diff->Fill(pngc_pmt[ingchit], pngc_pulseTime[ingchit]*clk2adc - pT3_tdcTime*clk2tdc);
+    }
+
+    // ==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==//==
+
+    if ((ievent)%1000 == 0)
+      cout << "ievent = " << ievent << endl;
+    
+  }  // Entries loop
+}  // UserScript function
+
+void kpp_analysis(TString histname) {
+
+  // Grab the histo
+  TH1F *h;  h  = dynamic_cast <TH1F*> gDirectory->Get(histname);
+  
+  // Grab histo directly if it does not already exist
+  if(!h) {
+    
+    UserScript();
+    h = (TH1F*) gDirectory->Get(histname);
+
+    // Throw error
+    if(!h) { cout << "User histogram " << histname << " not found" << endl; exit(1);}
+  }  // Histo existing condition
+  //else 
+  h->Draw("colz");
+
+}  // kpp_analysis function