diff --git a/.gitignore b/.gitignore
index b95fc3124e49d320ede6a448b64db97170cdf024..a07d797a1822a9e346c317da492049c7e0a59d69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,4 +26,5 @@ CALIBRATION/shms_cal_calib/pcal_calib_cpp_ACLiC_dict_rdict.pcm
 CALIBRATION/*/data_files/*		
 CALIBRATION/*/root_files/*
 onlineGUI/onlineGUI_v1.2.1/onlineDict_rdict.pcm
+onlineGUI/onlineGUI_v1.2.1/onlineDict.h
 
diff --git a/CALIBRATION/hodo_calib/README.md b/CALIBRATION/hodo_calib/README.md
index 9a7869d34fe68e61fbf3650d6edc80901aa51273..ac7eba139c46b467b8e325a95e531db2f45d59e5 100644
--- a/CALIBRATION/hodo_calib/README.md
+++ b/CALIBRATION/hodo_calib/README.md
@@ -19,10 +19,10 @@ Compiling code
 
 Running code
 -----------
-* First replay data with either
-** HMS:   gHcParms->Load("PARAM/HMS/HODO/htofcal.param");
-** SHMS:   gHcParms->Load("PARAM/HMS/HODO/ptofcal.param");
-* The replay should put the new file : hfort.37 or pfort.37 in the CALIBRATION/hodo_calib directory
+* First replay data by adding  either line to replay script
+** HMS:   gHcParms->Load("PARAM/HMS/HODO/CALIB/htofcalib.param");
+** SHMS:   gHcParms->Load("PARAM/SHMS/HODO/CALIB/ptofcalib.param");
+* The replay will put the new file : hfort.37 or pfort.37 in the CALIBRATION/hodo_calib directory
 * Copy either hmstofcal.inp or shmstofcal.inp to tofcal.inp
 * Execute ./tofcal
 * Print out info on the initial chi2 of  data and final chi2 of the fit.
diff --git a/CALIBRATION/shms_dc_calib/README.md b/CALIBRATION/shms_dc_calib/README.md
index efb52584c9cb0cd3849f4d4f2934adfcfbf6b3a6..8315ac6829715be1e69ce14e40e7c6a26dafe1f1 100644
--- a/CALIBRATION/shms_dc_calib/README.md
+++ b/CALIBRATION/shms_dc_calib/README.md
@@ -17,20 +17,20 @@ Directory structure
 Running code
 ---------------
 * First set the parameter 'p_using_tzero_per_wire = 0' in the 
-  parameter file located at: hallc_replay/PARAM/SHMS/DC/pdc.param
+  parameter file located at: hallc_replay/PARAM/SHMS/DC/CUTS/pdc_cuts.param
 
 * Replay the data to produce the uncalibrated root file to be used as input in the calibration
-  * From the hallc_replay execute: ./hcana SCRIPTS/SHMS/replay_shms.C
+  * From the hallc_replay execute: ./hcana SCRIPTS/SHMS/STACK/replay_shms.C
 
-* From THIS! directory execute: root -l run_Cal.C
+* From the directory where this README file is: execute: root -l run_Cal.C
 
 * From the calibration results, two parameter files will be produced in:
-  * hallc_replay/PARAM/SHMS/DC/pdc_tzero_per_wire_run%d_NEW.param. %d=run_number
-  * hallc_replay/PARAM/SHMS/DC/pdriftmap_run%d_NEW.param
+  * hallc_replay/PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire_run#.param
+  * hallc_replay/PARAM/SHMS/DC/CALIB/pdc_calib_run#.param
 
 * Rename the new parameter files as follows:
-  * copy: pdc_tzero_per_wire_run%d_NEW.param to pdc_tzero_per_wire.param
-  * copy: pdriftmap_run%d_NEW.param to pdriftmap.param
+  * copy: pdc_tzero_per_wire_run#.param to pdc_tzero_per_wire.param
+  * copy: pdc_calib_run#.param to pdc_calib.param
 
 * Before replaying the data again, set the parameter 'p_using_tzero_per_wire = 1' to 
   allow the source code (hcana) to read the parameter values during the replay.
@@ -75,14 +75,14 @@ Brief decription of code
 		-- outputs data_file: 'tzero_values_per_wire.dat'
 		-- contains list of tzero values for all wires in all planes 
 
-		-- outputs param_file: /hallc_replay/PARAM/SHMS/DC/pdc_tzero_per_wire_run%d_NEW.param, where %d=run_number
+		-- outputs param_file: /hallc_replay/PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire_run#.param
                 -- contains tzero values for all wires in all planes, but the file is formatted so that the values may be read by the source code (hcana)
 	  
-	** get_pdc_time_histo_tzero_corrected_v2.C  	  	
+	** get_pdc_time_histo_tzero_corrected.C  	  	
 	   	-- outputs root_file: 'shms_tzero_corr_histo.root'
 		-- contains list of "t0-corrected" wire drift times, and their respective plane drift times.
 
 	** get_LookUp_Values.C
-	        -- outputs param_file: /hallc_replay/PARAM/SHMS/DC/pdriftmap_run%d_NEW.param
+	        -- outputs param_file: /hallc_replay/PARAM/SHMS/DC/CALIB/pdc_calib_run#.param
  		-- contains scaling factors calculated from the corrected plane drift times on a bin-by-in basis. These values get read by the source code
 		   which will be used to scale the drift distance histograms. 
diff --git a/CALIBRATION/shms_dc_calib/run_Cal.C b/CALIBRATION/shms_dc_calib/run_Cal.C
index 9dfd61b720613b4ab07504f237682cfaaa23a147..2f6377006371b4e766b27c5c07cce2699a569053 100644
--- a/CALIBRATION/shms_dc_calib/run_Cal.C
+++ b/CALIBRATION/shms_dc_calib/run_Cal.C
@@ -99,7 +99,7 @@
     gSystem->Exec("root -l -q get_tzero_per_wire_param.C"); 
     
     //execute code to get t0 corrected drift times
-    gSystem->Exec("root -l -q get_pdc_time_histo_tzero_corrected_v2.C");
+    gSystem->Exec("root -l -q get_pdc_time_histo_tzero_corrected.C");
     
     //execute code to update LookUp Table
     gSystem->Exec("root -l -q get_LookUp_Values.C");
diff --git a/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C b/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C
index 81c9736306f8f1917f291fa8232ff57678ae02d4..3b77d8d4be5baad70c9665e30c692bb24af6e98b 100644
--- a/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C
+++ b/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C
@@ -37,7 +37,7 @@ void get_LookUp_Values() {
   
   //Create an output file to store lookup values  
   ofstream ofs;
-  TString lookup_table = Form("../../../PARAM/SHMS/DC/pdriftmap_run%d_NEW.param", run_NUM);
+  TString lookup_table = Form("../../../PARAM/SHMS/DC/CALIB/pdc_calib_%d.param", run_NUM);
   ofs.open (lookup_table);
  
  
diff --git a/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C b/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C
deleted file mode 100644
index a407ba19aecf1e28ce987561a4c86b40fb063150..0000000000000000000000000000000000000000
--- a/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C
+++ /dev/null
@@ -1,208 +0,0 @@
-//Script to add necessary drift time histograms/plane from original root file to new root file
-
-
-#define NPLANES 12
-#define NBINS 400
-#define bin_min -50.5
-#define bin_max 349.5
-
-void get_pdc_time_histo_tzero_corrected_v2()
-{
-
-  //Read Run Number from txt file
-  int run_NUM;
-  Long64_t num_evts;        //added
-  string input_file;   //added
-
-
-  TString f0 = "input_RUN.txt";
-  ifstream infile(f0);
-  infile >> input_file >> run_NUM >> num_evts;
-
-  TString run = Form("run%d", run_NUM);
-
-  //*****************READ WIRE TZERO VALUES*********************************
-  
-  
-//this script reads all tzero values inside tzero_group.dat and assigns them to their corresponding planes. 
-  //these values will then be used to shift the drift time histos, wire by wire (t0-correction wire-by-wire)
-
-  int ip;  //to loop over planes
-  int sw;  //to loop over sensewires
-
-
-  int tot_wires[NPLANES] = {107, 107, 79, 79, 107, 107, 107, 107, 79, 79, 107, 107};
-
-  //sum over all wires in both DC
-  int wire_sum = 0;
-  for (ip=0; ip<NPLANES; ip++) {
-    wire_sum = wire_sum + tot_wires[ip];
-  }
-  
-
-  //open and read tzero data file 
-  ifstream file;
-  file.open("../data_files/"+run+"/tzero_values_per_wire.dat");
-  
-  string line;
-  int counter;
-  Double_t value;
-  Double_t *tzero_offset;
-  tzero_offset = new Double_t[wire_sum];
-  
-
-  counter = 0;
-    
-  while (getline(file, line)) {
-    
-    if (line[0]!='#' ) 
-      {
-	sscanf(line.c_str(), "%lf", &value);  //pass data in file to variable 'value'
-	tzero_offset[counter] = value;  //write all tzero values for all wires in both DC to an array
-	//cout << tzero_offset[counter] << endl;
-	counter++;
-      }
-  }
-  
-
-  //***************************************************************
-  
-  //pass all tzero values into their corresponding planes
-  
-  //declare a 2d dynamic array to store tzero values to be used for t0-correction
-  Double_t **tzero = new Double_t*[NPLANES];
-    
-  for (ip = 0; ip < NPLANES; ip++) 
-    {
-      tzero[ip] = new Double_t[tot_wires[ip]];
-    }
-  
-  //initialize 2d dynamic array to 0.0
-  for (ip = 0; ip<NPLANES; ip++) {
-    for (sw = 0; sw<tot_wires[ip]; sw++) {
-      tzero[ip][sw] = 0.0;
- 
-    }
-  }
-    
-  counter = 0;
-  for (ip = 0; ip<NPLANES; ip++) {
-   
-    for (sw = 0; sw < tot_wires[ip]; sw++) {
-      
-      tzero[ip][sw] = tzero_offset[counter];   //tzero corrections that must be added wire by wire
-      // cout << tzero[ip][sw] << endl;
-      //cout <<  tzero[ip][sw] << " :: "<<tzero_offset[counter] << endl;
-	   counter++;
-    }
-  }
-
-  
-
-
-
-  //*************************************************************************
-
-  TString ext (".root"); //define a string to find in a file
-  
-  std::size_t found = input_file.find(ext); //find the pos of the string 
-  if (found!=std::string::npos)
-    //std::cout << " '.root' found at: " << found << '\n'; //found is the character position where ".root" is found
-  
-    input_file.erase (found,5);  //erase .root                      
-    // std::cout << input_file << '\n';
-
-  TString file_name = "../../../ROOTfiles/"+input_file+"_dc_uncal.root";
-  
-  //open file
-  TFile *f = new TFile(file_name, "READ");
-
-  //create new file
-  TFile *g = new TFile(Form("../root_files/"+run+"/shms_tzero_corr_histo.root", run_NUM), "RECREATE"); // create new file to store histo
-
-  f->cd();
-
-  //Get the tree
-  TTree *tree = (TTree*)f->Get("T");
-  TString SPECTROMETER="P";
-  TString DETECTOR="dc";
-  TString plane_names[NPLANES]={"1u1", "1u2", "1x1", "1x2", "1v1", "1v2", "2v2", "2v1", "2x2", "2x1", "2u2", "2u1"};
-  
-  //Declare Variables to Loop Over
-  Int_t Ndata_time[NPLANES];
-  Int_t Ndata_wirenum[NPLANES];
-  Double_t pdc_wirenum[NPLANES][107];
-  Double_t pdc_time[NPLANES][1000];
-  
-
-  //Declare Histogram array to store AVG drift times per plane
-  TH1F* h[NPLANES];
-	
-  g->cd();
-	
-  //Loop over each plane
-  for(Int_t ip=0; ip<NPLANES; ip++){
-    TString base_name = SPECTROMETER+"."+DETECTOR+"."+plane_names[ip];
-    TString ndata_time = "Ndata."+base_name+".time";
-    TString ndata_wirenum = "Ndata."+base_name+".wirenum";
-    TString drift_time = base_name+".time";
-    TString wirenum_hit = base_name+".wirenum";
-
-    TString drift_time_histo = "pdc"+plane_names[ip]+"_time"; 
-    TString title = "pdc"+plane_names[ip]+"_drifttime";
-     
-    //Set Branch Address
-    tree->SetBranchAddress(drift_time, pdc_time[ip]);   
-    tree->SetBranchAddress(ndata_time, &Ndata_time[ip]);                // Ndata represents number of triggers vs number of hits that each trigger produced.
-    tree->SetBranchAddress(ndata_wirenum, &Ndata_wirenum[ip]);      // Ndata represents number of triggers vs number of hits that each trigger produced.
-    tree->SetBranchAddress(wirenum_hit, pdc_wirenum[ip]);	    // A hit is refer to as when a trigger(traversing particle), ionizes the WC gas and ionized
-						                    //electrons reach the rearest sense wire, producing a detectable signal in the O'scope 
-  
-  
-    //Create Histograms
-    h[ip] = new TH1F(drift_time_histo, title, NBINS, bin_min, bin_max);  //set time to 400 ns/200 bins = 2ns/bin
-    h[ip]->GetXaxis()->SetTitle("Drift Time (ns)");
-    h[ip]->GetYaxis()->SetTitle("Number of Entries / 1 ns");
-  }
- 
-
-  //declare some variables
-  int wirenum;
-  double shift;
-
-  //Declare number of entries in the tree
-  Long64_t nentries = tree->GetEntries(); //number of triggers (particles that passed through all 4 hodo planes)
-   
-
-  //Loop over all entries
-  for(Long64_t i=0; i<num_evts; i++)
-    {
-      tree->GetEntry(i);
-      //cout << "****event:**** " << i << endl;
-          //Loop over number of hits for each trigger in each DC plane 
-      for(Int_t ip=0; ip<NPLANES; ip++){       
-	//cout << "Plane: " << plane_names[ip] << endl;
-	for(Int_t j=0, k=0; j<Ndata_time[ip] && k<Ndata_wirenum[ip]; j++, k++){
-	  
-	  wirenum = int(pdc_wirenum[ip][k]); //get the wirenumber hit
-	  
-	  shift = tzero[ip][wirenum-1];  //get the tzero corresponding to wire hit
-	  
-	  // cout << plane_names[ip] << " :: " << wirenum << " :: " << shift << endl;
-
-	  h[ip]->Fill(pdc_time[ip][j] - shift);  //shidt the plane drift time event-by-event
-	
-   
-	  // cout << "time: " << pdc_time[ip][k] << endl;
-	 
-	}
-       
-      }
-
-    }
- 
-  //Write histograms to file
-  
-  g->Write();
-  
-}
diff --git a/CALIBRATION/shms_dc_calib/scripts/get_tzero_per_wire_param.C b/CALIBRATION/shms_dc_calib/scripts/get_tzero_per_wire_param.C
index 1633167400588da3f2e08d3d37a0aec7e2433ecb..7dd900b93babdd09847c99138fd48822541b8799 100644
--- a/CALIBRATION/shms_dc_calib/scripts/get_tzero_per_wire_param.C
+++ b/CALIBRATION/shms_dc_calib/scripts/get_tzero_per_wire_param.C
@@ -100,7 +100,7 @@ Double_t **t0 = new Double_t*[NPLANES];
  
  //Create an output parameter file to store tzero values 
  ofstream ofs;
- TString wire_tzero = Form("../../../PARAM/SHMS/DC/pdc_tzero_per_wire_run%d_NEW.param", run_NUM);
+ TString wire_tzero = Form("../../../PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire_%d.param", run_NUM);
  ofs.open (wire_tzero);
  
 
diff --git a/DBASE/GEN/KPP_Spring_2017/calib_303.param b/DBASE/GEN/KPP_Spring_2017/calib_303.param
new file mode 100644
index 0000000000000000000000000000000000000000..b278a65b519dc8c30f7dae08488cdf57933ac32f
--- /dev/null
+++ b/DBASE/GEN/KPP_Spring_2017/calib_303.param
@@ -0,0 +1,5 @@
+; HMS calibration files for run 303
+#include "PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib_303.param"
+#include "PARAM/HMS/DC/CALIB/KPP_Spring_2017/hdc_calib_303.param"
+#include "PARAM/HMS/HODO/CALIB/KPP_Spring_2017/hhodo_calib_303.param"
+#include "PARAM/HMS/CAL/CALIB/KPP_Spring_2017/hcal_calib_303.param"
diff --git a/DBASE/GEN/KPP_Spring_2017/calib_488.param b/DBASE/GEN/KPP_Spring_2017/calib_488.param
index 204b61dcb7e8a4aa9e0224285656f032f1593e1d..f82f7ffb9f09754785a9ca066b96eb154962e1ee 100644
--- a/DBASE/GEN/KPP_Spring_2017/calib_488.param
+++ b/DBASE/GEN/KPP_Spring_2017/calib_488.param
@@ -1,5 +1,6 @@
 ; SHMS calibration files for run 488
 #include "PARAM/SHMS/NGCER/CALIB/KPP_Spring_2017/pngcer_calib_488.param"
 #include "PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_calib_488.param"
+#include "PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_tzero_per_wire_488.param"
 #include "PARAM/SHMS/HGCER/CALIB/KPP_Spring_2017/phgcer_calib_488.param"
 #include "PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_488.param"
diff --git a/DBASE/GEN/general.param b/DBASE/GEN/general.param
index 6e2ac4bf9f11bb0e63dab7d7cec4a8efa6f75472..32d527da77a9b97e59d0527c62a5ba9e24a38774 100644
--- a/DBASE/GEN/general.param
+++ b/DBASE/GEN/general.param
@@ -16,17 +16,27 @@ cminch=2.54
 #include "PARAM/HMS/GEN/hmsflags.param"
 #include "PARAM/HMS/GEN/htracking.param"
 
-; HMS detector specific paramter files
-#include "PARAM/HMS/AERO/haero.param"
-#include "PARAM/HMS/CAL/hcal.pos"
-#include "PARAM/HMS/CAL/hcal.param"
-#include "PARAM/HMS/CER/hcer.param"
-#include "PARAM/HMS/DC/hdc.param"
-#include "PARAM/HMS/DC/hdc.pos"
-#include "PARAM/HMS/DC/hdc_tracking.param"
-#include "PARAM/HMS/DC/hdriftmap.param"
-#include "PARAM/HMS/HODO/hhodo.pos"
-#include "PARAM/HMS/HODO/hhodo.param"
+; HMS default geometry parameter files 
+#include "PARAM/HMS/CER/GEOM/hcer_geom.param"
+#include "PARAM/HMS/DC/GEOM/hdc_geom_6gev.param"
+#include "PARAM/HMS/HODO/GEOM/hhodo_geom.param"
+#include "PARAM/HMS/AERO/GEOM/haero_geom.param"
+#include "PARAM/HMS/CAL/GEOM/hcal_geom.param"
+
+; HMS default cut parameter files
+#include "PARAM/HMS/CER/CUTS/hcer_cuts.param"
+#include "PARAM/HMS/DC/CUTS/hdc_cuts_6gev.param"
+#include "PARAM/HMS/HODO/CUTS/hhodo_cuts.param"
+#include "PARAM/HMS/AERO/CUTS/haero_cuts.param"
+#include "PARAM/HMS/CAL/CUTS/hcal_cuts.param"
+
+; HMS default calibration parameter files
+#include "PARAM/HMS/CER/CALIB/hcer_calib.param"
+#include "PARAM/HMS/DC/CALIB/hdc_calib_6gev.param"
+#include "PARAM/HMS/HODO/CALIB/hhodo_calib.param"
+#include "PARAM/HMS/AERO/CALIB/haero_calib.param"
+#include "PARAM/HMS/CAL/CALIB/hcal_calib.param"  
+
 
 ; General SHMS parameter files
 ; Note: shmsflags.param includes spectrometer offsets and options.
@@ -54,7 +64,8 @@ cminch=2.54
 ; SHMS default calibration parameter files
 #include "PARAM/SHMS/NGCER/CALIB/pngcer_calib.param"
 #include "PARAM/SHMS/DC/CALIB/pdc_calib.param"
+#include "PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire.param"
 #include "PARAM/SHMS/HODO/CALIB/phodo_calib.param"
 #include "PARAM/SHMS/HGCER/CALIB/phgcer_calib.param"
 #include "PARAM/SHMS/AERO/CALIB/paero_calib.param"
-#include "PARAM/SHMS/CAL/CALIB/pcal_calib.param"
\ No newline at end of file
+#include "PARAM/SHMS/CAL/CALIB/pcal_calib.param"
diff --git a/DBASE/STD/standard.database b/DBASE/STD/standard.database
index 2f0cd4d30d4b5236374ac4f59a391cf22df413b9..d1d852bf2c5f619524c9bd05ecc48839f12225f9 100644
--- a/DBASE/STD/standard.database
+++ b/DBASE/STD/standard.database
@@ -2,6 +2,9 @@
 g_ctp_parm_filename ="DBASE/GEN/general.param"
 g_ctp_kinematics_filename ="DBASE/STD/standard.kinematics"
 
+303-303
+g_ctp_calib_filename ="DBASE/GEN/KPP_Spring_2017/calib_303.param"
+
 464-464
 g_ctp_calib_filename ="DBASE/GEN/KPP_Spring_2017/calib_464.param"
 
@@ -36,4 +39,4 @@ g_ctp_calib_filename ="DBASE/GEN/KPP_Spring_2017/calib_486.param"
 g_ctp_calib_filename ="DBASE/GEN/KPP_Spring_2017/calib_487.param"
 
 488-488
-g_ctp_calib_filename ="DBASE/GEN/KPP_Spring_2017/calib_488.param"
\ No newline at end of file
+g_ctp_calib_filename ="DBASE/GEN/KPP_Spring_2017/calib_488.param"
diff --git a/DBASE/STD/standard.kinematics b/DBASE/STD/standard.kinematics
index 856b64fa6b89843b4603825aca267a49a7811e8c..8534e7c818c7abd8714def18fc82666a3b631c1b 100644
--- a/DBASE/STD/standard.kinematics
+++ b/DBASE/STD/standard.kinematics
@@ -7,6 +7,6 @@ hpcentral = 3.
 ppcentral = 3.
 hpartmass = 0.00051099
 ppartmass = 0.00051099
-
+ptargmass_amu=12.0
 465-465
 ppcentral = 0.750
\ No newline at end of file
diff --git a/DEF-files/HMS/CER/hcerana.def b/DEF-files/HMS/CER/hcerana.def
deleted file mode 100644
index 0bcac561a700a59138d9951b29b98592a3f8c7cf..0000000000000000000000000000000000000000
--- a/DEF-files/HMS/CER/hcerana.def
+++ /dev/null
@@ -1,32 +0,0 @@
-# See $ANALYZER/examples/output_example.def for examples
-#
-block H.cer.*
-block T.hms.*
-
-#1D HISTOGRAMS
-TH1F hgcer_raw_occ 'HMS Cherenkov Raw Occupancy; PMT Number; Number of Entries' H.cer.adcCounter 2 0.5 2.5
-TH1F hgcer_adcErrFlg 'HMS Cherenkov FPGA Error Flag; Error Flag; Number of Entries' H.cer.adcErrorFlag 2 -0.5 1.5
-TH1F hgcer_good_occ 'HMS Cherenkov Good Occupancy; PMT Number; Number of Entries' H.cer.numGoodAdcHits 2 0.5 2.5
-TH1F hgcer_good_mult 'HMS Cherenkov Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cer.totNumGoodAdcHits 2 0.5 2.5
-TH1F hgcer_tot_npe 'HMS Cherenkov Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.cer.npeSum 200 0 100 H.cer.npeSum>0.0 
-
-#2D HISTOGRAMS  
-TH2F hgcer_npe 'HMS Cherenkov Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.cer.npe 2 0.5 2.5 200 0 100 H.cer.npe>0.0 
-TH2F hgcer_good_pped_vs_pmt 'HMS Cherenkov Good Pulse Pedestal vs. PMT Number; PMT Number; Pulse Pedestal / 1 ADC Units' [I+1] H.cer.goodAdcPed 2 0.5 2.5 400 300 700
-TH2F hgcer_good_pi_vs_pmt 'HMS Cherenkov Good Pulse Integral vs. PMT Number; PMT Number; Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseInt 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseInt>0.0
-TH2F hgcer_good_rawpi_vs_pmt 'HMS Cherenkov Good Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseIntRaw 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseIntRaw>0.0
-TH2F hgcer_good_pamp_vs_pmt 'HMS Cherenkov Good Pulse Amplitude vs. PMT Number; PMT Number; Pulse Amplitude / 20 ADC Units' [I+1] H.cer.goodAdcPulseAmp 2 0.5 2.5 200 0 4000 H.cer.goodAdcPulseAmp>0.0
-TH2F hgcer_good_ptime_vs_pmt 'HMS Cherenkov Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.cer.goodAdcPulseTime 2 0.5 2.5 350 0 3500 H.cer.goodAdcPulseTime>0.0
-
-
-#1D Histos for Debugging 
-TH1F hgcer_raw_mult 'HMS Cherenkov Raw Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits / PMT' H.cer.totNumAdcHits 2 0.5 2.5
-
-#2d Histos for Debugging 
-TH2F hgcer_raw_pped_vs_pmt 'HMS Cherenkov Raw Pulse Pedestal vs. PMT Number; PMT Number; Raw Pulse Pedestal / 1 ADC Units' H.cer.adcCounter H.cer.adcPedRaw 2 0.5 2.5 10000 0 10000
-TH2F hgcer_raw_pi_vs_pmt 'HMS Cherenkov Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' H.cer.adcCounter H.cer.adcPulseIntRaw 2 0.5 2.5 650 0 32500
-TH2F hgcer_raw_pamp_vs_pmt 'HMS Cherenkov Raw Pulse Amplitude vs. PMT Number; PMT Number; Raw Pulse Amplitude / 20 ADC Units' H.cer.adcCounter H.cer.adcPulseAmpRaw 2 0.5 2.5 410 0 8200
-TH2F hgcer_raw_ptime_vs_pmt 'HMS Cherenkov Raw Pulse Time vs. PMT Number; PMT Number;  Raw Pulse Time / 10 ADC Units' H.cer.adcCounter H.cer.adcPulseTimeRaw 2 0.5 2.5 650 0 6500
-TH2F hgcer_pped_vs_pmt 'HMS Cherenkov Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' H.cer.adcCounter H.cer.adcPed 2 0.5 2.5 400 300 700
-TH2F hgcer_pi_vs_pmt 'HMS Cherenkov Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' H.cer.adcCounter H.cer.adcPulseInt 2 0.5 2.5 600 0 30000
-TH2F hgcer_pamp_vs_pmt 'HMS Cherenkov Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' H.cer.adcCounter H.cer.adcPulseAmp 2 0.5 2.5 400 0 8000
\ No newline at end of file
diff --git a/DEF-files/HMS/DC/hdcana.def b/DEF-files/HMS/DC/hdcana.def
deleted file mode 100644
index 80e2415faabed3860547b5fc7abe1293f615d63f..0000000000000000000000000000000000000000
--- a/DEF-files/HMS/DC/hdcana.def
+++ /dev/null
@@ -1,74 +0,0 @@
-# See $ANALYZER/examples/output_example.def for examples
-#
-block H.dc.*
-block T.hms.*
-
-TH1F hdc_ref1 'HDC Reference Time 1; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime 15000 0 15000 
-TH1F hdc_ref2 'HDC Reference Time 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime 15000 0 15000
-TH1F hdc_ref3 'HDC Reference Time 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime 15000 0 15000
-TH1F hdc_ref4 'HDC Reference Time 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF4_tdcTime 15000 0 15000
-
-TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF2_tdcTime 2000 -1000 1000
-TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
-TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
-
-TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
-TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
-
-TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
-
-TH1F hdc1x1_wm 'HDC 1X1 Wiremap' H.dc.1x1.wirenum 113 0.5 113.5
-TH1F hdc1y1_wm 'HDC 1Y1 Wiremap' H.dc.1y1.wirenum  52 0.5  52.5
-TH1F hdc1u1_wm 'HDC 1U1 Wiremap' H.dc.1u1.wirenum 107 0.5 107.5
-TH1F hdc1v1_wm 'HDC 1V1 Wiremap' H.dc.1v1.wirenum 107 0.5 107.5
-TH1F hdc1y2_wm 'HDC 1Y2 Wiremap' H.dc.1y2.wirenum  52 0.5  52.5
-TH1F hdc1x2_wm 'HDC 1X2 Wiremap' H.dc.1x2.wirenum 113 0.5 113.5
-
-TH1F hdc2x1_wm 'HDC 2X1 Wiremap' H.dc.2x1.wirenum 113 0.5 113.5
-TH1F hdc2y1_wm 'HDC 2Y1 Wiremap' H.dc.2y1.wirenum  52 0.5  52.5
-TH1F hdc2u1_wm 'HDC 2U1 Wiremap' H.dc.2u1.wirenum 107 0.5 107.5
-TH1F hdc2v1_wm 'HDC 2V1 Wiremap' H.dc.2v1.wirenum 107 0.5 107.5
-TH1F hdc2y2_wm 'HDC 2Y2 Wiremap' H.dc.2y2.wirenum  52 0.5  52.5
-TH1F hdc2x2_wm 'HDC 2X2 Wiremap' H.dc.2x2.wirenum 113 0.5 113.5
-
-TH2F hdc1x1_wire_num_vs_raw_tdc 'HDC 1X1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1x1.wirenum H.dc.1x1.rawtdc 113 0.5 113.5 10000 -50000 50000
-TH2F hdc1y1_wire_num_vs_raw_tdc 'HDC 1Y1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1y1.wirenum H.dc.1y1.rawtdc 52  0.5  52.5 10000 -50000 50000
-TH2F hdc1u1_wire_num_vs_raw_tdc 'HDC 1U1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1u1.wirenum H.dc.1u1.rawtdc 107 0.5 107.5 10000 -50000 50000
-TH2F hdc1v1_wire_num_vs_raw_tdc 'HDC 1V1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1v1.wirenum H.dc.1v1.rawtdc 107 0.5 107.5 10000 -50000 50000
-TH2F hdc1y2_wire_num_vs_raw_tdc 'HDC 1Y2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1y2.wirenum H.dc.1y2.rawtdc 52  0.5  52.5 10000 -50000 50000
-TH2F hdc1x2_wire_num_vs_raw_tdc 'HDC 1X2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1x2.wirenum H.dc.1x2.rawtdc 113 0.5 113.5 10000 -50000 50000
-
-TH2F hdc2x1_wire_num_vs_raw_tdc 'HDC 2X1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2x1.wirenum H.dc.2x1.rawtdc 113 0.5 113.5 10000 -50000 50000
-TH2F hdc2y1_wire_num_vs_raw_tdc 'HDC 2Y1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2y1.wirenum H.dc.2y1.rawtdc 52  0.5  52.5 10000 -50000 50000
-TH2F hdc2u1_wire_num_vs_raw_tdc 'HDC 2U1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2u1.wirenum H.dc.2u1.rawtdc 107 0.5 107.5 10000 -50000 50000
-TH2F hdc2v1_wire_num_vs_raw_tdc 'HDC 2V1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2v1.wirenum H.dc.2v1.rawtdc 107 0.5 107.5 10000 -50000 50000
-TH2F hdc2y2_wire_num_vs_raw_tdc 'HDC 2Y2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2y2.wirenum H.dc.2y2.rawtdc 52  0.5  52.5 10000 -50000 50000
-TH2F hdc2x2_wire_num_vs_raw_tdc 'HDC 2X2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2x2.wirenum H.dc.2x2.rawtdc 113 0.5 113.5 10000 -50000 50000
-
-TH2F hdc1x1_wire_num_vs_tdc_time 'HDC 1X1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 6000 -1000 5000
-TH2F hdc1y1_wire_num_vs_tdc_time 'HDC 1Y1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 6000 -1000 5000
-TH2F hdc1u1_wire_num_vs_tdc_time 'HDC 1U1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 6000 -1000 5000
-TH2F hdc1v1_wire_num_vs_tdc_time 'HDC 1V1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 6000 -1000 5000
-TH2F hdc1y2_wire_num_vs_tdc_time 'HDC 1Y2 Wiremap; Wire Number; TDC Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 6000 -1000 5000
-TH2F hdc1x2_wire_num_vs_tdc_time 'HDC 1X2 Wiremap; Wire Number; TDC Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 6000 -1000 5000
-
-TH2F hdc2x1_wire_num_vs_tdc_time 'HDC 2X1 Wiremap; Wire Number; TDC Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 6000 -1000 5000
-TH2F hdc2y1_wire_num_vs_tdc_time 'HDC 2Y1 Wiremap; Wire Number; TDC Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 6000 -1000 5000
-TH2F hdc2u1_wire_num_vs_tdc_time 'HDC 2U1 Wiremap; Wire Number; TDC Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 6000 -1000 5000
-TH2F hdc2v1_wire_num_vs_tdc_time 'HDC 2V1 Wiremap; Wire Number; TDC Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 6000 -1000 5000
-TH2F hdc2y2_wire_num_vs_tdc_time 'HDC 2Y2 Wiremap; Wire Number; TDC Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 6000 -1000 5000
-TH2F hdc2x2_wire_num_vs_tdc_time 'HDC 2X2 Wiremap; Wire Number; TDC Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 6000 -1000 5000
-
-TH2F hdc1x1_wire_num_vs_ddist 'HDC 1X1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
-TH2F hdc1y1_wire_num_vs_ddist 'HDC 1Y1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc1u1_wire_num_vs_ddist 'HDC 1U1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc1v1_wire_num_vs_ddist 'HDC 1V1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc1y2_wire_num_vs_ddist 'HDC 1Y2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc1x2_wire_num_vs_ddist 'HDC 1X2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
-
-TH2F hdc2x1_wire_num_vs_ddist 'HDC 2X1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
-TH2F hdc2y1_wire_num_vs_ddist 'HDC 2Y1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc2u1_wire_num_vs_ddist 'HDC 2U1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc2v1_wire_num_vs_ddist 'HDC 2V1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc2y2_wire_num_vs_ddist 'HDC 2Y2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc2x2_wire_num_vs_ddist 'HDC 2X2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
diff --git a/DEF-files/HMS/GEN/hstackana.def b/DEF-files/HMS/GEN/hstackana.def
deleted file mode 100644
index 7c8c0de3d17c2a9c6c8fd11484d1584df5a97e2e..0000000000000000000000000000000000000000
--- a/DEF-files/HMS/GEN/hstackana.def
+++ /dev/null
@@ -1,259 +0,0 @@
-# See $ANALYZER/examples/output_example.def for examples
-#
-#block *
-block T.hms.*
-block H.dc.*
-block H.tr.*
-block H.hod.*
-block H.cer.*
-block H.cal.*
-block H.gtr.*
-
-# Drift Chambers
-TH1F hdc_ref1 'HMS DC Reference Time Slot 5 Channel 111; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime 3000 12000 15000 
-TH1F hdc_ref2 'HMS DC Reference Time Slot 8 Channel 127; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime 3000 12000 15000
-TH1F hdc_ref3 'HMS DC Reference Time Slot 10 Channel 127; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime 3000 12000 15000
-TH1F hdc_ref4 'HMS DC Reference Time Slot 17 Channel 127; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF4_tdcTime 3000 12000 15000
-
-TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
-TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
-TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
-TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
-TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
-TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
-
-TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
-TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
-TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
-TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
-TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
-TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
-
-#drift distances
-TH1F hdc1x1_dist 'HDC 1X1 Drift Distance' H.dc.1x1.dist 50 -0.1 0.6
-TH1F hdc1x1_dist_cut 'HDC CUT 1X1 Drift Distance' H.dc.1x1.dist 50 -0.1 0.6 time_cut1 
-
-TH1F hdc1y1_dist 'HDC 1Y1 Drift Distance' H.dc.1y1.dist 50 -0.1 0.6  
-TH1F hdc1y1_dist_cut 'HDC CUT 1Y1 Drift Distance' H.dc.1y1.dist 50 -0.1 0.6 time_cut2 
-
-TH1F hdc1u1_dist 'HDC 1U1 Drift Distance' H.dc.1u1.dist 50 -0.1 0.6  
-TH1F hdc1u1_dist_cut 'HDC CUT 1U1 Drift Distance' H.dc.1u1.dist 50 -0.1 0.6 time_cut3 
-
-TH1F hdc1v1_dist 'HDC 1V1 Drift Distance' H.dc.1v1.dist 50 -0.1 0.6  
-TH1F hdc1v1_dist_cut 'HDC CUT 1V1 Drift Distance' H.dc.1v1.dist 50 -0.1 0.6 time_cut4 
-
-TH1F hdc1y2_dist 'HDC 1Y2 Drift Distance' H.dc.1y2.dist 50 -0.1 0.6  
-TH1F hdc1y2_dist_cut 'HDC CUT 1Y2 Drift Distance' H.dc.1y2.dist 50 -0.1 0.6 time_cut5 
-
-TH1F hdc1x2_dist 'HDC 1X2 Drift Distance' H.dc.1x2.dist 50 -0.1 0.6  
-TH1F hdc1x2_dist_cut 'HDC CUT 1X2 Drift Distance' H.dc.1x2.dist 50 -0.1 0.6 time_cut6 
-
-TH1F hdc2x1_dist 'HDC 2X1 Drift Distance' H.dc.2x1.dist 50 -0.1 0.6  
-TH1F hdc2x1_dist_cut 'HDC CUT 2X1 Drift Distance' H.dc.2x1.dist 50 -0.1 0.6 time_cut7 
-
-TH1F hdc2y1_dist 'HDC 2Y1 Drift Distance' H.dc.2y1.dist 50 -0.1 0.6
-TH1F hdc2y1_dist_cut 'HDC CUT 2Y1 Drift Distance' H.dc.2y1.dist 50 -0.1 0.6 time_cut8 
-
-TH1F hdc2u1_dist 'HDC 2U1 Drift Distance' H.dc.2u1.dist 50 -0.1 0.6
-TH1F hdc2u1_dist_cut 'HDC CUT 2U1 Drift Distance' H.dc.2u1.dist 50 -0.1 0.6 time_cut9 
-
-TH1F hdc2v1_dist 'HDC 2V1 Drift Distance' H.dc.2v1.dist 50 -0.1 0.6  
-TH1F hdc2v1_dist_cut 'HDC CUT 2V1 Drift Distance' H.dc.2v1.dist 50 -0.1 0.6 time_cut10 
-
-TH1F hdc2y2_dist 'HDC 2Y2 Drift Distance' H.dc.2y2.dist 50 -0.1 0.6
-TH1F hdc2y2_dist_cut 'HDC CUT 2Y2 Drift Distance' H.dc.2y2.dist 50 -0.1 0.6 time_cut11 
-
-TH1F hdc2x2_dist 'HDC 2X2 Drift Distance' H.dc.2x2.dist 50 -0.1 0.6
-TH1F hdc2x2_dist_cut 'HDC CUT 2X2 Drift Distance' H.dc.2x2.dist 50 -0.1 0.6 time_cut12
-
-#HMS Chambers drift velocities
-TH2F hdc1x1_dist_vs_time 'HMS DC 1X1 Drift Distance vs. Drift Time' H.dc.1x1.time H.dc.1x1.dist 600 -10 250 600 0 0.55 
-TH2F hdc1y1_dist_vs_time 'HMS DC 1Y1 Drift Distance vs. Drift Time' H.dc.1y1.time H.dc.1y1.dist 600 -10 250 600 0 0.55
-TH2F hdc1u1_dist_vs_time 'HMS DC 1U1 Drift Distance vs. Drift Time' H.dc.1u1.time H.dc.1u1.dist 600 -10 250 600 0 0.55
-TH2F hdc1v1_dist_vs_time 'HMS DC 1V1 Drift Distance vs. Drift Time' H.dc.1v1.time H.dc.1v1.dist 600 -10 250 600 0 0.55
-TH2F hdc1y2_dist_vs_time 'HMS DC 1Y2 Drift Distance vs. Drift Time' H.dc.1y2.time H.dc.1y2.dist 600 -10 250 600 0 0.55
-TH2F hdc1x2_dist_vs_time 'HMS DC 1X2 Drift Distance vs. Drift Time' H.dc.1x2.time H.dc.1x2.dist 600 -10 250 600 0 0.55
-
-TH2F hdc2x1_dist_vs_time 'HMS DC 2X1 Drift Distance vs. Drift Time' H.dc.2x1.time H.dc.2x1.dist 600 -10 250 600 0 0.55
-TH2F hdc2y1_dist_vs_time 'HMS DC 2Y1 Drift Distance vs. Drift Time' H.dc.2y1.time H.dc.2y1.dist 600 -10 250 600 0 0.55
-TH2F hdc2u1_dist_vs_time 'HMS DC 2U1 Drift Distance vs. Drift Time' H.dc.2u1.time H.dc.2u1.dist 600 -10 250 600 0 0.55
-TH2F hdc2v1_dist_vs_time 'HMS DC 2V1 Drift Distance vs. Drift Time' H.dc.2v1.time H.dc.2v1.dist 600 -10 250 600 0 0.55
-TH2F hdc2y2_dist_vs_time 'HMS DC 2Y2 Drift Distance vs. Drift Time' H.dc.2y2.time H.dc.2y2.dist 600 -10 250 600 0 0.55
-TH2F hdc2x2_dist_vs_time 'HMS DC 2X2 Drift Distance vs. Drift Time' H.dc.2x2.time H.dc.2x2.dist 600 -10 250 600 0 0.55
-
-
-
-TH2F hdc1x1_wirenum_vs_tdc 'HMS DC 1X1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 2000 -500 1500
-TH2F hdc1y1_wirenum_vs_tdc 'HMS DC 1Y1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc1u1_wirenum_vs_tdc 'HMS DC 1U1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc1v1_wirenum_vs_tdc 'HMS DC 1V1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc1y2_wirenum_vs_tdc 'HMS DC 1Y2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc1x2_wirenum_vs_tdc 'HMS DC 1X2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 2000 -500 1500
-
-TH2F hdc2x1_wirenum_vs_tdc 'HMS DC 2X1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 2000 -500 1500
-TH2F hdc2y1_wirenum_vs_tdc 'HMS DC 2Y1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc2u1_wirenum_vs_tdc 'HMS DC 2U1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc2v1_wirenum_vs_tdc 'HMS DC 2V1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc2y2_wirenum_vs_tdc 'HMS DC 2Y2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc2x2_wirenum_vs_tdc 'HMS DC 2X2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 2000 -500 1500
-
-TH2F hdc1x1_wirenum_vs_ddist 'HMS DC 1X1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
-TH2F hdc1y1_wirenum_vs_ddist 'HMS DC 1Y1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc1u1_wirenum_vs_ddist 'HMS DC 1U1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc1v1_wirenum_vs_ddist 'HMS DC 1V1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc1y2_wirenum_vs_ddist 'HMS DC 1Y2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc1x2_wirenum_vs_ddist 'HMS DC 1X2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
-
-TH2F hdc2x1_wirenum_vs_ddist 'HMS DC 2X1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
-TH2F hdc2y1_wirenum_vs_ddist 'HMS DC 2Y1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc2u1_wirenum_vs_ddist 'HMS DC 2U1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc2v1_wirenum_vs_ddist 'HMS DC 2V1 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
-TH2F hdc2y2_wirenum_vs_ddist 'HMS DC 2Y2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
-TH2F hdc2x2_wirenum_vs_ddist 'HMS DC 2X2 Wiremap; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
-
-TH2F hdc1x1_wirenum_vs_resid 'HMS DC 1X1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1x1.wirenum H.dc.residual[0] 113 0.5 113.5 200 -0.3 0.3
-TH2F hdc1y1_wirenum_vs_resid 'HMS DC 1Y1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1y1.wirenum H.dc.residual[1] 52  0.5  52.5 200 -0.3 0.3
-TH2F hdc1u1_wirenum_vs_resid 'HMS DC 1U1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1u1.wirenum H.dc.residual[2] 107 0.5 107.5 200 -0.3 0.3
-TH2F hdc1v1_wirenum_vs_resid 'HMS DC 1V1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1v1.wirenum H.dc.residual[3] 107 0.5 107.5 200 -0.3 0.3
-TH2F hdc1y2_wirenum_vs_resid 'HMS DC 1Y2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1y2.wirenum H.dc.residual[4] 52  0.5  52.5 200 -0.3 0.3
-TH2F hdc1x2_wirenum_vs_resid 'HMS DC 1X2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1x2.wirenum H.dc.residual[5] 113 0.5 113.5 200 -0.3 0.3
-
-TH2F hdc2x1_wirenum_vs_resid 'HMS DC 2X1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2x1.wirenum H.dc.residual[6] 113 0.5 113.5 200 -0.3 0.3
-TH2F hdc2y1_wirenum_vs_resid 'HMS DC 2Y1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2y1.wirenum H.dc.residual[7] 52  0.5  52.5 200 -0.3 0.3
-TH2F hdc2u1_wirenum_vs_resid 'HMS DC 2U1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2u1.wirenum H.dc.residual[8] 107 0.5 107.5 200 -0.3 0.3
-TH2F hdc2v1_wirenum_vs_resid 'HMS DC 2V1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2v1.wirenum H.dc.residual[9] 107 0.5 107.5 200 -0.3 0.3
-TH2F hdc2y2_wirenum_vs_resid 'HMS DC 2Y2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2y2.wirenum H.dc.residual[10] 52  0.5  52.5 200 -0.3 0.3
-TH2F hdc2x2_wirenum_vs_resid 'HMS DC 2X2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2x2.wirenum H.dc.residual[11] 113 0.5 113.5 200 -0.3 0.3
-
-TH1F hdc_trk_mom 'HMS DC Track Momentum; P (GeV); Number of Entires / 10 MeV' P.tr.p 600 0 6
-TH1F hdc_trk_beta 'HMS DC Track Beta; Beta (GeV); Number of Entires' P.tr.beta 300 -1.5 1.5
-TH2F hdc_xfp_vs_yxp 'HMS DC Xfp vs Yxp; Yfp (cm) / 1 cm; Xfp (cm) / 1 cm' H.dc.y H.dc.x 100 -50 50 100 -50 50
-TH2F hdc_xfpp_vs_yxpp 'HMS DC Xfpp vs Yxpp; Yfpp; Xfpp' H.dc.yp H.dc.xp 100 -1 1 100 -1 1
-
-# Hodoscopes (Positive/Left) 
-TH1F hhodo_1x_pos_adc_occu 'HMS Hodoscope 1X+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.1x.posAdcCounter 16 0.5 16.5
-TH1F hhodo_1y_pos_adc_occu 'HMS Hodoscope 1Y+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.1y.posAdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_pos_adc_occu 'HMS Hodoscope 2X+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.2x.posAdcCounter 16 0.5 16.5
-TH1F hhodo_2y_pos_adc_occu 'HMS Hodoscope 2Y+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.2y.posAdcCounter 10 0.5 10.5
-TH1F hhodo_1x_pos_tdc_occu 'HMS Hodoscope 1X+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.1x.posTdcCounter 16 0.5 16.5
-TH1F hhodo_1y_pos_tdc_occu 'HMS Hodoscope 1Y+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.1y.posTdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_pos_tdc_occu 'HMS Hodoscope 2X+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.2x.posTdcCounter 16 0.5 16.5
-TH1F hhodo_2y_pos_tdc_occu 'HMS Hodoscope 2Y+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.2y.posTdcCounter 10 0.5 10.5
-TH2F hhodo_1x_pos_ped_vs_pad 'HMS Hodoscope 1X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_1y_pos_ped_vs_pad 'HMS Hodoscope 1Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_2x_pos_ped_vs_pad 'HMS Hodoscope 2X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_2y_pos_ped_vs_pad 'HMS Hodoscope 2Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_1x_pos_pi_vs_pad 'HMS Hodoscope 1X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1x.GoodPaddle  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_1y_pos_pi_vs_pad 'HMS Hodoscope 1Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1y.GoodPaddle  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_2x_pos_pi_vs_pad 'HMS Hodoscope 2X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2x.GoodPaddle  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_2y_pos_pi_vs_pad 'HMS Hodoscope 2Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2y.GoodPaddle  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_1x_pos_pamp_vs_pad 'HMS Hodoscope 1X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1x.GoodPaddle  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_1y_pos_pamp_vs_pad 'HMS Hodoscope 1Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1y.GoodPaddle  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_2x_pos_pamp_vs_pad 'HMS Hodoscope 2X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2x.GoodPaddle  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_2y_pos_pamp_vs_pad 'HMS Hodoscope 2Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2y.GoodPaddle  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_1x_pos_tdc_time_vs_pad 'HMS Hodoscope 1X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1x.GoodPaddle  H.hod.1x.GoodPosTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_1y_pos_tdc_time_vs_pad 'HMS Hodoscope 1Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1y.GoodPaddle  H.hod.1y.GoodPosTdcChan 10 0.5 10.5 3500 -500 3000
-TH2F hhodo_2x_pos_tdc_time_vs_pad 'HMS Hodoscope 2X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2x.GoodPaddle  H.hod.2x.GoodPosTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_2y_pos_tdc_time_vs_pad 'HMS Hodoscope 2Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2y.GoodPaddle  H.hod.2y.GoodPosTdcChan 10 0.5 10.5 3500 -500 3000
-
-# Hodoscopes (Negative/Right)
-TH1F hhodo_1x_neg_adc_occu 'HMS Hodoscope 1X- ADC Occupancy; Paddle Number; Number of Hits' H.hod.1x.negAdcCounter 16 0.5 16.5
-TH1F hhodo_1y_neg_adc_occu 'HMS Hodoscope 1Y- ADC Occupancy; Paddle Number; Number of Hits' H.hod.1y.negAdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_neg_adc_occu 'HMS Hodoscope 2X- ADC Occupancy; Paddle Number; Number of Hits' H.hod.2x.negAdcCounter 16 0.5 16.5
-TH1F hhodo_2y_neg_adc_occu 'HMS Hodoscope 2Y- ADC Occupancy; Paddle Number; Number of Hits' H.hod.2y.negAdcCounter 10 0.5 10.5
-TH1F hhodo_1x_neg_tdc_occu 'HMS Hodoscope 1X- TDC Occupancy; Paddle Number; Number of Hits' H.hod.1x.negTdcCounter 16 0.5 16.5
-TH1F hhodo_1y_neg_tdc_occu 'HMS Hodoscope 1Y- TDC Occupancy; Paddle Number; Number of Hits' H.hod.1y.negTdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_neg_tdc_occu 'HMS Hodoscope 2X- TDC Occupancy; Paddle Number; Number of Hits' H.hod.2x.negTdcCounter 16 0.5 16.5
-TH1F hhodo_2y_neg_tdc_occu 'HMS Hodoscope 2Y- TDC Occupancy; Paddle Number; Number of Hits' H.hod.2y.negTdcCounter 10 0.5 10.5
-TH2F hhodo_1x_neg_ped_vs_pad 'HMS Hodoscope 1X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_1y_neg_ped_vs_pad 'HMS Hodoscope 1Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_2x_neg_ped_vs_pad 'HMS Hodoscope 2X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_2y_neg_ped_vs_pad 'HMS Hodoscope 2Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_1x_neg_pi_vs_pad 'HMS Hodoscope 1X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1x.GoodPaddle  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_1y_neg_pi_vs_pad 'HMS Hodoscope 1Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1y.GoodPaddle  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_2x_neg_pi_vs_pad 'HMS Hodoscope 2X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2x.GoodPaddle  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_2y_neg_pi_vs_pad 'HMS Hodoscope 2Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2y.GoodPaddle  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_1x_neg_pamp_vs_pad 'HMS Hodoscope 1X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1x.GoodPaddle  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_1y_neg_pamp_vs_pad 'HMS Hodoscope 1Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1y.GoodPaddle  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_2x_neg_pamp_vs_pad 'HMS Hodoscope 2X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2x.GoodPaddle  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_2y_neg_pamp_vs_pad 'HMS Hodoscope 2Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2y.GoodPaddle  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_1x_neg_tdc_time_vs_pad 'HMS Hodoscope 1X- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1x.GoodPaddle  H.hod.1x.GoodNegTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_1y_neg_tdc_time_vs_pad 'HMS Hodoscope 1Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1y.GoodPaddle  H.hod.1y.GoodNegTdcChan 10 0.5 10.5 3500 -500 3000
-TH2F hhodo_2x_neg_tdc_time_vs_pad 'HMS Hodoscope 2X- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2x.GoodPaddle  H.hod.2x.GoodNegTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_2y_neg_tdc_time_vs_pad 'HMS Hodoscope 2Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2y.GoodPaddle  H.hod.2y.GoodNegTdcChan 10 0.5 10.5 3500 -500 3000
-
-# Cherenkov
-TH1F hgcer_occu 'HMS Cherenkov ADC Occupancy; PMT Number; Number of ADC Hits' H.cer.adcCounter 2 0.5 2.5
-TH2F hgcer_ped_vs_cntr 'HMS Cherenkov Pulse Pedestal; PMT Number; Pulse Pedestal / 1 ADC Units' H.cer.adcCounter H.cer.adcPed 2 0.5 2.5 1000 0 1000
-TH2F hgcer_pi_vs_cntr 'HMS Cherenkov Pulse Integral; PMT Number; Pulse Pedestal / 10 ADC Units' H.cer.adcCounter H.cer.adcPulseInt 2 0.5 2.5 4000 0 40000
-TH2F hgcer_pamp_vs_cntr 'HMS Cherenkov Pulse Amplitude; PMT Number; Pulse Pedestal / 1 ADC Units' H.cer.adcCounter H.cer.adcPulseAmp 2 0.5 2.5 4100 0 4100
-
-# Pre-Shower
-TH1F hcal_hA_pos_occu 'HMS hA+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.1pr.posAdcCounter 13 0.5 13.5
-TH2F hcal_hA_pos_ped_blk 'HMS hA+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hA_pos_pi_blk 'HMS hA+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hA_pos_pamp_blk 'HMS hA+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hA_neg_occu 'HMS hA- ADC Occupancy; Block Number; Number of ADC Hits' H.cal.1pr.negAdcCounter 13 0.5 13.5
-TH2F hcal_hA_neg_ped_blk 'HMS hA- Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hA_neg_pi_blk 'HMS hA- Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hA_neg_pamp_blk 'HMS hA- Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hB_pos_occu 'HMS hB+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.2ta.posAdcCounter 13 0.5 13.5
-TH2F hcal_hB_pos_ped_blk 'HMS hB+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hB_pos_pi_blk 'HMS hB+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hB_pos_pamp_blk 'HMS hB+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hB_neg_occu 'HMS hB- ADC Occupancy; Block Number; Number of ADC Hits' H.cal.2ta.negAdcCounter 13 0.5 13.5
-TH2F hcal_hB_neg_ped_blk 'HMS hB- Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hB_neg_pi_blk 'HMS hB- Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hB_neg_pamp_blk 'HMS hB- Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-# Shower
-TH1F hcal_hC_occu 'HMS hC+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.3ta.posAdcCounter 13 0.5 13.5
-TH2F hcal_hC_ped_blk 'HMS hC+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hC_pi_blk 'HMS hC+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hC_pamp_blk 'HMS hC+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hD_occu 'HMS hD+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.4ta.posAdcCounter 13 0.5 13.5
-TH2F hcal_hD_ped_blk 'HMS hD+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hD_pi_blk 'HMS hD+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hD_pamp_blk 'HMS hD+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-# Trigger Apparatus
-TH1F htrig_hCERsum_pped 'HMS Cherenkov Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hCERSUM_adcPed 1000 0 1000
-TH1F htrig_hCERsum_pint 'HMS Cherenkov Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hCERSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hCERsum_pamp 'HMS Cherenkov Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hCERSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hCERsum_tdc_time 'HMS Cherenkov Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hCERSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hAsum_pped 'HMS hA Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hASUM_adcPed 1000 0 1000
-TH1F htrig_hAsum_pint 'HMS hA Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hASUM_adcPulseInt 4000 0 40000
-TH1F htrig_hAsum_pamp 'HMS hA Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hASUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hAsum_tdc_time 'HMS hA Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hASUM_tdcTime 4000 0 4000
-
-TH1F htrig_hBsum_pped 'HMS hB Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hBSUM_adcPed 1000 0 1000
-TH1F htrig_hBsum_pint 'HMS hB Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hBSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hBsum_pamp 'HMS hB Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hBSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hBsum_tdc_time 'HMS hB Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hBSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hCsum_pped 'HMS hC Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hCSUM_adcPed 1000 0 1000
-TH1F htrig_hCsum_pint 'HMS hC Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hCSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hCsum_pamp 'HMS hC Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hCSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hCsum_tdc_time 'HMS hC Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hCSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hDsum_pped 'HMS hD Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hDSUM_adcPed 1000 0 1000
-TH1F htrig_hDsum_pint 'HMS hD Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hDSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hDsum_pamp 'HMS hD Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hDSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hDsum_tdc_time 'HMS hD Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hDSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Sum Pulse Pedestal; Pulse Pedestal (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hPSHWR_adcPed 1000 0 1000
-TH1F htrig_hpreShwr_adc_pint 'HMS Pre-Shower Sum Pulse Integral; Pulse Integral (ADC Units); Number of Entries / 10 ADC Units;' T.hms.hPSHWR_adcPulseInt 4000 0 40000
-TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Sum Pulse Amplitude; Pulse Amplitude (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hPSHWR_adcPulseAmp 4100 0 4100
-
-TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal; Pulse Pedestal (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hSHWR_adcPed 1000 0 1000
-TH1F htrig_hshwr_adc_pint 'HMS Shower Pulse Integral; Pulse Integral (ADC Units); Number of Entries / 10 ADC Units;' T.hms.hSHWR_adcPulseInt 4000 0 40000
-TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude; Pulse Amplitude (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hSHWR_adcPulseAmp 4100 0 4100
-
-TH1F htrig_hpreShwrLow_tdc 'HMS Pre-Shower Low TDC Time; TDC Time (TDC Units); Number of Entries / 1 TDC Units;' T.hms.hPSHWRLO_tdcTime 4000 0 4000
-TH1F htrig_hpreShwrHigh_tdc 'HMS Pre-Shower High TDC Time; TDC Time (TDC Units); Number of Entries / 1 TDC Units;' T.hms.hPSHWRHI_tdcTime 4000 0 4000
-TH1F htrig_hshwr_tdc 'HMS Shower TDC Time; TDC Time (TDC Units); Number of Entries / 1 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 4000
diff --git a/DEF-files/HMS/GEN/hstackana_cuts.def b/DEF-files/HMS/GEN/hstackana_cuts.def
deleted file mode 100644
index be9766d6dbce5b3f853b421de3b72360edea797e..0000000000000000000000000000000000000000
--- a/DEF-files/HMS/GEN/hstackana_cuts.def
+++ /dev/null
@@ -1,28 +0,0 @@
-Block: RawDecode
-
-Pedestal_event 0
-RawDecode_master 1
-
-Block: Decode
-Decode_master 1
-
-Block: CoarseTracking
-CoarseTracking_master 1
-
-#add cuts to stricter times and apply them to drift distances 
-time_cut1                            H.dc.1x1.time > 0 && H.dc.1x1.time < 250
-time_cut2                            H.dc.1y1.time > 0 && H.dc.1y1.time < 250
-time_cut3                            H.dc.1u1.time > 0 && H.dc.1u1.time < 250
-time_cut4                            H.dc.1v1.time > 0 && H.dc.1v1.time < 250
-time_cut5                            H.dc.1y2.time > 0 && H.dc.1y2.time < 250
-time_cut6                            H.dc.1x2.time > 0 && H.dc.1x2.time < 250
-time_cut7                            H.dc.2x1.time > 0 && H.dc.2x1.time < 250
-time_cut8                            H.dc.2y1.time > 0 && H.dc.1y1.time < 250
-time_cut9                            H.dc.2u1.time > 0 && H.dc.2u1.time < 250
-time_cut10                            H.dc.2v1.time > 0 && H.dc.2v1.time < 250
-time_cut11                            H.dc.2y2.time > 0 && H.dc.2y2.time < 250
-time_cut12                            H.dc.2x2.time > 0 && H.dc.2x2.time < 250
-
-
-Block: CoarseReconstruct
-CourseReconstruct 0
diff --git a/DEF-files/HMS/GEN/hstackana_report.def b/DEF-files/HMS/GEN/hstackana_report.def
deleted file mode 100644
index 8c4aee4ac3bc1270aab7af5c297e8dfb09419ff2..0000000000000000000000000000000000000000
--- a/DEF-files/HMS/GEN/hstackana_report.def
+++ /dev/null
@@ -1,273 +0,0 @@
-# See $ANALYZER/examples/output_example.def for examples
-#
-#block *
-block T.hms.*
-block H.dc.*
-block H.tr.*
-block H.hod.*
-block H.cer.*
-block H.cal.*
-block H.gtr.*
-
-TH1F hev_typ " HMS evtype ' g.evtyp 200 0 200
-
-TH1F hcal_ene 'HMS Cal energy' H.cal.etot 1000 0. 5.
-TH1F hcal_xclusttrack 'HMS Cal X pos' H.cal.xclusttrack 200 -100. 100. H.cal.nclusttrack>-1
-TH1F hcal_xdiff 'HMS Cal X pos - X track' H.cal.xclusttrack-H.cal.xtrack 200 -20. 20. H.cal.nclusttrack>-1&&H.dc.ntrack>0
-TH2F hcal_xdiff_v_xtr 'HMS Cal X pos - X track v Xtr' H.cal.xtrack H.cal.xclusttrack-H.cal.xtrack 200 -100. 100. 200 -20. 20. H.cal.nclusttrack>-1&&H.dc.ntrack>0
-TH1F hcal_xtrack 'HMS Cal X pos of track' H.cal.xtrack 200 -100. 100. H.cal.nclusttrack>-1&&H.dc.ntrack>0
-TH1F hcal_xtrack1 'HMS Cal X pos of track no matching clust' H.cal.xtrack 200 -100. 100. H.cal.nclusttrack==-1&&H.gtr.dp>-8.&&H.gtr.dp<8.&&H.dc.ntrack>0
-TH1F hcal_xtrack2 'HMS Cal X pos of track no matching clust number of cluster=1' H.cal.xtrack 200 -100. 100. H.cal.nclusttrack==-1&&H.cal.nclust==0&&H.gtr.dp>-8.&&H.gtr.dp<8.&&H.dc.ntrack>0
-TH1F hcal_enenorm 'HMS Cal energy normalized by Central MOM' H.cal.etotnorm 300 0. 1.5
-TH1F hcal_ene_track 'HMS Cal energy (best track)' H.cal.etrack 1000 0. 5. H.dc.ntrack>0
-TH1F hcal_enenorm_track 'HMS Cal energy normalized by best track mom' H.cal.etracknorm 1000 0. 1.5 H.dc.ntrack>0
-TH1F hcal_enenorm_track_elec 'HMS Cal energy/p (npeSum > .5 && abs(del)<8)' H.cal.etracknorm 300 0. 1.5 H.dc.ntrack>0&&H.cer.npeSum>.5&&H.gtr.dp>-8.&&H.gtr.dp<8.
-TH1F hcal_enenorm_track_pion 'HMS Cal energy/p (npeSum <.5 && abs(del)<8)' H.cal.etracknorm 300 0. 1.5 H.dc.ntrack>0&&H.cer.npeSum<.5&&H.gtr.dp>-8.&&H.gtr.dp<8.
-TH2F hcal_ene_2dtrack 'HMS Cal energy v energy track' H.cal.etrack H.cal.etot 1000 0. 5. 1000 0. 5. H.dc.ntrack>0
-TH2F hcal_delta_etrack 'HMS Delta v Cal energy/p ' H.cal.etracknorm H.gtr.dp 300 0. 1.5 600 -15. 15. H.dc.ntrack>0
-TH2F hcal_npe_etrack 'HMS Cer Npe v Cal energy/p' H.cal.etracknorm H.cer.npeSum 300 0. 1.5 60 0. 15. H.dc.ntrack>0
-TH1F hcer_pmt1 'HMS GAS Cher PMT1; ADC ; Counts' H.cer.goodAdcPulseInt[0] 200 0 10000 
-TH1F hcer_pmt2 'HMS GAS Cher PMT2; ADC ; Counts' H.cer.goodAdcPulseInt[1] 200 0 10000 
-TH1F hcer_pmt1_nphe 'HMS GAS Cher PMT1; Number of PE ; Counts' H.cer.npe[0] 80 0 20
-TH1F hcer_pmt2_nphe 'HMS GAS Cher PMT2;  Number of PE ; Counts' H.cer.npe[1] 80 0 20 
-TH1F hcer_sum_nphe 'HMS GAS Cher;  Total Number of PE ; Counts' H.cer.npeSum 80 0 20 
-TH2F hcer_sum_nphe_x 'HMS GAS Cher;  Total Number of PE ; X_fp' H.cer.npeSum H.dc.x_fp 80 0 20 80 -60. 60.
-TH2F hcer_sum_nphe_dp 'HMS GAS Cher;  Total Number of PE ; Delta (%) ' H.cer.npeSum H.gtr.dp 80 0 20 120 -15. 20.
-TH1F hbeta 'HMS beta' H.hod.beta 240 -1.2 1.2
-TH1F hbetanotrack 'HMS beta' H.hod.betanotrack 240 -1.2 1.2
-TH1F htr_x 'HMS x' H.tr.x 80 -40. 40.
-TH1F hgtr_dp 'HMS Gold track delta' H.gtr.dp 120 -15. 15.
-TH1F hgtr_x 'HMS Gold track x_tg' H.gtr.x 80 -40. 40.
-TH1F hgtr_y 'HMS Gold track y_tg (cm)' H.gtr.y 80 -40. 40.
-TH1F hgtr_xp 'HMS Gold track xp_tg' H.gtr.th 80 -.1 .1
-TH1F hgtr_yp 'HMS Gold track yp_tg' H.gtr.ph 80 -.1 .1
-TH1F htr_x_fp 'HMS X_fp (cm)' H.dc.x_fp 80 -60. 60.
-TH1F htr_y_fp 'HMS Y_fp (cm)' H.dc.y_fp 80 -40. 40.
-TH1F htr_xp_fp 'HMS Xp_fp (radians)' H.dc.xp_fp 80 -.1 .1
-TH1F htr_yp_fp 'HMS Yp_fp (radians)' H.dc.yp_fp 80 -.1 .1
-TH2F htr_x_y_fp 'HMS X Y focal plane; Y_fp (cm) ;X_fp (cm)' H.dc.y_fp H.dc.x_fp  80 -40. 40. 80 -60. 60.  cer_elec
-TH2F htr_x_y_fp1 'HMS X Y focal plane; Y_fp (cm) ;X_fp (cm)' H.dc.y_fp H.dc.x_fp  80 -10. 10. 80 -10. 10.  cer_elec
-TH1F htr_x_fp1 'HMS X_fp (cm)' H.dc.x_fp 80 -10. 10.
-#
-# Drift Chambers
-TH1F hdc_ref1 'HMS DC Reference Time Slot 5 Channel 111; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime 3000 12000 15000 
-TH1F hdc_ref2 'HMS DC Reference Time Slot 8 Channel 127; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime 3000 12000 15000
-TH1F hdc_ref3 'HMS DC Reference Time Slot 10 Channel 127; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime 3000 12000 15000
-TH1F hdc_ref4 'HMS DC Reference Time Slot 17 Channel 127; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF4_tdcTime 3000 12000 15000
-
-TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
-TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
-TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
-TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
-TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
-TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
-
-TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
-TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
-TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
-TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
-TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
-TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
-
-TH2F hdc1x1_wirenum_vs_tdc 'HMS DC 1X1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 2000 -500 1500
-TH2F hdc1y1_wirenum_vs_tdc 'HMS DC 1Y1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc1u1_wirenum_vs_tdc 'HMS DC 1U1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc1v1_wirenum_vs_tdc 'HMS DC 1V1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc1y2_wirenum_vs_tdc 'HMS DC 1Y2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc1x2_wirenum_vs_tdc 'HMS DC 1X2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 2000 -500 1500
-
-TH2F hdc2x1_wirenum_vs_tdc 'HMS DC 2X1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 2000 -500 1500
-TH2F hdc2y1_wirenum_vs_tdc 'HMS DC 2Y1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc2u1_wirenum_vs_tdc 'HMS DC 2U1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc2v1_wirenum_vs_tdc 'HMS DC 2V1 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 2000 -500 1500
-TH2F hdc2y2_wirenum_vs_tdc 'HMS DC 2Y2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 2000 -500 1500
-TH2F hdc2x2_wirenum_vs_tdc 'HMS DC 2X2 Wire Number vs. TDC; Wire Number; TDC Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 2000 -500 1500
-
-TH1F hdc1x1_resid 'HMS DC 1X1 Residuals; Residuals (cm)'  H.dc.residual[0]  200 -.3 .3  cer_elec
-TH1F hdc1y1_resid 'HMS DC 1Y1 Residuals; Residuals (cm)'  H.dc.residual[1]  200 -.3 .3 cer_elec
-TH1F hdc1u1_resid 'HMS DC 1U1 Residuals; Residuals (cm)'  H.dc.residual[2]  200 -.3 .3 cer_elec
-TH1F hdc1v1_resid 'HMS DC 1V1 Residuals; Residuals (cm)'  H.dc.residual[3]  200 -.3 .3 cer_elec
-TH1F hdc1y2_resid 'HMS DC 1Y2 Residuals; Residuals (cm)'  H.dc.residual[4]  200 -.3 .3 cer_elec
-TH1F hdc1x2_resid 'HMS DC 1X2 Residuals; Residuals (cm)'  H.dc.residual[5]  200 -.3 .3 cer_elec
-
-TH2F hdc1y1_y2_resid 'HMS DC Residuals ;  Y1 wire ;Y1 resid - Y2 Residuals (cm)' H.dc.1y1.wirenum H.dc.residual[1]-H.dc.residual[4] 52  0.5  52.5  200 -.3 .3  cer_elec
-
-TH1F hdc2x1_resid 'HMS DC 2X1 Residuals; Residuals (cm)'  H.dc.residual[6]  200 -.3 .3 cer_elec
-TH1F hdc2y1_resid 'HMS DC 2Y1 Residuals; Residuals (cm)'  H.dc.residual[7]  200 -.3 .3 cer_elec
-TH1F hdc2u1_resid 'HMS DC 2U1 Residuals; Residuals (cm)'  H.dc.residual[8]  200 -.3 .3 cer_elec
-TH1F hdc2v1_resid 'HMS DC 2V1 Residuals; Residuals (cm)'  H.dc.residual[9]  200 -.3 .3 cer_elec
-TH1F hdc2y2_resid 'HMS DC 2Y2 Residuals; Residuals (cm)'  H.dc.residual[10] 200 -.3 .3 cer_elec
-TH1F hdc2x2_resid 'HMS DC 2X2 Residuals; Residuals (cm)'  H.dc.residual[11] 200 -.3 .3 cer_elec
-
-TH2F hdc1x1_wirenum_vs_resid 'HMS DC 1X1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1x1.wirenum H.dc.residual[0] 113 0.5 113.5 200 -.3 .3  cer_elec
-TH2F hdc1y1_wirenum_vs_resid 'HMS DC 1Y1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1y1.wirenum H.dc.residual[1] 52  0.5  52.5 200 -.3 .3 cer_elec
-TH2F hdc1u1_wirenum_vs_resid 'HMS DC 1U1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1u1.wirenum H.dc.residual[2] 107 0.5 107.5 200 -.3 .3 cer_elec
-TH2F hdc1v1_wirenum_vs_resid 'HMS DC 1V1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1v1.wirenum H.dc.residual[3] 107 0.5 107.5 200 -.3 .3 cer_elec
-TH2F hdc1y2_wirenum_vs_resid 'HMS DC 1Y2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1y2.wirenum H.dc.residual[4] 52  0.5  52.5 200 -.3 .3 cer_elec
-TH2F hdc1x2_wirenum_vs_resid 'HMS DC 1X2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.1x2.wirenum H.dc.residual[5] 113 0.5 113.5 200 -.3 .3 cer_elec
-
-TH2F hdc2x1_wirenum_vs_resid 'HMS DC 2X1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2x1.wirenum H.dc.residual[6] 113 0.5 113.5 200 -.3 .3 cer_elec
-TH2F hdc2y1_wirenum_vs_resid 'HMS DC 2Y1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2y1.wirenum H.dc.residual[7] 52  0.5  52.5 200 -.3 .3 cer_elec
-TH2F hdc2u1_wirenum_vs_resid 'HMS DC 2U1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2u1.wirenum H.dc.residual[8] 107 0.5 107.5 200 -.3 .3 cer_elec
-TH2F hdc2v1_wirenum_vs_resid 'HMS DC 2V1 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2v1.wirenum H.dc.residual[9] 107 0.5 107.5 200 -.3 .3 cer_elec
-TH2F hdc2y2_wirenum_vs_resid 'HMS DC 2Y2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2y2.wirenum H.dc.residual[10] 52  0.5  52.5 200 -.3 .3 cer_elec
-TH2F hdc2x2_wirenum_vs_resid 'HMS DC 2X2 Wire Number vs. Residuals; Wire Number; Residuals (cm)' H.dc.2x2.wirenum H.dc.residual[11] 113 0.5 113.5 200 -.3 .3 cer_elec
-
-TH2F hdc_xfp_vs_yxp 'HMS DC Xfp vs Yxp; Yfp (cm) / 1 cm; Xfp (cm) / 1 cm' H.dc.y H.dc.x 100 -50 50 100 -50 50
-TH2F hdc_xfpp_vs_yxpp 'HMS DC Xfpp vs Yxpp; Yfpp; Xfpp' H.dc.yp H.dc.xp 100 -1 1 100 -1 1
-
-# Hodoscopes (Positive/Left) 
-TH1F hhodo_1x_pos_adc_occu 'HMS Hodoscope 1X+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.1x.posAdcCounter 16 0.5 16.5
-TH1F hhodo_1y_pos_adc_occu 'HMS Hodoscope 1Y+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.1y.posAdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_pos_adc_occu 'HMS Hodoscope 2X+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.2x.posAdcCounter 16 0.5 16.5
-TH1F hhodo_2y_pos_adc_occu 'HMS Hodoscope 2Y+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.2y.posAdcCounter 10 0.5 10.5
-TH1F hhodo_1x_pos_tdc_occu 'HMS Hodoscope 1X+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.1x.posTdcCounter 16 0.5 16.5
-TH1F hhodo_1y_pos_tdc_occu 'HMS Hodoscope 1Y+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.1y.posTdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_pos_tdc_occu 'HMS Hodoscope 2X+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.2x.posTdcCounter 16 0.5 16.5
-TH1F hhodo_2y_pos_tdc_occu 'HMS Hodoscope 2Y+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.2y.posTdcCounter 10 0.5 10.5
-TH2F hhodo_1x_pos_ped_vs_pad 'HMS Hodoscope 1X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_1y_pos_ped_vs_pad 'HMS Hodoscope 1Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_2x_pos_ped_vs_pad 'HMS Hodoscope 2X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_2y_pos_ped_vs_pad 'HMS Hodoscope 2Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_1x_pos_pi_vs_pad 'HMS Hodoscope 1X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1x.GoodPaddle  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_1y_pos_pi_vs_pad 'HMS Hodoscope 1Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1y.GoodPaddle  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_2x_pos_pi_vs_pad 'HMS Hodoscope 2X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2x.GoodPaddle  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_2y_pos_pi_vs_pad 'HMS Hodoscope 2Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2y.GoodPaddle  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_1x_pos_pamp_vs_pad 'HMS Hodoscope 1X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1x.GoodPaddle  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_1y_pos_pamp_vs_pad 'HMS Hodoscope 1Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1y.GoodPaddle  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_2x_pos_pamp_vs_pad 'HMS Hodoscope 2X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2x.GoodPaddle  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_2y_pos_pamp_vs_pad 'HMS Hodoscope 2Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2y.GoodPaddle  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_1x_pos_tdc_time_vs_pad 'HMS Hodoscope 1X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1x.GoodPaddle  H.hod.1x.GoodPosTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_1y_pos_tdc_time_vs_pad 'HMS Hodoscope 1Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1y.GoodPaddle  H.hod.1y.GoodPosTdcChan 10 0.5 10.5 3500 -500 3000
-TH2F hhodo_2x_pos_tdc_time_vs_pad 'HMS Hodoscope 2X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2x.GoodPaddle  H.hod.2x.GoodPosTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_2y_pos_tdc_time_vs_pad 'HMS Hodoscope 2Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2y.GoodPaddle  H.hod.2y.GoodPosTdcChan 10 0.5 10.5 3500 -500 3000
-
-# Hodoscopes (Negative/Right)
-TH1F hhodo_1x_neg_adc_occu 'HMS Hodoscope 1X- ADC Occupancy; Paddle Number; Number of Hits' H.hod.1x.negAdcCounter 16 0.5 16.5
-TH1F hhodo_1y_neg_adc_occu 'HMS Hodoscope 1Y- ADC Occupancy; Paddle Number; Number of Hits' H.hod.1y.negAdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_neg_adc_occu 'HMS Hodoscope 2X- ADC Occupancy; Paddle Number; Number of Hits' H.hod.2x.negAdcCounter 16 0.5 16.5
-TH1F hhodo_2y_neg_adc_occu 'HMS Hodoscope 2Y- ADC Occupancy; Paddle Number; Number of Hits' H.hod.2y.negAdcCounter 10 0.5 10.5
-TH1F hhodo_1x_neg_tdc_occu 'HMS Hodoscope 1X- TDC Occupancy; Paddle Number; Number of Hits' H.hod.1x.negTdcCounter 16 0.5 16.5
-TH1F hhodo_1y_neg_tdc_occu 'HMS Hodoscope 1Y- TDC Occupancy; Paddle Number; Number of Hits' H.hod.1y.negTdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_neg_tdc_occu 'HMS Hodoscope 2X- TDC Occupancy; Paddle Number; Number of Hits' H.hod.2x.negTdcCounter 16 0.5 16.5
-TH1F hhodo_2y_neg_tdc_occu 'HMS Hodoscope 2Y- TDC Occupancy; Paddle Number; Number of Hits' H.hod.2y.negTdcCounter 10 0.5 10.5
-TH2F hhodo_1x_neg_ped_vs_pad 'HMS Hodoscope 1X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_1y_neg_ped_vs_pad 'HMS Hodoscope 1Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_2x_neg_ped_vs_pad 'HMS Hodoscope 2X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPed 16 0.5 16.5 1000 0 1000
-TH2F hhodo_2y_neg_ped_vs_pad 'HMS Hodoscope 2Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPed 10 0.5 10.5 1000 0 1000
-TH2F hhodo_1x_neg_pi_vs_pad 'HMS Hodoscope 1X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1x.GoodPaddle  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_1y_neg_pi_vs_pad 'HMS Hodoscope 1Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1y.GoodPaddle  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_2x_neg_pi_vs_pad 'HMS Hodoscope 2X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2x.GoodPaddle  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_2y_neg_pi_vs_pad 'HMS Hodoscope 2Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2y.GoodPaddle  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_1x_neg_pamp_vs_pad 'HMS Hodoscope 1X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1x.GoodPaddle  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_1y_neg_pamp_vs_pad 'HMS Hodoscope 1Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.1y.GoodPaddle  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_2x_neg_pamp_vs_pad 'HMS Hodoscope 2X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2x.GoodPaddle  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 4100 0 4100
-TH2F hhodo_2y_neg_pamp_vs_pad 'HMS Hodoscope 2Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 1 ADC Unit' H.hod.2y.GoodPaddle  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 4100 0 4100
-TH2F hhodo_1x_neg_tdc_time_vs_pad 'HMS Hodoscope 1X- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1x.GoodPaddle  H.hod.1x.GoodNegTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_1y_neg_tdc_time_vs_pad 'HMS Hodoscope 1Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.1y.GoodPaddle  H.hod.1y.GoodNegTdcChan 10 0.5 10.5 3500 -500 3000
-TH2F hhodo_2x_neg_tdc_time_vs_pad 'HMS Hodoscope 2X- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2x.GoodPaddle  H.hod.2x.GoodNegTdcChan 16 0.5 16.5 3500 -500 3000
-TH2F hhodo_2y_neg_tdc_time_vs_pad 'HMS Hodoscope 2Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time (ns) / 1 ns' H.hod.2y.GoodPaddle  H.hod.2y.GoodNegTdcChan 10 0.5 10.5 3500 -500 3000
-
-# Cherenkov
-TH1F hgcer_occu 'HMS Cherenkov ADC Occupancy; PMT Number; Number of ADC Hits' H.cer.adcCounter 2 0.5 2.5
-TH2F hgcer_ped_vs_cntr 'HMS Cherenkov Pulse Pedestal; PMT Number; Pulse Pedestal / 1 ADC Units' [I] H.cer.goodAdcPed 3 0 3 1000 0 1000
-TH2F hgcer_pi_vs_cntr 'HMS Cherenkov Pulse Integral; PMT Number; Pulse Pedestal / 10 ADC Units' [I] H.cer.goodAdcPulseInt 3 0 3 4000 0 40000
-TH2F hgcer_pamp_vs_cntr 'HMS Cherenkov Pulse Amplitude; PMT Number; Pulse Pedestal / 1 ADC Units' [I] H.cer.goodAdcPulseAmp 3 0 3 4100 0 4100
-
-#
-TH1F hgcer_pmt1_adc  'HMS Cherenkov PMT 1 ; ADC (chan) ; Counts' H.cer.goodAdcPulseInt[0] 1000 0. 100000. 
-TH1F hgcer_pmt2_adc  'HMS Cherenkov PMT 2 ; ADC (chan) ; Counts' H.cer.goodAdcPulseInt[1] 1000 0. 100000. 
-TH1F hgcer_pmt1_nphe 'HMS Cherenkov PMT 1 ; N_Phe ; Counts' H.cer.npe[0] 500 0. 100. 
-TH1F hgcer_pmt2_nphe 'HMS Cherenkov PMT 2 ; N_Phe ; Counts' H.cer.npe[1] 500 0. 100. 
-
-
-# Pre-Shower
-TH1F hcal_hA_pos_occu 'HMS hA+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.1pr.posAdcCounter 13 0.5 13.5
-TH2F hcal_hA_pos_ped_blk 'HMS hA+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hA_pos_pi_blk 'HMS hA+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hA_pos_pamp_blk 'HMS hA+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hA_neg_occu 'HMS hA- ADC Occupancy; Block Number; Number of ADC Hits' H.cal.1pr.negAdcCounter 13 0.5 13.5
-TH2F hcal_hA_neg_ped_blk 'HMS hA- Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hA_neg_pi_blk 'HMS hA- Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hA_neg_pamp_blk 'HMS hA- Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hB_pos_occu 'HMS hB+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.2ta.posAdcCounter 13 0.5 13.5
-TH2F hcal_hB_pos_ped_blk 'HMS hB+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hB_pos_pi_blk 'HMS hB+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hB_pos_pamp_blk 'HMS hB+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hB_neg_occu 'HMS hB- ADC Occupancy; Block Number; Number of ADC Hits' H.cal.2ta.negAdcCounter 13 0.5 13.5
-TH2F hcal_hB_neg_ped_blk 'HMS hB- Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hB_neg_pi_blk 'HMS hB- Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hB_neg_pamp_blk 'HMS hB- Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-# Shower
-TH1F hcal_hC_occu 'HMS hC+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.3ta.posAdcCounter 13 0.5 13.5
-TH2F hcal_hC_ped_blk 'HMS hC+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hC_pi_blk 'HMS hC+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hC_pamp_blk 'HMS hC+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-
-TH1F hcal_hD_occu 'HMS hD+ ADC Occupancy; Block Number; Number of ADC Hits' H.cal.4ta.posAdcCounter 13 0.5 13.5
-TH2F hcal_hD_ped_blk 'HMS hD+ Pulse Pedestal vs. Block Number; Block Number; Pulse Pedestal / 1 ADC Units' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcPed 13 0.5 13.5 1000 0 1000
-TH2F hcal_hD_pi_blk 'HMS hD+ Pulse Integral vs. Block Number; Block Number; Pulse Integral / 10 ADC Units' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcPulseInt 13 0.5 13.5 4000 0 40000
-TH2F hcal_hD_pamp_blk 'HMS hD+ Pulse Amplitude vs. Block Number; Block Number; Pulse Amplitude / 1 ADC Units' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcPulseAmp 13 0.5 13.5 4100 0 4100
-TH1F htrig_multhodo_ch1xy 'HMS Hodoscope Trig Mult 1X and 1Y ' T.hms.h1T_tdcMultiplicity 11 0 11 
-TH1F htrig_multhodo_ch1x 'HMS Hodoscope Trig Mult 1X ' T.hms.h1X_tdcMultiplicity 11 0 11 
-TH1F htrig_multhodo_ch1y 'HMS Hodoscope Trig Mult 1Y ' T.hms.h1Y_tdcMultiplicity 11 0 11
-TH1F htrig_multhodo_ch2xy 'HMS Hodoscope Trig Mult 2X and 2Y ' T.hms.h2T_tdcMultiplicity 11 0 11 
-TH1F htrig_multhodo_ch2x 'HMS Hodoscope Trig Mult 2X ' T.hms.h2X_tdcMultiplicity 11 0 11 
-TH1F htrig_multhodo_ch2y 'HMS Hodoscope Trig Mult 2Y ' T.hms.h2Y_tdcMultiplicity 11 0 11 
-
-TH1F htrig_hodo_ch1xy 'HMS Hodoscope Trig 1X and 1Y (ns)' T.hms.h1T_tdcTime 200 0 400 T.hms.h1T_tdcMultiplicity==1
-TH1F htrig_hodo_ch1x 'HMS Hodoscope Trig 1X (ns)' T.hms.h1X_tdcTime 200 0 400 T.hms.h1X_tdcMultiplicity==1
-TH1F htrig_hodo_ch1y 'HMS Hodoscope Trig 1Y (ns)' T.hms.h1Y_tdcTime 200 0 400 T.hms.h1Y_tdcMultiplicity==1
-TH1F htrig_hodo_ch2xy 'HMS Hodoscope Trig 2X and 2Y (ns)' T.hms.h2T_tdcTime 200 0 400 T.hms.h2T_tdcMultiplicity==1
-TH1F htrig_hodo_ch2x 'HMS Hodoscope Trig 2X (ns)' T.hms.h2X_tdcTime 200 0 400 T.hms.h2X_tdcMultiplicity==1
-TH1F htrig_hodo_ch2y 'HMS Hodoscope Trig 2Y (ns)' T.hms.h2Y_tdcTime 200 0 400 T.hms.h2Y_tdcMultiplicity==1
-
-TH2F htrig_ch1xy_ch2xy 'HMS Hodo Trig; 1X1Y Trig (ns); 2X2Y Trig (ns)' T.hms.h1T_tdcTime  T.hms.h2T_tdcTime 200 200 350 200 200 350 T.hms.h2T_tdcMultiplicity==1&&T.hms.h1T_tdcMultiplicity==1
-TH2F htrig_ch1x_ch2x 'hms Hodo Trig ;Trig 1X (ns);Trig 2X (ns)' T.hms.h1X_tdcTime  T.hms.h2X_tdcTime 200 200 350 200 200 350 T.hms.h2X_tdcMultiplicity==1&&T.hms.h1X_tdcMultiplicity==1
-TH2F htrig_ch1x_ch2y 'hms Hodo Trig ;Trig 1X (ns);Trig 2Y (ns)' T.hms.h1X_tdcTime  T.hms.h2Y_tdcTime 200 200 350 200 200 350 T.hms.h2Y_tdcMultiplicity==1&&T.hms.h1X_tdcMultiplicity==1
-TH2F htrig_ch1y_ch1x 'hms Hodo Trig ;Trig 1X (ns);Trig 1Y (ns)' T.hms.h1X_tdcTime  T.hms.h1Y_tdcTime 200 200 350 200 200 350 T.hms.h1Y_tdcMultiplicity==1&&T.hms.h1X_tdcMultiplicity==1
-TH2F htrig_ch1y_ch2x 'hms Hodo Trig; 1Y Trig (ns); 2X Trig (ns)' T.hms.h1Y_tdcTime  T.hms.h2X_tdcTime 200 200 350 200 200 350 T.hms.h2X_tdcMultiplicity==1&&T.hms.h1Y_tdcMultiplicity==1
-TH2F htrig_ch1y_ch2y 'hms Hodo Trig; 1Y Trig (ns); 2Y Trig (ns)' T.hms.h1Y_tdcTime  T.hms.h2Y_tdcTime 200 200 350 200 200 350 T.hms.h2Y_tdcMultiplicity==1&&T.hms.h1Y_tdcMultiplicity==1
-TH2F htrig_ch2y_ch2x 'HMS Hodo Trig; 2Y Trig (ns); 2X Trig (ns)' T.hms.h2Y_tdcTime  T.hms.h2X_tdcTime 200 200 350 200 200 350 T.hms.h2X_tdcMultiplicity==1&&T.hms.h2Y_tdcMultiplicity==1
-
-# Trigger Apparatus
-TH1F htrig_hCERsum_pped 'HMS Cherenkov Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hCERSUM_adcPed 1000 0 1000
-TH1F htrig_hCERsum_pint 'HMS Cherenkov Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hCERSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hCERsum_pamp 'HMS Cherenkov Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hCERSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hCERsum_tdc_time 'HMS Cherenkov Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hCERSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hAsum_pped 'HMS hA Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hASUM_adcPed 1000 0 1000
-TH1F htrig_hAsum_pint 'HMS hA Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hASUM_adcPulseInt 4000 0 40000
-TH1F htrig_hAsum_pamp 'HMS hA Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hASUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hAsum_tdc_time 'HMS hA Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hASUM_tdcTime 4000 0 4000
-
-TH1F htrig_hBsum_pped 'HMS hB Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hBSUM_adcPed 1000 0 1000
-TH1F htrig_hBsum_pint 'HMS hB Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hBSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hBsum_pamp 'HMS hB Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hBSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hBsum_tdc_time 'HMS hB Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hBSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hCsum_pped 'HMS hC Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hCSUM_adcPed 1000 0 1000
-TH1F htrig_hCsum_pint 'HMS hC Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hCSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hCsum_pamp 'HMS hC Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hCSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hCsum_tdc_time 'HMS hC Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hCSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hDsum_pped 'HMS hD Sum Pulse Pedestal; Pulse Pedestal; Number of Entries / 1 ADC Unit' T.hms.hDSUM_adcPed 1000 0 1000
-TH1F htrig_hDsum_pint 'HMS hD Sum Pulse Integral; Pulse Integral; Number of Entries / 10 ADC Units' T.hms.hDSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hDsum_pamp 'HMS hD Sum Pulse Amplitude; Pulse Amplitude; Number of Entries / 1 ADC Unit' T.hms.hDSUM_adcPulseAmp 4100 0 4100
-TH1F htrig_hDsum_tdc_time 'HMS hD Sum TDC Time; TDC Time (TDC Clicks); Number of Entries / 1 TDC Clicks' T.hms.hDSUM_tdcTime 4000 0 4000
-
-TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Sum Pulse Pedestal; Pulse Pedestal (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hPSHWR_adcPed 1000 0 1000
-TH1F htrig_hpreShwr_adc_pint 'HMS Pre-Shower Sum Pulse Integral; Pulse Integral (ADC Units); Number of Entries / 10 ADC Units;' T.hms.hPSHWR_adcPulseInt 4000 0 40000
-TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Sum Pulse Amplitude; Pulse Amplitude (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hPSHWR_adcPulseAmp 4100 0 4100
-
-TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal; Pulse Pedestal (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hSHWR_adcPed 1000 0 1000
-TH1F htrig_hshwr_adc_pint 'HMS Shower Pulse Integral; Pulse Integral (ADC Units); Number of Entries / 10 ADC Units;' T.hms.hSHWR_adcPulseInt 4000 0 40000
-TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude; Pulse Amplitude (ADC Units); Number of Entries / 1 ADC Units;' T.hms.hSHWR_adcPulseAmp 4100 0 4100
-
-TH1F htrig_hpreShwrLow_tdc 'HMS Pre-Shower Low TDC Time; TDC Time (TDC Units); Number of Entries / 1 TDC Units;' T.hms.hPSHWRLO_tdcTime 4000 0 4000
-TH1F htrig_hpreShwrHigh_tdc 'HMS Pre-Shower High TDC Time; TDC Time (TDC Units); Number of Entries / 1 TDC Units;' T.hms.hPSHWRHI_tdcTime 4000 0 4000
-TH1F htrig_hshwr_tdc 'HMS Shower TDC Time; TDC Time (TDC Units); Number of Entries / 1 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 4000
diff --git a/DEF-files/HMS/HODO/hhodoana.def b/DEF-files/HMS/HODO/hhodoana.def
deleted file mode 100644
index f6b7a4854e0b6fdb2b822a30aea7e4a60e1d9ea5..0000000000000000000000000000000000000000
--- a/DEF-files/HMS/HODO/hhodoana.def
+++ /dev/null
@@ -1,134 +0,0 @@
-# See $ANALYZER/examples/output_example.def for examples
-#
-block H.hod.*
-block T.hms.*
-
-TH1F hhodo_1x_multi 'HMS 1X Multiplicity; Number of Hits; Counts' H.hod.1x.nhits 16 0.5 16.5
-TH1F hhodo_1y_multi 'HMS 1Y Multiplicity; Number of Hits; Counts' H.hod.1y.nhits 10 0.5 10.5
-TH1F hhodo_2x_multi 'HMS 2X Multiplicity; Number of Hits; Counts' H.hod.2x.nhits 16 0.5 16.5
-TH1F hhodo_2y_multi 'HMS 2Y Multiplicity; Number of Hits; Counts' H.hod.2y.nhits 10 0.5 10.5
-
-TH1F hhodo_1x_pos_adc_occu 'HMS 1X+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.1x.posAdcCounter 16 0.5 16.5
-TH1F hhodo_1y_pos_adc_occu 'HMS 1Y+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.1y.posAdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_pos_adc_occu 'HMS 2X+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.2x.posAdcCounter 16 0.5 16.5
-TH1F hhodo_2y_pos_adc_occu 'HMS 2Y+ ADC Occupancy; Paddle Number; Number of Hits' H.hod.2y.posAdcCounter 10 0.5 10.5
-
-TH1F hhodo_1x_neg_adc_occu 'HMS 1X- ADC Occupancy; Paddle Number; Number of Hits' H.hod.1x.negAdcCounter 16 0.5 16.5
-TH1F hhodo_1y_neg_adc_occu 'HMS 1Y- ADC Occupancy; Paddle Number; Number of Hits' H.hod.1y.negAdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_neg_adc_occu 'HMS 2X- ADC Occupancy; Paddle Number; Number of Hits' H.hod.2x.negAdcCounter 16 0.5 16.5
-TH1F hhodo_2y_neg_adc_occu 'HMS 2Y- ADC Occupancy; Paddle Number; Number of Hits' H.hod.2y.negAdcCounter 10 0.5 10.5
-
-TH1F hhodo_1x_pos_tdc_occu 'HMS 1X+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.1x.posTdcCounter 16 0.5 16.5
-TH1F hhodo_1y_pos_tdc_occu 'HMS 1Y+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.1y.posTdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_pos_tdc_occu 'HMS 2X+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.2x.posTdcCounter 16 0.5 16.5
-TH1F hhodo_2y_pos_tdc_occu 'HMS 2Y+ TDC Occupancy; Paddle Number; Number of Hits' H.hod.2y.posTdcCounter 10 0.5 10.5
-
-TH1F hhodo_1x_neg_tdc_occu 'HMS 1X- TDC Occupancy; Paddle Number; Number of Hits' H.hod.1x.negTdcCounter 16 0.5 16.5
-TH1F hhodo_1y_neg_tdc_occu 'HMS 1Y- TDC Occupancy; Paddle Number; Number of Hits' H.hod.1y.negTdcCounter 10 0.5 10.5 
-TH1F hhodo_2x_neg_tdc_occu 'HMS 2X- TDC Occupancy; Paddle Number; Number of Hits' H.hod.2x.negTdcCounter 16 0.5 16.5
-TH1F hhodo_2y_neg_tdc_occu 'HMS 2Y- TDC Occupancy; Paddle Number; Number of Hits' H.hod.2y.negTdcCounter 10 0.5 10.5
-
-TH2F hhodo_1x_pos_rawped_vs_pad 'HMS 1X+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPedRaw 16 0.5 16.5 400 0 4000
-TH2F hhodo_1y_pos_rawped_vs_pad 'HMS 1Y+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPedRaw 10 0.5 10.5 400 0 4000
-TH2F hhodo_2x_pos_rawped_vs_pad 'HMS 2X+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPedRaw 16 0.5 16.5 400 0 4000
-TH2F hhodo_2y_pos_rawped_vs_pad 'HMS 2Y+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPedRaw 10 0.5 10.5 400 0 4000
-
-TH2F hhodo_1x_neg_rawped_vs_pad 'HMS 1X- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPedRaw 16 0.5 16.5 400 0 4000
-TH2F hhodo_1y_neg_rawped_vs_pad 'HMS 1Y- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPedRaw 10 0.5 10.5 400 0 4000
-TH2F hhodo_2x_neg_rawped_vs_pad 'HMS 2X- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPedRaw 16 0.5 16.5 400 0 4000
-TH2F hhodo_2y_neg_rawped_vs_pad 'HMS 2Y- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPedRaw 10 0.5 10.5 400 0 4000
-
-
-TH2F hhodo_1x_pos_rawpi_vs_pad 'HMS 1X+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseIntRaw 16 0.5 16.5 2000 0 20000
-TH2F hhodo_1y_pos_rawpi_vs_pad 'HMS 1Y+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseIntRaw 10 0.5 10.5 2000 0 20000
-TH2F hhodo_2x_pos_rawpi_vs_pad 'HMS 2X+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseIntRaw 16 0.5 16.5 2000 0 20000
-TH2F hhodo_2y_pos_rawpi_vs_pad 'HMS 2Y+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseIntRaw 10 0.5 10.5 2000 0 20000
-
-TH2F hhodo_1x_neg_rawpi_vs_pad 'HMS 1X- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseIntRaw 16 0.5 16.5 2000 0 20000
-TH2F hhodo_1y_neg_rawpi_vs_pad 'HMS 1Y- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseIntRaw 10 0.5 10.5 2000 0 20000
-TH2F hhodo_2x_neg_rawpi_vs_pad 'HMS 2X- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseIntRaw 16 0.5 16.5 2000 0 20000
-TH2F hhodo_2y_neg_rawpi_vs_pad 'HMS 2Y- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseIntRaw 10 0.5 10.5 2000 0 20000
-
-TH2F hhodo_1x_pos_rawpamp_vs_pad 'HMS 1X+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseAmpRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_1y_pos_rawpamp_vs_pad 'HMS 1Y+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseAmpRaw 10 0.5 10.5 410 0 4100
-TH2F hhodo_2x_pos_rawpamp_vs_pad 'HMS 2X+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseAmpRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_2y_pos_rawpamp_vs_pad 'HMS 2Y+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseAmpRaw 10 0.5 10.5 410 0 4100
-
-TH2F hhodo_1x_neg_rawpamp_vs_pad 'HMS 1X- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseAmpRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_1y_neg_rawpamp_vs_pad 'HMS 1Y- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseAmpRaw 10 0.5 10.5 410 0 4100
-TH2F hhodo_2x_neg_rawpamp_vs_pad 'HMS 2X- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseAmpRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_2y_neg_rawpamp_vs_pad 'HMS 2Y- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseAmpRaw 10 0.5 10.5 410 0 4100
-
-TH2F hhodo_1x_pos_rawptime_vs_pad 'HMS 1X+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_1y_pos_rawptime_vs_pad 'HMS 1Y+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
-TH2F hhodo_2x_pos_rawptime_vs_pad 'HMS 2X+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_2y_pos_rawptime_vs_pad 'HMS 2Y+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
-
-TH2F hhodo_1x_neg_rawptime_vs_pad 'HMS 1X- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_1y_neg_rawptime_vs_pad 'HMS 1Y- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
-TH2F hhodo_2x_neg_rawptime_vs_pad 'HMS 2X- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
-TH2F hhodo_2y_neg_rawptime_vs_pad 'HMS 2Y- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
-
-TH2F hhodo_1x_pos_raw_tdc_time_vs_pad 'HMS 1X+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1x.posTdcCounter  H.hod.1x.posTdcTimeRaw 16 0.5 16.5 800 0 8000
-TH2F hhodo_1y_pos_raw_tdc_time_vs_pad 'HMS 1Y+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1y.posTdcCounter  H.hod.1y.posTdcTimeRaw 10 0.5 10.5 800 0 8000
-TH2F hhodo_2x_pos_raw_tdc_time_vs_pad 'HMS 2X+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2x.posTdcCounter  H.hod.2x.posTdcTimeRaw 16 0.5 16.5 800 0 8000
-TH2F hhodo_2y_pos_raw_tdc_time_vs_pad 'HMS 2Y+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2y.posTdcCounter  H.hod.2y.posTdcTimeRaw 10 0.5 10.5 800 0 8000
-
-TH2F hhodo_1x_neg_raw_tdc_time_vs_pad 'HMS 1X- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1x.negTdcCounter  H.hod.1x.negTdcTimeRaw 16 0.5 16.5 800 0 8000
-TH2F hhodo_1y_neg_raw_tdc_time_vs_pad 'HMS 1Y- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1y.negTdcCounter  H.hod.1y.negTdcTimeRaw 10 0.5 10.5 800 0 8000
-TH2F hhodo_2x_neg_raw_tdc_time_vs_pad 'HMS 2X- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2x.negTdcCounter  H.hod.2x.negTdcTimeRaw 16 0.5 16.5 800 0 8000
-TH2F hhodo_2y_neg_raw_tdc_time_vs_pad 'HMS 2Y- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2y.negTdcCounter  H.hod.2y.negTdcTimeRaw 10 0.5 10.5 800 0 8000
-
-
-TH2F hhodo_1x_pos_pi_vs_pad 'HMS 1X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_1y_pos_pi_vs_pad 'HMS 1Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_2x_pos_pi_vs_pad 'HMS 2X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_2y_pos_pi_vs_pad 'HMS 2Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseInt 10 0.5 10.5 4000 0 40000
-
-TH2F hhodo_1x_neg_pi_vs_pad 'HMS 1X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_1y_neg_pi_vs_pad 'HMS 1Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseInt 10 0.5 10.5 4000 0 40000
-TH2F hhodo_2x_neg_pi_vs_pad 'HMS 2X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseInt 16 0.5 16.5 4000 0 40000
-TH2F hhodo_2y_neg_pi_vs_pad 'HMS 2Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseInt 10 0.5 10.5 4000 0 40000
-
-
-TH2F hhodo_1x_pos_ped_vs_pad 'HMS 1X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPed 16 0.5 16.5 100 0 1000
-TH2F hhodo_1y_pos_ped_vs_pad 'HMS 1Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPed 10 0.5 10.5 100 0 1000
-TH2F hhodo_2x_pos_ped_vs_pad 'HMS 2X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPed 16 0.5 16.5 100 0 1000
-TH2F hhodo_2y_pos_ped_vs_pad 'HMS 2Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPed 10 0.5 10.5 100 0 1000
-
-TH2F hhodo_1x_neg_ped_vs_pad 'HMS 1X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPed 16 0.5 16.5 100 0 1000
-TH2F hhodo_1y_neg_ped_vs_pad 'HMS 1Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPed 10 0.5 10.5 100 0 1000
-TH2F hhodo_2x_neg_ped_vs_pad 'HMS 2X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPed 16 0.5 16.5 100 0 1000
-TH2F hhodo_2y_neg_ped_vs_pad 'HMS 2Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPed 10 0.5 10.5 100 0 1000
-
-
-TH2F hhodo_1x_pos_pamp_vs_pad 'HMS 1X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseAmp 16 0.5 16.5 410 0 4100
-TH2F hhodo_1y_pos_pamp_vs_pad 'HMS 1Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseAmp 10 0.5 10.5 410 0 4100
-TH2F hhodo_2x_pos_pamp_vs_pad 'HMS 2X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseAmp 16 0.5 16.5 410 0 4100
-TH2F hhodo_2y_pos_pamp_vs_pad 'HMS 2Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseAmp 10 0.5 10.5 410 0 4100
-
-TH2F hhodo_1x_neg_pamp_vs_pad 'HMS 1X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseAmp 16 0.5 16.5 410 0 4100
-TH2F hhodo_1y_neg_pamp_vs_pad 'HMS 1Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseAmp 10 0.5 10.5 410 0 4100
-TH2F hhodo_2x_neg_pamp_vs_pad 'HMS 2X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseAmp 16 0.5 16.5 410 0 4100
-TH2F hhodo_2y_neg_pamp_vs_pad 'HMS 2Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseAmp 10 0.5 10.5 410 0 4100
-
-TH2F hhodo_1x_pos_tdc_time_vs_pad 'HMS 1X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1x.posTdcCounter  H.hod.1x.posTdcTime 16 0.5 16.5 200 -2000 0
-TH2F hhodo_1y_pos_tdc_time_vs_pad 'HMS 1Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1y.posTdcCounter  H.hod.1y.posTdcTime 10 0.5 10.5 200 -2000 0
-TH2F hhodo_2x_pos_tdc_time_vs_pad 'HMS 2X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2x.posTdcCounter  H.hod.2x.posTdcTime 16 0.5 16.5 200 -2000 0
-TH2F hhodo_2y_pos_tdc_time_vs_pad 'HMS 2Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2y.posTdcCounter  H.hod.2y.posTdcTime 10 0.5 10.5 200 -2000 0
-
-TH2F hhodo_1x_neg_tdc_time_vs_pad 'HMS 1X- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1x.negTdcCounter  H.hod.1x.negTdcTime 16 0.5 16.5 200 -2000 0
-TH2F hhodo_1y_neg_tdc_time_vs_pad 'HMS 1Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1y.negTdcCounter  H.hod.1y.negTdcTime 10 0.5 10.5 200 -2000 0
-TH2F hhodo_2x_neg_tdc_time_vs_pad 'HMS 2X- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2x.negTdcCounter  H.hod.2x.negTdcTime 16 0.5 16.5 200 -2000 0
-TH2F hhodo_2y_neg_tdc_time_vs_pad 'HMS 2Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2y.negTdcCounter  H.hod.2y.negTdcTime 10 0.5 10.5 200 -2000 0
-
-TH1F hbetanottrack 'HMS beta (no track)' H.hod.betanotrack 100 -1.2 1.2
-TH1F hstarttime ' HMS starttime' H.hod.starttime 500 0 50 
-TH1F hfptime   ' HMS Focal plane time (all hits) ' H.hod.fpHitsTime  500 0 50 
-TH1F hhodo_1x_fptime 'HMS 1X ; Focal plane time (ns); Counts' H.hod.1x.fptime 500 0 50
-TH1F hhodo_1y_fptime 'HMS 1Y ; Focal plane time (ns); Counts' H.hod.1y.fptime 500 0 50
-TH1F hhodo_2x_fptime 'HMS 2X ; Focal plane time (ns); Counts' H.hod.2x.fptime 500 0 50
-TH1F hhodo_2y_fptime 'HMS 2Y ; Focal plane time (ns); Counts' H.hod.2y.fptime 500 0 50
-
-
-
diff --git a/DEF-files/HMS/PRODUCTION/AERO/haero_histos.def b/DEF-files/HMS/PRODUCTION/AERO/haero_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..3ba092dff0191f3c1ba74945a86ab303cc7670b2
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/AERO/haero_histos.def
@@ -0,0 +1,43 @@
+#***************
+# HMS AEROGEL *
+#***************
+
+#----------------------------------------------
+# HMS AEROGEL GOOD Occupancy and Multiplicity
+#----------------------------------------------
+
+TH1F haero_good_occ_pos 'HMS Aero+ Good Occupancy; PMT Number; Number of Good +ADC Hits' H.aero.numGoodPosAdcHits 8 0.5 8.5
+TH1F haero_good_occ_neg 'HMS Aero- Good Occupancy; PMT Number; Number of Good -ADC Hits' H.aero.numGoodNegAdcHits 8 0.5 8.5
+TH1F haero_good_mult_pos 'HMS Aero+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.aero.totNumGoodPosAdcHits 8 0.5 8.5
+TH1F haero_good_mult_neg 'HMS Aero- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.aero.totNumGoodNegAdcHits 8 0.5 8.5
+TH1F haero_good_mult 'HMS Aero Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.aero.totnumGoodAdcHits 16 0.5 16.5
+
+#-------------------------------
+# HMS AERO TOTAL NUMBER OF P.E.
+#-------------------------------
+
+TH1F haero_tot_npe_pos 'HMS Aero+ Total Number of Photoelectrons; Total Number of Pos Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.posNpeSum 200 0 100 H.aero.posNpeSum>0.0 
+TH1F haero_tot_npe_neg 'HMS Aero- Total Number of Photoelectrons; Total Number of Neg Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.negNpeSum 200 0 100 H.aero.negNpeSum>0.0 
+TH1F haero_tot_npe 'HMS Aero Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.npeSum 200 0 100 H.aero.npeSum>0.0 
+
+#--------------------------------
+# HMS AERO Number of P.E. / PMT
+#--------------------------------
+
+TH2F haero_npe_pos 'HMS Aero+ Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.aero.posNpe 8 0.5 8.5 200 0 100 P.aero.posNpe>0.0 
+TH2F haero_npe_neg 'HMS Aero- Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.aero.negNpe 8 0.5 8.5 200 0 100 P.aero.negNpe>0.0 
+
+#------------------------------------------------------------------------------
+# HMS AERO GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time 
+# GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+#------------------------------------------------------------------------------
+
+TH2F haero_good_pped_vs_pmt_pos 'HMS Aero+ Good Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' [I+1] H.aero.goodPosAdcPed 7 0.5 7.5 400 300 700  H.aero.goodPosAdcPed>0.0
+TH2F haero_good_pi_vs_pmt_pos 'HMS Aero+ Good Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' [I+1] H.aero.goodPosAdcPulseInt 7 0.5 7.5 600 0 30000 H.aero.goodPosAdcPulseInt>0.0
+TH2F haero_good_pamp_vs_pmt_pos 'HMS Aero+ Good Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' [I+1] H.aero.goodPosAdcPulseAmp 7 0.5 7.5 200 0 4000 H.aero.goodPosAdcPulseAmp>0.0
+TH2F haero_good_ptime_vs_pmt_pos 'HMS Aero+ Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.aero.goodPosAdcPulseTime 7 0.5 7.5 350 0 3500 H.aero.goodPosAdcPulseTime>0.0
+
+TH2F haero_good_pped_vs_pmt_neg 'HMS Aero- Good Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' [I+1] H.aero.goodNegAdcPed 7 0.5 7.5 400 300 700 H.aero.goodNegAdcPed>0.0
+TH2F haero_good_pi_vs_pmt_neg 'HMS Aero- Good Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' [I+1] H.aero.goodNegAdcPulseInt 7 0.5 7.5 600 0 30000 H.aero.goodNegAdcPulseInt>0.0
+TH2F haero_good_pamp_vs_pmt_neg 'HMS Aero- Good Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' [I+1] H.aero.goodNegAdcPulseAmp 7 0.5 7.5 200 0 4000 H.aero.goodNegAdcPulseAmp>0.0
+TH2F haero_good_ptime_vs_pmt_neg 'HMS Aero- Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.aero.goodNegAdcPulseTime 7 0.5 7.5 350 0 3500 H.aero.goodNegAdcPulseTime>0.0
diff --git a/DEF-files/HMS/PRODUCTION/BLOCK/hblock_vars.def b/DEF-files/HMS/PRODUCTION/BLOCK/hblock_vars.def
new file mode 100644
index 0000000000000000000000000000000000000000..b0316c8b27b56a8648beadc0bb6fe9d7601e178a
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/BLOCK/hblock_vars.def
@@ -0,0 +1,13 @@
+#********************
+# Block Definitions *
+#********************
+
+block T.hms.*
+block H.cer.*
+block H.dc.*
+block H.tr.*
+block H.hod.*
+block H.aero.*
+block H.cal.*
+block H.gtr.*
+block H.kin.*
diff --git a/DEF-files/HMS/PRODUCTION/CAL/hcal_histos.def b/DEF-files/HMS/PRODUCTION/CAL/hcal_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..eedbc99703e8abbbff09ae4079bf817ff7092244
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/CAL/hcal_histos.def
@@ -0,0 +1,106 @@
+#******************
+# HMS CALORIMETER
+#******************
+
+#------------------------
+# HMS CAL Good Occupancy
+#------------------------
+
+TH1F hcal_hA_good_occ_pos 'HMS hA+ Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodPosAdcHits 13 0.5 13.5  
+TH1F hcal_hA_good_occ_neg 'HMS hA- Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hB_good_occ_pos 'HMS hB+ Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_occ_neg 'HMS hB- Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hC_good_occ_pos 'HMS hC+ Good Occupancy; PMT Number; Number of Entries' H.cal.3ta.numGoodPosAdcHits 13 0.5 13.5 
+TH1F hcal_hD_good_occ_pos 'HMS hD+ Good Occupancy; PMT Number; Number of Entries' H.cal.4ta.numGoodPosAdcHits 13 0.5 13.5 
+
+#---------------------------
+# HMS CAL Good Multiplicity
+#---------------------------
+ 
+TH1F hcal_hA_good_mult_pos 'HMS hA+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.1pr.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult_neg 'HMS hA- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.1pr.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult 'HMS hA Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.1pr.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hB_good_mult_pos 'HMS hB+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.2ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult_neg 'HMS hB- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.2ta.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult 'HMS hB Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.2ta.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hC_good_mult_pos 'HMS hC+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.3ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hD_good_mult_pos 'HMS hD+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.4ta.totNumGoodPosAdcHits 13 0.5 13.5
+
+#-------------------------------
+# HMS CAL Good Pulse Pedestals 
+#-------------------------------
+
+TH2F hcal_hA_good_pped_vs_pmt_pos 'HMS hA+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodPosAdcPed>0.0
+TH2F hcal_hA_good_pped_vs_pmt_neg 'HMS hA- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodNegAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_pos 'HMS hB+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodPosAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_neg 'HMS hB- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodNegAdcPed>0.0
+TH2F hcal_hC_good_pped_vs_pmt_pos 'HMS hC+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.3ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.3ta.goodPosAdcPed>0.0
+TH2F hcal_hD_good_pped_vs_pmt_pos 'HMS hD+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.4ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.4ta.goodPosAdcPed>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Integrals 
+#-------------------------------
+
+TH2F hcal_hA_good_pi_vs_pmt_pos 'HMS hA+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodPosAdcPulseInt>0.0
+TH2F hcal_hA_good_pi_vs_pmt_neg 'HMS hA- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodNegAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_pos 'HMS hB+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_neg 'HMS hB- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodNegAdcPulseInt>0.0
+TH2F hcal_hC_good_pi_vs_pmt_pos 'HMS hC+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.3ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hD_good_pi_vs_pmt_pos 'HMS hD+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.4ta.goodPosAdcPulseInt>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Amplitudes 
+#-------------------------------
+
+TH2F hcal_hA_good_pamp_vs_pmt_pos 'HMS hA+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodPosAdcPulseAmp>0.0
+TH2F hcal_hA_good_pamp_vs_pmt_neg 'HMS hA- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodNegAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_pos 'HMS hB+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_neg 'HMS hB- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodNegAdcPulseAmp>0.0
+TH2F hcal_hC_good_pamp_vs_pmt_pos 'HMS hC+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.3ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hD_good_pamp_vs_pmt_pos 'HMS hD+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.4ta.goodPosAdcPulseAmp>0.0
+
+#---------------------------
+# HMS CAL Good Pulse Times
+#--------------------------- 
+
+TH2F hcal_hA_good_ptime_vs_pmt_pos 'HMS hA+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodPosAdcPulseTime>0.0
+TH2F hcal_hA_good_ptime_vs_pmt_neg 'HMS hA- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodNegAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_pos 'HMS hB+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_neg 'HMS hB- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodNegAdcPulseTime>0.0
+TH2F hcal_hC_good_ptime_vs_pmt_pos 'HMS hC+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.3ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hD_good_ptime_vs_pmt_pos 'HMS hD+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.4ta.goodPosAdcPulseTime>0.0
+
+#-----------------------------------------------
+# HMS CAL ENERGY DEPOSITION vs. PMT HISTOGRAMS 
+# (calib consts (GAIN) are in GeV/ADC units )
+#-----------------------------------------------
+
+TH2F hA_Epos_vs_pmt 'HMS hA+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.epos 13 0.5 13.5 200 0 2 H.cal.1pr.epos>0.0
+TH2F hA_Eneg_vs_pmt 'HMS hA- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.eneg 13 0.5 13.5 200 0 2 H.cal.1pr.eneg>0.0
+TH2F hA_Emean_vs_pmt 'HMS hA Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.emean 13 0.5 13.5 300 0 3 H.cal.1pr.emean>0.0
+
+
+TH2F hB_Epos_vs_pmt 'HMS hB+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.epos 13 0.5 13.5 200 0 2 H.cal.2ta.epos>0.0
+TH2F hB_Eneg_vs_pmt 'HMS hB- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.eneg 13 0.5 13.5 200 0 2 H.cal.2ta.eneg>0.0
+TH2F hB_Emean_vs_pmt 'HMS hB Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.emean 13 0.5 13.5 300 0 3 H.cal.2ta.emean>0.0
+
+TH2F hC_Epos_vs_pmt 'HMS hC+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.3ta.epos 13 0.5 13.5 200 0 2 H.cal.3ta.epos>0.0
+TH2F hD_Epos_vs_pmt 'HMS hD+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.4ta.epos 13 0.5 13.5 200 0 2 H.cal.4ta.epos>0.0
+
+#------------------------------------
+# HMS CAL ENERGY DEPOSITION / Plane
+#------------------------------------
+
+TH1F hcal_hA_Eplane_pos 'HMS hA+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_pos 200 0 2 H.cal.1pr.eplane_pos>0.0
+TH1F hcal_hA_Eplane_neg 'HMS hA- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_neg 200 0 2 H.cal.1pr.eplane_neg>0.0
+TH1F hcal_hA_Eplane 'HMS hA Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane 300 0 3 H.cal.1pr.eplane>0.0
+
+TH1F hcal_hB_Eplane_pos 'HMS hB+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_pos 200 0 2 H.cal.2ta.eplane_pos>0.0
+TH1F hcal_hB_Eplane_neg 'HMS hB- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_neg 200 0 2 H.cal.2ta.eplane_neg>0.0
+TH1F hcal_hB_Eplane 'HMS hB Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane 300 0 3 H.cal.2ta.eplane>0.0
+
+TH1F hcal_hC_Eplane_pos 'HMS hC+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.3ta.eplane_pos 200 0 2 H.cal.3ta.eplane_pos>0.0
+TH1F hcal_hD_Eplane_pos 'HMS hD+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.4ta.eplane_pos 200 0 2 H.cal.4ta.eplane_pos>0.0
+
diff --git a/DEF-files/HMS/PRODUCTION/CER/hcer_histos.def b/DEF-files/HMS/PRODUCTION/CER/hcer_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..7f9d3dbfd960a8628e3998d248b9b0aa8055534d
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/CER/hcer_histos.def
@@ -0,0 +1,41 @@
+#********************
+# HMS Gas Cherenkov *
+#********************
+
+#-----------------------------------------
+# HMS Gas CER GOOD Occupancy and Multiplicity
+#-----------------------------------------
+
+TH1F hcer_good_occ 'HMS Cherenkov Good Occupancy; PMT Number; Number of Entries' H.cer.numGoodAdcHits 2 0.5 2.5
+TH1F hcer_good_mult 'HMS Cherenkov Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cer.totNumGoodAdcHits 2 0.5 2.5
+
+#-------------------------------------------------------------------------------
+# HMS Gas CER GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time 
+# GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+#-------------------------------------------------------------------------------
+  
+TH2F hcer_good_pped_vs_pmt 'HMS Cherenkov Good Pulse Pedestal vs. PMT Number; PMT Number; Pulse Pedestal / 1 ADC Units' [I+1] H.cer.goodAdcPed 2 0.5 2.5 400 300 700
+TH2F hcer_good_pi_vs_pmt 'HMS Cherenkov Good Pulse Integral vs. PMT Number; PMT Number; Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseInt 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseInt>0.0
+TH2F hcer_good_pamp_vs_pmt 'HMS Cherenkov Good Pulse Amplitude vs. PMT Number; PMT Number; Pulse Amplitude / 20 ADC Units' [I+1] H.cer.goodAdcPulseAmp 2 0.5 2.5 200 0 4000 H.cer.goodAdcPulseAmp>0.0
+TH2F hcer_good_ptime_vs_pmt 'HMS Cherenkov Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.cer.goodAdcPulseTime 2 0.5 2.5 350 0 3500 H.cer.goodAdcPulseTime>0.0
+
+#-----------------------------------
+# HMS Gas CER Number of P.E. / PMT
+#-----------------------------------
+
+TH2F hcer_npe 'HMS Cherenkov Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.cer.npe 2 0.5 2.5 200 0 100 H.cer.npe>0.0
+
+
+#----------------------------------
+# HMS Gas CER TOTAL NUMBER OF P.E.
+#----------------------------------
+
+TH1F hcer_tot_npe 'HMS Cherenkov Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.cer.npeSum 200 0 100 H.cer.npeSum>0.0
+
+#--------------------------
+# HMS Gas CER TRACK MATCHING
+#--------------------------
+
+TH1F hcer_trk_match 'HMS  Gas Cherenkov Track Matches; PMT Number; Number of Tracks Matched' H.cer.numTracksMatched 2 0.5 2.5
+TH1F hcer_trk_fired 'HMS  Gas Cherenkov Tracks Fired; PMT Number; Number of Tracks Fired' H.cer.numTracksFired 2 0.5 2.5
+
diff --git a/DEF-files/HMS/PRODUCTION/DC/hdc_6gev_histos.def b/DEF-files/HMS/PRODUCTION/DC/hdc_6gev_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..1f7b515bd0119f0269489c7ed697967bf7448551
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/DC/hdc_6gev_histos.def
@@ -0,0 +1,122 @@
+#***************************
+# HMS 6 GeV Drift Chambers *
+#***************************
+
+#-----------------
+# HMS DC WIREMAP 
+#-----------------
+
+TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
+TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
+TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
+TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
+TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
+TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
+
+TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
+TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
+TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
+TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
+TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
+TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
+
+#-----------------------------
+# HMS DC DRIFT TIME PER PLANE 
+#-----------------------------
+
+TH1F hdc1x1_drifttime 'HMS DC 1X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x1.time 400 -50 350
+TH1F hdc1y1_drifttime 'HMS DC 1Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y1.time 400 -50 350
+TH1F hdc1u1_drifttime 'HMS DC 1U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1u1.time 400 -50 350
+TH1F hdc1v1_drifttime 'HMS DC 1V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1v1.time 400 -50 350
+TH1F hdc1y2_drifttime 'HMS DC 1Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y2.time 400 -50 350
+TH1F hdc1x2_drifttime 'HMS DC 1X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x2.time 400 -50 350
+
+TH1F hdc2x1_drifttime 'HMS DC 2X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x1.time 400 -50 350
+TH1F hdc2y1_drifttime 'HMS DC 2Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y1.time 400 -50 350
+TH1F hdc2u1_drifttime 'HMS DC 2U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2u1.time 400 -50 350
+TH1F hdc2v1_drifttime 'HMS DC 2V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2v1.time 400 -50 350
+TH1F hdc2y2_drifttime 'HMS DC 2Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y2.time 400 -50 350
+TH1F hdc2x2_drifttime 'HMS DC 2X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x2.time 400 -50 350
+
+#----------------------------------
+# HMS DC DRIFT TIME VS. WIRENUMBER
+#----------------------------------
+
+TH2F hdc1x1_drifttime_vs_wirenum 'HMS DC 1X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc1y1_drifttime_vs_wirenum 'HMS DC 1Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc1u1_drifttime_vs_wirenum 'HMS DC 1U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1v1_drifttime_vs_wirenum 'HMS DC 1V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1y2_drifttime_vs_wirenum 'HMS DC 1Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc1x2_drifttime_vs_wirenum 'HMS DC 1X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 600 -100 500
+
+TH2F hdc2x1_drifttime_vs_wirenum 'HMS DC 2X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc2y1_drifttime_vs_wirenum 'HMS DC 2Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc2u1_drifttime_vs_wirenum 'HMS DC 2U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2v1_drifttime_vs_wirenum 'HMS DC 2V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2y2_drifttime_vs_wirenum 'HMS DC 2Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc2x2_drifttime_vs_wirenum 'HMS DC 2X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 600 -100 500
+
+#---------------------------------
+# HMS DC Drift Distance Per Plane 
+#---------------------------------
+ 
+TH1F hdc1x1_ddist 'HMS 1X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x1.dist 28 -0.1 0.6
+TH1F hdc1y1_ddist 'HMS 1Y1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y1.dist 28 -0.1 0.6
+TH1F hdc1u1_ddist 'HMS 1U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1u1.dist 28 -0.1 0.6
+TH1F hdc1v1_ddist 'HMS 1V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1v1.dist 28 -0.1 0.6
+TH1F hdc1y2_ddist 'HMS 1Y2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y2.dist 28 -0.1 0.6
+TH1F hdc1x2_ddist 'HMS 1X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x2.dist 28 -0.1 0.6
+
+TH1F hdc2x1_ddist 'HMS 2U2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x1.dist 28 -0.1 0.6
+TH1F hdc2y1_ddist 'HMS 2U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y1.dist 28 -0.1 0.6
+TH1F hdc2u1_ddist 'HMS 2X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2u1.dist 28 -0.1 0.6
+TH1F hdc2v1_ddist 'HMS 2X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2v1.dist 28 -0.1 0.6
+TH1F hdc2y2_ddist 'HMS 2V2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y2.dist 28 -0.1 0.6
+TH1F hdc2x2_ddist 'HMS 2V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x2.dist 28 -0.1 0.6
+
+#--------------------------------------
+# HMS DC DRIFT DISTANCE VS. WIRENUMBER
+#--------------------------------------
+
+TH2F hdc1x1_wirenum_vs_ddist 'HMS DC 1X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc1y1_wirenum_vs_ddist 'HMS DC 1Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1u1_wirenum_vs_ddist 'HMS DC 1U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1v1_wirenum_vs_ddist 'HMS DC 1V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1y2_wirenum_vs_ddist 'HMS DC 1Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1x2_wirenum_vs_ddist 'HMS DC 1X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+TH2F hdc2x1_wirenum_vs_ddist 'HMS DC 2X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc2y1_wirenum_vs_ddist 'HMS DC 2Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2u1_wirenum_vs_ddist 'HMS DC 2U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2v1_wirenum_vs_ddist 'HMS DC 2V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2y2_wirenum_vs_ddist 'HMS DC 2Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2x2_wirenum_vs_ddist 'HMS DC 2X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+#----------------------------
+# HMS DC RESIDUALS PER PLANE 
+#----------------------------
+ 
+TH1F hdc1x1_residuals 'HMS 1X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[0]  200 -1.0 1.0
+TH1F hdc1y1_residuals 'HMS 1Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[1]  200 -1.0 1.0
+TH1F hdc1u1_residuals 'HMS 1U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[2]  200 -1.0 1.0
+TH1F hdc1v1_residuals 'HMS 1V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[3]  200 -1.0 1.0
+TH1F hdc1y2_residuals 'HMS 1Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[4]  200 -1.0 1.0
+TH1F hdc1x2_residuals 'HMS 1X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[5]  200 -1.0 1.0
+
+TH1F hdc2x1_residuals 'HMS 2X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[6]  200 -1.0 1.0
+TH1F hdc2y1_residuals 'HMS 2Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[7]  200 -1.0 1.0
+TH1F hdc2u1_residuals 'HMS 2U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[8]  200 -1.0 1.0
+TH1F hdc2v1_residuals 'HMS 2V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[9]  200 -1.0 1.0
+TH1F hdc2y2_residuals 'HMS 2Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[10] 200 -1.0 1.0
+TH1F hdc2x2_residuals 'HMS 2X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[11] 200 -1.0 1.0
+
+#-------------------------------------------
+# HMS DC TRACKING VARIABLES AT FOCAL PLANE
+#-------------------------------------------
+
+TH1F hdc_trk_mom 'HMS DC Track Momentum; P (GeV); Number of Entires / 10 MeV' H.tr.p 600 0 6
+TH1F hdc_trk_beta 'HMS DC Track Beta; Beta (GeV); Number of Entires' H.tr.beta 300 -1.5 1.5
+TH2F hdc_xfp_vs_yxp 'HMS DC X_{fp} vs Y_{fp}; Y_{fp} (cm) / 1 cm; X_{fp} (cm) / 1 cm' H.dc.y_fp H.dc.x_fp 100 -50 50 100 -50 50
+TH2F hdc_xpfp_vs_ypfp 'HMS DC X'_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X'_{fp} / 0.002 rad' H.dc.yp_fp H.dc.xp_fp 100 -.1 .1 100 -.1 .1
+TH2F hdc_xfp_vs_ypfp 'HMS DC X_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X_{fp} / 1 cm'  H.dc.yp_fp H.dc.x_fp 100 -.1 .1 100 -50 50 
+TH2F hdc_xfp_vs_xpfp 'HMS DC X_{fp} vs X'_{fp}; X'_{fp} / 0.002 rad; X_{fp} / 1 cm' H.dc.xp_fp H.dc.x_fp 100 -.1 .1 100 -50 50
diff --git a/DEF-files/HMS/PRODUCTION/EPICS/hepics_vars.def b/DEF-files/HMS/PRODUCTION/EPICS/hepics_vars.def
new file mode 100644
index 0000000000000000000000000000000000000000..cf57cde2311b0f76ab54d9a911091a1f20fa741a
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/EPICS/hepics_vars.def
@@ -0,0 +1,15 @@
+#******************
+# EPICS VARIABLES *
+#******************
+
+begin epics
+
+IBC3H00CRCUR4
+hac_bcm_average
+ibcm1
+ibcm2
+iunser
+itov3out
+itov4out
+
+end epics
\ No newline at end of file
diff --git a/DEF-files/HMS/PRODUCTION/HODO/hhodo_histos.def b/DEF-files/HMS/PRODUCTION/HODO/hhodo_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..f0b7df31fac95aec7bc7e54d6d8e6ba63fd03653
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/HODO/hhodo_histos.def
@@ -0,0 +1,178 @@
+#*****************
+# HMS HODOSCOPES *
+#*****************
+
+#-----------------------------------
+# HMS HODO GOOD ADC Multiplicities 
+#-----------------------------------
+
+TH1F hhodo_1x_good_adc_mult_pos 'HMS 1X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_pos 'HMS 1Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1y.totNumGoodPosAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_pos 'HMS 2X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_pos 'HMS 2Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2y.totNumGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult_neg 'HMS 1X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_neg 'HMS 1Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1y.totNumGoodNegAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_neg 'HMS 2X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_neg 'HMS 2Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2y.totNumGoodNegAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult 'HMS 1X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult 'HMS 1Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1y.totNumGoodAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult 'HMS 2X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult 'HMS 2Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2y.totNumGoodAdcHits 10 0.5 10.5
+
+#-----------------------------------
+# HMS HODO Good TDC Multiplicities
+#-----------------------------------
+
+TH1F hhodo_1x_good_tdc_mult_pos 'HMS 1X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_pos 'HMS 1Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1y.totNumGoodPosTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_pos 'HMS 2X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_pos 'HMS 2Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2y.totNumGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult_neg 'HMS 1X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_neg 'HMS 1Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1y.totNumGoodNegTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_neg 'HMS 2X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_neg 'HMS 2Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2y.totNumGoodNegTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult 'HMS 1X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult 'HMS 1Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1y.totNumGoodTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult 'HMS 2X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult 'HMS 2Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2y.totNumGoodTdcHits 10 0.5 10.5
+
+#---------------------------------
+# HMS HODO GOOD ADC OCCUPANCIES
+#---------------------------------
+
+TH1F hhodo_1x_good_adc_occ_pos 'HMS 1X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_pos 'HMS 1Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1y.numGoodPosAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_pos 'HMS 2X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_pos 'HMS 2Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2y.numGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_occ_neg 'HMS 1X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_neg 'HMS 1Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1y.numGoodNegAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_neg 'HMS 2X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_neg 'HMS 2Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2y.numGoodNegAdcHits 10 0.5 10.5
+
+#--------------------------------
+# HMS HODO GOOD TDC OCCUPANCIES
+#--------------------------------
+
+TH1F hhodo_1x_good_tdc_occ_pos 'HMS 1X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_pos 'HMS 1Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1y.numGoodPosTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_pos 'HMS 2X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_pos 'HMS 2Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2y.numGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_occ_neg 'HMS 1X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_neg 'HMS 1Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1y.numGoodNegTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_neg 'HMS 2X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_neg 'HMS 2Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2y.numGoodNegTdcHits 10 0.5 10.5
+
+#------------------------------
+# HMS HODO Good PULSE PEDESTAL
+#------------------------------
+
+TH2F hhodo_1x_good_pped_vs_pmt_pos 'HMS 1X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodPosAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_pos 'HMS 1Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodPosAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_pos 'HMS 2X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodPosAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_pos 'HMS 2Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodPosAdcPed>0.0
+
+TH2F hhodo_1x_good_pped_vs_pmt_neg 'HMS 1X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodNegAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_neg 'HMS 1Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodNegAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_neg 'HMS 2X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodNegAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_neg 'HMS 2Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodNegAdcPed>0.0
+
+#------------------------------
+# HMS HODO Good PULSE INTEGRAL
+#------------------------------
+
+TH2F hhodo_1x_good_pi_vs_pmt_pos 'HMS 1X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_pos 'HMS 1Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_pos 'HMS 2X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_pos 'HMS 2Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodPosAdcPulseInt>0.0
+
+TH2F hhodo_1x_good_pi_vs_pmt_neg 'HMS 1X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_neg 'HMS 1Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_neg 'HMS 2X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_neg 'HMS 2Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodNegAdcPulseInt>0.0
+
+#-------------------------------
+# HMS HODO Good PULSE AMPLITUDE 
+#-------------------------------
+
+TH2F hhodo_1x_good_pamp_vs_pmt_pos 'HMS 1X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_pos 'HMS 1Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_pos 'HMS 2X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_pos 'HMS 2Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodPosAdcPulseAmp>0.0
+
+TH2F hhodo_1x_good_pamp_vs_pmt_neg 'HMS 1X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_neg 'HMS 1Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_neg 'HMS 2X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_neg 'HMS 2Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodNegAdcPulseAmp>0.0
+
+#------------------------------
+# HMS HODO Good ADC PULSE TIME
+#------------------------------
+
+TH2F hhodo_1x_good_ptime_vs_pmt_pos 'HMS 1X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_pos 'HMS 1Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_pos 'HMS 2X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_pos 'HMS 2Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodPosAdcPulseTime>0.0
+
+TH2F hhodo_1x_good_ptime_vs_pmt_neg 'HMS 1X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_neg 'HMS 1Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_neg 'HMS 2X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_neg 'HMS 2Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodNegAdcPulseTime>0.0
+
+#-------------------------------------------------------------------
+# HMS HODO Good TDC TIME UNCORRECTED (uncorrected for time offsets)
+#-------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_pos 'HMS 1X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_pos 'HMS 1Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_pos 'HMS 2X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_pos 'HMS 2Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeUnCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_neg 'HMS 1X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_neg 'HMS 1Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_neg 'HMS 2X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_neg 'HMS 2Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeUnCorr>0.0
+
+#---------------------------------------------------------------
+# HMS HODO Good TDC TIME CORRECTED (corrected for time offsets)
+#---------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_pos 'HMS 1X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_pos 'HMS 1Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_pos 'HMS 2X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_pos 'HMS 2Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_neg 'HMS 1X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_neg 'HMS 1Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_neg 'HMS 2X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_neg 'HMS 2Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeCorr>0.0
+
+#--------------------------------------------------------------------
+# HMS HODO Good TDC TIME TOF CORRECTED (corrected for time of flight) 
+#--------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeTOFCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeTOFCorr>0.0
+
+#----------------------------------------------------------------
+# HMS HODO TRACKING, TIMING  AND  Particle ID (PID) - BETA (v/c) 
+#----------------------------------------------------------------
+
+TH1F hhodo_beta_notrack 'HMS Hodo Calculated Beta Without Track Info; Beta; Number of Entries / 0.02' H.hod.betanotrack 100 0 2.0 H.hod.betanotrack>0.0
+TH1F hhodo_beta 'HMS Hodo Beta; Beta; Number of Entries / 0.02' H.hod.beta 100 0 2.0 H.hod.beta>0.0
+TH1F hhodo_fpHitsTime 'HMS Hodo Focal Plane Time; Focal Plane Time (ns); Number of Entries / 1 ns' H.hod.fpHitsTime 90 0 90 
+TH1F hhodo_starttime 'HMS Hodo Start Time; Start Time (ns); Number of Entries / 1ns' H.hod.starttime 90 0 90
+TH1F hhodo_good_startime 'HMS Hodo Good Start Time (ns); Good Start Time (ns); Number of Entries / 1ns' H.hod.goodstarttime 90 0 90
+TH2F hhodo_xhod_vs_yhod 'HMS Hodo Projected X vs. Y; Y_hodo(cm) / 1mm; X_hodo(cm) / 1mm' H.hod.y_hodo H.hod.x_hodo 1000 -50 50 1000 -50 50
\ No newline at end of file
diff --git a/DEF-files/HMS/PRODUCTION/KIN/hkin_histos.def b/DEF-files/HMS/PRODUCTION/KIN/hkin_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..07e76a3cc638e9e376c3b8269f4e6da6eff0b5c6
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/KIN/hkin_histos.def
@@ -0,0 +1,11 @@
+
+#*****************************************
+# HMS Single Arm Primary (Scattered Beam)
+# Kinematic Quantities
+#*****************************************
+
+TH1F hkin_q2 'HMS Q^{2}; Q^{2} (GeV^{2}); Number of Entries / 0.050 GeV^{2}' H.kin.Q2 100 0 5
+TH1F hkin_omega 'HMS Omega; E_{beam} - E_{scat} (GeV); Number of Entries / 0.050 GeV' H.kin.omega 100 0 5
+TH1F hkin_w2 'HMS W^{2}; W^{2} (GeV^{2}); Number of Entries / 0.100 GeV^{2}' H.kin.W2 100 0 10
+TH1F hkin_w  'HMS W; W (GeV); Number of Entries / 0.050 GeV' H.kin.W 100 0 5
+TH1F hkin_theta 'HMS Scattering Angle Theta; HMS Scattering Angle (deg); Number of Entries / 0.06 deg' H.kin.scat_ang_deg 100 12 18
\ No newline at end of file
diff --git a/DEF-files/HMS/PRODUCTION/TRIG/htrig_histos.def b/DEF-files/HMS/PRODUCTION/TRIG/htrig_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..85f7ab0d722b9a7f53453e341eb0620fef5d10b8
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/TRIG/htrig_histos.def
@@ -0,0 +1,130 @@
+#********************
+# Trigger Apparatus *
+#********************
+
+#---------------------------
+# HMS Raw Hodo TRIG TDC Time
+#---------------------------
+
+TH1F htrig_h1x_tdc 'HMS h1X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h1y_tdc 'HMS h1Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1Y_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2x_tdc 'HMS h2X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2y_tdc 'HMS h2Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2Y_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_h1T_tdc 'HMS h1X/h1Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1T_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2T_tdc 'HMS h2X/h2Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2T_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_hT1_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 2); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT1_tdcTimeRaw 1500 0 1500
+TH1F htrig_hT2_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 20); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT2_tdcTimeRaw 1500 0 1500
+
+#----------------------------
+# HMS Raw DC Reference Time
+#----------------------------
+
+TH1F htrig_hdc_ref1 'HMS DC Reference Time 1; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF1_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref2 'HMS DC Reference Time 2; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF2_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref3 'HMS DC Reference Time 3; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF3_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref4 'HMS DC Reference Time 4; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF4_tdcTimeRaw 15000 0 15000
+
+
+TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF2_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+
+#--------------------------------------------
+# HMS Calo Layers TRIG Pulse Profile
+#--------------------------------------------
+
+TH1F htrig_hasum_adc_pped 'HMS hAsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hASUM_adcPed 5000 0 5000
+TH1F htrig_hasum_adc_pi 'HMS hAsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hASUM_adcPulseInt 800 0 40000
+TH1F htrig_hasum_adc_pamp 'HMS hAsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hASUM_adcPulseAmp 205 0 4100
+TH1F htrig_hasum_tdc 'HMS hAsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTime 4000 0 40000
+
+TH1F htrig_hbsum_adc_pped 'HMS hBsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hBSUM_adcPed 5000 0 5000
+TH1F htrig_hbsum_adc_pi 'HMS hBsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hBSUM_adcPulseInt 800 0 40000
+TH1F htrig_hbsum_adc_pamp 'HMS hBsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hBSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hbsum_tdc 'HMS hBsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hcsum_adc_pped 'HMS hCsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCSUM_adcPed 5000 0 5000
+TH1F htrig_hcsum_adc_pi 'HMS hCsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcsum_adc_pamp 'HMS hCsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcsum_tdc 'HMS hCsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hdsum_adc_pped 'HMS hDsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hDSUM_adcPed 5000 0 5000
+TH1F htrig_hdsum_adc_pi 'HMS hDsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hDSUM_adcPulseInt 800 0 40000
+TH1F htrig_hdsum_adc_pamp 'HMS hDsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hDSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hdsum_tdc 'HMS hDsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTime 4000 0 40000
+
+#----------------------------------
+# HMS PreShower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hPSHWR_adcPed 5000 0 5000
+TH1F htrig_hpreShwr_adc_pi 'HMS Pre-Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hPSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hPSHWR_adcPulseAmp 205 0 4100
+
+#-----------------------------
+# HMS PreShower TRIG LOW/HIGH  
+#-----------------------------
+
+TH1F htrig_hpreShwrLow_tdc 'HMS hpreShwrLow TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRLO_tdcTimeRaw 4000 0 40000
+TH1F htrig_hpreShwrHigh_tdc 'HMS hpreShwrHigh TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRHI_tdcTimeRaw 4000 0 40000
+
+
+#----------------------------------
+# HMS Shower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hSHWR_adcPed 5000 0 5000
+TH1F htrig_hshwr_adc_pi 'HMS Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hSHWR_adcPulseAmp 205 0 4100
+TH1F htrig_hshwr_tdc 'HMS Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 40000
+
+#---------------------------------------
+# HMS Gas Cherenkov TRIG Pulse Profile
+#---------------------------------------
+
+TH1F htrig_hcersum_adc_pped 'HMS Cherenkov Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCERSUM_adcPed 5000 0 5000
+TH1F htrig_hcersum_adc_pi 'HMS Cherenkov Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCERSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcersum_adc_pamp 'HMS Cherenkov Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcersum_tdc 'HMS Cherenkov Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCERSUM_tdcTime 4000 0 40000
+
+
+#------------------------------------------
+# HMS Aerogel TRIG Pulse Profile
+#------------------------------------------
+
+TH1F htrig_haersum_adc_pped 'HMS Aerogel Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hAERSUM_adcPed 5000 0 5000
+TH1F htrig_haersum_adc_pi 'HMS Aerogel Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hAERSUM_adcPulseInt 800 0 40000
+TH1F htrig_haersum_adc_pamp 'HMS Aerogel Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hAERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_haersum_tdc 'HMS Aerogel Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hAERSUM_tdcTime 4000 0 40000
+
+
+#-------------
+# Fast Raster 
+#-------------
+
+# Assume FADC range is set to 1V and the integration is 25 channels
+# Offset in the FADC is about 0.122V or 500 channels.
+
+formula FRXA_V T.hms.hFRXA_adcPulseIntRaw*(1./4096.)/25.
+formula FRXB_V T.hms.hFRXB_adcPulseIntRaw*(1./4096.)/25.
+formula FRYA_V T.hms.hFRYA_adcPulseIntRaw*(1./4096.)/25.
+formula FRYB_V T.hms.hFRYB_adcPulseIntRaw*(1./4096.)/25.
+
+TH1F hFRXA 'HMS FRXA; FRXA RAW ADC (chan); Counts' T.hms.hFRXA_adcPulseIntRaw 1000 0 100000
+TH1F hFRXA_V 'HMS FRXA; FRXA RAW ADC (Volts); Counts' FRXA_V 1000 0 1.0
+TH1F hFRXB 'HMS FRXB; FRXB RAW ADC (chan); Counts' T.hms.hFRXB_adcPulseIntRaw 1000 0 100000
+TH1F hFRXB_V 'HMS FRXB; FRXB RAW ADC (Volts); Counts' FRXB_V 1000 0 1.0
+TH1F hFRYA 'HMS FRYA; FRYA RAW ADC (chan); Counts' T.hms.hFRYA_adcPulseIntRaw 1000 0 100000
+TH1F hFRYA_V 'HMS FRYA; FRYA RAW ADC (Volts); Counts' FRYA_V 1000 0 1.0
+TH1F hFRYB 'HMS FRYB; FRYB RAW ADC (chan); Counts' T.hms.hFRYB_adcPulseIntRaw 1000 0 100000
+TH1F hFRYB_V 'HMS FRYB; FRYB RAW ADC (Volts); Counts' FRYB_V 1000 0 1.0
+TH2F hFRA_XvsY 'HMSFRA_XvsY; FRXA RAW ADC (Volts); FRYA RAW ADC (Volts)' FRXA_V FRYA_V 1000 0 1.0 1000 0 1.0
+TH2F hFRB_XvsY 'HMSFRB_XvsY; FRXB RAW ADC (Volts); FRYB RAW ADC (Volts)' FRXB_V FRYB_V 1000 0 1.0 1000 0 1.0
+
diff --git a/DEF-files/HMS/PRODUCTION/hstackana_production.def b/DEF-files/HMS/PRODUCTION/hstackana_production.def
new file mode 100644
index 0000000000000000000000000000000000000000..15f2954a602c77cb7f75fbad65622ad162d22ea7
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/hstackana_production.def
@@ -0,0 +1,630 @@
+
+
+#********************
+# Block Definitions *
+#********************
+
+block T.hms.*
+block H.cer.*
+block H.dc.*
+block H.tr.*
+block H.hod.*
+block H.aero.*
+block H.cal.*
+block H.gtr.*
+block H.kin.*
+
+
+#********************
+# HMS Gas Cherenkov *
+#********************
+
+#-----------------------------------------
+# HMS Gas CER GOOD Occupancy and Multiplicity
+#-----------------------------------------
+
+TH1F hcer_good_occ 'HMS Cherenkov Good Occupancy; PMT Number; Number of Entries' H.cer.numGoodAdcHits 2 0.5 2.5
+TH1F hcer_good_mult 'HMS Cherenkov Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cer.totNumGoodAdcHits 2 0.5 2.5
+
+#-------------------------------------------------------------------------------
+# HMS Gas CER GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time 
+# GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+#-------------------------------------------------------------------------------
+  
+TH2F hcer_good_pped_vs_pmt 'HMS Cherenkov Good Pulse Pedestal vs. PMT Number; PMT Number; Pulse Pedestal / 1 ADC Units' [I+1] H.cer.goodAdcPed 2 0.5 2.5 400 300 700
+TH2F hcer_good_pi_vs_pmt 'HMS Cherenkov Good Pulse Integral vs. PMT Number; PMT Number; Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseInt 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseInt>0.0
+TH2F hcer_good_pamp_vs_pmt 'HMS Cherenkov Good Pulse Amplitude vs. PMT Number; PMT Number; Pulse Amplitude / 20 ADC Units' [I+1] H.cer.goodAdcPulseAmp 2 0.5 2.5 200 0 4000 H.cer.goodAdcPulseAmp>0.0
+TH2F hcer_good_ptime_vs_pmt 'HMS Cherenkov Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.cer.goodAdcPulseTime 2 0.5 2.5 350 0 3500 H.cer.goodAdcPulseTime>0.0
+
+#-----------------------------------
+# HMS Gas CER Number of P.E. / PMT
+#-----------------------------------
+
+TH2F hcer_npe 'HMS Cherenkov Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.cer.npe 2 0.5 2.5 200 0 100 H.cer.npe>0.0
+
+
+#----------------------------------
+# HMS Gas CER TOTAL NUMBER OF P.E.
+#----------------------------------
+
+TH1F hcer_tot_npe 'HMS Cherenkov Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.cer.npeSum 200 0 100 H.cer.npeSum>0.0
+
+#--------------------------
+# HMS Gas CER TRACK MATCHING
+#--------------------------
+
+TH1F hcer_trk_match 'HMS  Gas Cherenkov Track Matches; PMT Number; Number of Tracks Matched' H.cer.numTracksMatched 2 0.5 2.5
+TH1F hcer_trk_fired 'HMS  Gas Cherenkov Tracks Fired; PMT Number; Number of Tracks Fired' H.cer.numTracksFired 2 0.5 2.5
+
+
+
+#***************************
+# HMS 6 GeV Drift Chambers *
+#***************************
+
+#-----------------
+# HMS DC WIREMAP 
+#-----------------
+
+TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
+TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
+TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
+TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
+TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
+TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
+
+TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
+TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
+TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
+TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
+TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
+TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
+
+#-----------------------------
+# HMS DC DRIFT TIME PER PLANE 
+#-----------------------------
+
+TH1F hdc1x1_drifttime 'HMS DC 1X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x1.time 400 -50 350
+TH1F hdc1y1_drifttime 'HMS DC 1Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y1.time 400 -50 350
+TH1F hdc1u1_drifttime 'HMS DC 1U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1u1.time 400 -50 350
+TH1F hdc1v1_drifttime 'HMS DC 1V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1v1.time 400 -50 350
+TH1F hdc1y2_drifttime 'HMS DC 1Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y2.time 400 -50 350
+TH1F hdc1x2_drifttime 'HMS DC 1X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x2.time 400 -50 350
+
+TH1F hdc2x1_drifttime 'HMS DC 2X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x1.time 400 -50 350
+TH1F hdc2y1_drifttime 'HMS DC 2Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y1.time 400 -50 350
+TH1F hdc2u1_drifttime 'HMS DC 2U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2u1.time 400 -50 350
+TH1F hdc2v1_drifttime 'HMS DC 2V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2v1.time 400 -50 350
+TH1F hdc2y2_drifttime 'HMS DC 2Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y2.time 400 -50 350
+TH1F hdc2x2_drifttime 'HMS DC 2X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x2.time 400 -50 350
+
+#----------------------------------
+# HMS DC DRIFT TIME VS. WIRENUMBER
+#----------------------------------
+
+TH2F hdc1x1_drifttime_vs_wirenum 'HMS DC 1X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc1y1_drifttime_vs_wirenum 'HMS DC 1Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc1u1_drifttime_vs_wirenum 'HMS DC 1U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1v1_drifttime_vs_wirenum 'HMS DC 1V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1y2_drifttime_vs_wirenum 'HMS DC 1Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc1x2_drifttime_vs_wirenum 'HMS DC 1X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 600 -100 500
+
+TH2F hdc2x1_drifttime_vs_wirenum 'HMS DC 2X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc2y1_drifttime_vs_wirenum 'HMS DC 2Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc2u1_drifttime_vs_wirenum 'HMS DC 2U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2v1_drifttime_vs_wirenum 'HMS DC 2V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2y2_drifttime_vs_wirenum 'HMS DC 2Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc2x2_drifttime_vs_wirenum 'HMS DC 2X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 600 -100 500
+
+#---------------------------------
+# HMS DC Drift Distance Per Plane 
+#---------------------------------
+ 
+TH1F hdc1x1_ddist 'HMS 1X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x1.dist 28 -0.1 0.6
+TH1F hdc1y1_ddist 'HMS 1Y1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y1.dist 28 -0.1 0.6
+TH1F hdc1u1_ddist 'HMS 1U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1u1.dist 28 -0.1 0.6
+TH1F hdc1v1_ddist 'HMS 1V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1v1.dist 28 -0.1 0.6
+TH1F hdc1y2_ddist 'HMS 1Y2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y2.dist 28 -0.1 0.6
+TH1F hdc1x2_ddist 'HMS 1X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x2.dist 28 -0.1 0.6
+
+TH1F hdc2x1_ddist 'HMS 2U2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x1.dist 28 -0.1 0.6
+TH1F hdc2y1_ddist 'HMS 2U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y1.dist 28 -0.1 0.6
+TH1F hdc2u1_ddist 'HMS 2X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2u1.dist 28 -0.1 0.6
+TH1F hdc2v1_ddist 'HMS 2X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2v1.dist 28 -0.1 0.6
+TH1F hdc2y2_ddist 'HMS 2V2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y2.dist 28 -0.1 0.6
+TH1F hdc2x2_ddist 'HMS 2V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x2.dist 28 -0.1 0.6
+
+#--------------------------------------
+# HMS DC DRIFT DISTANCE VS. WIRENUMBER
+#--------------------------------------
+
+TH2F hdc1x1_wirenum_vs_ddist 'HMS DC 1X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc1y1_wirenum_vs_ddist 'HMS DC 1Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1u1_wirenum_vs_ddist 'HMS DC 1U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1v1_wirenum_vs_ddist 'HMS DC 1V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1y2_wirenum_vs_ddist 'HMS DC 1Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1x2_wirenum_vs_ddist 'HMS DC 1X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+TH2F hdc2x1_wirenum_vs_ddist 'HMS DC 2X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc2y1_wirenum_vs_ddist 'HMS DC 2Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2u1_wirenum_vs_ddist 'HMS DC 2U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2v1_wirenum_vs_ddist 'HMS DC 2V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2y2_wirenum_vs_ddist 'HMS DC 2Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2x2_wirenum_vs_ddist 'HMS DC 2X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+#----------------------------
+# HMS DC RESIDUALS PER PLANE 
+#----------------------------
+ 
+TH1F hdc1x1_residuals 'HMS 1X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[0]  200 -1.0 1.0
+TH1F hdc1y1_residuals 'HMS 1Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[1]  200 -1.0 1.0
+TH1F hdc1u1_residuals 'HMS 1U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[2]  200 -1.0 1.0
+TH1F hdc1v1_residuals 'HMS 1V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[3]  200 -1.0 1.0
+TH1F hdc1y2_residuals 'HMS 1Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[4]  200 -1.0 1.0
+TH1F hdc1x2_residuals 'HMS 1X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[5]  200 -1.0 1.0
+
+TH1F hdc2x1_residuals 'HMS 2X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[6]  200 -1.0 1.0
+TH1F hdc2y1_residuals 'HMS 2Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[7]  200 -1.0 1.0
+TH1F hdc2u1_residuals 'HMS 2U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[8]  200 -1.0 1.0
+TH1F hdc2v1_residuals 'HMS 2V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[9]  200 -1.0 1.0
+TH1F hdc2y2_residuals 'HMS 2Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[10] 200 -1.0 1.0
+TH1F hdc2x2_residuals 'HMS 2X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[11] 200 -1.0 1.0
+
+#-------------------------------------------
+# HMS DC TRACKING VARIABLES AT FOCAL PLANE
+#-------------------------------------------
+
+TH1F hdc_trk_mom 'HMS DC Track Momentum; P (GeV); Number of Entires / 10 MeV' H.tr.p 600 0 6
+TH1F hdc_trk_beta 'HMS DC Track Beta; Beta (GeV); Number of Entires' H.tr.beta 300 -1.5 1.5
+TH2F hdc_xfp_vs_yxp 'HMS DC X_{fp} vs Y_{fp}; Y_{fp} (cm) / 1 cm; X_{fp} (cm) / 1 cm' H.dc.y_fp H.dc.x_fp 100 -50 50 100 -50 50
+TH2F hdc_xpfp_vs_ypfp 'HMS DC X'_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X'_{fp} / 0.002 rad' H.dc.yp_fp H.dc.xp_fp 100 -.1 .1 100 -.1 .1
+TH2F hdc_xfp_vs_ypfp 'HMS DC X_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X_{fp} / 1 cm'  H.dc.yp_fp H.dc.x_fp 100 -.1 .1 100 -50 50 
+TH2F hdc_xfp_vs_xpfp 'HMS DC X_{fp} vs X'_{fp}; X'_{fp} / 0.002 rad; X_{fp} / 1 cm' H.dc.xp_fp H.dc.x_fp 100 -.1 .1 100 -50 50
+
+
+#*****************
+# HMS HODOSCOPES *
+#*****************
+
+#-----------------------------------
+# HMS HODO GOOD ADC Multiplicities 
+#-----------------------------------
+
+TH1F hhodo_1x_good_adc_mult_pos 'HMS 1X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_pos 'HMS 1Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1y.totNumGoodPosAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_pos 'HMS 2X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_pos 'HMS 2Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2y.totNumGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult_neg 'HMS 1X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_neg 'HMS 1Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1y.totNumGoodNegAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_neg 'HMS 2X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_neg 'HMS 2Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2y.totNumGoodNegAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult 'HMS 1X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult 'HMS 1Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1y.totNumGoodAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult 'HMS 2X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult 'HMS 2Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2y.totNumGoodAdcHits 10 0.5 10.5
+
+#-----------------------------------
+# HMS HODO Good TDC Multiplicities
+#-----------------------------------
+
+TH1F hhodo_1x_good_tdc_mult_pos 'HMS 1X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_pos 'HMS 1Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1y.totNumGoodPosTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_pos 'HMS 2X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_pos 'HMS 2Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2y.totNumGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult_neg 'HMS 1X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_neg 'HMS 1Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1y.totNumGoodNegTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_neg 'HMS 2X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_neg 'HMS 2Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2y.totNumGoodNegTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult 'HMS 1X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult 'HMS 1Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1y.totNumGoodTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult 'HMS 2X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult 'HMS 2Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2y.totNumGoodTdcHits 10 0.5 10.5
+
+#---------------------------------
+# HMS HODO GOOD ADC OCCUPANCIES
+#---------------------------------
+
+TH1F hhodo_1x_good_adc_occ_pos 'HMS 1X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_pos 'HMS 1Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1y.numGoodPosAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_pos 'HMS 2X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_pos 'HMS 2Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2y.numGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_occ_neg 'HMS 1X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_neg 'HMS 1Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1y.numGoodNegAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_neg 'HMS 2X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_neg 'HMS 2Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2y.numGoodNegAdcHits 10 0.5 10.5
+
+#--------------------------------
+# HMS HODO GOOD TDC OCCUPANCIES
+#--------------------------------
+
+TH1F hhodo_1x_good_tdc_occ_pos 'HMS 1X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_pos 'HMS 1Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1y.numGoodPosTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_pos 'HMS 2X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_pos 'HMS 2Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2y.numGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_occ_neg 'HMS 1X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_neg 'HMS 1Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1y.numGoodNegTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_neg 'HMS 2X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_neg 'HMS 2Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2y.numGoodNegTdcHits 10 0.5 10.5
+
+#------------------------------
+# HMS HODO Good PULSE PEDESTAL
+#------------------------------
+
+TH2F hhodo_1x_good_pped_vs_pmt_pos 'HMS 1X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodPosAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_pos 'HMS 1Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodPosAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_pos 'HMS 2X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodPosAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_pos 'HMS 2Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodPosAdcPed>0.0
+
+TH2F hhodo_1x_good_pped_vs_pmt_neg 'HMS 1X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodNegAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_neg 'HMS 1Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodNegAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_neg 'HMS 2X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodNegAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_neg 'HMS 2Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodNegAdcPed>0.0
+
+#------------------------------
+# HMS HODO Good PULSE INTEGRAL
+#------------------------------
+
+TH2F hhodo_1x_good_pi_vs_pmt_pos 'HMS 1X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_pos 'HMS 1Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_pos 'HMS 2X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_pos 'HMS 2Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodPosAdcPulseInt>0.0
+
+TH2F hhodo_1x_good_pi_vs_pmt_neg 'HMS 1X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_neg 'HMS 1Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_neg 'HMS 2X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_neg 'HMS 2Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodNegAdcPulseInt>0.0
+
+#-------------------------------
+# HMS HODO Good PULSE AMPLITUDE 
+#-------------------------------
+
+TH2F hhodo_1x_good_pamp_vs_pmt_pos 'HMS 1X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_pos 'HMS 1Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_pos 'HMS 2X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_pos 'HMS 2Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodPosAdcPulseAmp>0.0
+
+TH2F hhodo_1x_good_pamp_vs_pmt_neg 'HMS 1X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_neg 'HMS 1Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_neg 'HMS 2X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_neg 'HMS 2Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodNegAdcPulseAmp>0.0
+
+#------------------------------
+# HMS HODO Good ADC PULSE TIME
+#------------------------------
+
+TH2F hhodo_1x_good_ptime_vs_pmt_pos 'HMS 1X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_pos 'HMS 1Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_pos 'HMS 2X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_pos 'HMS 2Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodPosAdcPulseTime>0.0
+
+TH2F hhodo_1x_good_ptime_vs_pmt_neg 'HMS 1X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_neg 'HMS 1Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_neg 'HMS 2X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_neg 'HMS 2Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodNegAdcPulseTime>0.0
+
+#-------------------------------------------------------------------
+# HMS HODO Good TDC TIME UNCORRECTED (uncorrected for time offsets)
+#-------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_pos 'HMS 1X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_pos 'HMS 1Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_pos 'HMS 2X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_pos 'HMS 2Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeUnCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_neg 'HMS 1X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_neg 'HMS 1Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_neg 'HMS 2X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_neg 'HMS 2Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeUnCorr>0.0
+
+#---------------------------------------------------------------
+# HMS HODO Good TDC TIME CORRECTED (corrected for time offsets)
+#---------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_pos 'HMS 1X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_pos 'HMS 1Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_pos 'HMS 2X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_pos 'HMS 2Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_neg 'HMS 1X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_neg 'HMS 1Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_neg 'HMS 2X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_neg 'HMS 2Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeCorr>0.0
+
+#--------------------------------------------------------------------
+# HMS HODO Good TDC TIME TOF CORRECTED (corrected for time of flight) 
+#--------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeTOFCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeTOFCorr>0.0
+
+#----------------------------------------------------------------
+# HMS HODO TRACKING, TIMING  AND  Particle ID (PID) - BETA (v/c) 
+#----------------------------------------------------------------
+
+TH1F hhodo_beta_notrack 'HMS Hodo Calculated Beta Without Track Info; Beta; Number of Entries / 0.02' H.hod.betanotrack 100 0 2.0 H.hod.betanotrack>0.0
+TH1F hhodo_beta 'HMS Hodo Beta; Beta; Number of Entries / 0.02' H.hod.beta 100 0 2.0 H.hod.beta>0.0
+TH1F hhodo_fpHitsTime 'HMS Hodo Focal Plane Time; Focal Plane Time (ns); Number of Entries / 1 ns' H.hod.fpHitsTime 90 0 90 
+TH1F hhodo_starttime 'HMS Hodo Start Time; Start Time (ns); Number of Entries / 1ns' H.hod.starttime 90 0 90
+TH1F hhodo_good_startime 'HMS Hodo Good Start Time (ns); Good Start Time (ns); Number of Entries / 1ns' H.hod.goodstarttime 90 0 90
+TH2F hhodo_xhod_vs_yhod 'HMS Hodo Projected X vs. Y; Y_hodo(cm) / 1mm; X_hodo(cm) / 1mm' H.hod.y_hodo H.hod.x_hodo 1000 -50 50 1000 -50 50
+
+#******************
+# HMS CALORIMETER
+#******************
+
+#------------------------
+# HMS CAL Good Occupancy
+#------------------------
+
+TH1F hcal_hA_good_occ_pos 'HMS hA+ Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodPosAdcHits 13 0.5 13.5  
+TH1F hcal_hA_good_occ_neg 'HMS hA- Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hB_good_occ_pos 'HMS hB+ Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_occ_neg 'HMS hB- Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hC_good_occ_pos 'HMS hC+ Good Occupancy; PMT Number; Number of Entries' H.cal.3ta.numGoodPosAdcHits 13 0.5 13.5 
+TH1F hcal_hD_good_occ_pos 'HMS hD+ Good Occupancy; PMT Number; Number of Entries' H.cal.4ta.numGoodPosAdcHits 13 0.5 13.5 
+
+#---------------------------
+# HMS CAL Good Multiplicity
+#---------------------------
+ 
+TH1F hcal_hA_good_mult_pos 'HMS hA+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.1pr.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult_neg 'HMS hA- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.1pr.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult 'HMS hA Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.1pr.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hB_good_mult_pos 'HMS hB+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.2ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult_neg 'HMS hB- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.2ta.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult 'HMS hB Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.2ta.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hC_good_mult_pos 'HMS hC+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.3ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hD_good_mult_pos 'HMS hD+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.4ta.totNumGoodPosAdcHits 13 0.5 13.5
+
+#-------------------------------
+# HMS CAL Good Pulse Pedestals 
+#-------------------------------
+
+TH2F hcal_hA_good_pped_vs_pmt_pos 'HMS hA+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodPosAdcPed>0.0
+TH2F hcal_hA_good_pped_vs_pmt_neg 'HMS hA- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodNegAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_pos 'HMS hB+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodPosAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_neg 'HMS hB- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodNegAdcPed>0.0
+TH2F hcal_hC_good_pped_vs_pmt_pos 'HMS hC+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.3ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.3ta.goodPosAdcPed>0.0
+TH2F hcal_hD_good_pped_vs_pmt_pos 'HMS hD+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.4ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.4ta.goodPosAdcPed>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Integrals 
+#-------------------------------
+
+TH2F hcal_hA_good_pi_vs_pmt_pos 'HMS hA+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodPosAdcPulseInt>0.0
+TH2F hcal_hA_good_pi_vs_pmt_neg 'HMS hA- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodNegAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_pos 'HMS hB+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_neg 'HMS hB- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodNegAdcPulseInt>0.0
+TH2F hcal_hC_good_pi_vs_pmt_pos 'HMS hC+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.3ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hD_good_pi_vs_pmt_pos 'HMS hD+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.4ta.goodPosAdcPulseInt>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Amplitudes 
+#-------------------------------
+
+TH2F hcal_hA_good_pamp_vs_pmt_pos 'HMS hA+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodPosAdcPulseAmp>0.0
+TH2F hcal_hA_good_pamp_vs_pmt_neg 'HMS hA- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodNegAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_pos 'HMS hB+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_neg 'HMS hB- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodNegAdcPulseAmp>0.0
+TH2F hcal_hC_good_pamp_vs_pmt_pos 'HMS hC+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.3ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hD_good_pamp_vs_pmt_pos 'HMS hD+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.4ta.goodPosAdcPulseAmp>0.0
+
+#---------------------------
+# HMS CAL Good Pulse Times
+#--------------------------- 
+
+TH2F hcal_hA_good_ptime_vs_pmt_pos 'HMS hA+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodPosAdcPulseTime>0.0
+TH2F hcal_hA_good_ptime_vs_pmt_neg 'HMS hA- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodNegAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_pos 'HMS hB+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_neg 'HMS hB- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodNegAdcPulseTime>0.0
+TH2F hcal_hC_good_ptime_vs_pmt_pos 'HMS hC+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.3ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hD_good_ptime_vs_pmt_pos 'HMS hD+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.4ta.goodPosAdcPulseTime>0.0
+
+#-----------------------------------------------
+# HMS CAL ENERGY DEPOSITION vs. PMT HISTOGRAMS 
+# (calib consts (GAIN) are in GeV/ADC units )
+#-----------------------------------------------
+
+TH2F hA_Epos_vs_pmt 'HMS hA+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.epos 13 0.5 13.5 200 0 2 H.cal.1pr.epos>0.0
+TH2F hA_Eneg_vs_pmt 'HMS hA- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.eneg 13 0.5 13.5 200 0 2 H.cal.1pr.eneg>0.0
+TH2F hA_Emean_vs_pmt 'HMS hA Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.emean 13 0.5 13.5 300 0 3 H.cal.1pr.emean>0.0
+
+
+TH2F hB_Epos_vs_pmt 'HMS hB+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.epos 13 0.5 13.5 200 0 2 H.cal.2ta.epos>0.0
+TH2F hB_Eneg_vs_pmt 'HMS hB- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.eneg 13 0.5 13.5 200 0 2 H.cal.2ta.eneg>0.0
+TH2F hB_Emean_vs_pmt 'HMS hB Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.emean 13 0.5 13.5 300 0 3 H.cal.2ta.emean>0.0
+
+TH2F hC_Epos_vs_pmt 'HMS hC+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.3ta.epos 13 0.5 13.5 200 0 2 H.cal.3ta.epos>0.0
+TH2F hD_Epos_vs_pmt 'HMS hD+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.4ta.epos 13 0.5 13.5 200 0 2 H.cal.4ta.epos>0.0
+
+#------------------------------------
+# HMS CAL ENERGY DEPOSITION / Plane
+#------------------------------------
+
+TH1F hcal_hA_Eplane_pos 'HMS hA+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_pos 200 0 2 H.cal.1pr.eplane_pos>0.0
+TH1F hcal_hA_Eplane_neg 'HMS hA- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_neg 200 0 2 H.cal.1pr.eplane_neg>0.0
+TH1F hcal_hA_Eplane 'HMS hA Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane 300 0 3 H.cal.1pr.eplane>0.0
+
+TH1F hcal_hB_Eplane_pos 'HMS hB+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_pos 200 0 2 H.cal.2ta.eplane_pos>0.0
+TH1F hcal_hB_Eplane_neg 'HMS hB- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_neg 200 0 2 H.cal.2ta.eplane_neg>0.0
+TH1F hcal_hB_Eplane 'HMS hB Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane 300 0 3 H.cal.2ta.eplane>0.0
+
+TH1F hcal_hC_Eplane_pos 'HMS hC+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.3ta.eplane_pos 200 0 2 H.cal.3ta.eplane_pos>0.0
+TH1F hcal_hD_Eplane_pos 'HMS hD+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.4ta.eplane_pos 200 0 2 H.cal.4ta.eplane_pos>0.0
+
+
+
+#********************
+# Trigger Apparatus *
+#********************
+
+#---------------------------
+# HMS Raw Hodo TRIG TDC Time
+#---------------------------
+
+TH1F htrig_h1x_tdc 'HMS h1X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h1y_tdc 'HMS h1Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1Y_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2x_tdc 'HMS h2X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2y_tdc 'HMS h2Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2Y_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_h1T_tdc 'HMS h1X/h1Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1T_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2T_tdc 'HMS h2X/h2Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2T_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_hT1_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 2); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT1_tdcTimeRaw 1500 0 1500
+TH1F htrig_hT2_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 20); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT2_tdcTimeRaw 1500 0 1500
+
+#----------------------------
+# HMS Raw DC Reference Time
+#----------------------------
+
+TH1F htrig_hdc_ref1 'HMS DC Reference Time 1; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF1_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref2 'HMS DC Reference Time 2; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF2_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref3 'HMS DC Reference Time 3; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF3_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref4 'HMS DC Reference Time 4; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF4_tdcTimeRaw 15000 0 15000
+
+
+TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF2_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+
+#--------------------------------------------
+# HMS Calo Layers TRIG Pulse Profile
+#--------------------------------------------
+
+TH1F htrig_hasum_adc_pped 'HMS hAsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hASUM_adcPed 5000 0 5000
+TH1F htrig_hasum_adc_pi 'HMS hAsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hASUM_adcPulseInt 800 0 40000
+TH1F htrig_hasum_adc_pamp 'HMS hAsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hASUM_adcPulseAmp 205 0 4100
+TH1F htrig_hasum_tdc 'HMS hAsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTime 4000 0 40000
+
+TH1F htrig_hbsum_adc_pped 'HMS hBsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hBSUM_adcPed 5000 0 5000
+TH1F htrig_hbsum_adc_pi 'HMS hBsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hBSUM_adcPulseInt 800 0 40000
+TH1F htrig_hbsum_adc_pamp 'HMS hBsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hBSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hbsum_tdc 'HMS hBsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hcsum_adc_pped 'HMS hCsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCSUM_adcPed 5000 0 5000
+TH1F htrig_hcsum_adc_pi 'HMS hCsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcsum_adc_pamp 'HMS hCsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcsum_tdc 'HMS hCsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hdsum_adc_pped 'HMS hDsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hDSUM_adcPed 5000 0 5000
+TH1F htrig_hdsum_adc_pi 'HMS hDsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hDSUM_adcPulseInt 800 0 40000
+TH1F htrig_hdsum_adc_pamp 'HMS hDsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hDSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hdsum_tdc 'HMS hDsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTime 4000 0 40000
+
+#----------------------------------
+# HMS PreShower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hPSHWR_adcPed 5000 0 5000
+TH1F htrig_hpreShwr_adc_pi 'HMS Pre-Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hPSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hPSHWR_adcPulseAmp 205 0 4100
+
+#-----------------------------
+# HMS PreShower TRIG LOW/HIGH  
+#-----------------------------
+
+TH1F htrig_hpreShwrLow_tdc 'HMS hpreShwrLow TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRLO_tdcTimeRaw 4000 0 40000
+TH1F htrig_hpreShwrHigh_tdc 'HMS hpreShwrHigh TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRHI_tdcTimeRaw 4000 0 40000
+
+
+#----------------------------------
+# HMS Shower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hSHWR_adcPed 5000 0 5000
+TH1F htrig_hshwr_adc_pi 'HMS Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hSHWR_adcPulseAmp 205 0 4100
+TH1F htrig_hshwr_tdc 'HMS Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 40000
+
+#---------------------------------------
+# HMS Gas Cherenkov TRIG Pulse Profile
+#---------------------------------------
+
+TH1F htrig_hcersum_adc_pped 'HMS Cherenkov Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCERSUM_adcPed 5000 0 5000
+TH1F htrig_hcersum_adc_pi 'HMS Cherenkov Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCERSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcersum_adc_pamp 'HMS Cherenkov Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcersum_tdc 'HMS Cherenkov Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCERSUM_tdcTime 4000 0 40000
+
+
+#------------------------------------------
+# HMS Aerogel TRIG Pulse Profile
+#------------------------------------------
+
+TH1F htrig_haersum_adc_pped 'HMS Aerogel Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hAERSUM_adcPed 5000 0 5000
+TH1F htrig_haersum_adc_pi 'HMS Aerogel Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hAERSUM_adcPulseInt 800 0 40000
+TH1F htrig_haersum_adc_pamp 'HMS Aerogel Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hAERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_haersum_tdc 'HMS Aerogel Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hAERSUM_tdcTime 4000 0 40000
+
+
+#-------------
+# Fast Raster 
+#-------------
+
+# Assume FADC range is set to 1V and the integration is 25 channels
+# Offset in the FADC is about 0.122V or 500 channels.
+
+formula FRXA_V T.hms.hFRXA_adcPulseIntRaw*(1./4096.)/25.
+formula FRXB_V T.hms.hFRXB_adcPulseIntRaw*(1./4096.)/25.
+formula FRYA_V T.hms.hFRYA_adcPulseIntRaw*(1./4096.)/25.
+formula FRYB_V T.hms.hFRYB_adcPulseIntRaw*(1./4096.)/25.
+
+TH1F hFRXA 'HMS FRXA; FRXA RAW ADC (chan); Counts' T.hms.hFRXA_adcPulseIntRaw 1000 0 100000
+TH1F hFRXA_V 'HMS FRXA; FRXA RAW ADC (Volts); Counts' FRXA_V 1000 0 1.0
+TH1F hFRXB 'HMS FRXB; FRXB RAW ADC (chan); Counts' T.hms.hFRXB_adcPulseIntRaw 1000 0 100000
+TH1F hFRXB_V 'HMS FRXB; FRXB RAW ADC (Volts); Counts' FRXB_V 1000 0 1.0
+TH1F hFRYA 'HMS FRYA; FRYA RAW ADC (chan); Counts' T.hms.hFRYA_adcPulseIntRaw 1000 0 100000
+TH1F hFRYA_V 'HMS FRYA; FRYA RAW ADC (Volts); Counts' FRYA_V 1000 0 1.0
+TH1F hFRYB 'HMS FRYB; FRYB RAW ADC (chan); Counts' T.hms.hFRYB_adcPulseIntRaw 1000 0 100000
+TH1F hFRYB_V 'HMS FRYB; FRYB RAW ADC (Volts); Counts' FRYB_V 1000 0 1.0
+TH2F hFRA_XvsY 'HMSFRA_XvsY; FRXA RAW ADC (Volts); FRYA RAW ADC (Volts)' FRXA_V FRYA_V 1000 0 1.0 1000 0 1.0
+TH2F hFRB_XvsY 'HMSFRB_XvsY; FRXB RAW ADC (Volts); FRYB RAW ADC (Volts)' FRXB_V FRYB_V 1000 0 1.0 1000 0 1.0
+
+
+
+
+#*****************************************
+# HMS Single Arm Primary (Scattered Beam)
+# Kinematic Quantities
+#*****************************************
+
+TH1F hkin_q2 'HMS Q^{2}; Q^{2} (GeV^{2}); Number of Entries / 0.050 GeV^{2}' H.kin.Q2 100 0 5
+TH1F hkin_omega 'HMS Omega; E_{beam} - E_{scat} (GeV); Number of Entries / 0.050 GeV' H.kin.omega 100 0 5
+TH1F hkin_w2 'HMS W^{2}; W^{2} (GeV^{2}); Number of Entries / 0.100 GeV^{2}' H.kin.W2 100 0 10
+TH1F hkin_w  'HMS W; W (GeV); Number of Entries / 0.050 GeV' H.kin.W 100 0 5
+TH1F hkin_theta 'HMS Scattering Angle Theta; HMS Scattering Angle (deg); Number of Entries / 0.06 deg' H.kin.scat_ang_deg 100 12 18
+
+#******************
+# EPICS VARIABLES *
+#******************
+
+begin epics
+
+IBC3H00CRCUR4
+hac_bcm_average
+ibcm1
+ibcm2
+iunser
+itov3out
+itov4out
+
+end epics
\ No newline at end of file
diff --git a/DEF-files/HMS/GEN/hstackana_report_cuts.def b/DEF-files/HMS/PRODUCTION/hstackana_production_cuts.def
similarity index 86%
rename from DEF-files/HMS/GEN/hstackana_report_cuts.def
rename to DEF-files/HMS/PRODUCTION/hstackana_production_cuts.def
index 385f6cbe167bd06f0a2b41a85a33824a85810fd0..9ba278304cbab0bcfdc431998d303d10734917f5 100644
--- a/DEF-files/HMS/GEN/hstackana_report_cuts.def
+++ b/DEF-files/HMS/PRODUCTION/hstackana_production_cuts.def
@@ -3,30 +3,45 @@
 
 Block: RawDecode
 
-Pedestal_event    g.evtyp==4
-scalar_event      g.evtyp==0
-HMS_event         g.evtyp==1
-SHMS_event         g.evtyp==2
-coin_event        g.evtyp==3
-tr4_event        g.evtyp==4
-tr5_event        g.evtyp==5
-tr6_event        g.evtyp==6
-misc_event        g.evtyp>=10
-hmscoin_event     g.evtyp==1||g.evtyp==3
+Pedestal_event     g.evtyp==4
+scalar_event       g.evtyp==0
+HMS_event          g.evtyp==1
+SHMS_event         g.evtyp==1
+coin_event         g.evtyp==3
+tr4_event          g.evtyp==4
+tr5_event          g.evtyp==5
+tr6_event          g.evtyp==6
+misc_event         g.evtyp>=10
+hmscoin_event      g.evtyp==1||g.evtyp==3
 shmscoin_event     g.evtyp==2||g.evtyp==3
-all_event         g.evtyp==1||g.evtyp==2||g.evtyp==3
+all_event          g.evtyp==1||g.evtyp==2||g.evtyp==3
+
 RawDecode_master  1
 
 Block: Decode
-Decode_master     HMS_event
-
-Block: CoarseTracking
-CoarseTracking_master HMS_event
 
 all_trigs             g.evtyp==1 || g.evtyp==2 || g.evtyp==3
 hms_shms_trig          g.evtyp==1 || g.evtyp==2
 hms_coin_trig         g.evtyp==1 || g.evtyp==3
 
+Decode_master     HMS_event
+
+Block: CoarseTracking
+CoarseTracking_master HMS_event
+
+#add cuts to stricter times and apply them to drift distances (HMS 6 GeV Drift Chambers)
+time_cut1                            H.dc.1x1.time > 0 && H.dc.1x1.time < 250
+time_cut2                            H.dc.1y1.time > 0 && H.dc.1y1.time < 250
+time_cut3                            H.dc.1u1.time > 0 && H.dc.1u1.time < 250
+time_cut4                            H.dc.1v1.time > 0 && H.dc.1v1.time < 250
+time_cut5                            H.dc.1y2.time > 0 && H.dc.1y2.time < 250
+time_cut6                            H.dc.1x2.time > 0 && H.dc.1x2.time < 250
+time_cut7                            H.dc.2x1.time > 0 && H.dc.2x1.time < 250
+time_cut8                            H.dc.2y1.time > 0 && H.dc.1y1.time < 250
+time_cut9                            H.dc.2u1.time > 0 && H.dc.2u1.time < 250
+time_cut10                            H.dc.2v1.time > 0 && H.dc.2v1.time < 250
+time_cut11                            H.dc.2y2.time > 0 && H.dc.2y2.time < 250
+time_cut12                            H.dc.2x2.time > 0 && H.dc.2x2.time < 250
 
 
 
@@ -108,11 +123,6 @@ f2HSpacePoints        hms2HitsLt && hmsDC2PlanesGT && H.dc.Ch2.spacepoints==0 &&
 hTest1                hmsHitsPlanes && (!hSpacePoints)
 hTest2                hSpacePoints && (!hStubLT)
 
-
-
-
-
-
 Block: CoarseReconstruct
 CoarseReconstruct_master HMS_event
 
diff --git a/DEF-files/HMS/PRODUCTION/merge_def_files.py b/DEF-files/HMS/PRODUCTION/merge_def_files.py
new file mode 100644
index 0000000000000000000000000000000000000000..e89af1974f8214a2f6e7ad422391e4bf0035c74c
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/merge_def_files.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+
+# Python script to merge multiple def-files into single def-file
+import os
+import sys
+
+if (len(sys.argv) != 3 or sys.argv[1] == '-h'):
+    print('Usage:')
+    print('  merge_def_files.py merge_list.txt outfile.def')
+    sys.exit()
+
+defFileList   = open(sys.argv[1], 'r')
+defFile       = defFileList.readlines()
+defFilePath   = []
+mergedDefFile = sys.argv[2]
+
+for defFileName in defFile:
+    defFilePath.append((defFileName).strip())
+
+with open(mergedDefFile, 'w') as outFile:
+    for defFileName in defFilePath:
+        outFile.write('\n\n')
+        with open(defFileName) as inFile:
+            for line in inFile:
+                outFile.write(line)
diff --git a/DEF-files/HMS/PRODUCTION/merge_list.txt b/DEF-files/HMS/PRODUCTION/merge_list.txt
new file mode 100644
index 0000000000000000000000000000000000000000..968178d5d2307a3090b4f4abfee7587eec2c635a
--- /dev/null
+++ b/DEF-files/HMS/PRODUCTION/merge_list.txt
@@ -0,0 +1,8 @@
+BLOCK/hblock_vars.def
+CER/hcer_histos.def
+DC/hdc_6gev_histos.def
+HODO/hhodo_histos.def
+CAL/hcal_histos.def
+TRIG/htrig_histos.def
+KIN/hkin_histos.def
+EPICS/hepics_vars.def
diff --git a/DEF-files/HMS/SCALERS/hscaler_cuts.def b/DEF-files/HMS/SCALERS/hscaler_cuts.def
new file mode 100644
index 0000000000000000000000000000000000000000..0e461516a77e5581f734e557d6325b48f26210a2
--- /dev/null
+++ b/DEF-files/HMS/SCALERS/hscaler_cuts.def
@@ -0,0 +1,41 @@
+#Report file for HMS Stack
+
+Block: RawDecode
+
+Pedestal_event     g.evtyp==4
+scalar_event       g.evtyp==0
+HMS_event          g.evtyp==1
+#SHMS_event        g.evtyp==2
+#coin_event        g.evtyp==3
+tr4_event          g.evtyp==4
+tr5_event          g.evtyp==5
+tr6_event          g.evtyp==6
+misc_event         g.evtyp>=10
+#hmscoin_event     g.evtyp==1||g.evtyp==3
+#shmscoin_event    g.evtyp==2||g.evtyp==3
+#all_event         g.evtyp==1||g.evtyp==2||g.evtyp==3
+
+RawDecode_master  1
+
+Block: Decode
+
+#all_trigs            g.evtyp==1 || g.evtyp==2 || g.evtyp==3
+#hms_shms_trig        g.evtyp==1 || g.evtyp==2
+#hms_coin_trig        g.evtyp==1 || g.evtyp==3
+
+Decode_master     HMS_event
+
+Block: CoarseTracking
+CoarseTracking_master HMS_event
+
+Block: CoarseReconstruct
+CoarseReconstruct_master HMS_event
+
+Block: Tracking
+Tracking_master  HMS_event
+
+Block: Reconstruct
+Reconstruct_master HMS_event
+
+Block: Physics
+Physics_master HMS_event
diff --git a/DEF-files/HMS/STACK/AERO/haero_histos.def b/DEF-files/HMS/STACK/AERO/haero_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..3ba092dff0191f3c1ba74945a86ab303cc7670b2
--- /dev/null
+++ b/DEF-files/HMS/STACK/AERO/haero_histos.def
@@ -0,0 +1,43 @@
+#***************
+# HMS AEROGEL *
+#***************
+
+#----------------------------------------------
+# HMS AEROGEL GOOD Occupancy and Multiplicity
+#----------------------------------------------
+
+TH1F haero_good_occ_pos 'HMS Aero+ Good Occupancy; PMT Number; Number of Good +ADC Hits' H.aero.numGoodPosAdcHits 8 0.5 8.5
+TH1F haero_good_occ_neg 'HMS Aero- Good Occupancy; PMT Number; Number of Good -ADC Hits' H.aero.numGoodNegAdcHits 8 0.5 8.5
+TH1F haero_good_mult_pos 'HMS Aero+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.aero.totNumGoodPosAdcHits 8 0.5 8.5
+TH1F haero_good_mult_neg 'HMS Aero- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.aero.totNumGoodNegAdcHits 8 0.5 8.5
+TH1F haero_good_mult 'HMS Aero Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.aero.totnumGoodAdcHits 16 0.5 16.5
+
+#-------------------------------
+# HMS AERO TOTAL NUMBER OF P.E.
+#-------------------------------
+
+TH1F haero_tot_npe_pos 'HMS Aero+ Total Number of Photoelectrons; Total Number of Pos Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.posNpeSum 200 0 100 H.aero.posNpeSum>0.0 
+TH1F haero_tot_npe_neg 'HMS Aero- Total Number of Photoelectrons; Total Number of Neg Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.negNpeSum 200 0 100 H.aero.negNpeSum>0.0 
+TH1F haero_tot_npe 'HMS Aero Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.npeSum 200 0 100 H.aero.npeSum>0.0 
+
+#--------------------------------
+# HMS AERO Number of P.E. / PMT
+#--------------------------------
+
+TH2F haero_npe_pos 'HMS Aero+ Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.aero.posNpe 8 0.5 8.5 200 0 100 P.aero.posNpe>0.0 
+TH2F haero_npe_neg 'HMS Aero- Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.aero.negNpe 8 0.5 8.5 200 0 100 P.aero.negNpe>0.0 
+
+#------------------------------------------------------------------------------
+# HMS AERO GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time 
+# GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+#------------------------------------------------------------------------------
+
+TH2F haero_good_pped_vs_pmt_pos 'HMS Aero+ Good Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' [I+1] H.aero.goodPosAdcPed 7 0.5 7.5 400 300 700  H.aero.goodPosAdcPed>0.0
+TH2F haero_good_pi_vs_pmt_pos 'HMS Aero+ Good Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' [I+1] H.aero.goodPosAdcPulseInt 7 0.5 7.5 600 0 30000 H.aero.goodPosAdcPulseInt>0.0
+TH2F haero_good_pamp_vs_pmt_pos 'HMS Aero+ Good Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' [I+1] H.aero.goodPosAdcPulseAmp 7 0.5 7.5 200 0 4000 H.aero.goodPosAdcPulseAmp>0.0
+TH2F haero_good_ptime_vs_pmt_pos 'HMS Aero+ Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.aero.goodPosAdcPulseTime 7 0.5 7.5 350 0 3500 H.aero.goodPosAdcPulseTime>0.0
+
+TH2F haero_good_pped_vs_pmt_neg 'HMS Aero- Good Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' [I+1] H.aero.goodNegAdcPed 7 0.5 7.5 400 300 700 H.aero.goodNegAdcPed>0.0
+TH2F haero_good_pi_vs_pmt_neg 'HMS Aero- Good Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' [I+1] H.aero.goodNegAdcPulseInt 7 0.5 7.5 600 0 30000 H.aero.goodNegAdcPulseInt>0.0
+TH2F haero_good_pamp_vs_pmt_neg 'HMS Aero- Good Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' [I+1] H.aero.goodNegAdcPulseAmp 7 0.5 7.5 200 0 4000 H.aero.goodNegAdcPulseAmp>0.0
+TH2F haero_good_ptime_vs_pmt_neg 'HMS Aero- Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.aero.goodNegAdcPulseTime 7 0.5 7.5 350 0 3500 H.aero.goodNegAdcPulseTime>0.0
diff --git a/DEF-files/HMS/STACK/BLOCK/hblock_vars.def b/DEF-files/HMS/STACK/BLOCK/hblock_vars.def
new file mode 100644
index 0000000000000000000000000000000000000000..44d4aa99562e0cbf11be57221c55d65392d2f983
--- /dev/null
+++ b/DEF-files/HMS/STACK/BLOCK/hblock_vars.def
@@ -0,0 +1,12 @@
+#********************
+# Block Definitions *
+#********************
+
+block T.hms.*
+block H.cer.*
+block H.dc.*
+block H.tr.*
+block H.hod.*
+block H.aero.*
+block H.cal.*
+block H.gtr.*
diff --git a/DEF-files/HMS/STACK/CAL/hcal_histos.def b/DEF-files/HMS/STACK/CAL/hcal_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..eedbc99703e8abbbff09ae4079bf817ff7092244
--- /dev/null
+++ b/DEF-files/HMS/STACK/CAL/hcal_histos.def
@@ -0,0 +1,106 @@
+#******************
+# HMS CALORIMETER
+#******************
+
+#------------------------
+# HMS CAL Good Occupancy
+#------------------------
+
+TH1F hcal_hA_good_occ_pos 'HMS hA+ Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodPosAdcHits 13 0.5 13.5  
+TH1F hcal_hA_good_occ_neg 'HMS hA- Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hB_good_occ_pos 'HMS hB+ Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_occ_neg 'HMS hB- Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hC_good_occ_pos 'HMS hC+ Good Occupancy; PMT Number; Number of Entries' H.cal.3ta.numGoodPosAdcHits 13 0.5 13.5 
+TH1F hcal_hD_good_occ_pos 'HMS hD+ Good Occupancy; PMT Number; Number of Entries' H.cal.4ta.numGoodPosAdcHits 13 0.5 13.5 
+
+#---------------------------
+# HMS CAL Good Multiplicity
+#---------------------------
+ 
+TH1F hcal_hA_good_mult_pos 'HMS hA+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.1pr.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult_neg 'HMS hA- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.1pr.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult 'HMS hA Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.1pr.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hB_good_mult_pos 'HMS hB+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.2ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult_neg 'HMS hB- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.2ta.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult 'HMS hB Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.2ta.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hC_good_mult_pos 'HMS hC+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.3ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hD_good_mult_pos 'HMS hD+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.4ta.totNumGoodPosAdcHits 13 0.5 13.5
+
+#-------------------------------
+# HMS CAL Good Pulse Pedestals 
+#-------------------------------
+
+TH2F hcal_hA_good_pped_vs_pmt_pos 'HMS hA+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodPosAdcPed>0.0
+TH2F hcal_hA_good_pped_vs_pmt_neg 'HMS hA- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodNegAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_pos 'HMS hB+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodPosAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_neg 'HMS hB- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodNegAdcPed>0.0
+TH2F hcal_hC_good_pped_vs_pmt_pos 'HMS hC+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.3ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.3ta.goodPosAdcPed>0.0
+TH2F hcal_hD_good_pped_vs_pmt_pos 'HMS hD+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.4ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.4ta.goodPosAdcPed>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Integrals 
+#-------------------------------
+
+TH2F hcal_hA_good_pi_vs_pmt_pos 'HMS hA+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodPosAdcPulseInt>0.0
+TH2F hcal_hA_good_pi_vs_pmt_neg 'HMS hA- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodNegAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_pos 'HMS hB+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_neg 'HMS hB- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodNegAdcPulseInt>0.0
+TH2F hcal_hC_good_pi_vs_pmt_pos 'HMS hC+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.3ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hD_good_pi_vs_pmt_pos 'HMS hD+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.4ta.goodPosAdcPulseInt>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Amplitudes 
+#-------------------------------
+
+TH2F hcal_hA_good_pamp_vs_pmt_pos 'HMS hA+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodPosAdcPulseAmp>0.0
+TH2F hcal_hA_good_pamp_vs_pmt_neg 'HMS hA- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodNegAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_pos 'HMS hB+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_neg 'HMS hB- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodNegAdcPulseAmp>0.0
+TH2F hcal_hC_good_pamp_vs_pmt_pos 'HMS hC+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.3ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hD_good_pamp_vs_pmt_pos 'HMS hD+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.4ta.goodPosAdcPulseAmp>0.0
+
+#---------------------------
+# HMS CAL Good Pulse Times
+#--------------------------- 
+
+TH2F hcal_hA_good_ptime_vs_pmt_pos 'HMS hA+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodPosAdcPulseTime>0.0
+TH2F hcal_hA_good_ptime_vs_pmt_neg 'HMS hA- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodNegAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_pos 'HMS hB+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_neg 'HMS hB- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodNegAdcPulseTime>0.0
+TH2F hcal_hC_good_ptime_vs_pmt_pos 'HMS hC+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.3ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hD_good_ptime_vs_pmt_pos 'HMS hD+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.4ta.goodPosAdcPulseTime>0.0
+
+#-----------------------------------------------
+# HMS CAL ENERGY DEPOSITION vs. PMT HISTOGRAMS 
+# (calib consts (GAIN) are in GeV/ADC units )
+#-----------------------------------------------
+
+TH2F hA_Epos_vs_pmt 'HMS hA+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.epos 13 0.5 13.5 200 0 2 H.cal.1pr.epos>0.0
+TH2F hA_Eneg_vs_pmt 'HMS hA- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.eneg 13 0.5 13.5 200 0 2 H.cal.1pr.eneg>0.0
+TH2F hA_Emean_vs_pmt 'HMS hA Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.emean 13 0.5 13.5 300 0 3 H.cal.1pr.emean>0.0
+
+
+TH2F hB_Epos_vs_pmt 'HMS hB+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.epos 13 0.5 13.5 200 0 2 H.cal.2ta.epos>0.0
+TH2F hB_Eneg_vs_pmt 'HMS hB- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.eneg 13 0.5 13.5 200 0 2 H.cal.2ta.eneg>0.0
+TH2F hB_Emean_vs_pmt 'HMS hB Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.emean 13 0.5 13.5 300 0 3 H.cal.2ta.emean>0.0
+
+TH2F hC_Epos_vs_pmt 'HMS hC+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.3ta.epos 13 0.5 13.5 200 0 2 H.cal.3ta.epos>0.0
+TH2F hD_Epos_vs_pmt 'HMS hD+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.4ta.epos 13 0.5 13.5 200 0 2 H.cal.4ta.epos>0.0
+
+#------------------------------------
+# HMS CAL ENERGY DEPOSITION / Plane
+#------------------------------------
+
+TH1F hcal_hA_Eplane_pos 'HMS hA+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_pos 200 0 2 H.cal.1pr.eplane_pos>0.0
+TH1F hcal_hA_Eplane_neg 'HMS hA- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_neg 200 0 2 H.cal.1pr.eplane_neg>0.0
+TH1F hcal_hA_Eplane 'HMS hA Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane 300 0 3 H.cal.1pr.eplane>0.0
+
+TH1F hcal_hB_Eplane_pos 'HMS hB+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_pos 200 0 2 H.cal.2ta.eplane_pos>0.0
+TH1F hcal_hB_Eplane_neg 'HMS hB- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_neg 200 0 2 H.cal.2ta.eplane_neg>0.0
+TH1F hcal_hB_Eplane 'HMS hB Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane 300 0 3 H.cal.2ta.eplane>0.0
+
+TH1F hcal_hC_Eplane_pos 'HMS hC+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.3ta.eplane_pos 200 0 2 H.cal.3ta.eplane_pos>0.0
+TH1F hcal_hD_Eplane_pos 'HMS hD+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.4ta.eplane_pos 200 0 2 H.cal.4ta.eplane_pos>0.0
+
diff --git a/DEF-files/HMS/STACK/CER/hcer_histos.def b/DEF-files/HMS/STACK/CER/hcer_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..7f9d3dbfd960a8628e3998d248b9b0aa8055534d
--- /dev/null
+++ b/DEF-files/HMS/STACK/CER/hcer_histos.def
@@ -0,0 +1,41 @@
+#********************
+# HMS Gas Cherenkov *
+#********************
+
+#-----------------------------------------
+# HMS Gas CER GOOD Occupancy and Multiplicity
+#-----------------------------------------
+
+TH1F hcer_good_occ 'HMS Cherenkov Good Occupancy; PMT Number; Number of Entries' H.cer.numGoodAdcHits 2 0.5 2.5
+TH1F hcer_good_mult 'HMS Cherenkov Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cer.totNumGoodAdcHits 2 0.5 2.5
+
+#-------------------------------------------------------------------------------
+# HMS Gas CER GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time 
+# GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+#-------------------------------------------------------------------------------
+  
+TH2F hcer_good_pped_vs_pmt 'HMS Cherenkov Good Pulse Pedestal vs. PMT Number; PMT Number; Pulse Pedestal / 1 ADC Units' [I+1] H.cer.goodAdcPed 2 0.5 2.5 400 300 700
+TH2F hcer_good_pi_vs_pmt 'HMS Cherenkov Good Pulse Integral vs. PMT Number; PMT Number; Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseInt 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseInt>0.0
+TH2F hcer_good_pamp_vs_pmt 'HMS Cherenkov Good Pulse Amplitude vs. PMT Number; PMT Number; Pulse Amplitude / 20 ADC Units' [I+1] H.cer.goodAdcPulseAmp 2 0.5 2.5 200 0 4000 H.cer.goodAdcPulseAmp>0.0
+TH2F hcer_good_ptime_vs_pmt 'HMS Cherenkov Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.cer.goodAdcPulseTime 2 0.5 2.5 350 0 3500 H.cer.goodAdcPulseTime>0.0
+
+#-----------------------------------
+# HMS Gas CER Number of P.E. / PMT
+#-----------------------------------
+
+TH2F hcer_npe 'HMS Cherenkov Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.cer.npe 2 0.5 2.5 200 0 100 H.cer.npe>0.0
+
+
+#----------------------------------
+# HMS Gas CER TOTAL NUMBER OF P.E.
+#----------------------------------
+
+TH1F hcer_tot_npe 'HMS Cherenkov Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.cer.npeSum 200 0 100 H.cer.npeSum>0.0
+
+#--------------------------
+# HMS Gas CER TRACK MATCHING
+#--------------------------
+
+TH1F hcer_trk_match 'HMS  Gas Cherenkov Track Matches; PMT Number; Number of Tracks Matched' H.cer.numTracksMatched 2 0.5 2.5
+TH1F hcer_trk_fired 'HMS  Gas Cherenkov Tracks Fired; PMT Number; Number of Tracks Fired' H.cer.numTracksFired 2 0.5 2.5
+
diff --git a/DEF-files/HMS/STACK/DC/hdc_6gev_histos.def b/DEF-files/HMS/STACK/DC/hdc_6gev_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..1f7b515bd0119f0269489c7ed697967bf7448551
--- /dev/null
+++ b/DEF-files/HMS/STACK/DC/hdc_6gev_histos.def
@@ -0,0 +1,122 @@
+#***************************
+# HMS 6 GeV Drift Chambers *
+#***************************
+
+#-----------------
+# HMS DC WIREMAP 
+#-----------------
+
+TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
+TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
+TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
+TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
+TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
+TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
+
+TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
+TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
+TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
+TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
+TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
+TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
+
+#-----------------------------
+# HMS DC DRIFT TIME PER PLANE 
+#-----------------------------
+
+TH1F hdc1x1_drifttime 'HMS DC 1X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x1.time 400 -50 350
+TH1F hdc1y1_drifttime 'HMS DC 1Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y1.time 400 -50 350
+TH1F hdc1u1_drifttime 'HMS DC 1U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1u1.time 400 -50 350
+TH1F hdc1v1_drifttime 'HMS DC 1V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1v1.time 400 -50 350
+TH1F hdc1y2_drifttime 'HMS DC 1Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y2.time 400 -50 350
+TH1F hdc1x2_drifttime 'HMS DC 1X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x2.time 400 -50 350
+
+TH1F hdc2x1_drifttime 'HMS DC 2X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x1.time 400 -50 350
+TH1F hdc2y1_drifttime 'HMS DC 2Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y1.time 400 -50 350
+TH1F hdc2u1_drifttime 'HMS DC 2U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2u1.time 400 -50 350
+TH1F hdc2v1_drifttime 'HMS DC 2V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2v1.time 400 -50 350
+TH1F hdc2y2_drifttime 'HMS DC 2Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y2.time 400 -50 350
+TH1F hdc2x2_drifttime 'HMS DC 2X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x2.time 400 -50 350
+
+#----------------------------------
+# HMS DC DRIFT TIME VS. WIRENUMBER
+#----------------------------------
+
+TH2F hdc1x1_drifttime_vs_wirenum 'HMS DC 1X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc1y1_drifttime_vs_wirenum 'HMS DC 1Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc1u1_drifttime_vs_wirenum 'HMS DC 1U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1v1_drifttime_vs_wirenum 'HMS DC 1V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1y2_drifttime_vs_wirenum 'HMS DC 1Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc1x2_drifttime_vs_wirenum 'HMS DC 1X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 600 -100 500
+
+TH2F hdc2x1_drifttime_vs_wirenum 'HMS DC 2X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc2y1_drifttime_vs_wirenum 'HMS DC 2Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc2u1_drifttime_vs_wirenum 'HMS DC 2U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2v1_drifttime_vs_wirenum 'HMS DC 2V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2y2_drifttime_vs_wirenum 'HMS DC 2Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc2x2_drifttime_vs_wirenum 'HMS DC 2X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 600 -100 500
+
+#---------------------------------
+# HMS DC Drift Distance Per Plane 
+#---------------------------------
+ 
+TH1F hdc1x1_ddist 'HMS 1X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x1.dist 28 -0.1 0.6
+TH1F hdc1y1_ddist 'HMS 1Y1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y1.dist 28 -0.1 0.6
+TH1F hdc1u1_ddist 'HMS 1U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1u1.dist 28 -0.1 0.6
+TH1F hdc1v1_ddist 'HMS 1V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1v1.dist 28 -0.1 0.6
+TH1F hdc1y2_ddist 'HMS 1Y2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y2.dist 28 -0.1 0.6
+TH1F hdc1x2_ddist 'HMS 1X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x2.dist 28 -0.1 0.6
+
+TH1F hdc2x1_ddist 'HMS 2U2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x1.dist 28 -0.1 0.6
+TH1F hdc2y1_ddist 'HMS 2U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y1.dist 28 -0.1 0.6
+TH1F hdc2u1_ddist 'HMS 2X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2u1.dist 28 -0.1 0.6
+TH1F hdc2v1_ddist 'HMS 2X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2v1.dist 28 -0.1 0.6
+TH1F hdc2y2_ddist 'HMS 2V2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y2.dist 28 -0.1 0.6
+TH1F hdc2x2_ddist 'HMS 2V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x2.dist 28 -0.1 0.6
+
+#--------------------------------------
+# HMS DC DRIFT DISTANCE VS. WIRENUMBER
+#--------------------------------------
+
+TH2F hdc1x1_wirenum_vs_ddist 'HMS DC 1X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc1y1_wirenum_vs_ddist 'HMS DC 1Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1u1_wirenum_vs_ddist 'HMS DC 1U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1v1_wirenum_vs_ddist 'HMS DC 1V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1y2_wirenum_vs_ddist 'HMS DC 1Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1x2_wirenum_vs_ddist 'HMS DC 1X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+TH2F hdc2x1_wirenum_vs_ddist 'HMS DC 2X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc2y1_wirenum_vs_ddist 'HMS DC 2Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2u1_wirenum_vs_ddist 'HMS DC 2U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2v1_wirenum_vs_ddist 'HMS DC 2V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2y2_wirenum_vs_ddist 'HMS DC 2Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2x2_wirenum_vs_ddist 'HMS DC 2X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+#----------------------------
+# HMS DC RESIDUALS PER PLANE 
+#----------------------------
+ 
+TH1F hdc1x1_residuals 'HMS 1X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[0]  200 -1.0 1.0
+TH1F hdc1y1_residuals 'HMS 1Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[1]  200 -1.0 1.0
+TH1F hdc1u1_residuals 'HMS 1U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[2]  200 -1.0 1.0
+TH1F hdc1v1_residuals 'HMS 1V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[3]  200 -1.0 1.0
+TH1F hdc1y2_residuals 'HMS 1Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[4]  200 -1.0 1.0
+TH1F hdc1x2_residuals 'HMS 1X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[5]  200 -1.0 1.0
+
+TH1F hdc2x1_residuals 'HMS 2X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[6]  200 -1.0 1.0
+TH1F hdc2y1_residuals 'HMS 2Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[7]  200 -1.0 1.0
+TH1F hdc2u1_residuals 'HMS 2U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[8]  200 -1.0 1.0
+TH1F hdc2v1_residuals 'HMS 2V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[9]  200 -1.0 1.0
+TH1F hdc2y2_residuals 'HMS 2Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[10] 200 -1.0 1.0
+TH1F hdc2x2_residuals 'HMS 2X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[11] 200 -1.0 1.0
+
+#-------------------------------------------
+# HMS DC TRACKING VARIABLES AT FOCAL PLANE
+#-------------------------------------------
+
+TH1F hdc_trk_mom 'HMS DC Track Momentum; P (GeV); Number of Entires / 10 MeV' H.tr.p 600 0 6
+TH1F hdc_trk_beta 'HMS DC Track Beta; Beta (GeV); Number of Entires' H.tr.beta 300 -1.5 1.5
+TH2F hdc_xfp_vs_yxp 'HMS DC X_{fp} vs Y_{fp}; Y_{fp} (cm) / 1 cm; X_{fp} (cm) / 1 cm' H.dc.y_fp H.dc.x_fp 100 -50 50 100 -50 50
+TH2F hdc_xpfp_vs_ypfp 'HMS DC X'_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X'_{fp} / 0.002 rad' H.dc.yp_fp H.dc.xp_fp 100 -.1 .1 100 -.1 .1
+TH2F hdc_xfp_vs_ypfp 'HMS DC X_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X_{fp} / 1 cm'  H.dc.yp_fp H.dc.x_fp 100 -.1 .1 100 -50 50 
+TH2F hdc_xfp_vs_xpfp 'HMS DC X_{fp} vs X'_{fp}; X'_{fp} / 0.002 rad; X_{fp} / 1 cm' H.dc.xp_fp H.dc.x_fp 100 -.1 .1 100 -50 50
diff --git a/DEF-files/HMS/STACK/HODO/hhodo_histos.def b/DEF-files/HMS/STACK/HODO/hhodo_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..f0b7df31fac95aec7bc7e54d6d8e6ba63fd03653
--- /dev/null
+++ b/DEF-files/HMS/STACK/HODO/hhodo_histos.def
@@ -0,0 +1,178 @@
+#*****************
+# HMS HODOSCOPES *
+#*****************
+
+#-----------------------------------
+# HMS HODO GOOD ADC Multiplicities 
+#-----------------------------------
+
+TH1F hhodo_1x_good_adc_mult_pos 'HMS 1X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_pos 'HMS 1Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1y.totNumGoodPosAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_pos 'HMS 2X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_pos 'HMS 2Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2y.totNumGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult_neg 'HMS 1X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_neg 'HMS 1Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1y.totNumGoodNegAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_neg 'HMS 2X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_neg 'HMS 2Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2y.totNumGoodNegAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult 'HMS 1X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult 'HMS 1Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1y.totNumGoodAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult 'HMS 2X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult 'HMS 2Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2y.totNumGoodAdcHits 10 0.5 10.5
+
+#-----------------------------------
+# HMS HODO Good TDC Multiplicities
+#-----------------------------------
+
+TH1F hhodo_1x_good_tdc_mult_pos 'HMS 1X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_pos 'HMS 1Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1y.totNumGoodPosTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_pos 'HMS 2X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_pos 'HMS 2Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2y.totNumGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult_neg 'HMS 1X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_neg 'HMS 1Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1y.totNumGoodNegTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_neg 'HMS 2X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_neg 'HMS 2Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2y.totNumGoodNegTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult 'HMS 1X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult 'HMS 1Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1y.totNumGoodTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult 'HMS 2X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult 'HMS 2Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2y.totNumGoodTdcHits 10 0.5 10.5
+
+#---------------------------------
+# HMS HODO GOOD ADC OCCUPANCIES
+#---------------------------------
+
+TH1F hhodo_1x_good_adc_occ_pos 'HMS 1X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_pos 'HMS 1Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1y.numGoodPosAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_pos 'HMS 2X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_pos 'HMS 2Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2y.numGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_occ_neg 'HMS 1X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_neg 'HMS 1Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1y.numGoodNegAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_neg 'HMS 2X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_neg 'HMS 2Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2y.numGoodNegAdcHits 10 0.5 10.5
+
+#--------------------------------
+# HMS HODO GOOD TDC OCCUPANCIES
+#--------------------------------
+
+TH1F hhodo_1x_good_tdc_occ_pos 'HMS 1X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_pos 'HMS 1Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1y.numGoodPosTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_pos 'HMS 2X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_pos 'HMS 2Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2y.numGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_occ_neg 'HMS 1X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_neg 'HMS 1Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1y.numGoodNegTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_neg 'HMS 2X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_neg 'HMS 2Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2y.numGoodNegTdcHits 10 0.5 10.5
+
+#------------------------------
+# HMS HODO Good PULSE PEDESTAL
+#------------------------------
+
+TH2F hhodo_1x_good_pped_vs_pmt_pos 'HMS 1X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodPosAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_pos 'HMS 1Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodPosAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_pos 'HMS 2X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodPosAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_pos 'HMS 2Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodPosAdcPed>0.0
+
+TH2F hhodo_1x_good_pped_vs_pmt_neg 'HMS 1X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodNegAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_neg 'HMS 1Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodNegAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_neg 'HMS 2X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodNegAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_neg 'HMS 2Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodNegAdcPed>0.0
+
+#------------------------------
+# HMS HODO Good PULSE INTEGRAL
+#------------------------------
+
+TH2F hhodo_1x_good_pi_vs_pmt_pos 'HMS 1X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_pos 'HMS 1Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_pos 'HMS 2X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_pos 'HMS 2Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodPosAdcPulseInt>0.0
+
+TH2F hhodo_1x_good_pi_vs_pmt_neg 'HMS 1X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_neg 'HMS 1Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_neg 'HMS 2X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_neg 'HMS 2Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodNegAdcPulseInt>0.0
+
+#-------------------------------
+# HMS HODO Good PULSE AMPLITUDE 
+#-------------------------------
+
+TH2F hhodo_1x_good_pamp_vs_pmt_pos 'HMS 1X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_pos 'HMS 1Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_pos 'HMS 2X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_pos 'HMS 2Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodPosAdcPulseAmp>0.0
+
+TH2F hhodo_1x_good_pamp_vs_pmt_neg 'HMS 1X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_neg 'HMS 1Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_neg 'HMS 2X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_neg 'HMS 2Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodNegAdcPulseAmp>0.0
+
+#------------------------------
+# HMS HODO Good ADC PULSE TIME
+#------------------------------
+
+TH2F hhodo_1x_good_ptime_vs_pmt_pos 'HMS 1X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_pos 'HMS 1Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_pos 'HMS 2X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_pos 'HMS 2Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodPosAdcPulseTime>0.0
+
+TH2F hhodo_1x_good_ptime_vs_pmt_neg 'HMS 1X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_neg 'HMS 1Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_neg 'HMS 2X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_neg 'HMS 2Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodNegAdcPulseTime>0.0
+
+#-------------------------------------------------------------------
+# HMS HODO Good TDC TIME UNCORRECTED (uncorrected for time offsets)
+#-------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_pos 'HMS 1X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_pos 'HMS 1Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_pos 'HMS 2X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_pos 'HMS 2Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeUnCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_neg 'HMS 1X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_neg 'HMS 1Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_neg 'HMS 2X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_neg 'HMS 2Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeUnCorr>0.0
+
+#---------------------------------------------------------------
+# HMS HODO Good TDC TIME CORRECTED (corrected for time offsets)
+#---------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_pos 'HMS 1X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_pos 'HMS 1Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_pos 'HMS 2X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_pos 'HMS 2Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_neg 'HMS 1X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_neg 'HMS 1Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_neg 'HMS 2X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_neg 'HMS 2Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeCorr>0.0
+
+#--------------------------------------------------------------------
+# HMS HODO Good TDC TIME TOF CORRECTED (corrected for time of flight) 
+#--------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeTOFCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeTOFCorr>0.0
+
+#----------------------------------------------------------------
+# HMS HODO TRACKING, TIMING  AND  Particle ID (PID) - BETA (v/c) 
+#----------------------------------------------------------------
+
+TH1F hhodo_beta_notrack 'HMS Hodo Calculated Beta Without Track Info; Beta; Number of Entries / 0.02' H.hod.betanotrack 100 0 2.0 H.hod.betanotrack>0.0
+TH1F hhodo_beta 'HMS Hodo Beta; Beta; Number of Entries / 0.02' H.hod.beta 100 0 2.0 H.hod.beta>0.0
+TH1F hhodo_fpHitsTime 'HMS Hodo Focal Plane Time; Focal Plane Time (ns); Number of Entries / 1 ns' H.hod.fpHitsTime 90 0 90 
+TH1F hhodo_starttime 'HMS Hodo Start Time; Start Time (ns); Number of Entries / 1ns' H.hod.starttime 90 0 90
+TH1F hhodo_good_startime 'HMS Hodo Good Start Time (ns); Good Start Time (ns); Number of Entries / 1ns' H.hod.goodstarttime 90 0 90
+TH2F hhodo_xhod_vs_yhod 'HMS Hodo Projected X vs. Y; Y_hodo(cm) / 1mm; X_hodo(cm) / 1mm' H.hod.y_hodo H.hod.x_hodo 1000 -50 50 1000 -50 50
\ No newline at end of file
diff --git a/DEF-files/HMS/STACK/TRIG/htrig_histos.def b/DEF-files/HMS/STACK/TRIG/htrig_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..b094df93083ed475eb209808797187960b7363c8
--- /dev/null
+++ b/DEF-files/HMS/STACK/TRIG/htrig_histos.def
@@ -0,0 +1,131 @@
+#********************
+# Trigger Apparatus *
+#********************
+
+#---------------------------
+# HMS Raw Hodo TRIG TDC Time
+#---------------------------
+
+TH1F htrig_h1x_tdc 'HMS h1X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h1y_tdc 'HMS h1Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1Y_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2x_tdc 'HMS h2X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2y_tdc 'HMS h2Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2Y_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_h1T_tdc 'HMS h1X/h1Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1T_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2T_tdc 'HMS h2X/h2Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2T_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_hT1_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 2); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT1_tdcTimeRaw 1500 0 1500
+TH1F htrig_hT2_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 20); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT2_tdcTimeRaw 1500 0 1500
+
+#----------------------------
+# HMS Raw DC Reference Time
+#----------------------------
+
+TH1F htrig_hdc_ref1 'HMS DC Reference Time 1; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF1_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref2 'HMS DC Reference Time 2; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF2_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref3 'HMS DC Reference Time 3; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF3_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref4 'HMS DC Reference Time 4; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF4_tdcTimeRaw 15000 0 15000
+
+
+TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF2_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+
+#--------------------------------------------
+# HMS Calo Layers TRIG Pulse Profile
+#--------------------------------------------
+
+TH1F htrig_hasum_adc_pped 'HMS hAsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hASUM_adcPed 5000 0 5000
+TH1F htrig_hasum_adc_pi 'HMS hAsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hASUM_adcPulseInt 800 0 40000
+TH1F htrig_hasum_adc_pamp 'HMS hAsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hASUM_adcPulseAmp 205 0 4100
+TH1F htrig_hasum_tdc 'HMS hAsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTime 4000 0 40000
+
+TH1F htrig_hbsum_adc_pped 'HMS hBsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hBSUM_adcPed 5000 0 5000
+TH1F htrig_hbsum_adc_pi 'HMS hBsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hBSUM_adcPulseInt 800 0 40000
+TH1F htrig_hbsum_adc_pamp 'HMS hBsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hBSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hbsum_tdc 'HMS hBsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hcsum_adc_pped 'HMS hCsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCSUM_adcPed 5000 0 5000
+TH1F htrig_hcsum_adc_pi 'HMS hCsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcsum_adc_pamp 'HMS hCsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcsum_tdc 'HMS hCsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hdsum_adc_pped 'HMS hDsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hDSUM_adcPed 5000 0 5000
+TH1F htrig_hdsum_adc_pi 'HMS hDsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hDSUM_adcPulseInt 800 0 40000
+TH1F htrig_hdsum_adc_pamp 'HMS hDsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hDSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hdsum_tdc 'HMS hDsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTime 4000 0 40000
+
+#----------------------------------
+# HMS PreShower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hPSHWR_adcPed 5000 0 5000
+TH1F htrig_hpreShwr_adc_pi 'HMS Pre-Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hPSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hPSHWR_adcPulseAmp 205 0 4100
+TH1F htrig_hpreShwr_tdc 'HMS Pre-Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWR_tdcTime 4000 0 40000
+
+#-----------------------------
+# HMS PreShower TRIG LOW/HIGH  
+#-----------------------------
+
+TH1F htrig_hpreShwrLow_tdc 'HMS hpreShwrLow TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRLO_tdcTimeRaw 4000 0 40000
+TH1F htrig_hpreShwrHigh_tdc 'HMS hpreShwrHigh TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRHI_tdcTimeRaw 4000 0 40000
+
+
+#----------------------------------
+# HMS Shower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hSHWR_adcPed 5000 0 5000
+TH1F htrig_hshwr_adc_pi 'HMS Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hSHWR_adcPulseAmp 205 0 4100
+TH1F htrig_hshwr_tdc 'HMS Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 40000
+
+#---------------------------------------
+# HMS Gas Cherenkov TRIG Pulse Profile
+#---------------------------------------
+
+TH1F htrig_hcersum_adc_pped 'HMS Cherenkov Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCERSUM_adcPed 5000 0 5000
+TH1F htrig_hcersum_adc_pi 'HMS Cherenkov Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCERSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcersum_adc_pamp 'HMS Cherenkov Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcersum_tdc 'HMS Cherenkov Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCERSUM_tdcTime 4000 0 40000
+
+
+#------------------------------------------
+# HMS Aerogel TRIG Pulse Profile
+#------------------------------------------
+
+TH1F htrig_haersum_adc_pped 'HMS Aerogel Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hAERSUM_adcPed 5000 0 5000
+TH1F htrig_haersum_adc_pi 'HMS Aerogel Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hAERSUM_adcPulseInt 800 0 40000
+TH1F htrig_haersum_adc_pamp 'HMS Aerogel Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hAERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_haersum_tdc 'HMS Aerogel Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hAERSUM_tdcTime 4000 0 40000
+
+
+#-------------
+# Fast Raster 
+#-------------
+
+# Assume FADC range is set to 1V and the integration is 25 channels
+# Offset in the FADC is about 0.122V or 500 channels.
+
+formula FRXA_V T.hms.pFRXA_adcPulseIntRaw*(1./4096.)/25.
+formula FRXB_V T.hms.pFRXB_adcPulseIntRaw*(1./4096.)/25.
+formula FRYA_V T.hms.pFRYA_adcPulseIntRaw*(1./4096.)/25.
+formula FRYB_V T.hms.pFRYB_adcPulseIntRaw*(1./4096.)/25.
+
+TH1F hFRXA 'HMS FRXA; FRXA RAW ADC (chan); Counts' T.hms.pFRXA_adcPulseIntRaw 1000 0 100000
+TH1F hFRXA_V 'HMS FRXA; FRXA RAW ADC (Volts); Counts' FRXA_V 1000 0 1.0
+TH1F hFRXB 'HMS FRXB; FRXB RAW ADC (chan); Counts' T.hms.pFRXB_adcPulseIntRaw 1000 0 100000
+TH1F hFRXB_V 'HMS FRXB; FRXB RAW ADC (Volts); Counts' FRXB_V 1000 0 1.0
+TH1F hFRYA 'HMS FRYA; FRYA RAW ADC (chan); Counts' T.hms.pFRYA_adcPulseIntRaw 1000 0 100000
+TH1F hFRYA_V 'HMS FRYA; FRYA RAW ADC (Volts); Counts' FRYA_V 1000 0 1.0
+TH1F hFRYB 'HMS FRYB; FRYB RAW ADC (chan); Counts' T.hms.pFRYB_adcPulseIntRaw 1000 0 100000
+TH1F hFRYB_V 'HMS FRYB; FRYB RAW ADC (Volts); Counts' FRYB_V 1000 0 1.0
+TH2F hFRA_XvsY 'HMSFRA_XvsY; FRXA RAW ADC (Volts); FRYA RAW ADC (Volts)' FRXA_V FRYA_V 1000 0 1.0 1000 0 1.0
+TH2F hFRB_XvsY 'HMSFRB_XvsY; FRXB RAW ADC (Volts); FRYB RAW ADC (Volts)' FRXB_V FRYB_V 1000 0 1.0 1000 0 1.0
+
diff --git a/DEF-files/HMS/STACK/hstackana.def b/DEF-files/HMS/STACK/hstackana.def
new file mode 100644
index 0000000000000000000000000000000000000000..c29c27d8f65c387c37ae8d8a6c217bae34d089e8
--- /dev/null
+++ b/DEF-files/HMS/STACK/hstackana.def
@@ -0,0 +1,601 @@
+
+
+#********************
+# Block Definitions *
+#********************
+
+block T.hms.*
+block H.cer.*
+block H.dc.*
+block H.tr.*
+block H.hod.*
+block H.aero.*
+block H.cal.*
+block H.gtr.*
+
+
+#********************
+# HMS Gas Cherenkov *
+#********************
+
+#-----------------------------------------
+# HMS Gas CER GOOD Occupancy and Multiplicity
+#-----------------------------------------
+
+TH1F hcer_good_occ 'HMS Cherenkov Good Occupancy; PMT Number; Number of Entries' H.cer.numGoodAdcHits 2 0.5 2.5
+TH1F hcer_good_mult 'HMS Cherenkov Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cer.totNumGoodAdcHits 2 0.5 2.5
+
+#-------------------------------------------------------------------------------
+# HMS Gas CER GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time 
+# GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+#-------------------------------------------------------------------------------
+  
+TH2F hcer_good_pped_vs_pmt 'HMS Cherenkov Good Pulse Pedestal vs. PMT Number; PMT Number; Pulse Pedestal / 1 ADC Units' [I+1] H.cer.goodAdcPed 2 0.5 2.5 400 300 700
+TH2F hcer_good_pi_vs_pmt 'HMS Cherenkov Good Pulse Integral vs. PMT Number; PMT Number; Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseInt 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseInt>0.0
+TH2F hcer_good_pamp_vs_pmt 'HMS Cherenkov Good Pulse Amplitude vs. PMT Number; PMT Number; Pulse Amplitude / 20 ADC Units' [I+1] H.cer.goodAdcPulseAmp 2 0.5 2.5 200 0 4000 H.cer.goodAdcPulseAmp>0.0
+TH2F hcer_good_ptime_vs_pmt 'HMS Cherenkov Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.cer.goodAdcPulseTime 2 0.5 2.5 350 0 3500 H.cer.goodAdcPulseTime>0.0
+
+#-----------------------------------
+# HMS Gas CER Number of P.E. / PMT
+#-----------------------------------
+
+TH2F hcer_npe 'HMS Cherenkov Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.cer.npe 2 0.5 2.5 200 0 100 H.cer.npe>0.0
+
+
+#----------------------------------
+# HMS Gas CER TOTAL NUMBER OF P.E.
+#----------------------------------
+
+TH1F hcer_tot_npe 'HMS Cherenkov Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.cer.npeSum 200 0 100 H.cer.npeSum>0.0
+
+#--------------------------
+# HMS Gas CER TRACK MATCHING
+#--------------------------
+
+TH1F hcer_trk_match 'HMS  Gas Cherenkov Track Matches; PMT Number; Number of Tracks Matched' H.cer.numTracksMatched 2 0.5 2.5
+TH1F hcer_trk_fired 'HMS  Gas Cherenkov Tracks Fired; PMT Number; Number of Tracks Fired' H.cer.numTracksFired 2 0.5 2.5
+
+
+
+#***************************
+# HMS 6 GeV Drift Chambers *
+#***************************
+
+#-----------------
+# HMS DC WIREMAP 
+#-----------------
+
+TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
+TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
+TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
+TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
+TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
+TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
+
+TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
+TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
+TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
+TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
+TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
+TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
+
+#-----------------------------
+# HMS DC DRIFT TIME PER PLANE 
+#-----------------------------
+
+TH1F hdc1x1_drifttime 'HMS DC 1X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x1.time 400 -50 350
+TH1F hdc1y1_drifttime 'HMS DC 1Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y1.time 400 -50 350
+TH1F hdc1u1_drifttime 'HMS DC 1U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1u1.time 400 -50 350
+TH1F hdc1v1_drifttime 'HMS DC 1V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1v1.time 400 -50 350
+TH1F hdc1y2_drifttime 'HMS DC 1Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y2.time 400 -50 350
+TH1F hdc1x2_drifttime 'HMS DC 1X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x2.time 400 -50 350
+
+TH1F hdc2x1_drifttime 'HMS DC 2X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x1.time 400 -50 350
+TH1F hdc2y1_drifttime 'HMS DC 2Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y1.time 400 -50 350
+TH1F hdc2u1_drifttime 'HMS DC 2U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2u1.time 400 -50 350
+TH1F hdc2v1_drifttime 'HMS DC 2V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2v1.time 400 -50 350
+TH1F hdc2y2_drifttime 'HMS DC 2Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y2.time 400 -50 350
+TH1F hdc2x2_drifttime 'HMS DC 2X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x2.time 400 -50 350
+
+#----------------------------------
+# HMS DC DRIFT TIME VS. WIRENUMBER
+#----------------------------------
+
+TH2F hdc1x1_drifttime_vs_wirenum 'HMS DC 1X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc1y1_drifttime_vs_wirenum 'HMS DC 1Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc1u1_drifttime_vs_wirenum 'HMS DC 1U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1v1_drifttime_vs_wirenum 'HMS DC 1V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1y2_drifttime_vs_wirenum 'HMS DC 1Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc1x2_drifttime_vs_wirenum 'HMS DC 1X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 600 -100 500
+
+TH2F hdc2x1_drifttime_vs_wirenum 'HMS DC 2X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc2y1_drifttime_vs_wirenum 'HMS DC 2Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc2u1_drifttime_vs_wirenum 'HMS DC 2U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2v1_drifttime_vs_wirenum 'HMS DC 2V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2y2_drifttime_vs_wirenum 'HMS DC 2Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc2x2_drifttime_vs_wirenum 'HMS DC 2X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 600 -100 500
+
+#---------------------------------
+# HMS DC Drift Distance Per Plane 
+#---------------------------------
+ 
+TH1F hdc1x1_ddist 'HMS 1X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x1.dist 28 -0.1 0.6
+TH1F hdc1y1_ddist 'HMS 1Y1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y1.dist 28 -0.1 0.6
+TH1F hdc1u1_ddist 'HMS 1U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1u1.dist 28 -0.1 0.6
+TH1F hdc1v1_ddist 'HMS 1V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1v1.dist 28 -0.1 0.6
+TH1F hdc1y2_ddist 'HMS 1Y2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y2.dist 28 -0.1 0.6
+TH1F hdc1x2_ddist 'HMS 1X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x2.dist 28 -0.1 0.6
+
+TH1F hdc2x1_ddist 'HMS 2U2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x1.dist 28 -0.1 0.6
+TH1F hdc2y1_ddist 'HMS 2U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y1.dist 28 -0.1 0.6
+TH1F hdc2u1_ddist 'HMS 2X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2u1.dist 28 -0.1 0.6
+TH1F hdc2v1_ddist 'HMS 2X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2v1.dist 28 -0.1 0.6
+TH1F hdc2y2_ddist 'HMS 2V2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y2.dist 28 -0.1 0.6
+TH1F hdc2x2_ddist 'HMS 2V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x2.dist 28 -0.1 0.6
+
+#--------------------------------------
+# HMS DC DRIFT DISTANCE VS. WIRENUMBER
+#--------------------------------------
+
+TH2F hdc1x1_wirenum_vs_ddist 'HMS DC 1X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc1y1_wirenum_vs_ddist 'HMS DC 1Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1u1_wirenum_vs_ddist 'HMS DC 1U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1v1_wirenum_vs_ddist 'HMS DC 1V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1y2_wirenum_vs_ddist 'HMS DC 1Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1x2_wirenum_vs_ddist 'HMS DC 1X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+TH2F hdc2x1_wirenum_vs_ddist 'HMS DC 2X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc2y1_wirenum_vs_ddist 'HMS DC 2Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2u1_wirenum_vs_ddist 'HMS DC 2U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2v1_wirenum_vs_ddist 'HMS DC 2V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2y2_wirenum_vs_ddist 'HMS DC 2Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2x2_wirenum_vs_ddist 'HMS DC 2X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+#----------------------------
+# HMS DC RESIDUALS PER PLANE 
+#----------------------------
+ 
+TH1F hdc1x1_residuals 'HMS 1X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[0]  200 -1.0 1.0
+TH1F hdc1y1_residuals 'HMS 1Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[1]  200 -1.0 1.0
+TH1F hdc1u1_residuals 'HMS 1U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[2]  200 -1.0 1.0
+TH1F hdc1v1_residuals 'HMS 1V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[3]  200 -1.0 1.0
+TH1F hdc1y2_residuals 'HMS 1Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[4]  200 -1.0 1.0
+TH1F hdc1x2_residuals 'HMS 1X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[5]  200 -1.0 1.0
+
+TH1F hdc2x1_residuals 'HMS 2X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[6]  200 -1.0 1.0
+TH1F hdc2y1_residuals 'HMS 2Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[7]  200 -1.0 1.0
+TH1F hdc2u1_residuals 'HMS 2U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[8]  200 -1.0 1.0
+TH1F hdc2v1_residuals 'HMS 2V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[9]  200 -1.0 1.0
+TH1F hdc2y2_residuals 'HMS 2Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[10] 200 -1.0 1.0
+TH1F hdc2x2_residuals 'HMS 2X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[11] 200 -1.0 1.0
+
+#-------------------------------------------
+# HMS DC TRACKING VARIABLES AT FOCAL PLANE
+#-------------------------------------------
+
+TH1F hdc_trk_mom 'HMS DC Track Momentum; P (GeV); Number of Entires / 10 MeV' H.tr.p 600 0 6
+TH1F hdc_trk_beta 'HMS DC Track Beta; Beta (GeV); Number of Entires' H.tr.beta 300 -1.5 1.5
+TH2F hdc_xfp_vs_yxp 'HMS DC X_{fp} vs Y_{fp}; Y_{fp} (cm) / 1 cm; X_{fp} (cm) / 1 cm' H.dc.y_fp H.dc.x_fp 100 -50 50 100 -50 50
+TH2F hdc_xpfp_vs_ypfp 'HMS DC X'_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X'_{fp} / 0.002 rad' H.dc.yp_fp H.dc.xp_fp 100 -.1 .1 100 -.1 .1
+TH2F hdc_xfp_vs_ypfp 'HMS DC X_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X_{fp} / 1 cm'  H.dc.yp_fp H.dc.x_fp 100 -.1 .1 100 -50 50 
+TH2F hdc_xfp_vs_xpfp 'HMS DC X_{fp} vs X'_{fp}; X'_{fp} / 0.002 rad; X_{fp} / 1 cm' H.dc.xp_fp H.dc.x_fp 100 -.1 .1 100 -50 50
+
+
+#*****************
+# HMS HODOSCOPES *
+#*****************
+
+#-----------------------------------
+# HMS HODO GOOD ADC Multiplicities 
+#-----------------------------------
+
+TH1F hhodo_1x_good_adc_mult_pos 'HMS 1X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_pos 'HMS 1Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1y.totNumGoodPosAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_pos 'HMS 2X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_pos 'HMS 2Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2y.totNumGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult_neg 'HMS 1X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_neg 'HMS 1Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1y.totNumGoodNegAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_neg 'HMS 2X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_neg 'HMS 2Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2y.totNumGoodNegAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult 'HMS 1X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult 'HMS 1Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1y.totNumGoodAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult 'HMS 2X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult 'HMS 2Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2y.totNumGoodAdcHits 10 0.5 10.5
+
+#-----------------------------------
+# HMS HODO Good TDC Multiplicities
+#-----------------------------------
+
+TH1F hhodo_1x_good_tdc_mult_pos 'HMS 1X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_pos 'HMS 1Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1y.totNumGoodPosTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_pos 'HMS 2X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_pos 'HMS 2Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2y.totNumGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult_neg 'HMS 1X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_neg 'HMS 1Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1y.totNumGoodNegTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_neg 'HMS 2X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_neg 'HMS 2Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2y.totNumGoodNegTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult 'HMS 1X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult 'HMS 1Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1y.totNumGoodTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult 'HMS 2X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult 'HMS 2Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2y.totNumGoodTdcHits 10 0.5 10.5
+
+#---------------------------------
+# HMS HODO GOOD ADC OCCUPANCIES
+#---------------------------------
+
+TH1F hhodo_1x_good_adc_occ_pos 'HMS 1X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_pos 'HMS 1Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1y.numGoodPosAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_pos 'HMS 2X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_pos 'HMS 2Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2y.numGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_occ_neg 'HMS 1X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_neg 'HMS 1Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1y.numGoodNegAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_neg 'HMS 2X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_neg 'HMS 2Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2y.numGoodNegAdcHits 10 0.5 10.5
+
+#--------------------------------
+# HMS HODO GOOD TDC OCCUPANCIES
+#--------------------------------
+
+TH1F hhodo_1x_good_tdc_occ_pos 'HMS 1X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_pos 'HMS 1Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1y.numGoodPosTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_pos 'HMS 2X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_pos 'HMS 2Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2y.numGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_occ_neg 'HMS 1X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_neg 'HMS 1Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1y.numGoodNegTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_neg 'HMS 2X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_neg 'HMS 2Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2y.numGoodNegTdcHits 10 0.5 10.5
+
+#------------------------------
+# HMS HODO Good PULSE PEDESTAL
+#------------------------------
+
+TH2F hhodo_1x_good_pped_vs_pmt_pos 'HMS 1X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodPosAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_pos 'HMS 1Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodPosAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_pos 'HMS 2X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodPosAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_pos 'HMS 2Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodPosAdcPed>0.0
+
+TH2F hhodo_1x_good_pped_vs_pmt_neg 'HMS 1X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodNegAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_neg 'HMS 1Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodNegAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_neg 'HMS 2X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodNegAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_neg 'HMS 2Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodNegAdcPed>0.0
+
+#------------------------------
+# HMS HODO Good PULSE INTEGRAL
+#------------------------------
+
+TH2F hhodo_1x_good_pi_vs_pmt_pos 'HMS 1X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_pos 'HMS 1Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_pos 'HMS 2X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_pos 'HMS 2Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodPosAdcPulseInt>0.0
+
+TH2F hhodo_1x_good_pi_vs_pmt_neg 'HMS 1X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_neg 'HMS 1Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_neg 'HMS 2X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_neg 'HMS 2Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodNegAdcPulseInt>0.0
+
+#-------------------------------
+# HMS HODO Good PULSE AMPLITUDE 
+#-------------------------------
+
+TH2F hhodo_1x_good_pamp_vs_pmt_pos 'HMS 1X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_pos 'HMS 1Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_pos 'HMS 2X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_pos 'HMS 2Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodPosAdcPulseAmp>0.0
+
+TH2F hhodo_1x_good_pamp_vs_pmt_neg 'HMS 1X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_neg 'HMS 1Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_neg 'HMS 2X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_neg 'HMS 2Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodNegAdcPulseAmp>0.0
+
+#------------------------------
+# HMS HODO Good ADC PULSE TIME
+#------------------------------
+
+TH2F hhodo_1x_good_ptime_vs_pmt_pos 'HMS 1X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_pos 'HMS 1Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_pos 'HMS 2X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_pos 'HMS 2Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodPosAdcPulseTime>0.0
+
+TH2F hhodo_1x_good_ptime_vs_pmt_neg 'HMS 1X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_neg 'HMS 1Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_neg 'HMS 2X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_neg 'HMS 2Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodNegAdcPulseTime>0.0
+
+#-------------------------------------------------------------------
+# HMS HODO Good TDC TIME UNCORRECTED (uncorrected for time offsets)
+#-------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_pos 'HMS 1X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_pos 'HMS 1Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_pos 'HMS 2X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_pos 'HMS 2Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeUnCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_neg 'HMS 1X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_neg 'HMS 1Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_neg 'HMS 2X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_neg 'HMS 2Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeUnCorr>0.0
+
+#---------------------------------------------------------------
+# HMS HODO Good TDC TIME CORRECTED (corrected for time offsets)
+#---------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_pos 'HMS 1X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_pos 'HMS 1Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_pos 'HMS 2X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_pos 'HMS 2Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_neg 'HMS 1X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_neg 'HMS 1Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_neg 'HMS 2X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_neg 'HMS 2Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeCorr>0.0
+
+#--------------------------------------------------------------------
+# HMS HODO Good TDC TIME TOF CORRECTED (corrected for time of flight) 
+#--------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeTOFCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeTOFCorr>0.0
+
+#----------------------------------------------------------------
+# HMS HODO TRACKING, TIMING  AND  Particle ID (PID) - BETA (v/c) 
+#----------------------------------------------------------------
+
+TH1F hhodo_beta_notrack 'HMS Hodo Calculated Beta Without Track Info; Beta; Number of Entries / 0.02' H.hod.betanotrack 100 0 2.0 H.hod.betanotrack>0.0
+TH1F hhodo_beta 'HMS Hodo Beta; Beta; Number of Entries / 0.02' H.hod.beta 100 0 2.0 H.hod.beta>0.0
+TH1F hhodo_fpHitsTime 'HMS Hodo Focal Plane Time; Focal Plane Time (ns); Number of Entries / 1 ns' H.hod.fpHitsTime 90 0 90 
+TH1F hhodo_starttime 'HMS Hodo Start Time; Start Time (ns); Number of Entries / 1ns' H.hod.starttime 90 0 90
+TH1F hhodo_good_startime 'HMS Hodo Good Start Time (ns); Good Start Time (ns); Number of Entries / 1ns' H.hod.goodstarttime 90 0 90
+TH2F hhodo_xhod_vs_yhod 'HMS Hodo Projected X vs. Y; Y_hodo(cm) / 1mm; X_hodo(cm) / 1mm' H.hod.y_hodo H.hod.x_hodo 1000 -50 50 1000 -50 50
+
+#******************
+# HMS CALORIMETER
+#******************
+
+#------------------------
+# HMS CAL Good Occupancy
+#------------------------
+
+TH1F hcal_hA_good_occ_pos 'HMS hA+ Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodPosAdcHits 13 0.5 13.5  
+TH1F hcal_hA_good_occ_neg 'HMS hA- Good Occupancy; PMT Number; Number of Entries' H.cal.1pr.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hB_good_occ_pos 'HMS hB+ Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_occ_neg 'HMS hB- Good Occupancy; PMT Number; Number of Entries' H.cal.2ta.numGoodNegAdcHits 13 0.5 13.5 
+TH1F hcal_hC_good_occ_pos 'HMS hC+ Good Occupancy; PMT Number; Number of Entries' H.cal.3ta.numGoodPosAdcHits 13 0.5 13.5 
+TH1F hcal_hD_good_occ_pos 'HMS hD+ Good Occupancy; PMT Number; Number of Entries' H.cal.4ta.numGoodPosAdcHits 13 0.5 13.5 
+
+#---------------------------
+# HMS CAL Good Multiplicity
+#---------------------------
+ 
+TH1F hcal_hA_good_mult_pos 'HMS hA+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.1pr.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult_neg 'HMS hA- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.1pr.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hA_good_mult 'HMS hA Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.1pr.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hB_good_mult_pos 'HMS hB+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.2ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult_neg 'HMS hB- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits / PMT' H.cal.2ta.totNumGoodNegAdcHits 13 0.5 13.5
+TH1F hcal_hB_good_mult 'HMS hB Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cal.2ta.totnumGoodAdcHits 26 0.5 26.5
+
+TH1F hcal_hC_good_mult_pos 'HMS hC+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.3ta.totNumGoodPosAdcHits 13 0.5 13.5
+TH1F hcal_hD_good_mult_pos 'HMS hD+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits / PMT' H.cal.4ta.totNumGoodPosAdcHits 13 0.5 13.5
+
+#-------------------------------
+# HMS CAL Good Pulse Pedestals 
+#-------------------------------
+
+TH2F hcal_hA_good_pped_vs_pmt_pos 'HMS hA+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodPosAdcPed>0.0
+TH2F hcal_hA_good_pped_vs_pmt_neg 'HMS hA- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.1pr.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.1pr.goodNegAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_pos 'HMS hB+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodPosAdcPed>0.0
+TH2F hcal_hB_good_pped_vs_pmt_neg 'HMS hB- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.2ta.goodNegAdcPed 13 0.5 13.5 400 300 700 H.cal.2ta.goodNegAdcPed>0.0
+TH2F hcal_hC_good_pped_vs_pmt_pos 'HMS hC+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.3ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.3ta.goodPosAdcPed>0.0
+TH2F hcal_hD_good_pped_vs_pmt_pos 'HMS hD+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Units' [I+1] H.cal.4ta.goodPosAdcPed 13 0.5 13.5 400 300 700 H.cal.4ta.goodPosAdcPed>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Integrals 
+#-------------------------------
+
+TH2F hcal_hA_good_pi_vs_pmt_pos 'HMS hA+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodPosAdcPulseInt>0.0
+TH2F hcal_hA_good_pi_vs_pmt_neg 'HMS hA- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.1pr.goodNegAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_pos 'HMS hB+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hB_good_pi_vs_pmt_neg 'HMS hB- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.2ta.goodNegAdcPulseInt>0.0
+TH2F hcal_hC_good_pi_vs_pmt_pos 'HMS hC+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.3ta.goodPosAdcPulseInt>0.0
+TH2F hcal_hD_good_pi_vs_pmt_pos 'HMS hD+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseInt 13 0.5 13.5 600 0 30000 H.cal.4ta.goodPosAdcPulseInt>0.0
+
+#-------------------------------
+# HMS CAL Good Pulse Amplitudes 
+#-------------------------------
+
+TH2F hcal_hA_good_pamp_vs_pmt_pos 'HMS hA+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodPosAdcPulseAmp>0.0
+TH2F hcal_hA_good_pamp_vs_pmt_neg 'HMS hA- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.1pr.goodNegAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_pos 'HMS hB+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hB_good_pamp_vs_pmt_neg 'HMS hB- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.2ta.goodNegAdcPulseAmp>0.0
+TH2F hcal_hC_good_pamp_vs_pmt_pos 'HMS hC+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.3ta.goodPosAdcPulseAmp>0.0
+TH2F hcal_hD_good_pamp_vs_pmt_pos 'HMS hD+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseAmp 13 0.5 13.5 200 0 4000 H.cal.4ta.goodPosAdcPulseAmp>0.0
+
+#---------------------------
+# HMS CAL Good Pulse Times
+#--------------------------- 
+
+TH2F hcal_hA_good_ptime_vs_pmt_pos 'HMS hA+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodPosAdcPulseTime>0.0
+TH2F hcal_hA_good_ptime_vs_pmt_neg 'HMS hA- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.1pr.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.1pr.goodNegAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_pos 'HMS hB+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hB_good_ptime_vs_pmt_neg 'HMS hB- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.2ta.goodNegAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.2ta.goodNegAdcPulseTime>0.0
+TH2F hcal_hC_good_ptime_vs_pmt_pos 'HMS hC+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.3ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.3ta.goodPosAdcPulseTime>0.0
+TH2F hcal_hD_good_ptime_vs_pmt_pos 'HMS hD+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1] H.cal.4ta.goodPosAdcPulseTime 13 0.5 13.5 350 0 3500 H.cal.4ta.goodPosAdcPulseTime>0.0
+
+#-----------------------------------------------
+# HMS CAL ENERGY DEPOSITION vs. PMT HISTOGRAMS 
+# (calib consts (GAIN) are in GeV/ADC units )
+#-----------------------------------------------
+
+TH2F hA_Epos_vs_pmt 'HMS hA+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.epos 13 0.5 13.5 200 0 2 H.cal.1pr.epos>0.0
+TH2F hA_Eneg_vs_pmt 'HMS hA- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.eneg 13 0.5 13.5 200 0 2 H.cal.1pr.eneg>0.0
+TH2F hA_Emean_vs_pmt 'HMS hA Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.1pr.emean 13 0.5 13.5 300 0 3 H.cal.1pr.emean>0.0
+
+
+TH2F hB_Epos_vs_pmt 'HMS hB+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.epos 13 0.5 13.5 200 0 2 H.cal.2ta.epos>0.0
+TH2F hB_Eneg_vs_pmt 'HMS hB- Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.eneg 13 0.5 13.5 200 0 2 H.cal.2ta.eneg>0.0
+TH2F hB_Emean_vs_pmt 'HMS hB Mean Energy Deposition vs. PMT Number; PMT Number; Mean Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.2ta.emean 13 0.5 13.5 300 0 3 H.cal.2ta.emean>0.0
+
+TH2F hC_Epos_vs_pmt 'HMS hC+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.3ta.epos 13 0.5 13.5 200 0 2 H.cal.3ta.epos>0.0
+TH2F hD_Epos_vs_pmt 'HMS hD+ Energy Deposition vs. PMT Number; PMT Number; Energy Deposition (0.01 GeV / ADC Units)' [I+1] H.cal.4ta.epos 13 0.5 13.5 200 0 2 H.cal.4ta.epos>0.0
+
+#------------------------------------
+# HMS CAL ENERGY DEPOSITION / Plane
+#------------------------------------
+
+TH1F hcal_hA_Eplane_pos 'HMS hA+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_pos 200 0 2 H.cal.1pr.eplane_pos>0.0
+TH1F hcal_hA_Eplane_neg 'HMS hA- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane_neg 200 0 2 H.cal.1pr.eplane_neg>0.0
+TH1F hcal_hA_Eplane 'HMS hA Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.1pr.eplane 300 0 3 H.cal.1pr.eplane>0.0
+
+TH1F hcal_hB_Eplane_pos 'HMS hB+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_pos 200 0 2 H.cal.2ta.eplane_pos>0.0
+TH1F hcal_hB_Eplane_neg 'HMS hB- Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane_neg 200 0 2 H.cal.2ta.eplane_neg>0.0
+TH1F hcal_hB_Eplane 'HMS hB Total Energy Deposition; Total Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.2ta.eplane 300 0 3 H.cal.2ta.eplane>0.0
+
+TH1F hcal_hC_Eplane_pos 'HMS hC+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.3ta.eplane_pos 200 0 2 H.cal.3ta.eplane_pos>0.0
+TH1F hcal_hD_Eplane_pos 'HMS hD+ Energy Deposition; Energy Deposition (GeV); Number of Entries / 0.01 GeV' H.cal.4ta.eplane_pos 200 0 2 H.cal.4ta.eplane_pos>0.0
+
+
+
+#********************
+# Trigger Apparatus *
+#********************
+
+#---------------------------
+# HMS Raw Hodo TRIG TDC Time
+#---------------------------
+
+TH1F htrig_h1x_tdc 'HMS h1X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h1y_tdc 'HMS h1Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1Y_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2x_tdc 'HMS h2X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2X_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2y_tdc 'HMS h2Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2Y_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_h1T_tdc 'HMS h1X/h1Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1T_tdcTimeRaw 1500 0 1500
+TH1F htrig_h2T_tdc 'HMS h2X/h2Y Coincidence TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h2T_tdcTimeRaw 1500 0 1500
+
+TH1F htrig_hT1_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 2); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT1_tdcTimeRaw 1500 0 1500
+TH1F htrig_hT2_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 20); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT2_tdcTimeRaw 1500 0 1500
+
+#----------------------------
+# HMS Raw DC Reference Time
+#----------------------------
+
+TH1F htrig_hdc_ref1 'HMS DC Reference Time 1; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF1_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref2 'HMS DC Reference Time 2; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF2_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref3 'HMS DC Reference Time 3; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF3_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref4 'HMS DC Reference Time 4; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF4_tdcTimeRaw 15000 0 15000
+
+
+TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF2_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+
+#--------------------------------------------
+# HMS Calo Layers TRIG Pulse Profile
+#--------------------------------------------
+
+TH1F htrig_hasum_adc_pped 'HMS hAsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hASUM_adcPed 5000 0 5000
+TH1F htrig_hasum_adc_pi 'HMS hAsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hASUM_adcPulseInt 800 0 40000
+TH1F htrig_hasum_adc_pamp 'HMS hAsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hASUM_adcPulseAmp 205 0 4100
+TH1F htrig_hasum_tdc 'HMS hAsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTime 4000 0 40000
+
+TH1F htrig_hbsum_adc_pped 'HMS hBsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hBSUM_adcPed 5000 0 5000
+TH1F htrig_hbsum_adc_pi 'HMS hBsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hBSUM_adcPulseInt 800 0 40000
+TH1F htrig_hbsum_adc_pamp 'HMS hBsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hBSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hbsum_tdc 'HMS hBsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hcsum_adc_pped 'HMS hCsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCSUM_adcPed 5000 0 5000
+TH1F htrig_hcsum_adc_pi 'HMS hCsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcsum_adc_pamp 'HMS hCsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcsum_tdc 'HMS hCsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hdsum_adc_pped 'HMS hDsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hDSUM_adcPed 5000 0 5000
+TH1F htrig_hdsum_adc_pi 'HMS hDsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hDSUM_adcPulseInt 800 0 40000
+TH1F htrig_hdsum_adc_pamp 'HMS hDsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hDSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hdsum_tdc 'HMS hDsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTime 4000 0 40000
+
+#----------------------------------
+# HMS PreShower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hPSHWR_adcPed 5000 0 5000
+TH1F htrig_hpreShwr_adc_pi 'HMS Pre-Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hPSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hPSHWR_adcPulseAmp 205 0 4100
+TH1F htrig_hpreShwr_tdc 'HMS Pre-Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWR_tdcTime 4000 0 40000
+
+#-----------------------------
+# HMS PreShower TRIG LOW/HIGH  
+#-----------------------------
+
+TH1F htrig_hpreShwrLow_tdc 'HMS hpreShwrLow TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRLO_tdcTimeRaw 4000 0 40000
+TH1F htrig_hpreShwrHigh_tdc 'HMS hpreShwrHigh TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRHI_tdcTimeRaw 4000 0 40000
+
+
+#----------------------------------
+# HMS Shower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hSHWR_adcPed 5000 0 5000
+TH1F htrig_hshwr_adc_pi 'HMS Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hSHWR_adcPulseInt 800 0 40000
+TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hSHWR_adcPulseAmp 205 0 4100
+TH1F htrig_hshwr_tdc 'HMS Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 40000
+
+#---------------------------------------
+# HMS Gas Cherenkov TRIG Pulse Profile
+#---------------------------------------
+
+TH1F htrig_hcersum_adc_pped 'HMS Cherenkov Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hCERSUM_adcPed 5000 0 5000
+TH1F htrig_hcersum_adc_pi 'HMS Cherenkov Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hCERSUM_adcPulseInt 800 0 40000
+TH1F htrig_hcersum_adc_pamp 'HMS Cherenkov Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hCERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_hcersum_tdc 'HMS Cherenkov Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCERSUM_tdcTime 4000 0 40000
+
+
+#------------------------------------------
+# HMS Aerogel TRIG Pulse Profile
+#------------------------------------------
+
+TH1F htrig_haersum_adc_pped 'HMS Aerogel Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 1 ADC Units;' T.hms.hAERSUM_adcPed 5000 0 5000
+TH1F htrig_haersum_adc_pi 'HMS Aerogel Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 50 ADC Units;' T.hms.hAERSUM_adcPulseInt 800 0 40000
+TH1F htrig_haersum_adc_pamp 'HMS Aerogel Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 20 ADC Units;' T.hms.hAERSUM_adcPulseAmp 205 0 4100
+TH1F htrig_haersum_tdc 'HMS Aerogel Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hAERSUM_tdcTime 4000 0 40000
+
+
+#-------------
+# Fast Raster 
+#-------------
+
+# Assume FADC range is set to 1V and the integration is 25 channels
+# Offset in the FADC is about 0.122V or 500 channels.
+
+formula FRXA_V T.hms.pFRXA_adcPulseIntRaw*(1./4096.)/25.
+formula FRXB_V T.hms.pFRXB_adcPulseIntRaw*(1./4096.)/25.
+formula FRYA_V T.hms.pFRYA_adcPulseIntRaw*(1./4096.)/25.
+formula FRYB_V T.hms.pFRYB_adcPulseIntRaw*(1./4096.)/25.
+
+TH1F hFRXA 'HMS FRXA; FRXA RAW ADC (chan); Counts' T.hms.pFRXA_adcPulseIntRaw 1000 0 100000
+TH1F hFRXA_V 'HMS FRXA; FRXA RAW ADC (Volts); Counts' FRXA_V 1000 0 1.0
+TH1F hFRXB 'HMS FRXB; FRXB RAW ADC (chan); Counts' T.hms.pFRXB_adcPulseIntRaw 1000 0 100000
+TH1F hFRXB_V 'HMS FRXB; FRXB RAW ADC (Volts); Counts' FRXB_V 1000 0 1.0
+TH1F hFRYA 'HMS FRYA; FRYA RAW ADC (chan); Counts' T.hms.pFRYA_adcPulseIntRaw 1000 0 100000
+TH1F hFRYA_V 'HMS FRYA; FRYA RAW ADC (Volts); Counts' FRYA_V 1000 0 1.0
+TH1F hFRYB 'HMS FRYB; FRYB RAW ADC (chan); Counts' T.hms.pFRYB_adcPulseIntRaw 1000 0 100000
+TH1F hFRYB_V 'HMS FRYB; FRYB RAW ADC (Volts); Counts' FRYB_V 1000 0 1.0
+TH2F hFRA_XvsY 'HMSFRA_XvsY; FRXA RAW ADC (Volts); FRYA RAW ADC (Volts)' FRXA_V FRYA_V 1000 0 1.0 1000 0 1.0
+TH2F hFRB_XvsY 'HMSFRB_XvsY; FRXB RAW ADC (Volts); FRYB RAW ADC (Volts)' FRXB_V FRYB_V 1000 0 1.0 1000 0 1.0
+
diff --git a/DEF-files/HMS/STACK/hstackana_cuts.def b/DEF-files/HMS/STACK/hstackana_cuts.def
new file mode 100644
index 0000000000000000000000000000000000000000..f787145d2ffbc7154a600f29caf4340ded912764
--- /dev/null
+++ b/DEF-files/HMS/STACK/hstackana_cuts.def
@@ -0,0 +1,208 @@
+# Demo cuts for hodtest
+#
+
+Block: RawDecode
+
+Pedestal_event     g.evtyp==4
+scalar_event       g.evtyp==0
+HMS_event          g.evtyp==1
+#SHMS_event        g.evtyp==2
+#coin_event        g.evtyp==3
+tr4_event          g.evtyp==4
+tr5_event          g.evtyp==5
+tr6_event          g.evtyp==6
+misc_event         g.evtyp>=10
+#hmscoin_event      g.evtyp==1||g.evtyp==3
+#shmscoin_event     g.evtyp==2||g.evtyp==3
+#all_event          g.evtyp==1||g.evtyp==2||g.evtyp==3
+
+RawDecode_master  1
+
+Block: Decode
+
+#all_trigs             g.evtyp==1 || g.evtyp==2 || g.evtyp==3
+#hms_shms_trig          g.evtyp==1 || g.evtyp==2
+#hms_coin_trig         g.evtyp==1 || g.evtyp==3
+
+
+Decode_master     HMS_event
+
+Block: CoarseTracking
+CoarseTracking_master HMS_event
+
+#add cuts to stricter times and apply them to drift distances (HMS 6 GeV Drift Chambers)
+time_cut1                            H.dc.1x1.time > 0 && H.dc.1x1.time < 250
+time_cut2                            H.dc.1y1.time > 0 && H.dc.1y1.time < 250
+time_cut3                            H.dc.1u1.time > 0 && H.dc.1u1.time < 250
+time_cut4                            H.dc.1v1.time > 0 && H.dc.1v1.time < 250
+time_cut5                            H.dc.1y2.time > 0 && H.dc.1y2.time < 250
+time_cut6                            H.dc.1x2.time > 0 && H.dc.1x2.time < 250
+time_cut7                            H.dc.2x1.time > 0 && H.dc.2x1.time < 250
+time_cut8                            H.dc.2y1.time > 0 && H.dc.1y1.time < 250
+time_cut9                            H.dc.2u1.time > 0 && H.dc.2u1.time < 250
+time_cut10                            H.dc.2v1.time > 0 && H.dc.2v1.time < 250
+time_cut11                            H.dc.2y2.time > 0 && H.dc.2y2.time < 250
+time_cut12                            H.dc.2x2.time > 0 && H.dc.2x2.time < 250
+
+
+
+hmsDC1Planes_large  (H.dc.1x1.nhit+H.dc.1y1.nhit+H.dc.1u1.nhit+H.dc.1v1.nhit+H.dc.1x2.nhit+H.dc.1y2.nhit) >20
+hmsDC2Planes_large  (H.dc.2x1.nhit+H.dc.2y1.nhit+H.dc.2u1.nhit+H.dc.2v1.nhit+H.dc.2x2.nhit+H.dc.2y2.nhit) >20
+
+hmsDC1_1hit_x1                H.dc.1x1.nhit == 1
+hmsDC1_1hit_y1                H.dc.1y1.nhit == 1
+hmsDC1_1hit_u1                H.dc.1u1.nhit == 1
+hmsDC1_1hit_v1                H.dc.1v1.nhit == 1
+hmsDC1_1hit_y2                H.dc.1y2.nhit == 1
+hmsDC1_1hit_x2                H.dc.1x2.nhit == 1
+
+hmsDC2_1hit_x1                H.dc.2x1.nhit == 1
+hmsDC2_1hit_y1                H.dc.2y1.nhit == 1
+hmsDC2_1hit_u1                H.dc.2u1.nhit == 1
+hmsDC2_1hit_v1                H.dc.2v1.nhit == 1
+hmsDC2_1hit_y2                H.dc.2y2.nhit == 1
+hmsDC2_1hit_x2                H.dc.2x2.nhit == 1
+
+h1hit1                H.dc.1x1.nhit >= 1
+h1hit2                H.dc.1y1.nhit >= 1
+h1hit3                H.dc.1u1.nhit >= 1
+h1hit4                H.dc.1v1.nhit >= 1
+h1hit5                H.dc.1y2.nhit >= 1
+h1hit6                H.dc.1x2.nhit >= 1
+
+h2hit1                H.dc.2x1.nhit >= 1
+h2hit2                H.dc.2y1.nhit >= 1
+h2hit3                H.dc.2u1.nhit >= 1
+h2hit4                H.dc.2v1.nhit >= 1
+h2hit5                H.dc.2y2.nhit >= 1
+h2hit6                H.dc.2x2.nhit >= 1
+
+hmsDC1Planes6hits   (H.dc.1x1.nhit+H.dc.1y1.nhit+H.dc.1u1.nhit+H.dc.1v1.nhit+H.dc.1x2.nhit+H.dc.1y2.nhit) ==6
+hmsDC2Planes6hits   (H.dc.2x1.nhit+H.dc.2y1.nhit+H.dc.2u1.nhit+H.dc.2v1.nhit+H.dc.2x2.nhit+H.dc.2y2.nhit )==6
+hmsDC1_5hits_x1     hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_6hits_x1     h1hit1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_5hits_y1     hmsDC1_1hit_x1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_6hits_y1     h1hit2&&hmsDC1_1hit_x1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_5hits_u1     hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_6hits_u1     h1hit3&&hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_5hits_v1     hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2 
+hmsDC1_6hits_v1     h1hit4&&hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_x2&&hmsDC1_1hit_y2
+hmsDC1_5hits_x2     hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_y2
+hmsDC1_6hits_x2     h1hit6&&hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_y2
+hmsDC1_5hits_y2     hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2
+hmsDC1_6hits_y2     h1hit5&&hmsDC1_1hit_x1&&hmsDC1_1hit_y1&&hmsDC1_1hit_u1&&hmsDC1_1hit_v1&&hmsDC1_1hit_x2
+
+hmsDC2_5hits_x1     hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_6hits_x1     h2hit1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_5hits_y1     hmsDC2_1hit_x1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_6hits_y1     h2hit2&&hmsDC2_1hit_x1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_5hits_u1     hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_6hits_u1     h2hit3&&hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_5hits_v1     hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2 
+hmsDC2_6hits_v1     h2hit4&&hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_x2&&hmsDC2_1hit_y2
+hmsDC2_5hits_x2     hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_y2
+hmsDC2_6hits_x2     h2hit6&&hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_y2
+hmsDC2_5hits_y2     hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2
+hmsDC2_6hits_y2     h2hit5&&hmsDC2_1hit_x1&&hmsDC2_1hit_y1&&hmsDC2_1hit_u1&&hmsDC2_1hit_v1&&hmsDC2_1hit_x2
+
+
+
+
+hms1HitsLt            H.dc.Ch1.nhit <= H.dc.Ch1.maxhits && g.evtyp==1
+hms2HitsLt            H.dc.Ch2.nhit <= H.dc.Ch2.maxhits && g.evtyp==1
+hmsHitsLt             H.dc.Ch1.nhit <= H.dc.Ch1.maxhits && H.dc.Ch2.nhit <= H.dc.Ch2.maxhits && g.evtyp==1
+hmsDC1PlanesGT        (h1hit1 + h1hit2 + h1hit3 + h1hit4 + h1hit5 + h1hit6 )>=5
+hmsDC2PlanesGT        (h2hit1 + h2hit2 + h2hit3 + h2hit4 + h2hit5 + h2hit6 )>=5
+hmsPlanesGT           hmsDC1PlanesGT && hmsDC2PlanesGT
+hmsHitsPlanes         (H.dc.Ch1.nhit <= H.dc.Ch1.maxhits) && (H.dc.Ch2.nhit <= H.dc.Ch2.maxhits) && hmsPlanesGT
+hSpacePoints          H.dc.Ch1.spacepoints >= 1 && H.dc.Ch2.spacepoints >=1
+hSpacePointsStub      H.dc.stubtest==1 && H.dc.Ch1.spacepoints >=1 && H.dc.Ch2.spacepoints >=1
+hFoundTrack           H.dc.ntrack>0 
+hStubLT               H.dc.stubtest==1
+f1HSpacePoints        hms1HitsLt && hmsDC1PlanesGT && H.dc.Ch1.spacepoints==0 && g.evtyp==1
+f2HSpacePoints        hms2HitsLt && hmsDC2PlanesGT && H.dc.Ch2.spacepoints==0 && g.evtyp==1
+hTest1                hmsHitsPlanes && (!hSpacePoints)
+hTest2                hSpacePoints && (!hStubLT)
+
+Block: CoarseReconstruct
+CoarseReconstruct_master HMS_event
+
+Block: Tracking
+Tracking_master  HMS_event
+
+Block: Reconstruct
+Reconstruct_master HMS_event
+cer_pmt1_elec        H.cer.npe[0]>.5
+cer_pmt2_elec        H.cer.npe[0]>.5
+cer_elec       H.cer.npeSum>.5
+cer_pi       H.cer.npeSum<.5
+
+HMSScinGood           H.hod.goodscinhit == 1
+
+HMSScinShould         HMSScinGood 
+HMSScinShoulde        HMSScinGood && H.cal.etotnorm > 0.6&& H.cal.etotnorm < 2.0&& H.cer.npeSum > 0.5
+HMSScinShouldh        HMSScinGood && H.cal.etotnorm <0.6&& H.cal.etotnorm>0.0&& H.cer.npeSum < 0.5
+
+HMSScinDid            HMSScinShould && H.dc.ntrack > 0
+HMSScinDide           HMSScinShoulde && H.dc.ntrack > 0
+HMSScinDidh           HMSScinShouldh && H.dc.ntrack > 0
+
+
+
+goodHDC1x1            H.dc.1x1.nhit > 0 && H.dc.1x1.nhit < 3
+goodHDC1y1            H.dc.1y1.nhit > 0 && H.dc.1y1.nhit < 3
+goodHDC1u1            H.dc.1u1.nhit > 0 && H.dc.1u1.nhit < 3
+goodHDC1v1            H.dc.1v1.nhit > 0 && H.dc.1v1.nhit < 3
+goodHDC1y2            H.dc.1y2.nhit > 0 && H.dc.1y2.nhit < 3
+goodHDC1x2            H.dc.1x2.nhit > 0 && H.dc.1x2.nhit < 3
+
+goodHDC2x1            H.dc.2x1.nhit > 0 && H.dc.2x1.nhit < 3
+goodHDC2y1            H.dc.2y1.nhit > 0 && H.dc.2y1.nhit < 3
+goodHDC2u1            H.dc.2u1.nhit > 0 && H.dc.2u1.nhit < 3
+goodHDC2v1            H.dc.2v1.nhit > 0 && H.dc.2v1.nhit < 3
+goodHDC2y2            H.dc.2y2.nhit > 0 && H.dc.2y2.nhit < 3
+goodHDC2x2            H.dc.2x2.nhit > 0 && H.dc.2x2.nhit < 3
+
+goodHDC1              goodHDC1x1  && goodHDC1y1 && goodHDC1u1 && goodHDC1v1 && goodHDC1y2 && goodHDC1x2 
+goodHDC2              goodHDC2x1  && goodHDC2y1 && goodHDC2u1 && goodHDC2v1 && goodHDC2y2 && goodHDC2x2 
+bothGood              goodHDC1 && goodHDC2
+
+realhdc1x1            goodHDC1x1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc1y1            goodHDC1y1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc1u1            goodHDC1u1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc1v1            goodHDC1v1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc1y2            goodHDC1y2 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc1x2            goodHDC1x2 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc2x1            goodHDC2x1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc2y1            goodHDC2y1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc2u1            goodHDC2u1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc2v1            goodHDC2v1 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc2y2            goodHDC2y2 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+realhdc2x2            goodHDC2x2 && ((H.dc.Ch1.spacepoints+H.dc.Ch2.spacepoints)>0)
+
+hFound1Track          H.dc.ntrack == 1
+hFound2Track          H.dc.ntrack == 2
+hFound3Track          H.dc.ntrack == 3
+hFound4Track          H.dc.ntrack == 4
+
+hCleanTrack           H.gtr.index > -1
+1hCleanTrack          H.gtr.index == 0
+2hCleanTrack          H.gtr.index == 1
+3hCleanTrack          H.gtr.index == 2
+4hCleanTrack          H.gtr.index == 3
+
+anyhs1x               H.hod.1x.nhits > 0
+anyhs1y               H.hod.1y.nhits > 0
+anyhs2x               H.hod.2x.nhits > 0
+anyhs2y               H.hod.2y.nhits > 0
+
+goodhs1x              H.hod.1x.nhits > 0 && H.hod.1x.nhits < 3
+goodhs1y              H.hod.1y.nhits > 0 && H.hod.1y.nhits < 3
+goodhs1               goodhs1x && goodhs1y
+goodhs2x              H.hod.2x.nhits > 0 && H.hod.2x.nhits < 3
+goodhs2y              H.hod.2y.nhits > 0 && H.hod.2y.nhits < 3
+goodhs2               goodhs2x && goodhs2y
+goodhs1s2             goodhs1 && goodhs2
+
+Block: Physics
+Physics_master HMS_event
diff --git a/DEF-files/HMS/STACK/merge_def_files.py b/DEF-files/HMS/STACK/merge_def_files.py
new file mode 100644
index 0000000000000000000000000000000000000000..e89af1974f8214a2f6e7ad422391e4bf0035c74c
--- /dev/null
+++ b/DEF-files/HMS/STACK/merge_def_files.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+
+# Python script to merge multiple def-files into single def-file
+import os
+import sys
+
+if (len(sys.argv) != 3 or sys.argv[1] == '-h'):
+    print('Usage:')
+    print('  merge_def_files.py merge_list.txt outfile.def')
+    sys.exit()
+
+defFileList   = open(sys.argv[1], 'r')
+defFile       = defFileList.readlines()
+defFilePath   = []
+mergedDefFile = sys.argv[2]
+
+for defFileName in defFile:
+    defFilePath.append((defFileName).strip())
+
+with open(mergedDefFile, 'w') as outFile:
+    for defFileName in defFilePath:
+        outFile.write('\n\n')
+        with open(defFileName) as inFile:
+            for line in inFile:
+                outFile.write(line)
diff --git a/DEF-files/HMS/STACK/merge_list.txt b/DEF-files/HMS/STACK/merge_list.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b5789849fbd664e3c7b58703153a5b3a8e8a0660
--- /dev/null
+++ b/DEF-files/HMS/STACK/merge_list.txt
@@ -0,0 +1,6 @@
+BLOCK/hblock_vars.def
+CER/hcer_histos.def
+DC/hdc_6gev_histos.def
+HODO/hhodo_histos.def
+CAL/hcal_histos.def
+TRIG/htrig_histos.def
diff --git a/DEF-files/HMS/TEST_STANDS/AERO/haeroana.def b/DEF-files/HMS/TEST_STANDS/AERO/haeroana.def
new file mode 100644
index 0000000000000000000000000000000000000000..218cc193c2f5134c8ec83bcd5bcf66263c38b438
--- /dev/null
+++ b/DEF-files/HMS/TEST_STANDS/AERO/haeroana.def
@@ -0,0 +1,70 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block H.aero.*
+block T.hms.*
+
+#HMS AERO FPGA Error Flag
+TH2F haero_adcErrFlg2D_pos 'HMS Aero+ FPGA Error Flag; PMT Number; Error Flag' H.aero.posAdcCounter H.aero.posAdcErrorFlag 8 0.5 8.5 2 -0.5 1.5
+TH2F haero_adcErrFlg2D_neg 'HMS Aero- FPGA Error Flag; PMT Number; Error Flag' H.aero.negAdcCounter H.aero.negAdcErrorFlag 8 0.5 8.5 2 -0.5 1.5
+
+#HMS AERO RAW Occupancy and Multiplicity
+TH1F haero_raw_occ_pos 'HMS Aero+ Raw Occupancy; PMT Number; Number of Raw +ADC Hits' H.aero.posAdcCounter 8 0.5 8.5
+TH1F haero_raw_occ_neg 'HMS Aero- Raw Occupancy; PMT Number; Number of Raw -ADC Hits' H.aero.negAdcCounter 8 0.5 8.5
+TH1F haero_raw_mult_pos 'HMS Aero+ Raw Multiplicity; Number of PMTs Hit; Total Number of Raw +ADC Hits' H.aero.totNumPosAdcHits 8 0.5 8.5
+TH1F haero_raw_mult_neg 'HMS Aero- Raw Multiplicity; Number of PMTs Hit; Total Number of Raw -ADC Hits' H.aero.totNumNegAdcHits 8 0.5 8.5
+TH1F haero_raw_mult 'HMS Aero Raw Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits' H.aero.totnumAdcHits 14 0.5 14.5
+
+
+#HMS GOOD Occupancy and Multiplicity
+TH1F haero_good_occ_pos 'HMS Aero+ Good Occupancy; PMT Number; Number of Good +ADC Hits' H.aero.numGoodPosAdcHits 8 0.5 8.5
+TH1F haero_good_occ_neg 'HMS Aero- Good Occupancy; PMT Number; Number of Good -ADC Hits' H.aero.numGoodNegAdcHits 8 0.5 8.5
+TH1F haero_good_mult_pos 'HMS Aero+ Good Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.aero.totNumGoodPosAdcHits 8 0.5 8.5
+TH1F haero_good_mult_neg 'HMS Aero- Good Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.aero.totNumGoodNegAdcHits 8 0.5 8.5
+TH1F haero_good_mult 'HMS Aero Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.aero.totnumGoodAdcHits 14 0.5 14.5
+
+
+#HMS AERO TOTAL NUMBER OF P.E.
+TH1F haero_tot_npe_pos 'HMS Aero+ Total Number of Photoelectrons; Total Number of Pos Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.posNpeSum 200 0 100 H.aero.posNpeSum>0.0 
+TH1F haero_tot_npe_neg 'HMS Aero- Total Number of Photoelectrons; Total Number of Neg Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.negNpeSum 200 0 100 H.aero.negNpeSum>0.0 
+TH1F haero_tot_npe 'HMS Aero Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.aero.npeSum 200 0 100 H.aero.npeSum>0.0 
+
+
+#HMS AERO Number of P.E. / PMT
+TH2F haero_npe_pos 'HMS Aero+ Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.aero.posNpe 8 0.5 8.5 200 0 100 H.aero.posNpe>0.0 
+TH2F haero_npe_neg 'HMS Aero- Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.aero.negNpe 8 0.5 8.5 200 0 100 H.aero.negNpe>0.0 
+
+
+#HMS AERO RAW Pulse Pedestal / Integral  / Amplitude / Time
+TH2F haero_raw_pped_vs_pmt_pos 'HMS Aero+ Raw Pulse Pedestal vs. PMT Number; PMT Number; Raw Pulse Pedestal / 1 ADC Units'  H.aero.posAdcCounter H.aero.posAdcPedRaw 8 0.5 8.5 10000 0 10000
+TH2F haero_raw_pi_vs_pmt_pos 'HMS Aero+ Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' H.aero.posAdcCounter H.aero.posAdcPulseIntRaw 8 0.5 8.5 650 0 32500
+TH2F haero_raw_pamp_vs_pmt_pos 'HMS Aero+ Raw Pulse Amplitude vs. PMT Number; PMT Number; Raw Pulse Amplitude / 20 ADC Units' H.aero.posAdcCounter H.aero.posAdcPulseAmpRaw 8 0.5 8.5 410 0 8200
+TH2F haero_raw_ptime_vs_pmt_pos 'HMS Aero+ Raw Pulse Time vs. PMT Number; PMT Number; Raw Pulse Time / 10 ADC Units' H.aero.posAdcCounter H.aero.posAdcPulseTimeRaw 8 0.5 8.5 650 0 6500
+
+TH2F haero_raw_pped_vs_pmt_neg 'HMS Aero- Raw Pulse Pedestal vs. PMT Number; PMT Number; Raw Pulse Pedestal / 1 ADC Units'  H.aero.negAdcCounter H.aero.negAdcPedRaw 8 0.5 8.5 10000 0 10000
+TH2F haero_raw_pi_vs_pmt_neg 'HMS Aero- Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' H.aero.negAdcCounter H.aero.negAdcPulseIntRaw 8 0.5 8.5 650 0 32500
+TH2F haero_raw_pamp_vs_pmt_neg 'HMS Aero- Raw Pulse Amplitude vs. PMT Number; PMT Number; Raw Pulse Amplitude / 20 ADC Units' H.aero.negAdcCounter H.aero.negAdcPulseAmpRaw 8 0.5 8.5 410 0 8200
+TH2F haero_raw_ptime_vs_pmt_neg 'HMS Aero- Raw Pulse Time vs. PMT Number; PMT Number;  Raw Pulse Time / 10 ADC Units' H.aero.negAdcCounter H.aero.negAdcPulseTimeRaw 8 0.5 8.5 650 0 6500
+
+
+#HMS AERO Pulse Pedestal / Integral  / Amplitude 
+TH2F haero_pped_vs_pmt_pos 'HMS Aero+ Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' H.aero.posAdcCounter H.aero.posAdcPed 8 0.5 8.5 400 300 700
+TH2F haero_pi_vs_pmt_pos 'HMS Aero+ Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' H.aero.posAdcCounter H.aero.posAdcPulseInt 8 0.5 8.5 600 0 30000
+TH2F haero_pamp_vs_pmt_pos 'HMS Aero+ Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' H.aero.posAdcCounter H.aero.posAdcPulseAmp 8 0.5 8.5 400 0 8000
+
+TH2F haero_pped_vs_pmt_neg 'HMS Aero- Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' H.aero.negAdcCounter H.aero.negAdcPed 8 0.5 8.5 400 300 700
+TH2F haero_pi_vs_pmt_neg 'HMS Aero- Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' H.aero.negAdcCounter H.aero.negAdcPulseInt 8 0.5 8.5 600 0 30000
+TH2F haero_pamp_vs_pmt_neg 'HMS Aero- Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' H.aero.negAdcCounter H.aero.negAdcPulseAmp 8 0.5 8.5 400 0 8000
+
+
+#HMS AERO GOOD Pulse Pedestal / Integral / Raw Integral / Amplitude / Time :: GOOD --> (passed errorFlag cut and pulsetime cuts oN Min/Max ADC Time Window) 
+TH2F haero_good_pped_vs_pmt_pos 'HMS Aero+ Good Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' [I+1] H.aero.goodPosAdcPed 8 0.5 8.5 400 300 700  H.aero.goodPosAdcPed>0.0
+TH2F haero_good_pi_vs_pmt_pos 'HMS Aero+ Good Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' [I+1] H.aero.goodPosAdcPulseInt 8 0.5 8.5 600 0 30000 H.aero.goodPosAdcPulseInt>0.0
+TH2F haero_good_raw_pi_vs_pmt_pos 'HMS Aero+ Good Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' [I+1] H.aero.goodPosAdcPulseIntRaw 8 0.5 8.5 600 0 30000 H.aero.goodPosAdcPulseIntRaw>0.0
+TH2F haero_good_pamp_vs_pmt_pos 'HMS Aero+ Good Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' [I+1] H.aero.goodPosAdcPulseAmp 8 0.5 8.5 200 0 4000 H.aero.goodPosAdcPulseAmp>0.0
+TH2F haero_good_ptime_vs_pmt_pos 'HMS Aero+ Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.aero.goodPosAdcPulseTime 8 0.5 8.5 350 0 3500 H.aero.goodPosAdcPulseTime>0.0
+
+TH2F haero_good_pped_vs_pmt_neg 'HMS Aero- Good Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' [I+1] H.aero.goodNegAdcPed 8 0.5 8.5 400 300 700 H.aero.goodNegAdcPed>0.0
+TH2F haero_good_pi_vs_pmt_neg 'HMS Aero- Good Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' [I+1] H.aero.goodNegAdcPulseInt 8 0.5 8.5 600 0 30000 H.aero.goodNegAdcPulseInt>0.0
+TH2F haero_good_raw_pi_vs_pmt_neg 'HMS Aero- Good Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' [I+1] H.aero.goodNegAdcPulseIntRaw 8 0.5 8.5 600 0 30000 H.aero.goodNegAdcPulseIntRaw>0.0
+TH2F haero_good_pamp_vs_pmt_neg 'HMS Aero- Good Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' [I+1] H.aero.goodNegAdcPulseAmp 8 0.5 8.5 200 0 4000 H.aero.goodNegAdcPulseAmp>0.0
+TH2F haero_good_ptime_vs_pmt_neg 'HMS Aero- Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.aero.goodNegAdcPulseTime 8 0.5 8.5 350 0 3500 H.aero.goodNegAdcPulseTime>0.0
diff --git a/DEF-files/HMS/TEST_STANDS/AERO/haeroana_cuts.def b/DEF-files/HMS/TEST_STANDS/AERO/haeroana_cuts.def
new file mode 100644
index 0000000000000000000000000000000000000000..5add84a3159e6f172fdc03285b01e56eac648310
--- /dev/null
+++ b/DEF-files/HMS/TEST_STANDS/AERO/haeroana_cuts.def
@@ -0,0 +1,14 @@
+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/HMS/CAL/hcalana.def b/DEF-files/HMS/TEST_STANDS/CAL/hcalana.def
similarity index 95%
rename from DEF-files/HMS/CAL/hcalana.def
rename to DEF-files/HMS/TEST_STANDS/CAL/hcalana.def
index ce0dec81d095d22ca49ee8d9a904e546dcde6797..2d64c2e9eb09bf52fa7b2787fabf39b9f9807ce6 100644
--- a/DEF-files/HMS/CAL/hcalana.def
+++ b/DEF-files/HMS/TEST_STANDS/CAL/hcalana.def
@@ -5,12 +5,12 @@ block H.cal.*
 #HMS CALORIMETER HISTOGRAMS
 
 #FPGA Error Flags
-TH1F hcal_hA_adcErrFlg_pos 'HMS hA+ FPGA Error Flag; Error Flag; Number of Entries' H.cal.1pr.posAdcErrorFlag 2 -0.5 1.5
-TH1F hcal_hA_adcErrFlg_neg 'HMS hA- FPGA Error Flag; Error Flag; Number of Entries' H.cal.1pr.negAdcErrorFlag 2 -0.5 1.5
-TH1F hcal_hB_adcErrFlg_pos 'HMS hB+ FPGA Error Flag; Error Flag; Number of Entries' H.cal.2ta.posAdcErrorFlag 2 -0.5 1.5
-TH1F hcal_hB_adcErrFlg_neg 'HMS hB- FPGA Error Flag; Error Flag; Number of Entries' H.cal.2ta.negAdcErrorFlag 2 -0.5 1.5
-TH1F hcal_hC_adcErrFlg_pos 'HMS hC+ FPGA Error Flag; Error Flag; Number of Entries' H.cal.3ta.posAdcErrorFlag 2 -0.5 1.5
-TH1F hcal_hD_adcErrFlg_pos 'HMS hD+ FPGA Error Flag; Error Flag; Number of Entries' H.cal.4ta.posAdcErrorFlag 2 -0.5 1.5
+TH1F hcal_hA_adcErrFlg2D_pos 'HMS hA+ FPGA Error Flag; Error Flag; PMT Number; Error Flag' H.cal.1pr.posAdcCounter H.cal.1pr.posAdcErrorFlag 13 0.5 13.5 2 -0.5 1.5
+TH1F hcal_hA_adcErrFlg2D_neg 'HMS hA- FPGA Error Flag; Error Flag; PMT Number; Error Flag' H.cal.1pr.negAdcCounter H.cal.1pr.negAdcErrorFlag 13 0.5 13.5 2 -0.5 1.5
+TH1F hcal_hB_adcErrFlg2D_pos 'HMS hB+ FPGA Error Flag; Error Flag; PMT Number; Error Flag' H.cal.2ta.posAdcCounter H.cal.2ta.posAdcErrorFlag 13 0.5 13.5 2 -0.5 1.5
+TH1F hcal_hB_adcErrFlg2D_neg 'HMS hB- FPGA Error Flag; Error Flag; PMT Number; Error Flag' H.cal.2ta.negAdcCounter H.cal.2ta.negAdcErrorFlag 13 0.5 13.5 2 -0.5 1.5
+TH1F hcal_hC_adcErrFlg2D_pos 'HMS hC+ FPGA Error Flag; Error Flag; PMT Number; Error Flag' H.cal.3ta.posAdcCounter H.cal.3ta.posAdcErrorFlag 13 0.5 13.5 2 -0.5 1.5
+TH1F hcal_hD_adcErrFlg2D_pos 'HMS hD+ FPGA Error Flag; Error Flag; PMT Number; Error Flag' H.cal.4ta.posAdcCounter H.cal.4ta.posAdcErrorFlag 13 0.5 13.5 2 -0.5 1.5
 
 #Raw Occupancy
 TH1F hcal_hA_raw_occ_pos 'HMS hA+ Raw Occupancy; PMT Number; Number of Entries' H.cal.1pr.posAdcCounter 13 0.5 13.5
diff --git a/DEF-files/HMS/CAL/hcalana_cuts.def b/DEF-files/HMS/TEST_STANDS/CAL/hcalana_cuts.def
similarity index 100%
rename from DEF-files/HMS/CAL/hcalana_cuts.def
rename to DEF-files/HMS/TEST_STANDS/CAL/hcalana_cuts.def
diff --git a/DEF-files/HMS/TEST_STANDS/CER/hcerana.def b/DEF-files/HMS/TEST_STANDS/CER/hcerana.def
new file mode 100644
index 0000000000000000000000000000000000000000..83503cbed11e8878e8700d06a854135f53058930
--- /dev/null
+++ b/DEF-files/HMS/TEST_STANDS/CER/hcerana.def
@@ -0,0 +1,39 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block H.cer.*
+block T.hms.*
+
+# HMS CER Error FPGA Error Flag
+TH2F hcer_adcErrFlg2D_pos 'HMS Cherenkov FPGA Error Flag; Number of Entries' H.cer.posAdcCounter H.cer.posAdcErrorFlag 2 0.5 2.5 2 -0.5 1.5
+
+# HMS CER Raw Occupancy and Multiplicity
+TH1F hcer_raw_occ 'HMS Cherenkov Raw Occupancy; PMT Number; Number of Entries' H.cer.adcCounter 2 0.5 2.5
+TH1F hcer_raw_mult 'HMS Cherenkov Raw Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits / PMT' H.cer.totNumAdcHits 2 0.5 2.5
+
+# HMS CER Good Occupancy and Multiplity
+TH1F hcer_good_occ 'HMS Cherenkov Good Occupancy; PMT Number; Number of Entries' H.cer.numGoodAdcHits 2 0.5 2.5
+TH1F hcer_good_mult 'HMS Cherenkov Good Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits / PMT' H.cer.totNumGoodAdcHits 2 0.5 2.5
+
+# HMS CER Num. of P.E. / PMT
+TH2F hcer_npe 'HMS Cherenkov Number of Photoelectrons vs. PMT Number; PMT Number; Number of Photoelectrons / PMT' [I+1] H.cer.npe 2 0.5 2.5 200 0 100 H.cer.npe>0.0 
+
+# HMS CER Total Number of  P.E.
+TH1F hcer_tot_npe 'HMS Cherenkov Total Number of Photoelectrons; Total Number of Photoelectrons; Number of Entries / 0.5 Photoelectrons' H.cer.npeSum 200 0 100 H.cer.npeSum>0.0 
+
+# HMS CER Raw Pulse Profile 
+TH2F hcer_raw_pped_vs_pmt 'HMS Cherenkov Raw Pulse Pedestal vs. PMT Number; PMT Number; Raw Pulse Pedestal / 1 ADC Units' H.cer.adcCounter H.cer.adcPedRaw 2 0.5 2.5 10000 0 10000
+TH2F hcer_raw_pi_vs_pmt 'HMS Cherenkov Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' H.cer.adcCounter H.cer.adcPulseIntRaw 2 0.5 2.5 650 0 32500
+TH2F hcer_raw_pamp_vs_pmt 'HMS Cherenkov Raw Pulse Amplitude vs. PMT Number; PMT Number; Raw Pulse Amplitude / 20 ADC Units' H.cer.adcCounter H.cer.adcPulseAmpRaw 2 0.5 2.5 410 0 8200
+TH2F hcer_raw_ptime_vs_pmt 'HMS Cherenkov Raw Pulse Time vs. PMT Number; PMT Number;  Raw Pulse Time / 10 ADC Units' H.cer.adcCounter H.cer.adcPulseTimeRaw 2 0.5 2.5 650 0 6500
+
+# HMS CER Pulse Profile
+TH2F hcer_pped_vs_pmt 'HMS Cherenkov Pulse Pedestal vs. PMT Number; PMT Number;  Pulse Pedestal / 1 ADC Units' H.cer.adcCounter H.cer.adcPed 2 0.5 2.5 400 300 700
+TH2F hcer_pi_vs_pmt 'HMS Cherenkov Pulse Integral vs. PMT Number; PMT Number;  Pulse Integral / 50 ADC Units' H.cer.adcCounter H.cer.adcPulseInt 2 0.5 2.5 600 0 30000
+TH2F hcer_pamp_vs_pmt 'HMS Cherenkov Pulse Amplitude vs. PMT Number; PMT Number;  Pulse Amplitude / 20 ADC Units' H.cer.adcCounter H.cer.adcPulseAmp 2 0.5 2.5 400 0 8000
+
+# HMS CER GOOD Pulse Profile
+TH2F hcer_good_pped_vs_pmt 'HMS Cherenkov Good Pulse Pedestal vs. PMT Number; PMT Number; Pulse Pedestal / 1 ADC Units' [I+1] H.cer.goodAdcPed 2 0.5 2.5 400 300 700
+TH2F hcer_good_pi_vs_pmt 'HMS Cherenkov Good Pulse Integral vs. PMT Number; PMT Number; Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseInt 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseInt>0.0
+TH2F hcer_good_rawpi_vs_pmt 'HMS Cherenkov Good Raw Pulse Integral vs. PMT Number; PMT Number; Raw Pulse Integral / 50 ADC Units' [I+1] H.cer.goodAdcPulseIntRaw 2 0.5 2.5 600 0 30000 H.cer.goodAdcPulseIntRaw>0.0
+TH2F hcer_good_pamp_vs_pmt 'HMS Cherenkov Good Pulse Amplitude vs. PMT Number; PMT Number; Pulse Amplitude / 20 ADC Units' [I+1] H.cer.goodAdcPulseAmp 2 0.5 2.5 200 0 4000 H.cer.goodAdcPulseAmp>0.0
+TH2F hcer_good_ptime_vs_pmt 'HMS Cherenkov Good Pulse Time vs. PMT Number; PMT Number; Pulse Time / 10 ADC Units' [I+1] H.cer.goodAdcPulseTime 2 0.5 2.5 350 0 3500 H.cer.goodAdcPulseTime>0.0
diff --git a/DEF-files/HMS/CER/hcerana_cuts.def b/DEF-files/HMS/TEST_STANDS/CER/hcerana_cuts.def
similarity index 100%
rename from DEF-files/HMS/CER/hcerana_cuts.def
rename to DEF-files/HMS/TEST_STANDS/CER/hcerana_cuts.def
diff --git a/DEF-files/HMS/TEST_STANDS/DC/hdc_6gev_histos.def b/DEF-files/HMS/TEST_STANDS/DC/hdc_6gev_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..b5759127cbcd8947479853ea9a30c86c23c922e4
--- /dev/null
+++ b/DEF-files/HMS/TEST_STANDS/DC/hdc_6gev_histos.def
@@ -0,0 +1,155 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block H.dc.*
+block T.hms.*
+
+
+#-----------------
+# HMS DC WIREMAP 
+#-----------------
+
+TH1F hdc1x1_wirenum 'HMS DC 1X1 Wiremap; Wire Number; Number of Entries' H.dc.1x1.wirenum 113 0.5 113.5
+TH1F hdc1y1_wirenum 'HMS DC 1Y1 Wiremap; Wire Number; Number of Entries' H.dc.1y1.wirenum  52 0.5  52.5
+TH1F hdc1u1_wirenum 'HMS DC 1U1 Wiremap; Wire Number; Number of Entries' H.dc.1u1.wirenum 107 0.5 107.5
+TH1F hdc1v1_wirenum 'HMS DC 1V1 Wiremap; Wire Number; Number of Entries' H.dc.1v1.wirenum 107 0.5 107.5
+TH1F hdc1y2_wirenum 'HMS DC 1Y2 Wiremap; Wire Number; Number of Entries' H.dc.1y2.wirenum  52 0.5  52.5
+TH1F hdc1x2_wirenum 'HMS DC 1X2 Wiremap; Wire Number; Number of Entries' H.dc.1x2.wirenum 113 0.5 113.5
+
+TH1F hdc2x1_wirenum 'HMS DC 2X1 Wiremap; Wire Number; Number of Entries' H.dc.2x1.wirenum 113 0.5 113.5
+TH1F hdc2y1_wirenum 'HMS DC 2Y1 Wiremap; Wire Number; Number of Entries' H.dc.2y1.wirenum  52 0.5  52.5
+TH1F hdc2u1_wirenum 'HMS DC 2U1 Wiremap; Wire Number; Number of Entries' H.dc.2u1.wirenum 107 0.5 107.5
+TH1F hdc2v1_wirenum 'HMS DC 2V1 Wiremap; Wire Number; Number of Entries' H.dc.2v1.wirenum 107 0.5 107.5
+TH1F hdc2y2_wirenum 'HMS DC 2Y2 Wiremap; Wire Number; Number of Entries' H.dc.2y2.wirenum  52 0.5  52.5
+TH1F hdc2x2_wirenum 'HMS DC 2X2 Wiremap; Wire Number; Number of Entries' H.dc.2x2.wirenum 113 0.5 113.5
+
+#HMS DC RAW TDC PER PLANE 
+TH1F hdc1x1_raw_tdc 'HMS DC 1X1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.1x1.rawtdc 5000 -25000 25000
+TH1F hdc1y1_raw_tdc 'HMS DC 1Y1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.1y1.rawtdc 5000 -25000 25000
+TH1F hdc1u1_raw_tdc 'HMS DC 1U1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.1u1.rawtdc 5000 -25000 25000
+TH1F hdc1v1_raw_tdc 'HMS DC 1V1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.1v1.rawtdc 5000 -25000 25000
+TH1F hdc1y2_raw_tdc 'HMS DC 1Y2 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.1y2.rawtdc 5000 -25000 25000
+TH1F hdc1x2_raw_tdc 'HMS DC 1X2 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.1x2.rawtdc 5000 -25000 25000
+
+TH1F hdc2x1_raw_tdc 'HMS DC 2X1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.2x1.rawtdc 5000 -25000 25000
+TH1F hdc2y1_raw_tdc 'HMS DC 2Y1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.2y1.rawtdc 5000 -25000 25000
+TH1F hdc2u1_raw_tdc 'HMS DC 2U1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.2u1.rawtdc 5000 -25000 25000
+TH1F hdc2v1_raw_tdc 'HMS DC 2V1 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.2v1.rawtdc 5000 -25000 25000
+TH1F hdc2y2_raw_tdc 'HMS DC 2Y2 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.2y2.rawtdc 5000 -25000 25000
+TH1F hdc2x2_raw_tdc 'HMS DC 2X2 Raw TDC; Raw TDC Value / 10 TDC Units; Number of Entries' H.dc.2x2.rawtdc 5000 -25000 25000
+
+
+#HMS DC RAW TDC vs. WireNumber
+TH2F hdc1x1_raw_tdc_vs_wirenum 'HMS DC 1X1 Raw TDC vs. Wire Number; Wire Number; Raw TDC Value / 10 TDC Units' H.dc.1x1.wirenum H.dc.1x1.rawtdc 113 0.5 113.5 10000 -50000 50000
+TH2F hdc1y1_raw_tdc_vs_wirenum 'HMS DC 1Y1 Raw TDC vs. Wire Number; Wire Number; Raw TDC Value / 10 TDC Units' H.dc.1y1.wirenum H.dc.1y1.rawtdc 52  0.5  52.5 10000 -50000 50000
+TH2F hdc1u1_raw_tdc_vs_wirenum 'HMS DC 1U1 Raw TDC vs. Wire Number; Wire Number; Raw TDC Value / 10 TDC Units' H.dc.1u1.wirenum H.dc.1u1.rawtdc 107 0.5 107.5 10000 -50000 50000
+TH2F hdc1v1_raw_tdc_vs_wirenum 'HMS DC 1V1 Raw TDC vs. Wire Number; Wire Number; Raw TDC Value / 10 TDC Units' H.dc.1v1.wirenum H.dc.1v1.rawtdc 107 0.5 107.5 10000 -50000 50000
+TH2F hdc1y2_raw_tdc_vs_wirenum 'HMS DC 1Y2 Raw TDC vs. Wire Number; Wire Number; Raw TDC Value / 10 TDC Units' H.dc.1y2.wirenum H.dc.1y2.rawtdc 52  0.5  52.5 10000 -50000 50000
+TH2F hdc1x2_raw_tdc_vs_wirenum 'HMS DC 1X2 Raw TDC vs. Wire Number; Wire Number; Raw TDC Value / 10 TDC Units' H.dc.1x2.wirenum H.dc.1x2.rawtdc 113 0.5 113.5 10000 -50000 50000
+
+TH2F hdc2x1_raw_tdc_vs_wirenum 'HMS DC 2X1 Raw TDC vs. Wire Number; Raw TDC Value / 10 TDC Units' H.dc.2x1.wirenum H.dc.2x1.rawtdc 113 0.5 113.5 10000 -50000 50000
+TH2F hdc2y1_raw_tdc_vs_wirenum 'HMS DC 2Y1 Raw TDC vs. Wire Number; Raw TDC Value / 10 TDC Units' H.dc.2y1.wirenum H.dc.2y1.rawtdc 52  0.5  52.5 10000 -50000 50000
+TH2F hdc2u1_raw_tdc_vs_wirenum 'HMS DC 2U1 Raw TDC vs. Wire Number; Raw TDC Value / 10 TDC Units' H.dc.2u1.wirenum H.dc.2u1.rawtdc 107 0.5 107.5 10000 -50000 50000
+TH2F hdc2v1_raw_tdc_vs_wirenum 'HMS DC 2V1 Raw TDC vs. Wire Number; Raw TDC Value / 10 TDC Units' H.dc.2v1.wirenum H.dc.2v1.rawtdc 107 0.5 107.5 10000 -50000 50000
+TH2F hdc2y2_raw_tdc_vs_wirenum 'HMS DC 2Y2 Raw TDC vs. Wire Number; Raw TDC Value / 10 TDC Units' H.dc.2y2.wirenum H.dc.2y2.rawtdc 52  0.5  52.5 10000 -50000 50000
+TH2F hdc2x2_raw_tdc_vs_wirenum 'HMS DC 2X2 Raw TDC vs. Wire Number; Raw TDC Value / 10 TDC Units' H.dc.2x2.wirenum H.dc.2x2.rawtdc 113 0.5 113.5 10000 -50000 50000
+
+#-----------------------------
+# HMS DC DRIFT TIME PER PLANE 
+#-----------------------------
+
+TH1F hdc1x1_drifttime 'HMS DC 1X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x1.time 400 -50 350
+TH1F hdc1y1_drifttime 'HMS DC 1Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y1.time 400 -50 350
+TH1F hdc1u1_drifttime 'HMS DC 1U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1u1.time 400 -50 350
+TH1F hdc1v1_drifttime 'HMS DC 1V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1v1.time 400 -50 350
+TH1F hdc1y2_drifttime 'HMS DC 1Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1y2.time 400 -50 350
+TH1F hdc1x2_drifttime 'HMS DC 1X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.1x2.time 400 -50 350
+
+TH1F hdc2x1_drifttime 'HMS DC 2X1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x1.time 400 -50 350
+TH1F hdc2y1_drifttime 'HMS DC 2Y1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y1.time 400 -50 350
+TH1F hdc2u1_drifttime 'HMS DC 2U1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2u1.time 400 -50 350
+TH1F hdc2v1_drifttime 'HMS DC 2V1 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2v1.time 400 -50 350
+TH1F hdc2y2_drifttime 'HMS DC 2Y2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2y2.time 400 -50 350
+TH1F hdc2x2_drifttime 'HMS DC 2X2 Drift Time; Drift Time (ns); Number of Entries / 1 ns' H.dc.2x2.time 400 -50 350
+
+#---------------------------------
+#HMS DC DRIFT TIME VS. WIRENUMBER
+#---------------------------------
+
+TH2F hdc1x1_drifttime_vs_wirenum 'HMS DC 1X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc1y1_drifttime_vs_wirenum 'HMS DC 1Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc1u1_drifttime_vs_wirenum 'HMS DC 1U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1u1.wirenum H.dc.1u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1v1_drifttime_vs_wirenum 'HMS DC 1V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1v1.wirenum H.dc.1v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc1y2_drifttime_vs_wirenum 'HMS DC 1Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1y2.wirenum H.dc.1y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc1x2_drifttime_vs_wirenum 'HMS DC 1X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.1x2.wirenum H.dc.1x2.time 113 0.5 113.5 600 -100 500
+
+TH2F hdc2x1_drifttime_vs_wirenum 'HMS DC 2X1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x1.wirenum H.dc.2x1.time 113 0.5 113.5 600 -100 500
+TH2F hdc2y1_drifttime_vs_wirenum 'HMS DC 2Y1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y1.wirenum H.dc.2y1.time 52  0.5  52.5 600 -100 500
+TH2F hdc2u1_drifttime_vs_wirenum 'HMS DC 2U1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2u1.wirenum H.dc.2u1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2v1_drifttime_vs_wirenum 'HMS DC 2V1 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2v1.wirenum H.dc.2v1.time 107 0.5 107.5 600 -100 500
+TH2F hdc2y2_drifttime_vs_wirenum 'HMS DC 2Y2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2y2.wirenum H.dc.2y2.time 52  0.5  52.5 600 -100 500
+TH2F hdc2x2_drifttime_vs_wirenum 'HMS DC 2X2 Drift Time vs. Wire Number; Wire Number; Drift Time (ns)' H.dc.2x2.wirenum H.dc.2x2.time 113 0.5 113.5 600 -100 500
+
+#--------------------------------
+#HMS DC Drift Distance Per Plane 
+#--------------------------------
+ 
+TH1F hdc1x1_ddist 'HMS 1X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x1.dist 28 -0.1 0.6
+TH1F hdc1y1_ddist 'HMS 1Y1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y1.dist 28 -0.1 0.6
+TH1F hdc1u1_ddist 'HMS 1U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1u1.dist 28 -0.1 0.6
+TH1F hdc1v1_ddist 'HMS 1V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1v1.dist 28 -0.1 0.6
+TH1F hdc1y2_ddist 'HMS 1Y2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1y2.dist 28 -0.1 0.6
+TH1F hdc1x2_ddist 'HMS 1X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.1x2.dist 28 -0.1 0.6
+
+TH1F hdc2x1_ddist 'HMS 2U2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x1.dist 28 -0.1 0.6
+TH1F hdc2y1_ddist 'HMS 2U1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y1.dist 28 -0.1 0.6
+TH1F hdc2u1_ddist 'HMS 2X2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2u1.dist 28 -0.1 0.6
+TH1F hdc2v1_ddist 'HMS 2X1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2v1.dist 28 -0.1 0.6
+TH1F hdc2y2_ddist 'HMS 2V2 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2y2.dist 28 -0.1 0.6
+TH1F hdc2x2_ddist 'HMS 2V1 Drift Distance; Drift Distance (cm); Number of Entries' H.dc.2x2.dist 28 -0.1 0.6
+
+#--------------------------------------
+# HMS DC DRIFT DISTANCE VS. WIRENUMBER
+#--------------------------------------
+
+TH2F hdc1x1_wirenum_vs_ddist 'HMS DC 1X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x1.wirenum H.dc.1x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc1y1_wirenum_vs_ddist 'HMS DC 1Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y1.wirenum H.dc.1y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1u1_wirenum_vs_ddist 'HMS DC 1U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1u1.wirenum H.dc.1u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1v1_wirenum_vs_ddist 'HMS DC 1V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1v1.wirenum H.dc.1v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc1y2_wirenum_vs_ddist 'HMS DC 1Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1y2.wirenum H.dc.1y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc1x2_wirenum_vs_ddist 'HMS DC 1X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.1x2.wirenum H.dc.1x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+TH2F hdc2x1_wirenum_vs_ddist 'HMS DC 2X1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x1.wirenum H.dc.2x1.dist 113 0.5 113.5 300 -0.1 0.6
+TH2F hdc2y1_wirenum_vs_ddist 'HMS DC 2Y1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y1.wirenum H.dc.2y1.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2u1_wirenum_vs_ddist 'HMS DC 2U1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2u1.wirenum H.dc.2u1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2v1_wirenum_vs_ddist 'HMS DC 2V1 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2v1.wirenum H.dc.2v1.dist 107 0.5 107.5 300 -0.1 0.6
+TH2F hdc2y2_wirenum_vs_ddist 'HMS DC 2Y2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2y2.wirenum H.dc.2y2.dist 52  0.5  52.5 300 -0.1 0.6
+TH2F hdc2x2_wirenum_vs_ddist 'HMS DC 2X2 Drift Distance vs. Wire Number; Wire Number; Drift Distance (cm)' H.dc.2x2.wirenum H.dc.2x2.dist 113 0.5 113.5 300 -0.1 0.6
+
+#----------------------------
+# HMS DC RESIDUALS PER PLANE 
+#----------------------------
+ 
+TH1F hdc1x1_residuals 'HMS 1X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[0]  200 -1.0 1.0
+TH1F hdc1y1_residuals 'HMS 1Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[1]  200 -1.0 1.0
+TH1F hdc1u1_residuals 'HMS 1U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[2]  200 -1.0 1.0
+TH1F hdc1v1_residuals 'HMS 1V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[3]  200 -1.0 1.0
+TH1F hdc1y2_residuals 'HMS 1Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[4]  200 -1.0 1.0
+TH1F hdc1x2_residuals 'HMS 1X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[5]  200 -1.0 1.0
+
+TH1F hdc2x1_residuals 'HMS 2X1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[6]  200 -1.0 1.0
+TH1F hdc2y1_residuals 'HMS 2Y1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[7]  200 -1.0 1.0
+TH1F hdc2u1_residuals 'HMS 2U1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[8]  200 -1.0 1.0
+TH1F hdc2v1_residuals 'HMS 2V1 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[9]  200 -1.0 1.0
+TH1F hdc2y2_residuals 'HMS 2Y2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[10] 200 -1.0 1.0
+TH1F hdc2x2_residuals 'HMS 2X2 DC Residuals; Residuals (cm); Number of Entries / 0.01 cm' H.dc.residual[11] 200 -1.0 1.0
+
+#-------------------------------------------
+# HMS DC TRACKING VARIABLES AT FOCAL PLANE
+#-------------------------------------------
+
+TH1F hdc_trk_mom 'HMS DC Track Momentum; P (GeV); Number of Entires / 10 MeV' H.tr.p 600 0 6
+TH1F hdc_trk_beta 'HMS DC Track Beta; Beta (GeV); Number of Entires' H.tr.beta 300 -1.5 1.5
+TH2F hdc_xfp_vs_yxp 'HMS DC X_{fp} vs Y_{fp}; Y_{fp} (cm) / 1 cm; X_{fp} (cm) / 1 cm' H.dc.y_fp H.dc.x_fp 100 -50 50 100 -50 50
+TH2F hdc_xpfp_vs_ypfp 'HMS DC X'_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X'_{fp} / 0.002 rad' H.dc.yp_fp H.dc.xp_fp 100 -.1 .1 100 -.1 .1
+TH2F hdc_xfp_vs_ypfp 'HMS DC X_{fp} vs Y'_{fp}; Y'_{fp} / 0.002 rad; X_{fp} / 1 cm'  H.dc.yp_fp H.dc.x_fp 100 -.1 .1 100 -50 50 
+TH2F hdc_xfp_vs_xpfp 'HMS DC X_{fp} vs X'_{fp}; X'_{fp} / 0.002 rad; X_{fp} / 1 cm' H.dc.xp_fp H.dc.x_fp 100 -.1 .1 100 -50 50
diff --git a/DEF-files/HMS/DC/hdcana_cuts.def b/DEF-files/HMS/TEST_STANDS/DC/hdcana_cuts.def
similarity index 100%
rename from DEF-files/HMS/DC/hdcana_cuts.def
rename to DEF-files/HMS/TEST_STANDS/DC/hdcana_cuts.def
diff --git a/DEF-files/HMS/TEST_STANDS/HODO/hhodoana.def b/DEF-files/HMS/TEST_STANDS/HODO/hhodoana.def
new file mode 100644
index 0000000000000000000000000000000000000000..168aa4fcb202ac87ff109c0d123db6733a4f2f40
--- /dev/null
+++ b/DEF-files/HMS/TEST_STANDS/HODO/hhodoana.def
@@ -0,0 +1,379 @@
+# See $ANALYZER/examples/output_example.def for examples
+#
+block H.hod.*
+block T.hms.*
+
+#-----------------------
+# HMS Hodo Error Flags
+#-----------------------
+TH2F hhodo_1x_pos_adcErrFlg2D 'HMS 1X+ FPGA Error Flag; PMT Number; Error Flag' H.hod.1x.posAdcCounter H.hod.1x.posAdcErrorFlag 16 0.5 16.5 2 -0.5 1.5
+TH2F hhodo_1y_pos_adcErrFlg2D 'HMS 1Y+ FPGA Error Flag; PMT Number; Error Flag' H.hod.1y.posAdcCounter H.hod.1y.posAdcErrorFlag 10 0.5 10.5 2 -0.5 1.5
+TH2F hhodo_2x_pos_adcErrFlg2D 'HMS 2X+ FPGA Error Flag; PMT Number; Error Flag' H.hod.2x.posAdcCounter H.hod.2x.posAdcErrorFlag 16 0.5 16.5 2 -0.5 1.5
+TH2F hhodo_2y_pos_adcErrFlg2D 'HMS 2Y+ FPGA Error Flag; PMT Number; Error Flag' H.hod.2y.posAdcCounter H.hod.2y.posAdcErrorFlag 10 0.5 10.5 2 -0.5 1.5
+
+TH2F hhodo_1x_neg_adcErrFlg2D 'HMS 1X- FPGA Error Flag; PMT Number; Error Flag' H.hod.1x.negAdcCounter H.hod.1x.negAdcErrorFlag 16 0.5 16.5 2 -0.5 1.5
+TH2F hhodo_1y_neg_adcErrFlg2D 'HMS 1Y- FPGA Error Flag; PMT Number; Error Flag' H.hod.1y.negAdcCounter H.hod.1y.negAdcErrorFlag 10 0.5 10.5 2 -0.5 1.5
+TH2F hhodo_2x_neg_adcErrFlg2D 'HMS 2X- FPGA Error Flag; PMT Number; Error Flag' H.hod.2x.negAdcCounter H.hod.2x.negAdcErrorFlag 16 0.5 16.5 2 -0.5 1.5
+TH2F hhodo_2y_neg_adcErrFlg2D 'HMS 2Y- FPGA Error Flag; PMT Number; Error Flag' H.hod.2y.negAdcCounter H.hod.2y.negAdcErrorFlag 10 0.5 10.5 2 -0.5 1.5
+
+
+#-----------------------------------
+# HMS HODO RAW ADC Multiplicities 
+#-----------------------------------
+
+TH1F hhodo_1x_raw_adc_mult_pos 'HMS 1X+ Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw +ADC Hits' H.hod.1x.totNumPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_raw_adc_mult_pos 'HMS 1Y+ Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw +ADC Hits' H.hod.1y.totNumPosAdcHits 10 0.5 10.5
+TH1F hhodo_2x_raw_adc_mult_pos 'HMS 2X+ Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw +ADC Hits' H.hod.2x.totNumPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_raw_adc_mult_pos 'HMS 2Y+ Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw +ADC Hits' H.hod.2y.totNumPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_raw_adc_mult_neg 'HMS 1X- Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw -ADC Hits' H.hod.1x.totNumNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_raw_adc_mult_neg 'HMS 1Y- Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw -ADC Hits' H.hod.1y.totNumNegAdcHits 10 0.5 10.5
+TH1F hhodo_2x_raw_adc_mult_neg 'HMS 2X- Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw -ADC Hits' H.hod.2x.totNumNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_raw_adc_mult_neg 'HMS 2Y- Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw -ADC Hits' H.hod.2y.totNumNegAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_raw_adc_mult 'HMS 1X Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits' H.hod.1x.totNumAdcHits 16 0.5 16.5
+TH1F hhodo_1y_raw_adc_mult 'HMS 1Y Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits' H.hod.1y.totNumAdcHits 10 0.5 10.5
+TH1F hhodo_2x_raw_adc_mult 'HMS 2X Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits' H.hod.2x.totNumAdcHits 16 0.5 16.5
+TH1F hhodo_2y_raw_adc_mult 'HMS 2Y Raw ADC Multiplicity; Number of PMTs Hit; Total Number of Raw ADC Hits' H.hod.2y.totNumAdcHits 10 0.5 10.5
+
+
+#-----------------------------------
+# HMS HODO Raw TDC Multiplicities
+#-----------------------------------
+
+TH1F hhodo_1x_raw_tdc_mult_pos 'HMS 1X+ Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw +TDC Hits' H.hod.1x.totNumPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_raw_tdc_mult_pos 'HMS 1Y+ Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw +TDC Hits' H.hod.1y.totNumPosTdcHits 10 0.5 10.5
+TH1F hhodo_2x_raw_tdc_mult_pos 'HMS 2X+ Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw +TDC Hits' H.hod.2x.totNumPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_raw_tdc_mult_pos 'HMS 2Y+ Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw +TDC Hits' H.hod.2y.totNumPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_raw_tdc_mult_neg 'HMS 1X- Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw -TDC Hits' H.hod.1x.totNumNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_raw_tdc_mult_neg 'HMS 1Y- Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw -TDC Hits' H.hod.1y.totNumNegTdcHits 10 0.5 10.5
+TH1F hhodo_2x_raw_tdc_mult_neg 'HMS 2X- Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw -TDC Hits' H.hod.2x.totNumNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_raw_tdc_mult_neg 'HMS 2Y- Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw -TDC Hits' H.hod.2y.totNumNegTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_raw_tdc_mult 'HMS 1X Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw TDC Hits' H.hod.1x.totNumTdcHits 16 0.5 16.5
+TH1F hhodo_1y_raw_tdc_mult 'HMS 1Y Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw TDC Hits' H.hod.1y.totNumTdcHits 10 0.5 10.5
+TH1F hhodo_2x_raw_tdc_mult 'HMS 2X Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw TDC Hits' H.hod.2x.totNumTdcHits 16 0.5 16.5
+TH1F hhodo_2y_raw_tdc_mult 'HMS 2Y Raw TDC Multiplicity; Number of PMTs Hit; Total Number of Raw TDC Hits' H.hod.2y.totNumTdcHits 10 0.5 10.5
+
+#---------------------------------
+# HMS HODO Raw ADC OCCUPANCIES
+#---------------------------------
+
+TH1F hhodo_1x_raw_adc_occ_pos 'HMS 1X+ Raw ADC Occupancy; PMT Number; Number of Raw +ADC Hits' H.hod.1x.posAdcCounter 16 0.5 16.5
+TH1F hhodo_1y_raw_adc_occ_pos 'HMS 1Y+ Raw ADC Occupancy; PMT Number; Number of Raw +ADC Hits' H.hod.1y.posAdcCounter 10 0.5 10.5 
+TH1F hhodo_2x_raw_adc_occ_pos 'HMS 2X+ Raw ADC Occupancy; PMT Number; Number of Raw +ADC Hits' H.hod.2x.posAdcCounter 16 0.5 16.5
+TH1F hhodo_2y_raw_adc_occ_pos 'HMS 2Y+ Raw ADC Occupancy; PMT Number; Number of Raw +ADC Hits' H.hod.2y.posAdcCounter 10 0.5 10.5
+
+TH1F hhodo_1x_raw_adc_occ_neg 'HMS 1X- Raw ADC Occupancy; PMT Number; Number of Raw -ADC Hits' H.hod.1x.negAdcCounter 16 0.5 16.5
+TH1F hhodo_1y_raw_adc_occ_neg 'HMS 1Y- Raw ADC Occupancy; PMT Number; Number of Raw -ADC Hits' H.hod.1y.negAdcCounter 10 0.5 10.5 
+TH1F hhodo_2x_raw_adc_occ_neg 'HMS 2X- Raw ADC Occupancy; PMT Number; Number of Raw -ADC Hits' H.hod.2x.negAdcCounter 16 0.5 16.5
+TH1F hhodo_2y_raw_adc_occ_neg 'HMS 2Y- Raw ADC Occupancy; PMT Number; Number of Raw -ADC Hits' H.hod.2y.negAdcCounter 10 0.5 10.5
+
+#--------------------------------
+# HMS HODO Raw TDC OCCUPANCIES
+#--------------------------------
+
+TH1F hhodo_1x_raw_tdc_occ_pos 'HMS 1X+ Raw TDC Occupancy; PMT Number; Number of Raw +TDC Hits' H.hod.1x.posTdcCounter 16 0.5 16.5
+TH1F hhodo_1y_raw_tdc_occ_pos 'HMS 1Y+ Raw TDC Occupancy; PMT Number; Number of Raw +TDC Hits' H.hod.1y.posTdcCounter 10 0.5 10.5 
+TH1F hhodo_2x_raw_tdc_occ_pos 'HMS 2X+ Raw TDC Occupancy; PMT Number; Number of Raw +TDC Hits' H.hod.2x.posTdcCounter 16 0.5 16.5
+TH1F hhodo_2y_raw_tdc_occ_pos 'HMS 2Y+ Raw TDC Occupancy; PMT Number; Number of Raw +TDC Hits' H.hod.2y.posTdcCounter 10 0.5 10.5
+
+TH1F hhodo_1x_raw_tdc_occ_neg 'HMS 1X- Raw TDC Occupancy; PMT Number; Number of Raw -TDC Hits' H.hod.1x.negTdcCounter 16 0.5 16.5
+TH1F hhodo_1y_raw_tdc_occ_neg 'HMS 1Y- Raw TDC Occupancy; PMT Number; Number of Raw -TDC Hits' H.hod.1y.negTdcCounter 10 0.5 10.5 
+TH1F hhodo_2x_raw_tdc_occ_neg 'HMS 2X- Raw TDC Occupancy; PMT Number; Number of Raw -TDC Hits' H.hod.2x.negTdcCounter 16 0.5 16.5
+TH1F hhodo_2y_raw_tdc_occ_neg 'HMS 2Y- Raw TDC Occupancy; PMT Number; Number of Raw -TDC Hits' H.hod.2y.negTdcCounter 10 0.5 10.5
+
+
+#-----------------------------
+# HMS Hodo Raw Pulse Pedestal
+#-----------------------------
+
+TH2F hhodo_1x_pos_rawped_vs_pad 'HMS 1X+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPedRaw 16 0.5 16.5 4000 0 4000
+TH2F hhodo_1y_pos_rawped_vs_pad 'HMS 1Y+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPedRaw 10 0.5 10.5 4000 0 4000
+TH2F hhodo_2x_pos_rawped_vs_pad 'HMS 2X+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPedRaw 16 0.5 16.5 4000 0 4000
+TH2F hhodo_2y_pos_rawped_vs_pad 'HMS 2Y+ Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPedRaw 10 0.5 10.5 4000 0 4000
+
+TH2F hhodo_1x_neg_rawped_vs_pad 'HMS 1X- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPedRaw 16 0.5 16.5 4000 0 4000
+TH2F hhodo_1y_neg_rawped_vs_pad 'HMS 1Y- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPedRaw 10 0.5 10.5 4000 0 4000
+TH2F hhodo_2x_neg_rawped_vs_pad 'HMS 2X- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPedRaw 16 0.5 16.5 4000 0 4000
+TH2F hhodo_2y_neg_rawped_vs_pad 'HMS 2Y- Raw Pulse Pedestal vs. Paddle Number; Paddle Number; Raw Pulse Pedestal / 1 ADC Unit' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPedRaw 10 0.5 10.5 4000 0 4000
+
+#-----------------------------
+# HMS Hodo Raw Pulse Integral
+#-----------------------------
+
+TH2F hhodo_1x_pos_rawpi_vs_pad 'HMS 1X+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseIntRaw 16 0.5 16.5 400 0 20000
+TH2F hhodo_1y_pos_rawpi_vs_pad 'HMS 1Y+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseIntRaw 10 0.5 10.5 400 0 20000
+TH2F hhodo_2x_pos_rawpi_vs_pad 'HMS 2X+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseIntRaw 16 0.5 16.5 400 0 20000
+TH2F hhodo_2y_pos_rawpi_vs_pad 'HMS 2Y+ Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseIntRaw 10 0.5 10.5 400 0 20000
+
+TH2F hhodo_1x_neg_rawpi_vs_pad 'HMS 1X- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseIntRaw 16 0.5 16.5 400 0 20000
+TH2F hhodo_1y_neg_rawpi_vs_pad 'HMS 1Y- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseIntRaw 10 0.5 10.5 400 0 20000
+TH2F hhodo_2x_neg_rawpi_vs_pad 'HMS 2X- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseIntRaw 16 0.5 16.5 400 0 20000
+TH2F hhodo_2y_neg_rawpi_vs_pad 'HMS 2Y- Raw Pulse Integral vs. Paddle Number; Paddle Number; Raw Pulse Integral / 50 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseIntRaw 10 0.5 10.5 400 0 20000
+
+#------------------------------
+# HMS Hodo Raw Pulse Amplitude
+#------------------------------
+
+TH2F hhodo_1x_pos_rawpamp_vs_pad 'HMS 1X+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseAmpRaw 16 0.5 16.5 205 0 4100
+TH2F hhodo_1y_pos_rawpamp_vs_pad 'HMS 1Y+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseAmpRaw 10 0.5 10.5 205 0 4100
+TH2F hhodo_2x_pos_rawpamp_vs_pad 'HMS 2X+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseAmpRaw 16 0.5 16.5 205 0 4100
+TH2F hhodo_2y_pos_rawpamp_vs_pad 'HMS 2Y+ Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseAmpRaw 10 0.5 10.5 205 0 4100
+
+TH2F hhodo_1x_neg_rawpamp_vs_pad 'HMS 1X- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseAmpRaw 16 0.5 16.5 205 0 4100
+TH2F hhodo_1y_neg_rawpamp_vs_pad 'HMS 1Y- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseAmpRaw 10 0.5 10.5 205 0 4100
+TH2F hhodo_2x_neg_rawpamp_vs_pad 'HMS 2X- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseAmpRaw 16 0.5 16.5 205 0 4100
+TH2F hhodo_2y_neg_rawpamp_vs_pad 'HMS 2Y- Raw Pulse Amplitude vs. Paddle Number; Paddle Number; Raw Pulse Amplitude / 20 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseAmpRaw 10 0.5 10.5 205 0 4100
+
+#-----------------------------
+# HMS Hodo Raw Pulse Time
+#-----------------------------
+
+TH2F hhodo_1x_pos_rawptime_vs_pad 'HMS 1X+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
+TH2F hhodo_1y_pos_rawptime_vs_pad 'HMS 1Y+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
+TH2F hhodo_2x_pos_rawptime_vs_pad 'HMS 2X+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
+TH2F hhodo_2y_pos_rawptime_vs_pad 'HMS 2Y+ Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
+
+TH2F hhodo_1x_neg_rawptime_vs_pad 'HMS 1X- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
+TH2F hhodo_1y_neg_rawptime_vs_pad 'HMS 1Y- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
+TH2F hhodo_2x_neg_rawptime_vs_pad 'HMS 2X- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseTimeRaw 16 0.5 16.5 410 0 4100
+TH2F hhodo_2y_neg_rawptime_vs_pad 'HMS 2Y- Raw Pulse Time vs. Paddle Number; Paddle Number; Raw Pulse Time / 10 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseTimeRaw 10 0.5 10.5 410 0 4100
+
+#-----------------------------
+# HMS Hodo Raw TDC Time
+#-----------------------------
+
+TH2F hhodo_1x_pos_raw_tdc_time_vs_pad 'HMS 1X+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1x.posTdcCounter  H.hod.1x.posTdcTimeRaw 16 0.5 16.5 800 0 8000
+TH2F hhodo_1y_pos_raw_tdc_time_vs_pad 'HMS 1Y+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1y.posTdcCounter  H.hod.1y.posTdcTimeRaw 10 0.5 10.5 800 0 8000
+TH2F hhodo_2x_pos_raw_tdc_time_vs_pad 'HMS 2X+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2x.posTdcCounter  H.hod.2x.posTdcTimeRaw 16 0.5 16.5 800 0 8000
+TH2F hhodo_2y_pos_raw_tdc_time_vs_pad 'HMS 2Y+ Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2y.posTdcCounter  H.hod.2y.posTdcTimeRaw 10 0.5 10.5 800 0 8000
+
+TH2F hhodo_1x_neg_raw_tdc_time_vs_pad 'HMS 1X- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1x.negTdcCounter  H.hod.1x.negTdcTimeRaw 16 0.5 16.5 800 0 8000
+TH2F hhodo_1y_neg_raw_tdc_time_vs_pad 'HMS 1Y- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.1y.negTdcCounter  H.hod.1y.negTdcTimeRaw 10 0.5 10.5 800 0 8000
+TH2F hhodo_2x_neg_raw_tdc_time_vs_pad 'HMS 2X- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2x.negTdcCounter  H.hod.2x.negTdcTimeRaw 16 0.5 16.5 800 0 8000
+TH2F hhodo_2y_neg_raw_tdc_time_vs_pad 'HMS 2Y- Raw TDC Time vs. Paddle Number; Paddle Number; Raw TDC Time / 10 ADC Units' H.hod.2y.negTdcCounter  H.hod.2y.negTdcTimeRaw 10 0.5 10.5 800 0 8000
+
+
+#-------------------------
+# HMS Hodo Pulse Pedestal
+#-------------------------
+TH2F hhodo_1x_pos_ped_vs_pad 'HMS 1X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPed 16 0.5 16.5 1000 0 1000
+TH2F hhodo_1y_pos_ped_vs_pad 'HMS 1Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPed 10 0.5 10.5 1000 0 1000
+TH2F hhodo_2x_pos_ped_vs_pad 'HMS 2X+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPed 16 0.5 16.5 1000 0 1000
+TH2F hhodo_2y_pos_ped_vs_pad 'HMS 2Y+ Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPed 10 0.5 10.5 1000 0 1000
+
+TH2F hhodo_1x_neg_ped_vs_pad 'HMS 1X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPed 16 0.5 16.5 1000 0 1000
+TH2F hhodo_1y_neg_ped_vs_pad 'HMS 1Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPed 10 0.5 10.5 1000 0 1000
+TH2F hhodo_2x_neg_ped_vs_pad 'HMS 2X- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPed 16 0.5 16.5 1000 0 1000
+TH2F hhodo_2y_neg_ped_vs_pad 'HMS 2Y- Pulse Pedestal vs. Paddle Number; Paddle Number; Pulse Pedestal / 1 ADC Unit' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPed 10 0.5 10.5 1000 0 1000
+
+#-------------------------
+# HMS Hodo Pulse Integral
+#-------------------------
+TH2F hhodo_1x_pos_pi_vs_pad 'HMS 1X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseInt 16 0.5 16.5 800 0 40000
+TH2F hhodo_1y_pos_pi_vs_pad 'HMS 1Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseInt 10 0.5 10.5 800 0 40000
+TH2F hhodo_2x_pos_pi_vs_pad 'HMS 2X+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseInt 16 0.5 16.5 800 0 40000
+TH2F hhodo_2y_pos_pi_vs_pad 'HMS 2Y+ Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseInt 10 0.5 10.5 800 0 40000
+
+TH2F hhodo_1x_neg_pi_vs_pad 'HMS 1X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseInt 16 0.5 16.5 800 0 40000
+TH2F hhodo_1y_neg_pi_vs_pad 'HMS 1Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseInt 10 0.5 10.5 800 0 40000
+TH2F hhodo_2x_neg_pi_vs_pad 'HMS 2X- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseInt 16 0.5 16.5 800 0 40000
+TH2F hhodo_2y_neg_pi_vs_pad 'HMS 2Y- Pulse Integral vs. Paddle Number; Paddle Number; Pulse Integral / 50 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseInt 10 0.5 10.5 800 0 40000
+
+
+#--------------------------
+# HMS Hodo Pulse Amplitude
+#--------------------------
+TH2F hhodo_1x_pos_pamp_vs_pad 'HMS 1X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.1x.posAdcCounter  H.hod.1x.posAdcPulseAmp 16 0.5 16.5 205 0 4100
+TH2F hhodo_1y_pos_pamp_vs_pad 'HMS 1Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.1y.posAdcCounter  H.hod.1y.posAdcPulseAmp 10 0.5 10.5 205 0 4100
+TH2F hhodo_2x_pos_pamp_vs_pad 'HMS 2X+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.2x.posAdcCounter  H.hod.2x.posAdcPulseAmp 16 0.5 16.5 205 0 4100
+TH2F hhodo_2y_pos_pamp_vs_pad 'HMS 2Y+ Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.2y.posAdcCounter  H.hod.2y.posAdcPulseAmp 10 0.5 10.5 205 0 4100
+
+TH2F hhodo_1x_neg_pamp_vs_pad 'HMS 1X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.1x.negAdcCounter  H.hod.1x.negAdcPulseAmp 16 0.5 16.5 205 0 4100
+TH2F hhodo_1y_neg_pamp_vs_pad 'HMS 1Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.1y.negAdcCounter  H.hod.1y.negAdcPulseAmp 10 0.5 10.5 205 0 4100
+TH2F hhodo_2x_neg_pamp_vs_pad 'HMS 2X- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.2x.negAdcCounter  H.hod.2x.negAdcPulseAmp 16 0.5 16.5 205 0 4100
+TH2F hhodo_2y_neg_pamp_vs_pad 'HMS 2Y- Pulse Amplitude vs. Paddle Number; Paddle Number; Pulse Amplitude / 20 ADC Units' H.hod.2y.negAdcCounter  H.hod.2y.negAdcPulseAmp 10 0.5 10.5 205 0 4100
+
+#-------------------
+# HMS Hodo TDC Time
+#-------------------
+TH2F hhodo_1x_pos_tdc_time_vs_pad 'HMS 1X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1x.posTdcCounter  H.hod.1x.posTdcTime 16 0.5 16.5 200 -2000 0
+TH2F hhodo_1y_pos_tdc_time_vs_pad 'HMS 1Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1y.posTdcCounter  H.hod.1y.posTdcTime 10 0.5 10.5 200 -2000 0
+TH2F hhodo_2x_pos_tdc_time_vs_pad 'HMS 2X+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2x.posTdcCounter  H.hod.2x.posTdcTime 16 0.5 16.5 200 -2000 0
+TH2F hhodo_2y_pos_tdc_time_vs_pad 'HMS 2Y+ TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2y.posTdcCounter  H.hod.2y.posTdcTime 10 0.5 10.5 200 -2000 0
+
+TH2F hhodo_1x_neg_tdc_time_vs_pad 'HMS 1X- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1x.negTdcCounter  H.hod.1x.negTdcTime 16 0.5 16.5 200 -2000 0
+TH2F hhodo_1y_neg_tdc_time_vs_pad 'HMS 1Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.1y.negTdcCounter  H.hod.1y.negTdcTime 10 0.5 10.5 200 -2000 0
+TH2F hhodo_2x_neg_tdc_time_vs_pad 'HMS 2X- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2x.negTdcCounter  H.hod.2x.negTdcTime 16 0.5 16.5 200 -2000 0
+TH2F hhodo_2y_neg_tdc_time_vs_pad 'HMS 2Y- TDC Time vs. Paddle Number; Paddle Number; TDC Time / 10 ADC Units' H.hod.2y.negTdcCounter  H.hod.2y.negTdcTime 10 0.5 10.5 200 -2000 0
+
+
+#-----------------------------------
+# HMS HODO GOOD ADC Multiplicities 
+#-----------------------------------
+
+TH1F hhodo_1x_good_adc_mult_pos 'HMS 1X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_pos 'HMS 1Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.1y.totNumGoodPosAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_pos 'HMS 2X+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2x.totNumGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_pos 'HMS 2Y+ Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good +ADC Hits' H.hod.2y.totNumGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult_neg 'HMS 1X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult_neg 'HMS 1Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.1y.totNumGoodNegAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult_neg 'HMS 2X- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2x.totNumGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult_neg 'HMS 2Y- Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good -ADC Hits' H.hod.2y.totNumGoodNegAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_mult 'HMS 1X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_mult 'HMS 1Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.1y.totNumGoodAdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_adc_mult 'HMS 2X Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2x.totNumGoodAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_mult 'HMS 2Y Good ADC Multiplicity; Number of PMTs Hit; Total Number of Good ADC Hits' H.hod.2y.totNumGoodAdcHits 10 0.5 10.5
+
+#-----------------------------------
+# HMS HODO Good TDC Multiplicities
+#-----------------------------------
+
+TH1F hhodo_1x_good_tdc_mult_pos 'HMS 1X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_pos 'HMS 1Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.1y.totNumGoodPosTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_pos 'HMS 2X+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2x.totNumGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_pos 'HMS 2Y+ Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good +TDC Hits' H.hod.2y.totNumGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult_neg 'HMS 1X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult_neg 'HMS 1Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.1y.totNumGoodNegTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult_neg 'HMS 2X- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2x.totNumGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult_neg 'HMS 2Y- Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good -TDC Hits' H.hod.2y.totNumGoodNegTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_mult 'HMS 1X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_mult 'HMS 1Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.1y.totNumGoodTdcHits 10 0.5 10.5
+TH1F hhodo_2x_good_tdc_mult 'HMS 2X Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2x.totNumGoodTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_mult 'HMS 2Y Good TDC Multiplicity; Number of PMTs Hit; Total Number of Good TDC Hits' H.hod.2y.totNumGoodTdcHits 10 0.5 10.5
+
+#---------------------------------
+# HMS HODO GOOD ADC OCCUPANCIES
+#---------------------------------
+
+TH1F hhodo_1x_good_adc_occ_pos 'HMS 1X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_pos 'HMS 1Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.1y.numGoodPosAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_pos 'HMS 2X+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2x.numGoodPosAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_pos 'HMS 2Y+ Good ADC Occupancy; PMT Number; Number of Good +ADC Hits' H.hod.2y.numGoodPosAdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_adc_occ_neg 'HMS 1X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_adc_occ_neg 'HMS 1Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.1y.numGoodNegAdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_adc_occ_neg 'HMS 2X- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2x.numGoodNegAdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_adc_occ_neg 'HMS 2Y- Good ADC Occupancy; PMT Number; Number of Good -ADC Hits' H.hod.2y.numGoodNegAdcHits 10 0.5 10.5
+
+#--------------------------------
+# HMS HODO GOOD TDC OCCUPANCIES
+#--------------------------------
+
+TH1F hhodo_1x_good_tdc_occ_pos 'HMS 1X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_pos 'HMS 1Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.1y.numGoodPosTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_pos 'HMS 2X+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2x.numGoodPosTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_pos 'HMS 2Y+ Good TDC Occupancy; PMT Number; Number of Good +TDC Hits' H.hod.2y.numGoodPosTdcHits 10 0.5 10.5
+
+TH1F hhodo_1x_good_tdc_occ_neg 'HMS 1X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_1y_good_tdc_occ_neg 'HMS 1Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.1y.numGoodNegTdcHits 10 0.5 10.5 
+TH1F hhodo_2x_good_tdc_occ_neg 'HMS 2X- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2x.numGoodNegTdcHits 16 0.5 16.5
+TH1F hhodo_2y_good_tdc_occ_neg 'HMS 2Y- Good TDC Occupancy; PMT Number; Number of Good -TDC Hits' H.hod.2y.numGoodNegTdcHits 10 0.5 10.5
+
+#------------------------------
+# HMS HODO Good PULSE PEDESTAL
+#------------------------------
+
+TH2F hhodo_1x_good_pped_vs_pmt_pos 'HMS 1X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodPosAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_pos 'HMS 1Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodPosAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_pos 'HMS 2X+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodPosAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodPosAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_pos 'HMS 2Y+ Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodPosAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodPosAdcPed>0.0
+
+TH2F hhodo_1x_good_pped_vs_pmt_neg 'HMS 1X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.1x.GoodNegAdcPed>0.0
+TH2F hhodo_1y_good_pped_vs_pmt_neg 'HMS 1Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.1y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.1y.GoodNegAdcPed>0.0
+TH2F hhodo_2x_good_pped_vs_pmt_neg 'HMS 2X- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2x.GoodNegAdcPed 16 0.5 16.5 400 300 700 H.hod.2x.GoodNegAdcPed>0.0
+TH2F hhodo_2y_good_pped_vs_pmt_neg 'HMS 2Y- Good Pulse Pedestal vs. PMT Number; PMT Number; Good Pulse Pedestal / 1 ADC Unit' [I+1]  H.hod.2y.GoodNegAdcPed 10 0.5 10.5 400 300 700 H.hod.2y.GoodNegAdcPed>0.0
+
+#------------------------------
+# HMS HODO Good PULSE INTEGRAL
+#------------------------------
+
+TH2F hhodo_1x_good_pi_vs_pmt_pos 'HMS 1X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_pos 'HMS 1Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_pos 'HMS 2X+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodPosAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_pos 'HMS 2Y+ Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodPosAdcPulseInt>0.0
+
+TH2F hhodo_1x_good_pi_vs_pmt_neg 'HMS 1X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.1x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_1y_good_pi_vs_pmt_neg 'HMS 1Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.1y.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2x_good_pi_vs_pmt_neg 'HMS 2X- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseInt 16 0.5 16.5 600 0 30000 H.hod.2x.GoodNegAdcPulseInt>0.0
+TH2F hhodo_2y_good_pi_vs_pmt_neg 'HMS 2Y- Good Pulse Integral vs. PMT Number; PMT Number; Good Pulse Integral / 50 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseInt 10 0.5 10.5 600 0 30000 H.hod.2y.GoodNegAdcPulseInt>0.0
+
+#-------------------------------
+# HMS HODO Good PULSE AMPLITUDE 
+#-------------------------------
+
+TH2F hhodo_1x_good_pamp_vs_pmt_pos 'HMS 1X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_pos 'HMS 1Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_pos 'HMS 2X+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodPosAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_pos 'HMS 2Y+ Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodPosAdcPulseAmp>0.0
+
+TH2F hhodo_1x_good_pamp_vs_pmt_neg 'HMS 1X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.1x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_1y_good_pamp_vs_pmt_neg 'HMS 1Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.1y.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2x_good_pamp_vs_pmt_neg 'HMS 2X- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseAmp 16 0.5 16.5 205 0 4100 H.hod.2x.GoodNegAdcPulseAmp>0.0
+TH2F hhodo_2y_good_pamp_vs_pmt_neg 'HMS 2Y- Good Pulse Amplitude vs. PMT Number; PMT Number; Good Pulse Amplitude / 20 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseAmp 10 0.5 10.5 205 0 4100 H.hod.2y.GoodNegAdcPulseAmp>0.0
+
+#------------------------------
+# HMS HODO Good ADC PULSE TIME
+#------------------------------
+
+TH2F hhodo_1x_good_ptime_vs_pmt_pos 'HMS 1X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_pos 'HMS 1Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_pos 'HMS 2X+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodPosAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodPosAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_pos 'HMS 2Y+ Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodPosAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodPosAdcPulseTime>0.0
+
+TH2F hhodo_1x_good_ptime_vs_pmt_neg 'HMS 1X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.1x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_1y_good_ptime_vs_pmt_neg 'HMS 1Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.1y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.1y.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2x_good_ptime_vs_pmt_neg 'HMS 2X- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2x.GoodNegAdcPulseTime 16 0.5 16.5 410 0 4100 H.hod.2x.GoodNegAdcPulseTime>0.0
+TH2F hhodo_2y_good_ptime_vs_pmt_neg 'HMS 2Y- Good Pulse Time vs. PMT Number; PMT Number; Good Pulse Time / 10 ADC Units' [I+1]  H.hod.2y.GoodNegAdcPulseTime 10 0.5 10.5 410 0 4100 H.hod.2y.GoodNegAdcPulseTime>0.0
+
+#-------------------------------------------------------------------
+# HMS HODO Good TDC TIME UNCORRECTED (uncorrected for time offsets)
+#-------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_pos 'HMS 1X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_pos 'HMS 1Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_pos 'HMS 2X+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_pos 'HMS 2Y+ Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeUnCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_uncorr_vs_pmt_neg 'HMS 1X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_1y_good_tdctime_uncorr_vs_pmt_neg 'HMS 1Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2x_good_tdctime_uncorr_vs_pmt_neg 'HMS 2X- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeUnCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeUnCorr>0.0
+TH2F hhodo_2y_good_tdctime_uncorr_vs_pmt_neg 'HMS 2Y- Good Uncorrected TDC Time vs. PMT Number; PMT Number; Good Uncorrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeUnCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeUnCorr>0.0
+
+#---------------------------------------------------------------
+# HMS HODO Good TDC TIME CORRECTED (corrected for time offsets)
+#---------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_pos 'HMS 1X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_pos 'HMS 1Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_pos 'HMS 2X+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_pos 'HMS 2Y+ Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_corr_vs_pmt_neg 'HMS 1X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_1y_good_tdctime_corr_vs_pmt_neg 'HMS 1Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2x_good_tdctime_corr_vs_pmt_neg 'HMS 2X- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeCorr>0.0
+TH2F hhodo_2y_good_tdctime_corr_vs_pmt_neg 'HMS 2Y- Good Corrected TDC Time vs. PMT Number; PMT Number; Good Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeCorr>0.0
+
+#--------------------------------------------------------------------
+# HMS HODO Good TDC TIME TOF CORRECTED (corrected for time of flight) 
+#--------------------------------------------------------------------
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 1Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2X+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodPosTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodPosTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_pos 'HMS 2Y+ Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodPosTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodPosTdcTimeTOFCorr>0.0
+
+TH2F hhodo_1x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.1x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_1y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 1Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.1y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.1y.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2x_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2X- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2x.GoodNegTdcTimeTOFCorr 16 0.5 16.5 120 0 120 H.hod.2x.GoodNegTdcTimeTOFCorr>0.0
+TH2F hhodo_2y_good_tdctime_tofcorr_vs_pmt_neg 'HMS 2Y- Good TOF Corrected TDC Time vs. PMT Number; PMT Number; Good TOF Corrected TDC Time / 1 TDC Unit' [I+1]  H.hod.2y.GoodNegTdcTimeTOFCorr 10 0.5 10.5 120 0 120 H.hod.2y.GoodNegTdcTimeTOFCorr>0.0
+
+
+
+
diff --git a/DEF-files/HMS/HODO/hhodoana_cuts.def b/DEF-files/HMS/TEST_STANDS/HODO/hhodoana_cuts.def
similarity index 100%
rename from DEF-files/HMS/HODO/hhodoana_cuts.def
rename to DEF-files/HMS/TEST_STANDS/HODO/hhodoana_cuts.def
diff --git a/DEF-files/HMS/TRIG/htrigana.def b/DEF-files/HMS/TEST_STANDS/TRIG/htrigana.def
similarity index 73%
rename from DEF-files/HMS/TRIG/htrigana.def
rename to DEF-files/HMS/TEST_STANDS/TRIG/htrigana.def
index 0ee87d7837995bdd20b03114caa21bbb0392513f..d24b18e32fb754b9a1006f5a8959cc751b2f5e47 100644
--- a/DEF-files/HMS/TRIG/htrigana.def
+++ b/DEF-files/HMS/TEST_STANDS/TRIG/htrigana.def
@@ -1,6 +1,10 @@
-# See $ANALYZER/examples/output_example.def for examples
-#
-block T.hms.*
+#********************
+# Trigger Apparatus *
+#********************
+
+#---------------------------
+# HMS Raw Hodo TRIG TDC Time
+#---------------------------
 
 TH1F htrig_h1x_tdc 'HMS h1X TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1X_tdcTimeRaw 1500 0 1500
 TH1F htrig_h1y_tdc 'HMS h1Y TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.h1Y_tdcTimeRaw 1500 0 1500
@@ -13,10 +17,28 @@ TH1F htrig_h2T_tdc 'HMS h2X/h2Y Coincidence TDC Time; Raw TDC Time (TDC Units);
 TH1F htrig_hT1_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 2); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT1_tdcTimeRaw 1500 0 1500
 TH1F htrig_hT2_tdc 'HMS h1X/h1Y/h2X/h2Y Coincidence TDC Time (Slot 20); Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hT2_tdcTimeRaw 1500 0 1500
 
-TH1F htrig_hdc_ref1 'HMS HDC Reference Time 1; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF1_tdcTimeRaw 15000 0 15000
-TH1F htrig_hdc_ref2 'HMS HDC Reference Time 2; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF2_tdcTimeRaw 15000 0 15000
-TH1F htrig_hdc_ref3 'HMS HDC Reference Time 3; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF3_tdcTimeRaw 15000 0 15000
-TH1F htrig_hdc_ref4 'HMS HDC Reference Time 4; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF4_tdcTimeRaw 15000 0 15000
+#----------------------------
+# HMS Raw DC Reference Time
+#----------------------------
+
+TH1F htrig_hdc_ref1 'HMS DC Reference Time 1; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF1_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref2 'HMS DC Reference Time 2; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF2_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref3 'HMS DC Reference Time 3; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF3_tdcTimeRaw 15000 0 15000
+TH1F htrig_hdc_ref4 'HMS DC Reference Time 4; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDCREF4_tdcTimeRaw 15000 0 15000
+
+
+TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF2_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF1_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF3_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF2_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4; TDC Time (Clicks); Number of Entries / 1 click' T.hms.hDCREF3_tdcTime-T.hms.hDCREF4_tdcTime 2000 -1000 1000
+
+
+#--------------------------------------------
+# HMS Calo Layers TRIG Raw Pulse Profile
+#--------------------------------------------
 
 TH1F htrig_hasum_adc_rawpped 'HMS hAsum Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPedRaw 500 0 5000
 TH1F htrig_hasum_adc_rawpi 'HMS hAsum Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPulseIntRaw 4000 0 40000
@@ -24,43 +46,27 @@ TH1F htrig_hasum_adc_rawpamp 'HMS hAsum Raw Pulse Amplitude; Raw Pulse Amplitude
 TH1F htrig_hasum_adc_rawptime 'HMS hAsum Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hasum_rawtdc 'HMS hAsum Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTimeRaw 4000 0 40000
 
-TH1F htrig_hasum_adc_pped 'HMS hAsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPed 500 0 5000
-TH1F htrig_hasum_adc_pi 'HMS hAsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPulseInt 4000 0 40000
-TH1F htrig_hasum_adc_pamp 'HMS hAsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPulseAmp 410 0 4100
-TH1F htrig_hasum_tdc 'HMS hAsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTime 4000 0 40000
-
 TH1F htrig_hbsum_adc_rawpped 'HMS hBsum Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPedRaw 500 0 5000
 TH1F htrig_hbsum_adc_rawpi 'HMS hBsum Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseIntRaw 4000 0 40000
 TH1F htrig_hbsum_adc_rawpamp 'HMS hBsum Raw Pulse Amplitude; Raw Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseAmpRaw 410 0 4100
 TH1F htrig_hbsum_adc_rawptime 'HMS hBsum Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hbsum_rawtdc 'HMS hBsum Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTimeRaw 4000 0 40000
 
-TH1F htrig_hbsum_adc_pped 'HMS hBsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPed 500 0 5000
-TH1F htrig_hbsum_adc_pi 'HMS hBsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hbsum_adc_pamp 'HMS hBsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseAmp 410 0 4100
-TH1F htrig_hbsum_tdc 'HMS hBsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTime 4000 0 40000
-
 TH1F htrig_hcsum_adc_rawpped 'HMS hCsum Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPedRaw 500 0 5000
 TH1F htrig_hcsum_adc_rawpi 'HMS hCsum Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseIntRaw 4000 0 40000
 TH1F htrig_hcsum_adc_rawpamp 'HMS hCsum Raw Pulse Amplitude; Raw Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseAmpRaw 410 0 4100
 TH1F htrig_hcsum_adc_rawptime 'HMS hCsum Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hcsum_rawtdc 'HMS hCsum Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTimeRaw 4000 0 40000
 
-TH1F htrig_hcsum_adc_pped 'HMS hCsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPed 500 0 5000
-TH1F htrig_hcsum_adc_pi 'HMS hCsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hcsum_adc_pamp 'HMS hCsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseAmp 410 0 4100
-TH1F htrig_hcsum_tdc 'HMS hCsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTime 4000 0 40000
-
 TH1F htrig_hdsum_adc_rawpped 'HMS hDsum Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPedRaw 500 0 5000
 TH1F htrig_hdsum_adc_rawpi 'HMS hDsum Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseIntRaw 4000 0 40000
 TH1F htrig_hdsum_adc_rawpamp 'HMS hDsum Raw Pulse Amplitude; Raw Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseAmpRaw 410 0 4100
 TH1F htrig_hdsum_adc_rawptime 'HMS hDsum Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hdsum_rawtdc 'HMS hDsum Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTimeRaw 4000 0 40000
 
-TH1F htrig_hdsum_adc_pped 'HMS hDsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPed 500 0 5000
-TH1F htrig_hdsum_adc_pi 'HMS hDsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseInt 4000 0 40000
-TH1F htrig_hdsum_adc_pamp 'HMS hDsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseAmp 410 0 4100
-TH1F htrig_hdsum_tdc 'HMS hDsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTime 4000 0 40000
+#-------------------------------------
+# HMS PreShower TRIG Raw Pulse Profile
+#-------------------------------------
 
 TH1F htrig_hpreShwr_adc_rawpped 'HMS Pre-Shower Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPedRaw 500 0 5000
 TH1F htrig_hpreShwr_adc_rawpi 'HMS Pre-Shower Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPulseIntRaw 4000 0 40000
@@ -68,48 +74,121 @@ TH1F htrig_hpreShwr_adc_rawpamp 'HMS Pre-Shower Raw Pulse Amplitude; Raw Pulse A
 TH1F htrig_hpreShwr_adc_rawptime 'HMS Pre-Shower Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hpreShwr_rawtdc 'HMS Pre-Shower Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWR_tdcTimeRaw 4000 0 40000
 
-TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPed 500 0 5000
-TH1F htrig_hpreShwr_adc_pi 'HMS Pre-Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPulseInt 4000 0 40000
-TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPulseAmp 410 0 4100
-TH1F htrig_hpreShwr_tdc 'HMS Pre-Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWR_tdcTime 4000 0 40000
-
 TH1F htrig_hpreShwrLow_tdc 'HMS hpreShwrLow TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRLO_tdcTimeRaw 4000 0 40000
 TH1F htrig_hpreShwrHigh_tdc 'HMS hpreShwrHigh TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWRHI_tdcTimeRaw 4000 0 40000
 
+#-----------------------------------
+# HMS Shower TRIG Raw Pulse Profile
+#-----------------------------------
+
 TH1F htrig_hshwr_adc_rawpped 'HMS Shower Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPedRaw 500 0 5000
 TH1F htrig_hshwr_adc_rawpi 'HMS Shower Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPulseIntRaw 4000 0 40000
 TH1F htrig_hshwr_adc_rawpamp 'HMS Shower Raw Pulse Amplitude; Raw Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPulseAmpRaw 410 0 4100
 TH1F htrig_hshwr_adc_rawptime 'HMS Shower Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hshwr_rawtdc 'HMS Shower Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hSHWR_tdcTimeRaw 4000 0 40000
 
+
+#--------------------------------------------
+# HMS Calo Layers TRIG Pulse Profile
+#--------------------------------------------
+
+TH1F htrig_hasum_adc_pped 'HMS hAsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPed 500 0 5000
+TH1F htrig_hasum_adc_pi 'HMS hAsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPulseInt 4000 0 40000
+TH1F htrig_hasum_adc_pamp 'HMS hAsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hASUM_adcPulseAmp 410 0 4100
+TH1F htrig_hasum_tdc 'HMS hAsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hASUM_tdcTime 4000 0 40000
+
+TH1F htrig_hbsum_adc_pped 'HMS hBsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPed 500 0 5000
+TH1F htrig_hbsum_adc_pi 'HMS hBsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseInt 4000 0 40000
+TH1F htrig_hbsum_adc_pamp 'HMS hBsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hBSUM_adcPulseAmp 410 0 4100
+TH1F htrig_hbsum_tdc 'HMS hBsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hBSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hcsum_adc_pped 'HMS hCsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPed 500 0 5000
+TH1F htrig_hcsum_adc_pi 'HMS hCsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseInt 4000 0 40000
+TH1F htrig_hcsum_adc_pamp 'HMS hCsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hCSUM_adcPulseAmp 410 0 4100
+TH1F htrig_hcsum_tdc 'HMS hCsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCSUM_tdcTime 4000 0 40000
+
+TH1F htrig_hdsum_adc_pped 'HMS hDsum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPed 500 0 5000
+TH1F htrig_hdsum_adc_pi 'HMS hDsum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseInt 4000 0 40000
+TH1F htrig_hdsum_adc_pamp 'HMS hDsum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hDSUM_adcPulseAmp 410 0 4100
+TH1F htrig_hdsum_tdc 'HMS hDsum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hDSUM_tdcTime 4000 0 40000
+
+#----------------------------------
+# HMS PreShower TRIG Pulse Profile
+#----------------------------------
+
+TH1F htrig_hpreShwr_adc_pped 'HMS Pre-Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPed 500 0 5000
+TH1F htrig_hpreShwr_adc_pi 'HMS Pre-Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPulseInt 4000 0 40000
+TH1F htrig_hpreShwr_adc_pamp 'HMS Pre-Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hPSHWR_adcPulseAmp 410 0 4100
+TH1F htrig_hpreShwr_tdc 'HMS Pre-Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hPSHWR_tdcTime 4000 0 40000
+
+#----------------------------------
+# HMS Shower TRIG Pulse Profile
+#----------------------------------
+
 TH1F htrig_hshwr_adc_pped 'HMS Shower Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPed 500 0 5000
 TH1F htrig_hshwr_adc_pi 'HMS Shower Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPulseInt 4000 0 40000
 TH1F htrig_hshwr_adc_pamp 'HMS Shower Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hSHWR_adcPulseAmp 410 0 4100
 TH1F htrig_hshwr_tdc 'HMS Shower TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hSHWR_tdcTime 4000 0 40000
 
+#------------------------------------------
+# HMS Gas Cherenkov TRIG Raw Pulse Profile
+#------------------------------------------
+
 TH1F htrig_hcersum_adc_rawpped 'HMS Cherenkov Sum Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPedRaw 500 0 5000
 TH1F htrig_hcersum_adc_rawpi 'HMS Cherenkov Sum Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPulseIntRaw 4000 0 40000
 TH1F htrig_hcersum_adc_rawpamp 'HMS Cherenkov Sum Raw Pulse Amplitude; Raw Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPulseAmpRaw 410 0 4100
 TH1F htrig_hcersum_adc_rawptime 'HMS Cherenkov Sum Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_hcersum_rawtdc 'HMS Cherenkov Sum Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCERSUM_tdcTimeRaw 4000 0 40000
 
+#---------------------------------------
+# HMS Gas Cherenkov TRIG Pulse Profile
+#---------------------------------------
+
 TH1F htrig_hcersum_adc_pped 'HMS Cherenkov Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPed 500 0 5000
 TH1F htrig_hcersum_adc_pi 'HMS Cherenkov Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPulseInt 4000 0 40000
 TH1F htrig_hcersum_adc_pamp 'HMS Cherenkov Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hCERSUM_adcPulseAmp 410 0 4100
 TH1F htrig_hcersum_tdc 'HMS Cherenkov Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hCERSUM_tdcTime 4000 0 40000
 
+#------------------------------------------
+# HMS Aerogel TRIG Raw Pulse Profile
+#------------------------------------------
+
 TH1F htrig_haersum_adc_rawpped 'HMS Aerogel Sum Raw Pulse Pedestal; Raw Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPedRaw 500 0 5000
 TH1F htrig_haersum_adc_rawpi 'HMS Aerogel Sum Raw Pulse Integral; Raw Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPulseIntRaw 4000 0 40000
 TH1F htrig_haersum_adc_rawpamp 'HMS Aerogel Sum Raw Pulse Amplitude; Raw Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPulseAmpRaw 410 0 4100
 TH1F htrig_haersum_adc_rawptime 'HMS Aerogel Sum Raw Pulse Time; Raw Pulse Time (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPulseTimeRaw 2000 0 20000
 TH1F htrig_haersum_rawtdc 'HMS Aerogel Sum Raw TDC Time; Raw TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hAERSUM_tdcTimeRaw 4000 0 40000
 
+#------------------------------------------
+# HMS Aerogel TRIG Raw Pulse Profile
+#------------------------------------------
+
 TH1F htrig_haersum_adc_pped 'HMS Aerogel Sum Pulse Pedestal;  Pulse Pedestal (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPed 500 0 5000
 TH1F htrig_haersum_adc_pi 'HMS Aerogel Sum Pulse Integral;  Pulse Integral (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPulseInt 4000 0 40000
 TH1F htrig_haersum_adc_pamp 'HMS Aerogel Sum Pulse Amplitude;  Pulse Amplitude (ADC Units); Counts / 10 ADC Units;' T.hms.hAERSUM_adcPulseAmp 410 0 4100
 TH1F htrig_haersum_tdc 'HMS Aerogel Sum TDC Time;  TDC Time (TDC Units); Counts / 10 TDC Units;' T.hms.hAERSUM_tdcTime 4000 0 40000
 
 
-
-
+#-------------
+# Fast Raster 
+#-------------
+
+# Assume FADC range is set to 1V and the integration is 25 channels
+# Offset in the FADC is about 0.122V or 500 channels.
+
+formula FRXA_V T.hms.pFRXA_adcPulseIntRaw*(1./4096.)/25.
+formula FRXB_V T.hms.pFRXB_adcPulseIntRaw*(1./4096.)/25.
+formula FRYA_V T.hms.pFRYA_adcPulseIntRaw*(1./4096.)/25.
+formula FRYB_V T.hms.pFRYB_adcPulseIntRaw*(1./4096.)/25.
+
+TH1F hFRXA 'HMS FRXA; FRXA RAW ADC (chan); Counts' T.hms.pFRXA_adcPulseIntRaw 1000 0 100000
+TH1F hFRXA_V 'HMS FRXA; FRXA RAW ADC (Volts); Counts' FRXA_V 1000 0 1.0
+TH1F hFRXB 'HMS FRXB; FRXB RAW ADC (chan); Counts' T.hms.pFRXB_adcPulseIntRaw 1000 0 100000
+TH1F hFRXB_V 'HMS FRXB; FRXB RAW ADC (Volts); Counts' FRXB_V 1000 0 1.0
+TH1F hFRYA 'HMS FRYA; FRYA RAW ADC (chan); Counts' T.hms.pFRYA_adcPulseIntRaw 1000 0 100000
+TH1F hFRYA_V 'HMS FRYA; FRYA RAW ADC (Volts); Counts' FRYA_V 1000 0 1.0
+TH1F hFRYB 'HMS FRYB; FRYB RAW ADC (chan); Counts' T.hms.pFRYB_adcPulseIntRaw 1000 0 100000
+TH1F hFRYB_V 'HMS FRYB; FRYB RAW ADC (Volts); Counts' FRYB_V 1000 0 1.0
+TH2F hFRA_XvsY 'HMSFRA_XvsY; FRXA RAW ADC (Volts); FRYA RAW ADC (Volts)' FRXA_V FRYA_V 1000 0 1.0 1000 0 1.0
+TH2F hFRB_XvsY 'HMSFRB_XvsY; FRXB RAW ADC (Volts); FRYB RAW ADC (Volts)' FRXB_V FRYB_V 1000 0 1.0 1000 0 1.0
 
diff --git a/DEF-files/HMS/TRIG/htrigana_cuts.def b/DEF-files/HMS/TEST_STANDS/TRIG/htrigana_cuts.def
similarity index 100%
rename from DEF-files/HMS/TRIG/htrigana_cuts.def
rename to DEF-files/HMS/TEST_STANDS/TRIG/htrigana_cuts.def
diff --git a/DEF-files/SHMS/PRODUCTION/BLOCK/pblock_vars.def b/DEF-files/SHMS/PRODUCTION/BLOCK/pblock_vars.def
index 4d4ad24c98bb4ba28cb5edf8dd6dd1fbf26d0188..c8a1c03e0282a1287a36eadc4eca1fabc2dbd1d7 100644
--- a/DEF-files/SHMS/PRODUCTION/BLOCK/pblock_vars.def
+++ b/DEF-files/SHMS/PRODUCTION/BLOCK/pblock_vars.def
@@ -10,4 +10,5 @@ block P.hod.*
 block P.hgcer.*
 block P.aero.*
 block P.cal.*
-block P.gtr.*
\ No newline at end of file
+block P.gtr.*
+block P.kin.*
diff --git a/DEF-files/SHMS/PRODUCTION/KIN/pkin_histos.def b/DEF-files/SHMS/PRODUCTION/KIN/pkin_histos.def
new file mode 100644
index 0000000000000000000000000000000000000000..83e72e81f8620226fd273d24c02c448ecbd779f3
--- /dev/null
+++ b/DEF-files/SHMS/PRODUCTION/KIN/pkin_histos.def
@@ -0,0 +1,11 @@
+
+#*****************************************
+# SHMS Single Arm Primary (Scattered Beam)
+# Kinematic Quantities
+#*****************************************
+
+TH1F pkin_q2 'SHMS Q2; Q2 (GeV^{2}); Number of Entries / 0.050 GeV^{2}' P.kin.Q2 100 0 5
+TH1F pkin_omega 'SHMS Omega; E_{beam} - E_{scat} (GeV); Number of Entries / 0.050 GeV' P.kin.omega 100 0 5
+TH1F pkin_w2 'SHMS W2; W2 (GeV^{2}); Number of Entries / 0.100 GeV^{2}' P.kin.W2 100 0 10
+TH1F pkin_w  'SHMS W; W  (GeV); Number of Entries / 0.050 GeV' P.kin.W 100 0 5
+TH1F pkin_theta 'SHMS Scattering Angle Theta; SHMS Scattering Angle (deg); Number of Entries / 0.06 deg' P.kin.scat_ang_deg 100 12 18
diff --git a/DEF-files/SHMS/PRODUCTION/merge_list.txt b/DEF-files/SHMS/PRODUCTION/merge_list.txt
index 4a07205890e0e2cbc50574eb66e76b3d58ad5001..b0cf13087dcde6b3171f2f9cffb5c0ef674fc7aa 100644
--- a/DEF-files/SHMS/PRODUCTION/merge_list.txt
+++ b/DEF-files/SHMS/PRODUCTION/merge_list.txt
@@ -6,4 +6,5 @@ HGCER/phgcer_histos.def
 AERO/paero_histos.def
 CAL/pcal_histos.def
 TRIG/ptrig_histos.def
+KIN/pkin_histos.def
 EPICS/pepics_vars.def
diff --git a/DEF-files/SHMS/PRODUCTION/pstackana_production.def b/DEF-files/SHMS/PRODUCTION/pstackana_production.def
index 3e4ed2bc1f190de2f98cd566589cc4335370c90a..96ccf76e2203d16b224aa3883a4d848d6e6662b6 100644
--- a/DEF-files/SHMS/PRODUCTION/pstackana_production.def
+++ b/DEF-files/SHMS/PRODUCTION/pstackana_production.def
@@ -13,6 +13,8 @@ block P.hgcer.*
 block P.aero.*
 block P.cal.*
 block P.gtr.*
+block P.kin.*
+
 
 #**********************
 # Noble Gas Cherenkov *
@@ -682,6 +684,19 @@ TH1F pFRYB_V 'SHMS FRYB; FRYB RAW ADC (Volts); Counts' FRYB_V 1000 0 1.0
 TH2F pFRA_XvsY 'HMSFRA_XvsY; FRXA RAW ADC (Volts); FRYA RAW ADC (Volts)' FRXA_V FRYA_V 1000 0 1.0 1000 0 1.0
 TH2F pFRB_XvsY 'HMSFRB_XvsY; FRXB RAW ADC (Volts); FRYB RAW ADC (Volts)' FRXB_V FRYB_V 1000 0 1.0 1000 0 1.0
 
+
+#*****************************************
+# SHMS Single Arm Primary (Scattered Beam)
+# Kinematic Quantities
+#*****************************************
+
+TH1F pkin_q2 'SHMS Q2; Q2 (GeV^{2}); Number of Entries / 0.050 GeV^{2}' P.kin.Q2 100 0 5
+TH1F pkin_omega 'SHMS Omega; E_{beam} - E_{scat} (GeV); Number of Entries / 0.050 GeV' P.kin.omega 100 0 5
+TH1F pkin_w2 'SHMS W2; W2 (GeV^{2}); Number of Entries / 0.100 GeV^{2}' P.kin.W2 100 0 10
+TH1F pkin_w  'SHMS W; W  (GeV); Number of Entries / 0.050 GeV' P.kin.W 100 0 5
+TH1F pkin_theta 'SHMS Scattering Angle Theta; SHMS Scattering Angle (deg); Number of Entries / 0.06 deg' P.kin.scat_ang_deg 100 12 18
+
+
 #******************
 # EPICS VARIABLES *
 #******************
diff --git a/DEF-files/SHMS/SCALERS/pscaler_cuts.def b/DEF-files/SHMS/SCALERS/pscaler_cuts.def
index 4868f694798b9feffa8f308c4182381563e98681..af374d29493dde7fbdb84559f07c6cdd7bde7323 100644
--- a/DEF-files/SHMS/SCALERS/pscaler_cuts.def
+++ b/DEF-files/SHMS/SCALERS/pscaler_cuts.def
@@ -4,20 +4,20 @@ Block: RawDecode
 
 Pedestal_event     g.evtyp == 4
 scalar_event       g.evtyp == 0
-HMS_event          g.evtyp == 1
+#HMS_event          g.evtyp == 1
 SHMS_event         g.evtyp == 1
-coin_event         g.evtyp == 3
+#coin_event         g.evtyp == 3
 misc_event         g.evtyp >= 5
-hmscoin_event      HMS_event || coin_event
-shmscoin_event     SHMS_event || coin_event
-all_event          HMS_event || SHMS_event || coin_event
+#hmscoin_event      HMS_event || coin_event
+#shmscoin_event     SHMS_event || coin_event
+#all_event          HMS_event || SHMS_event || coin_event
 
 RawDecode_master  1
 
 Block: Decode
 
-all_trigs          HMS_event || SHMS_event || coin_event
-shms_coin_trig     SHMS_event || coin_event
+#all_trigs          HMS_event || SHMS_event || coin_event
+#shms_coin_trig     SHMS_event || coin_event
 
 Decode_master     SHMS_event
 
diff --git a/MAPS/HMS/DETEC/haero.map b/MAPS/HMS/DETEC/AERO/haero.map
similarity index 100%
rename from MAPS/HMS/DETEC/haero.map
rename to MAPS/HMS/DETEC/AERO/haero.map
diff --git a/MAPS/HMS/DETEC/AERO/haero_htrig.map b/MAPS/HMS/DETEC/AERO/haero_htrig.map
new file mode 100644
index 0000000000000000000000000000000000000000..d6129c33ec390abef7196a61d5899b06052ae529
--- /dev/null
+++ b/MAPS/HMS/DETEC/AERO/haero_htrig.map
@@ -0,0 +1,78 @@
+! THMS_ID=10       ::  ADC,TDC
+! HAERO_ID=12      ::  (TDC),ADC
+
+
+DETECTOR=10
+
+ROC=1
+
+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
+REFINDEX=0
+   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,1000,   0,   0  ! hTref
+   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=12
+
+ROC=1
+
+SLOT=16
+   8,   1,   1,   1  ! hAER01-
+   9,   1,   2,   1  ! hAER02-
+  10,   1,   3,   1  ! hAER03-
+  11,   1,   4,   1  ! hAER04-
+  12,   1,   5,   1  ! hAER05-
+  13,   1,   6,   1  ! hAER06-
+  14,   1,   7,   1  ! hAER07-
+  15,   1,   8,   1  ! hAER08-
+
+SLOT=17
+   0,   1,   1,   0  ! hAER01+
+   1,   1,   2,   0  ! hAER02+
+   2,   1,   3,   0  ! hAER03+
+   3,   1,   4,   0  ! hAER04+
+   4,   1,   5,   0  ! hAER05+
+   5,   1,   6,   0  ! hAER06+
+   6,   1,   7,   0  ! hAER07+
+   7,   1,   8,   0  ! hAER08+
diff --git a/MAPS/HMS/DETEC/hcal.map b/MAPS/HMS/DETEC/CAL/hcal.map
similarity index 100%
rename from MAPS/HMS/DETEC/hcal.map
rename to MAPS/HMS/DETEC/CAL/hcal.map
diff --git a/MAPS/HMS/DETEC/hcal_htrig.map b/MAPS/HMS/DETEC/CAL/hcal_htrig.map
similarity index 97%
rename from MAPS/HMS/DETEC/hcal_htrig.map
rename to MAPS/HMS/DETEC/CAL/hcal_htrig.map
index 3c34c7d201d67f67c9532c06b456b1f9d82369db..47c4dffd4433f39a9e456eb1e1ea31d4dffec625 100644
--- a/MAPS/HMS/DETEC/hcal_htrig.map
+++ b/MAPS/HMS/DETEC/CAL/hcal_htrig.map
@@ -1,5 +1,5 @@
 ! THMS_ID=10       ::  ADC,TDC
-! HCAL_ID=15       ::  ADC,TDC
+! HCAL_ID=15       ::  ADC
 
 
 DETECTOR=10
@@ -17,13 +17,14 @@ SLOT=17
   15,   1,   8,   0  ! hCERSUM
 
 SLOT=2
+REFINDEX=0
    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
+   6,1000,   0,   0  ! hTref
    7,   2,   8,   1  ! hASUM
    8,   2,   9,   1  ! hBSUM
    9,   2,  10,   1  ! hCSUM
diff --git a/MAPS/HMS/DETEC/hcer.map b/MAPS/HMS/DETEC/CER/hcer.map
similarity index 100%
rename from MAPS/HMS/DETEC/hcer.map
rename to MAPS/HMS/DETEC/CER/hcer.map
diff --git a/MAPS/HMS/DETEC/hcer_htrig.map b/MAPS/HMS/DETEC/CER/hcer_htrig.map
similarity index 96%
rename from MAPS/HMS/DETEC/hcer_htrig.map
rename to MAPS/HMS/DETEC/CER/hcer_htrig.map
index f46b6ef66ff57c8484f9b34554f1fc40922e734a..7dde3c534ab00a0e9b6f2708173979db9c932ee3 100644
--- a/MAPS/HMS/DETEC/hcer_htrig.map
+++ b/MAPS/HMS/DETEC/CER/hcer_htrig.map
@@ -17,13 +17,14 @@ SLOT=17
   15,   1,   8,   0  ! hCERSUM
 
 SLOT=2
+REFINDEX=0
    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
+   6,1000,   0,   0  ! hTref
    7,   2,   8,   1  ! hASUM
    8,   2,   9,   1  ! hBSUM
    9,   2,  10,   1  ! hCSUM
diff --git a/MAPS/HMS/DETEC/hdc.map b/MAPS/HMS/DETEC/DC/hdc_6gev.map
similarity index 100%
rename from MAPS/HMS/DETEC/hdc.map
rename to MAPS/HMS/DETEC/DC/hdc_6gev.map
diff --git a/MAPS/HMS/DETEC/hdc_htrig.map b/MAPS/HMS/DETEC/DC/hdc_6gev_htrig.map
similarity index 99%
rename from MAPS/HMS/DETEC/hdc_htrig.map
rename to MAPS/HMS/DETEC/DC/hdc_6gev_htrig.map
index 19919a9bacd4d6ed981b3ae831c085321d7a182f..873e201cd984b0d7dcbb9d5cc5c3a577a73e6d60 100644
--- a/MAPS/HMS/DETEC/hdc_htrig.map
+++ b/MAPS/HMS/DETEC/DC/hdc_6gev_htrig.map
@@ -1,6 +1,7 @@
 ! THMS_ID=10       ::  ADC,TDC
 ! HDC_ID=11        ::  TDC
 
+
 DETECTOR=10
 
 ROC=1
diff --git a/MAPS/HMS/DETEC/hhodo.map b/MAPS/HMS/DETEC/HODO/hhodo.map
similarity index 100%
rename from MAPS/HMS/DETEC/hhodo.map
rename to MAPS/HMS/DETEC/HODO/hhodo.map
diff --git a/MAPS/HMS/DETEC/hhodo_htrig.map b/MAPS/HMS/DETEC/HODO/hhodo_htrig.map
similarity index 98%
rename from MAPS/HMS/DETEC/hhodo_htrig.map
rename to MAPS/HMS/DETEC/HODO/hhodo_htrig.map
index 9d28bae5b459fe75c5a60dadd806137d668eb555..76fb62c95604f4d006d642dee31d6033bea52817 100644
--- a/MAPS/HMS/DETEC/hhodo_htrig.map
+++ b/MAPS/HMS/DETEC/HODO/hhodo_htrig.map
@@ -1,5 +1,5 @@
 ! THMS_ID=10       ::  ADC,TDC
-! HSCIN_ID=13      ::  ADC,TDC
+! HSCIN_ID=13      ::  ADC+,ADC-,TDC+,TDC-
 
 
 DETECTOR=10
@@ -17,13 +17,14 @@ SLOT=17
   15,   1,   8,   0  ! hCERSUM
 
 SLOT=2
+REFINDEX=0
    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
+   6,1000,   0,   0  ! hTref
    7,   2,   8,   1  ! hASUM
    8,   2,   9,   1  ! hBSUM
    9,   2,  10,   1  ! hCSUM
diff --git a/MAPS/HMS/DETEC/hraster_simple.map b/MAPS/HMS/DETEC/RASTER/hraster_simple.map
similarity index 100%
rename from MAPS/HMS/DETEC/hraster_simple.map
rename to MAPS/HMS/DETEC/RASTER/hraster_simple.map
diff --git a/MAPS/HMS/DETEC/hms_stack.map b/MAPS/HMS/DETEC/STACK/hms_stack.map
similarity index 99%
rename from MAPS/HMS/DETEC/hms_stack.map
rename to MAPS/HMS/DETEC/STACK/hms_stack.map
index 5885eeb12610c972ac611a2f5d5c9bc00a5d371d..40c1ff1c002f7865f2b824a11e35c31e83913772 100644
--- a/MAPS/HMS/DETEC/hms_stack.map
+++ b/MAPS/HMS/DETEC/STACK/hms_stack.map
@@ -20,6 +20,13 @@ SLOT=17
   14,   1,   7,   0  ! hAERSUM
   15,   1,   8,   0  ! hCERSUM
 
+SLOT=18
+! chan    plane     bar    sig
+     12,      1,      9,     0!  hFRXA
+     13,      1,     10,     0!  hFRYA
+     14,      1,     11,     0!  hFRXB
+     15,      1,     12,     0!  hFRYB 
+
 SLOT=2
 REFINDEX=0
    0,   2,   1,   1  ! h1X
diff --git a/MAPS/HMS/DETEC/htrig.map b/MAPS/HMS/DETEC/TRIG/htrig.map
similarity index 89%
rename from MAPS/HMS/DETEC/htrig.map
rename to MAPS/HMS/DETEC/TRIG/htrig.map
index 50b44a0ab438e5b7168cb2289e3929e37badc856..bf86bea8f90bd52558e048c62fdb9c7db6fe2ffc 100644
--- a/MAPS/HMS/DETEC/htrig.map
+++ b/MAPS/HMS/DETEC/TRIG/htrig.map
@@ -20,6 +20,13 @@ SLOT=17
      14,      1,      7,     0!  hAERSUM
      15,      1,      8,     0!  hCERSUM
 
+SLOT=18
+! chan    plane     bar    sig
+     12,      1,      9,     0!  hFRXA
+     13,      1,     10,     0!  hFRYA
+     14,      1,     11,     0!  hFRXB
+     15,      1,     12,     0!  hFRYB 
+
 !CAEN1190 module
 SLOT=2
 REFINDEX=0
diff --git a/MAPS/HMS/DETEC/hdc_hhodo_htrig.map b/MAPS/HMS/DETEC/hdc_hhodo_htrig.map
deleted file mode 100644
index 4dca1bad44cb557531cf8f8af60a1d867080bd5f..0000000000000000000000000000000000000000
--- a/MAPS/HMS/DETEC/hdc_hhodo_htrig.map
+++ /dev/null
@@ -1,1445 +0,0 @@
-! THMS_ID=10       ::  ADC,TDC
-! HDC_ID=11        ::  TDC
-! HSCIN_ID=13      ::  ADC+,ADC-,TDC+,TDC-
-
-DETECTOR=10
-
-ROC=1
-
-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
-REFINDEX=0
-   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,1000,   0,   0  ! hTref
-   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=4
-REFINDEX=1
-  98,   3,   1  ! Plane U, wire 1
-  99,   3,   2  ! Plane U, wire 2
- 100,   3,   3  ! Plane U, wire 3
- 101,   3,   4  ! Plane U, wire 4
- 102,   3,   5  ! Plane U, wire 5
- 103,   3,   6  ! Plane U, wire 6
- 104,   3,   7  ! Plane U, wire 7
- 105,   3,   8  ! Plane U, wire 8
- 106,   3,   9  ! Plane U, wire 9
- 107,   3,  10  ! Plane U, wire 10
- 108,   3,  11  ! Plane U, wire 11
- 109,   3,  12  ! Plane U, wire 12
- 110,   3,  13  ! Plane U, wire 13
- 111,   3,  14  ! Plane U, wire 14
-  96,   1, 113  ! Plane X, wire 113
-
-SLOT=5
-REFINDEX=1
- 111,1000,   0,   0
-  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=1
-  98,   4,   1  ! Plane V, wire 1
-  99,   4,   2  ! Plane V, wire 2
- 100,   4,   3  ! Plane V, wire 3
- 101,   4,   4  ! Plane V, wire 4
- 102,   4,   5  ! Plane V, wire 5
- 103,   4,   6  ! Plane V, wire 6
- 104,   4,   7  ! Plane V, wire 7
- 105,   4,   8  ! Plane V, wire 8
- 106,   4,   9  ! Plane V, wire 9
- 107,   4,  10  ! Plane V, wire 10
- 108,   4,  11  ! Plane V, wire 11
- 109,   4,  12  ! Plane V, wire 12
- 110,   4,  13  ! Plane V, wire 13
- 111,   4,  14  ! Plane V, wire 14
-  96,   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=1
- 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=5
-REFINDEX=1
-  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
-
-SLOT=4
-REFINDEX=1
-  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
- 112,   1,  97  ! Plane X, wire 97
- 113,   1,  98  ! Plane X, wire 98
- 114,   1,  99  ! Plane X, wire 99
- 115,   1, 100  ! Plane X, wire 100
- 116,   1, 101  ! Plane X, wire 101
- 117,   1, 102  ! Plane X, wire 102
- 118,   1, 103  ! Plane X, wire 103
- 119,   1, 104  ! Plane X, wire 104
- 120,   1, 105  ! Plane X, wire 105
- 121,   1, 106  ! Plane X, wire 106
- 122,   1, 107  ! Plane X, wire 107
- 123,   1, 108  ! Plane X, wire 108
- 124,   1, 109  ! Plane X, wire 109
- 125,   1, 110  ! Plane X, wire 110
- 126,   1, 111  ! Plane X, wire 111
- 127,   1, 112  ! Plane X, wire 112
-
-SLOT=7
-REFINDEX=1
-  80,   6,   1  ! Plane X', wire 1
-  81,   6,   2  ! Plane X', wire 2
-  82,   6,   3  ! Plane X', wire 3
-  83,   6,   4  ! Plane X', wire 4
-  84,   6,   5  ! Plane X', wire 5
-  85,   6,   6  ! Plane X', wire 6
-  86,   6,   7  ! Plane X', wire 7
-  87,   6,   8  ! Plane X', wire 8
-  88,   6,   9  ! Plane X', wire 9
-  89,   6,  10  ! Plane X', wire 10
-  90,   6,  11  ! Plane X', wire 11
-  91,   6,  12  ! Plane X', wire 12
-  92,   6,  13  ! Plane X', wire 13
-  93,   6,  14  ! Plane X', wire 14
-  94,   6,  15  ! Plane X', wire 15
-  95,   6,  16  ! Plane X', wire 16
-
-SLOT=5
-REFINDEX=1
- 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=1
-   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=1
-  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=1
- 127,1000,   0,   2
-  48,   5,   1  ! Plane Y', wire 1
-  49,   5,   2  ! Plane Y', wire 2
-  50,   5,   3  ! Plane Y', wire 3
-  51,   5,   4  ! Plane Y', wire 4
-  52,   5,   5  ! Plane Y', wire 5
-  53,   5,   6  ! Plane Y', wire 6
-  54,   5,   7  ! Plane Y', wire 7
-  55,   5,   8  ! Plane Y', wire 8
-  56,   5,   9  ! Plane Y', wire 9
-  57,   5,  10  ! Plane Y', wire 10
-  58,   5,  11  ! Plane Y', wire 11
-  59,   5,  12  ! Plane Y', wire 12
-  60,   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
-   2,   5,  40  ! Plane Y', wire 40
-   3,   5,  41  ! Plane Y', wire 41
-   4,   5,  42  ! Plane Y', wire 42
-   5,   5,  43  ! Plane Y', wire 43
-   6,   5,  44  ! Plane Y', wire 44
-   7,   5,  45  ! Plane Y', wire 45
-   8,   5,  46  ! Plane Y', wire 46
-   9,   5,  47  ! Plane Y', wire 47
-  10,   5,  48  ! Plane Y', wire 48
-  11,   5,  49  ! Plane Y', wire 49
-  12,   5,  50  ! Plane Y', wire 50
-  13,   5,  51  ! Plane Y', wire 51
-  14,   5,  52  ! Plane Y', wire 52
-
-SLOT=16
-REFINDEX=1
-  98,  12,   3  ! Plane X', wire 3
-  99,  12,   4  ! Plane X', wire 4
- 100,  12,   5  ! Plane X', wire 5
- 101,  12,   6  ! Plane X', wire 6
- 102,  12,   7  ! Plane X', wire 7
- 103,  12,   8  ! Plane X', wire 8
- 104,  12,   9  ! Plane X', wire 9
- 105,  12,  10  ! Plane X', wire 10
- 106,  12,  11  ! Plane X', wire 11
- 107,  12,  12  ! Plane X', wire 12
- 108,  12,  13  ! Plane X', wire 13
- 109,  12,  14  ! Plane X', wire 14
- 110,  12,  15  ! Plane X', wire 15
- 111,  12,  16  ! Plane X', wire 16
-  96,   7, 113  ! Plane X, wire 113
- 112,  12,  17  ! Plane X', wire 17
- 113,  12,  18  ! Plane X', wire 18
- 114,  12,  19  ! Plane X', wire 19
- 115,  12,  20  ! Plane X', wire 20
- 116,  12,  21  ! Plane X', wire 21
- 117,  12,  22  ! Plane X', wire 22
- 118,  12,  23  ! Plane X', wire 23
- 119,  12,  24  ! Plane X', wire 24
- 120,  12,  25  ! Plane X', wire 25
- 121,  12,  26  ! Plane X', wire 26
- 122,  12,  27  ! Plane X', wire 27
- 123,  12,  28  ! Plane X', wire 28
- 124,  12,  29  ! Plane X', wire 29
- 125,  12,  30  ! Plane X', wire 30
- 126,  12,  31  ! Plane X', wire 31
-
-SLOT=14
-REFINDEX=1
-   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=1
-  82,  10,   1  ! Plane V, wire 1
-  83,  10,   2  ! Plane V, wire 2
-  84,  10,   3  ! Plane V, wire 3
-  85,  10,   4  ! Plane V, wire 4
-  86,  10,   5  ! Plane V, wire 5
-  87,  10,   6  ! Plane V, wire 6
-  88,  10,   7  ! Plane V, wire 7
-  89,  10,   8  ! Plane V, wire 8
-  90,  10,   9  ! Plane V, wire 9
-  91,  10,  10  ! Plane V, wire 10
-  92,  10,  11  ! Plane V, wire 11
-  93,  10,  12  ! Plane V, wire 12
-  94,  10,  13  ! Plane V, wire 13
-  95,  10,  14  ! Plane V, wire 14
-  80,  12, 113  ! Plane X', wire 113
-
-SLOT=14
-REFINDEX=1
-  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=1
- 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=1
-   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,   9,   1  ! Plane U, wire 1
- 115,   9,   2  ! Plane U, wire 2
- 116,   9,   3  ! Plane U, wire 3
- 117,   9,   4  ! Plane U, wire 4
- 118,   9,   5  ! Plane U, wire 5
- 119,   9,   6  ! Plane U, wire 6
- 120,   9,   7  ! Plane U, wire 7
- 121,   9,   8  ! Plane U, wire 8
- 122,   9,   9  ! Plane U, wire 9
- 123,   9,  10  ! Plane U, wire 10
- 124,   9,  11  ! Plane U, wire 11
- 125,   9,  12  ! Plane U, wire 12
- 126,   9,  13  ! Plane U, wire 13
- 127,   9,  14  ! Plane U, wire 14
-
-SLOT=14
-REFINDEX=1
-  16,   9,  15  ! Plane U, wire 15
-  17,   9,  16  ! Plane U, wire 16
-  18,   9,  17  ! Plane U, wire 17
-  19,   9,  18  ! Plane U, wire 18
-  20,   9,  19  ! Plane U, wire 19
-  21,   9,  20  ! Plane U, wire 20
-  22,   9,  21  ! Plane U, wire 21
-  23,   9,  22  ! Plane U, wire 22
-  24,   9,  23  ! Plane U, wire 23
-  25,   9,  24  ! Plane U, wire 24
-  26,   9,  25  ! Plane U, wire 25
-  27,   9,  26  ! Plane U, wire 26
-  28,   9,  27  ! Plane U, wire 27
-  29,   9,  28  ! Plane U, wire 28
-  30,   9,  29  ! Plane U, wire 29
-  31,  12,  32  ! Plane X', wire 32
-
-SLOT=16
-REFINDEX=1
-   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=1
-  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=1
- 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=1
-
-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-
diff --git a/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map b/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map
deleted file mode 100644
index 42fe686c1d8e943c89dd655691e0d56741afc7d4..0000000000000000000000000000000000000000
--- a/MAPS/HMS/DETEC/hms_stack_spring17_current_run.map
+++ /dev/null
@@ -1,1548 +0,0 @@
-! 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=1
-
-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=4
-REFINDEX=1
-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
-
-SLOT=5
-REFINDEX=1
-111,1000, 0, 0
-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=1
-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=1
-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=5
-REFINDEX=1
-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
-
-SLOT=4
-REFINDEX=1
-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
-112,1,97 ! Plane X, wire 97
-113,1,98 ! Plane X, wire 98
-114,1,99 ! Plane X, wire 99
-115,1,100 ! Plane X, wire 100
-116,1,101 ! Plane X, wire 101
-117,1,102 ! Plane X, wire 102
-118,1,103 ! Plane X, wire 103
-119,1,104 ! Plane X, wire 104
-120,1,105 ! Plane X, wire 105
-121,1,106 ! Plane X, wire 106
-122,1,107 ! Plane X, wire 107
-123,1,108 ! Plane X, wire 108
-124,1,109 ! Plane X, wire 109
-125,1,110 ! Plane X, wire 110
-126,1,111 ! Plane X, wire 111
-127,1,112 ! Plane X, wire 112
-
-SLOT=7
-REFINDEX=1
-80,6,1 ! Plane X', wire 1
-81,6,2 ! Plane X', wire 2
-82,6,3 ! Plane X', wire 3
-83,6,4 ! Plane X', wire 4
-84,6,5 ! Plane X', wire 5
-85,6,6 ! Plane X', wire 6
-86,6,7 ! Plane X', wire 7
-87,6,8 ! Plane X', wire 8
-88,6,9 ! Plane X', wire 9
-89,6,10 ! Plane X', wire 10
-90,6,11 ! Plane X', wire 11
-91,6,12 ! Plane X', wire 12
-92,6,13 ! Plane X', wire 13
-93,6,14 ! Plane X', wire 14
-94,6,15 ! Plane X', wire 15
-95,6,16 ! Plane X', wire 16
-
-SLOT=5
-REFINDEX=1
-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=1
-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=1
-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=1
-127,1000,0,2
-48,5,1 ! Plane Y', wire 1
-49,5,2 ! Plane Y', wire 2
-50,5,3 ! Plane Y', wire 3
-51,5,4 ! Plane Y', wire 4
-52,5,5 ! Plane Y', wire 5
-53,5,6 ! Plane Y', wire 6
-54,5,7 ! Plane Y', wire 7
-55,5,8 ! Plane Y', wire 8
-56,5,9 ! Plane Y', wire 9
-57,5,10 ! Plane Y', wire 10
-58,5,11 ! Plane Y', wire 11
-59,5,12 ! Plane Y', wire 12
-60,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
-0,5,40 ! Plane Y', wire 40
-1,5,41 ! Plane Y', wire 41
-2,5,42 ! Plane Y', wire 42
-3,5,43 ! Plane Y', wire 43
-4,5,44 ! Plane Y', wire 44
-5,5,45 ! Plane Y', wire 45
-6,5,46 ! Plane Y', wire 46
-7,5,47 ! Plane Y', wire 47
-8,5,48 ! Plane Y', wire 48
-9,5,49 ! Plane Y', wire 49
-10,5,50 ! Plane Y', wire 50
-11,5,51 ! Plane Y', wire 51
-12,5,52 ! Plane Y', wire 52
-
-SLOT=16
-REFINDEX=1
-  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=1
-   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=1
-  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=1
-  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=1
- 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=1
-   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=1
-  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=1
-   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=1
-  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=1
- 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=1
-
-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=1
-
-SLOT=7
-  14,   1,   1,   0  ! hCER01
-  15,   1,   2,   0  ! hCER02
-
-
-DETECTOR=15
-
-ROC=1
-
-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/HMS/DETEC/hms_stack_spring17_run_00001_00243.map b/MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map
deleted file mode 100644
index 774467590f8cf65304afd4abd7a8f73bee1ba1c2..0000000000000000000000000000000000000000
--- a/MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map
+++ /dev/null
@@ -1,1547 +0,0 @@
-! 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=4
-REFINDEX=1
-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
-
-SLOT=5
-REFINDEX=1
-111,1000, 0, 0
-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=1
-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=1
-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=5
-REFINDEX=1
-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
-
-SLOT=4
-REFINDEX=1
-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
-112,1,97 ! Plane X, wire 97
-113,1,98 ! Plane X, wire 98
-114,1,99 ! Plane X, wire 99
-115,1,100 ! Plane X, wire 100
-116,1,101 ! Plane X, wire 101
-117,1,102 ! Plane X, wire 102
-118,1,103 ! Plane X, wire 103
-119,1,104 ! Plane X, wire 104
-120,1,105 ! Plane X, wire 105
-121,1,106 ! Plane X, wire 106
-122,1,107 ! Plane X, wire 107
-123,1,108 ! Plane X, wire 108
-124,1,109 ! Plane X, wire 109
-125,1,110 ! Plane X, wire 110
-126,1,111 ! Plane X, wire 111
-127,1,112 ! Plane X, wire 112
-
-SLOT=7
-REFINDEX=1
-80,6,1 ! Plane X', wire 1
-81,6,2 ! Plane X', wire 2
-82,6,3 ! Plane X', wire 3
-83,6,4 ! Plane X', wire 4
-84,6,5 ! Plane X', wire 5
-85,6,6 ! Plane X', wire 6
-86,6,7 ! Plane X', wire 7
-87,6,8 ! Plane X', wire 8
-88,6,9 ! Plane X', wire 9
-89,6,10 ! Plane X', wire 10
-90,6,11 ! Plane X', wire 11
-91,6,12 ! Plane X', wire 12
-92,6,13 ! Plane X', wire 13
-93,6,14 ! Plane X', wire 14
-94,6,15 ! Plane X', wire 15
-95,6,16 ! Plane X', wire 16
-
-SLOT=5
-REFINDEX=1
-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=1
-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=1
-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=1
-127,1000,0,2
-48,5,1 ! Plane Y', wire 1
-49,5,2 ! Plane Y', wire 2
-50,5,3 ! Plane Y', wire 3
-51,5,4 ! Plane Y', wire 4
-52,5,5 ! Plane Y', wire 5
-53,5,6 ! Plane Y', wire 6
-54,5,7 ! Plane Y', wire 7
-55,5,8 ! Plane Y', wire 8
-56,5,9 ! Plane Y', wire 9
-57,5,10 ! Plane Y', wire 10
-58,5,11 ! Plane Y', wire 11
-59,5,12 ! Plane Y', wire 12
-60,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
-0,5,40 ! Plane Y', wire 40
-1,5,41 ! Plane Y', wire 41
-2,5,42 ! Plane Y', wire 42
-3,5,43 ! Plane Y', wire 43
-4,5,44 ! Plane Y', wire 44
-5,5,45 ! Plane Y', wire 45
-6,5,46 ! Plane Y', wire 46
-7,5,47 ! Plane Y', wire 47
-8,5,48 ! Plane Y', wire 48
-9,5,49 ! Plane Y', wire 49
-10,5,50 ! Plane Y', wire 50
-11,5,51 ! Plane Y', wire 51
-12,5,52 ! Plane Y', wire 52
-
-SLOT=16
-REFINDEX=1
-  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=1
-   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=1
-  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=1
-  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=1
- 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=1
-   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=1
-  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=1
-   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=1
-  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=1
- 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/SCALERS/db_PScalevt.dat b/MAPS/SCALERS/db_PScalevt.dat
index 31ec1a5c00112fa3ac9f7177f8ea27feb62de248..c941be4e3ae737eee2a8d9d62cfe4b810bc8a201 100644
--- a/MAPS/SCALERS/db_PScalevt.dat
+++ b/MAPS/SCALERS/db_PScalevt.dat
@@ -46,6 +46,8 @@ variable 0 7 1 .hod.1x8.posScaler SHMS 1X+ paddle 8
 variable 0 7 2 .hod.1x8.posScalerRate SHMS 1X+ paddle 8
 variable 3 9 1 .hod.2y11.posScaler SHMS 2y+ paddle 11
 variable 3 9 2 .hod.2y11.posScalerRate SHMS 2y+ paddle 11
+variable 7 4 1 .S1XS1Y.scaler SHMS S1T
+variable 7 4 2 .S1XS1Y.scalerRate SHMS S1T
 variable 2 12 1 .hod.2x10.posScaler SHMS 2X+ paddle 10
 variable 2 12 2 .hod.2x10.posScalerRate SHMS 2X+ paddle 10
 variable 7 27 1 .BCM1.scaler bcm1
@@ -62,8 +64,6 @@ variable 0 17 1 .hod.1x3.negScaler SHMS 1X- paddle 3
 variable 0 17 2 .hod.1x3.negScalerRate SHMS 1X- paddle 3
 variable 1 29 1 .hod.1y12.posScaler SHMS 1Y+ paddle 12
 variable 1 29 2 .hod.1y12.posScalerRate SHMS 1Y+ paddle 12
-variable 7 4 1 .S1XS1y.scaler SHMS S1T
-variable 7 4 2 .S1XS1y.scalerRate SHMS S1T
 variable 1 17 1 .hod.1y3.posScaler SHMS 1Y+ paddle 3
 variable 1 17 2 .hod.1y3.posScalerRate SHMS 1Y+ paddle 3
 variable 1 1 1 .hod.1y3.negScaler SHMS 1Y- paddle 3
diff --git a/MAPS/SCALERS/make_scaler_db.py b/MAPS/SCALERS/make_scaler_db.py
index 259a643cf4567827def4e5ec4fd36541fb6e8d24..ed1ee21d2157fa5519913b2a59b6990663545f6c 100755
--- a/MAPS/SCALERS/make_scaler_db.py
+++ b/MAPS/SCALERS/make_scaler_db.py
@@ -89,6 +89,5 @@ with open(xscalerMapName, 'r') as fi:
                         print >>fo, 'variable', slot, chan, 1, printHodoName, comment
                         print >>fo, 'variable', slot, chan, 2, printHodoName+'Rate', comment
                     else:    
-                        print(printname)
                         print >>fo, 'variable', slot, chan, 1, printname, comment
                         print >>fo, 'variable', slot, chan, 2, printname+'Rate', comment
diff --git a/MAPS/SCALERS/scaler.map b/MAPS/SCALERS/scaler.map
index 772b95e88f80ef8b098175215bc97db282afdcf5..082eb85a864e63325f0e8be5d38b62c9c3fbcacc 100755
--- a/MAPS/SCALERS/scaler.map
+++ b/MAPS/SCALERS/scaler.map
@@ -355,7 +355,7 @@ S1X          0    5     7    0     1     SHMS S1X
 S1Y          0    5     7    1     1     SHMS S1Y                                           
 S2X          0    5     7    2     1     SHMS S2X                                           
 S2Y          0    5     7    3     1     SHMS S2Y                                           
-S1XS1y       0    5     7    4     1     SHMS S1T                                           
+S1XS1Y       0    5     7    4     1     SHMS S1T                                           
 S2XS2Y       0    5     7    5     1     SHMS S2T                                           
 Trig         0    5     7    6     1     SHMS T1                                           
 ASUM         0    5     7    7     1     SHMS ASUM                                         
diff --git a/MAPS/SHMS/DETEC/RASTER/praster_simple.map b/MAPS/SHMS/DETEC/RASTER/praster_simple.map
index b0212c9b3aca16682408672d11ee22eb38944142..9dee1d7a0527308c9e261aadf9364d8993366abb 100644
--- a/MAPS/SHMS/DETEC/RASTER/praster_simple.map
+++ b/MAPS/SHMS/DETEC/RASTER/praster_simple.map
@@ -1,4 +1,4 @@
-!HMS:
+!SHMS:
 ! TSHMS_ID=20    ADC,TDC
 
 ! Plane = 1 >> ADC Only
diff --git a/MAPS/SHMS/DETEC/TRIG/ptrig.map b/MAPS/SHMS/DETEC/TRIG/ptrig.map
index 539b21530982b4d4b408849f3b312da3f71dd37a..4c09cf42f13a9136f3be84f6e436f3f38ec132a7 100644
--- a/MAPS/SHMS/DETEC/TRIG/ptrig.map
+++ b/MAPS/SHMS/DETEC/TRIG/ptrig.map
@@ -10,8 +10,8 @@ SLOT=14
    1,   1,   2,   0  ! pHGCERSUM
    2,   1,   3,   0  ! pNGCERSUM
   12,   1,   4,   0  ! FR-XA
-  13,   1,   5,   0  ! FR-XB
-  14,   1,   6,   0  ! FR-YA
+  13,   1,   5,   0  ! FR-YA
+  14,   1,   6,   0  ! FR-XB
   15,   1,   7,   0  ! FR-YB
 
 
diff --git a/PARAM/HMS/AERO/CALIB/haero_calib.param b/PARAM/HMS/AERO/CALIB/haero_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..5d4535689811b5c85fbd21b4f8fccc9d31ab4c68
--- /dev/null
+++ b/PARAM/HMS/AERO/CALIB/haero_calib.param
@@ -0,0 +1,7 @@
+;Calibration constants for HMS Aerogel - unknown run number
+
+; Positive aerogel gain factors
+haero_pos_gain   = 1./168.3, 1./233.9, 1./181.3, 1./169.2, 1./177.6, 1./155.0, 1./169.5, 1./149.7
+
+; Negative aerogel gain factors
+haero_neg_gain   = 1./248.8, 1./186.4, 1./236.4, 1./172.0, 1./205.3, 1./198.1, 1./227.9, 1./229.2
diff --git a/PARAM/HMS/AERO/CUTS/haero_cuts.param b/PARAM/HMS/AERO/CUTS/haero_cuts.param
new file mode 100644
index 0000000000000000000000000000000000000000..3c192eb0acb43c335422ba5d9c03a7ac84559836
--- /dev/null
+++ b/PARAM/HMS/AERO/CUTS/haero_cuts.param
@@ -0,0 +1,20 @@
+;HMS Aerogel Cut parameters
+
+; Track matching reduced chi2 cut values
+haero_red_chi2_min = 0.0
+haero_red_chi2_max = 25.0
+
+; Track matching beta cut values
+haero_beta_min = 0.0
+haero_beta_max = 1.2
+
+; Track matching normailized energy (E/p) cut values
+haero_enorm_min = 0.0
+haero_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+haero_adcTimeWindowMin = 500.
+haero_adcTimeWindowMax = 2500.
+
+; NPE Threshold for "good" hit (for measureing effic.)
+haero_npe_thresh = 0.5
diff --git a/PARAM/HMS/AERO/GEOM/haero_geom.param b/PARAM/HMS/AERO/GEOM/haero_geom.param
new file mode 100644
index 0000000000000000000000000000000000000000..e131520129a15932bf32b82fafb3ce65e1bc46b9
--- /dev/null
+++ b/PARAM/HMS/AERO/GEOM/haero_geom.param
@@ -0,0 +1,25 @@
+;HMS Aerogel geometry parameters
+
+; Number of aerogel pairs of pmt's
+haero_num_pairs = 8
+
+; Value of zpos for diffusion box cited by Hamlet M. 03/29/2017
+; FIX ME! This value is for the SHMS!
+haero_diff_box_zpos = 231.0
+
+; Number of regions in which tracks can be matched too
+haero_num_regions = 1;
+
+; phgcer_region: 8 values for each region
+; central x,y,dx,dy values and x,y,dx,dy half widths.
+; Defined in clomuns, region 1, region 2, region 3, region 4...
+; FIX ME! These values are for the SHMS!
+; Assumes rectangular volume with x = 103.0 cm and y = 113.0 cm
+haero_region =  0.0,
+                0.0,
+                0.0,
+                0.0,
+               51.5,
+               56.5,
+	       0.15,
+	        0.1
diff --git a/PARAM/HMS/AERO/haero.param b/PARAM/HMS/AERO/haero.param
deleted file mode 100644
index 88c21004b082323be95668ee96ce08e6a23fcdb7..0000000000000000000000000000000000000000
--- a/PARAM/HMS/AERO/haero.param
+++ /dev/null
@@ -1,48 +0,0 @@
-; Number of aerogel pairs of pmt's
-haero_num_pairs = 8
-
-; Positive aerogel gain factors
-haero_pos_gain   = 1./168.3, 1./233.9, 1./181.3, 1./169.2, 1./177.6, 1./155.0, 1./169.5, 1./149.7
-
-; Negative aerogel gain factors
-haero_neg_gain   = 1./248.8, 1./186.4, 1./236.4, 1./172.0, 1./205.3, 1./198.1, 1./227.9, 1./229.2
-
-; Track matching reduced chi2 cut values
-haero_red_chi2_min = 0.0
-haero_red_chi2_max = 25.0
-
-; Track matching beta cut values
-haero_beta_min = 0.0
-haero_beta_max = 1.2
-
-; Track matching normailized energy (E/p) cut values
-haero_enorm_min = 0.0
-haero_enorm_max = 1.5
-
-; ADC time window cut values used to select "good" ADC events
-haero_adcTimeWindowMin = 500.
-haero_adcTimeWindowMax = 2500.
-
-; NPE Threshold for "good" hit (for measureing effic.)
-haero_npe_thresh = 0.5
-
-; Value of zpos for diffusion box cited by Hamlet M. 03/29/2017
-; FIX ME! This value is for the SHMS!
-haero_diff_box_zpos = 231.0
-
-; Number of regions in which tracks can be matched too
-haero_num_regions = 1;
-
-; phgcer_region: 8 values for each region
-; central x,y,dx,dy values and x,y,dx,dy half widths.
-; Defined in clomuns, region 1, region 2, region 3, region 4...
-; FIX ME! These values are for the SHMS!
-; Assumes rectangular volume with x = 103.0 cm and y = 113.0 cm
-haero_region =  0.0,
-                0.0,
-                0.0,
-                0.0,
-               51.5,
-               56.5,
-	       0.15,
-	        0.1
\ No newline at end of file
diff --git a/PARAM/HMS/CAL/CALIB/KPP_Spring_2017/hcal_calib_303.param b/PARAM/HMS/CAL/CALIB/KPP_Spring_2017/hcal_calib_303.param
new file mode 100644
index 0000000000000000000000000000000000000000..a2f2785461993896ef17287de0c5bb25e3afaf5b
--- /dev/null
+++ b/PARAM/HMS/CAL/CALIB/KPP_Spring_2017/hcal_calib_303.param
@@ -0,0 +1,10 @@
+; Calibration constants for run 303, 77272 events processed
+
+hcal_pos_gain_cor= 0.272, 0.156, 0.139, 0.229, 0.185, 0.152, 0.146, 0.276, 0.146, 0.268, 0.218, 0.200, 0.150,
+                   0.162, 0.145, 0.125, 0.235, 0.005, 0.152, 0.173, 0.195, 0.181, 0.192, 0.302, 0.235, 0.185,
+                   0.584, 0.334, 0.241, 0.434, 0.302, 0.303, 0.379, 0.422, 0.342, 0.424, 0.314, 0.448, 0.270,
+                   1.073, 0.306, 0.463, 0.402, 0.273, 0.300, 0.744, 0.216, 0.365, 0.497, 0.374, 0.459, 0.572,
+hcal_neg_gain_cor= 0.401, 0.174, 0.190, 0.223, 0.127, 0.183, 0.296, 0.437, 0.224, 0.300, 0.167, 0.139, 0.232,
+                   0.302, 0.378, 0.238, 0.313, 0.427, 0.262, 0.278, 0.234, 0.253, 0.288, 0.290, 0.229, 0.192,
+                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
diff --git a/PARAM/HMS/CAL/CALIB/hcal_calib.param b/PARAM/HMS/CAL/CALIB/hcal_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..a2f2785461993896ef17287de0c5bb25e3afaf5b
--- /dev/null
+++ b/PARAM/HMS/CAL/CALIB/hcal_calib.param
@@ -0,0 +1,10 @@
+; Calibration constants for run 303, 77272 events processed
+
+hcal_pos_gain_cor= 0.272, 0.156, 0.139, 0.229, 0.185, 0.152, 0.146, 0.276, 0.146, 0.268, 0.218, 0.200, 0.150,
+                   0.162, 0.145, 0.125, 0.235, 0.005, 0.152, 0.173, 0.195, 0.181, 0.192, 0.302, 0.235, 0.185,
+                   0.584, 0.334, 0.241, 0.434, 0.302, 0.303, 0.379, 0.422, 0.342, 0.424, 0.314, 0.448, 0.270,
+                   1.073, 0.306, 0.463, 0.402, 0.273, 0.300, 0.744, 0.216, 0.365, 0.497, 0.374, 0.459, 0.572,
+hcal_neg_gain_cor= 0.401, 0.174, 0.190, 0.223, 0.127, 0.183, 0.296, 0.437, 0.224, 0.300, 0.167, 0.139, 0.232,
+                   0.302, 0.378, 0.238, 0.313, 0.427, 0.262, 0.278, 0.234, 0.253, 0.288, 0.290, 0.229, 0.192,
+                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
+                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
diff --git a/PARAM/HMS/CAL/CUTS/hcal_cuts.param b/PARAM/HMS/CAL/CUTS/hcal_cuts.param
new file mode 100644
index 0000000000000000000000000000000000000000..782f843ff7e656a8aae6b9ef3e0d310fd706af73
--- /dev/null
+++ b/PARAM/HMS/CAL/CUTS/hcal_cuts.param
@@ -0,0 +1,45 @@
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+hcal_ADCmode=1
+
+;FADC Pulse time window cuts
+hcal_AdcTimeWindowMin=1000.
+hcal_AdcTimeWindowMax=2800.
+
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
+hcal_AdcNegThreshold=0.
+
+; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
+hcal_AdcPosThreshold=0.
+
+;Turn on HMS cal. fiducial volume cut. 0="no cut"
+;Default hcal_fv_test=0
+hcal_fv_test = 0
+
+hcal_pos_gain_ini  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+hcal_neg_gain_ini  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
+
+
+;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+
+hcal_pos_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+
+hcal_neg_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
+
+
diff --git a/PARAM/HMS/CAL/hcal.pos b/PARAM/HMS/CAL/GEOM/hcal_geom.param
similarity index 74%
rename from PARAM/HMS/CAL/hcal.pos
rename to PARAM/HMS/CAL/GEOM/hcal_geom.param
index 9906aae80eb08d93ab5a4d746c9f34cda05d20e4..8776aa501b0672c94142ca80739d0df158783abd 100644
--- a/PARAM/HMS/CAL/hcal.pos
+++ b/PARAM/HMS/CAL/GEOM/hcal_geom.param
@@ -1,3 +1,5 @@
+;HMS Calorimeter geometry parameters
+
 ; neglect extra tubes for now.
 hcal_num_neg_columns = 2
 
@@ -79,3 +81,19 @@ hcal_num_neg_columns = 2
                        ( 31.0-1.4)
                        ( 41.0-1.4)
                        ( 51.0-1.4)
+
+
+; Slop in x position.  Allowed distance between track and edge of block (in cm)
+; too tight djm hcal_slop = 7.5
+hcal_slop = 30.
+
+
+hcal_pos_cal_const =0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+
+hcal_neg_cal_const =0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
+                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
\ No newline at end of file
diff --git a/PARAM/HMS/CAL/hcal.param b/PARAM/HMS/CAL/hcal.param
deleted file mode 100644
index 8f077361b7cb8fa640edccd929abbe5d80eec197..0000000000000000000000000000000000000000
--- a/PARAM/HMS/CAL/hcal.param
+++ /dev/null
@@ -1,70 +0,0 @@
-; for now manually set hte FADC mode
-;  1 == Use the pulse int - pulse ped
-;  2 == Use the sample integral - known ped
-;  3 == Use the sample integral - sample ped
-; if not set then defaults to use the raw pulse integral
-hcal_ADCmode=1
-hcal_AdcTimeWindowMin=1000.
-hcal_AdcTimeWindowMax=2800.
-; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
-hcal_AdcNegThreshold=0.
-; threshold on selecting good adc is dynamic pedestal+pcal_AdcPosThreshold
-hcal_AdcPosThreshold=0.
-
-; Slop in x position.  Allowed distance between track and edge of block (in cm)
-; too tight djm hcal_slop = 7.5
-hcal_slop = 30.
-
-;Turn on HMS cal. fiducial volume cut. 0="no cut"
-;Default hcal_fv_test=0
-hcal_fv_test = 0
-
-hcal_pos_cal_const =0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-
-hcal_neg_cal_const =0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-                    0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001,0.001
-
-hcal_pos_gain_ini  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-
-hcal_neg_gain_ini  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-
-hcal_neg_gain_cur  =1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-                    1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000,1.000
-
-;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
-hcal_pos_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-
-hcal_neg_ped_limit =1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-                    1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000
-
-
-
-; Calibration constants for run 303, 77272 events processed
-
-hcal_pos_gain_cor= 0.272, 0.156, 0.139, 0.229, 0.185, 0.152, 0.146, 0.276, 0.146, 0.268, 0.218, 0.200, 0.150,
-                   0.162, 0.145, 0.125, 0.235, 0.005, 0.152, 0.173, 0.195, 0.181, 0.192, 0.302, 0.235, 0.185,
-                   0.584, 0.334, 0.241, 0.434, 0.302, 0.303, 0.379, 0.422, 0.342, 0.424, 0.314, 0.448, 0.270,
-                   1.073, 0.306, 0.463, 0.402, 0.273, 0.300, 0.744, 0.216, 0.365, 0.497, 0.374, 0.459, 0.572,
-hcal_neg_gain_cor= 0.401, 0.174, 0.190, 0.223, 0.127, 0.183, 0.296, 0.437, 0.224, 0.300, 0.167, 0.139, 0.232,
-                   0.302, 0.378, 0.238, 0.313, 0.427, 0.262, 0.278, 0.234, 0.253, 0.288, 0.290, 0.229, 0.192,
-                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
-                   0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000,
diff --git a/PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib.param b/PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..48cbe17a78b4464bef8ee354a96b747f050dcd19
--- /dev/null
+++ b/PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib.param
@@ -0,0 +1,3 @@
+
+;Garth H. ?? gain calibration from run ??
+hcer_adc_to_npe = 1/323., 1/327.
\ No newline at end of file
diff --git a/PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib_303.param b/PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib_303.param
new file mode 100644
index 0000000000000000000000000000000000000000..3efbf3e7c32abcde0bd010a6817e19a0fa8177b1
--- /dev/null
+++ b/PARAM/HMS/CER/CALIB/KPP_Spring_2017/hcer_calib_303.param
@@ -0,0 +1,3 @@
+
+;Garth H. ?? gain calibration from HMS KPP run 303
+hcer_adc_to_npe = 1/323., 1/327.
diff --git a/PARAM/HMS/CER/CALIB/hcer_calib.param b/PARAM/HMS/CER/CALIB/hcer_calib.param
new file mode 100644
index 0000000000000000000000000000000000000000..64429137ac3c89e7c8a3ee156bf420adc0f68792
--- /dev/null
+++ b/PARAM/HMS/CER/CALIB/hcer_calib.param
@@ -0,0 +1,3 @@
+
+;Garth H.  gain calibration from HMS run 303
+hcer_adc_to_npe = 1/323., 1/327.
diff --git a/PARAM/HMS/CER/CUTS/hcer_cuts.param b/PARAM/HMS/CER/CUTS/hcer_cuts.param
new file mode 100644
index 0000000000000000000000000000000000000000..7dcf40396323b4d76cad59be43faf710c7edacd9
--- /dev/null
+++ b/PARAM/HMS/CER/CUTS/hcer_cuts.param
@@ -0,0 +1,20 @@
+; HMS Cherenkov Cuts parameter files
+
+; Track matching reduced chi2 cut values
+hcer_red_chi2_min = 0.0
+hcer_red_chi2_max = 25.0
+
+; Track matching beta cut values
+hcer_beta_min = 0.0
+hcer_beta_max = 1.2
+
+; Track matching normalized energy (E/p) cut values
+hcer_enorm_min = 0.0
+hcer_enorm_max = 1.5
+
+; ADC time window cut values used to select "good" ADC events
+hcer_adcTimeWindowMin = 1500.
+hcer_adcTimeWindowMax = 3500.
+
+; NPE Threshold for good hit (for measureing effic.)
+hcer_npe_thresh = 0.5
diff --git a/PARAM/HMS/CER/hcer.param b/PARAM/HMS/CER/GEOM/hcer_geom.param
similarity index 60%
rename from PARAM/HMS/CER/hcer.param
rename to PARAM/HMS/CER/GEOM/hcer_geom.param
index 7be444bbcfed611a69acf4b97f40ed39c7cdac78..4b03cc597158f28126eed85fec7bd63ffaf329ea 100644
--- a/PARAM/HMS/CER/hcer.param
+++ b/PARAM/HMS/CER/GEOM/hcer_geom.param
@@ -1,25 +1,10 @@
+; HMS Cherenkov GEOMETRY PARAMETER FILE
 
+; Number of gas cherenkov PMTs
 hcer_tot_pmts = 2
 
-hcer_adc_to_npe = 1/323., 1/327.
-
-hcer_red_chi2_min = 0.0
-hcer_red_chi2_max = 25.0
-
-hcer_beta_min = 0.0
-hcer_beta_max = 1.2
-
-hcer_enorm_min = 0.0
-hcer_enorm_max = 1.5
-
 hcer_mirror_zpos = 230.0
 
-hcer_adcTimeWindowMin = 1500.
-hcer_adcTimeWindowMax = 3500.
-
-; Threshold for good hit (for measureing effic.)
-hcer_npe_thresh = 0.5
-
 hcer_num_regions = 3 ; This value is from the 6 GeV era
 
 ; hcer_region: 8 values for each region (1 per mirror + sum)
diff --git a/PARAM/HMS/DC/hdriftmap.param b/PARAM/HMS/DC/CALIB/KPP_Spring_2017/hdc_calib_303.param
similarity index 100%
rename from PARAM/HMS/DC/hdriftmap.param
rename to PARAM/HMS/DC/CALIB/KPP_Spring_2017/hdc_calib_303.param
diff --git a/PARAM/HMS/DC/CALIB/hdc_calib_6gev.param b/PARAM/HMS/DC/CALIB/hdc_calib_6gev.param
new file mode 100644
index 0000000000000000000000000000000000000000..e58c62cb9ae3c5241b1e63f3f74459bc9cc5ccae
--- /dev/null
+++ b/PARAM/HMS/DC/CALIB/hdc_calib_6gev.param
@@ -0,0 +1,175 @@
+; Lookup Table: RUN 303
+; number of bins in Carlos's time to distance lookup table
+hdriftbins = 138
+; number of 1st bin in Carlos's table in ns
+hdrift1stbin=0
+; bin size in ns
+hdriftbinsz=2
+hwc1x1fract=0.0020833,0.00489,0.00876,0.01394,0.02062,0.02905,0.03922,0.05139,0.06502
+0.08048,0.09728,0.11528,0.13442,0.15422,0.17474,0.19559,0.21654,0.23774,0.25912
+0.28047,0.30213,0.32359,0.34477,0.36578,0.38669,0.40776,0.42815,0.44870,0.46871
+0.48868,0.50838,0.52755,0.54678,0.56563,0.58450,0.60268,0.62064,0.63843,0.65606
+0.67308,0.69026,0.70691,0.72339,0.73947,0.75507,0.77054,0.78552,0.79999,0.81397
+0.82764,0.84038,0.85263,0.86438,0.87542,0.88567,0.89528,0.90434,0.91280,0.92063
+0.92797,0.93458,0.94070,0.94661,0.95206,0.95702,0.96143,0.96553,0.96926,0.97273
+0.97587,0.97857,0.98096,0.98307,0.98483,0.98646,0.98787,0.98906,0.99000,0.99095
+0.99167,0.99232,0.99290,0.99345,0.99391,0.99435,0.99474,0.99507,0.99536,0.99566
+0.99590,0.99614,0.99635,0.99655,0.99674,0.99693,0.99711,0.99727,0.99744,0.99762
+0.99778,0.99794,0.99807,0.99818,0.99831,0.99844,0.99854,0.99862,0.99869,0.99878
+0.99886,0.99892,0.99898,0.99904,0.99910,0.99916,0.99921,0.99928,0.99932,0.99936
+0.99939,0.99944,0.99949,0.99952,0.99957,0.99960,0.99963,0.99966,0.99969,0.99973
+0.99977,0.99980,0.99984,0.99987,0.99989,0.99991,0.99994,0.99996,1.00000
+hwc1y1fract=0.00205,0.00455,0.00768,0.01195,0.01753,0.02471,0.03370,0.04490,0.05814
+0.07344,0.09075,0.10958,0.12956,0.15050,0.17182,0.19342,0.21512,0.23648,0.25785
+0.27889,0.29942,0.31985,0.33992,0.36003,0.37993,0.39944,0.41896,0.43804,0.45674
+0.47550,0.49399,0.51218,0.53005,0.54795,0.56572,0.58314,0.60048,0.61775,0.63452
+0.65122,0.66764,0.68401,0.69999,0.71549,0.73103,0.74641,0.76143,0.77607,0.79026
+0.80367,0.81676,0.82955,0.84167,0.85325,0.86410,0.87444,0.88405,0.89306,0.90131
+0.90895,0.91620,0.92291,0.92919,0.93505,0.94046,0.94567,0.95057,0.95503,0.95917
+0.96294,0.96641,0.96971,0.97263,0.97529,0.97777,0.97994,0.98189,0.98371,0.98539
+0.98682,0.98816,0.98923,0.99031,0.99117,0.99194,0.99266,0.99332,0.99388,0.99444
+0.99489,0.99532,0.99566,0.99602,0.99630,0.99655,0.99678,0.99699,0.99717,0.99735
+0.99751,0.99765,0.99779,0.99792,0.99805,0.99818,0.99831,0.99845,0.99857,0.99870
+0.99884,0.99896,0.99907,0.99913,0.99922,0.99927,0.99932,0.99938,0.99942,0.99946
+0.99950,0.99955,0.99959,0.99962,0.99966,0.99970,0.99974,0.99978,0.99981,0.99985
+0.99987,0.99988,0.99991,0.99993,0.99994,0.99996,0.99997,0.99999,1.00000
+hwc1u1fract=0.00163,0.00438,0.00852,0.01456,0.02322,0.03445,0.04830,0.06440,0.08241
+0.10195,0.12225,0.14341,0.16483,0.18632,0.20821,0.22974,0.25135,0.27244,0.29345
+0.31390,0.33434,0.35483,0.37481,0.39457,0.41407,0.43316,0.45251,0.47151,0.49016
+0.50897,0.52720,0.54549,0.56342,0.58131,0.59852,0.61614,0.63295,0.64993,0.66659
+0.68319,0.69957,0.71570,0.73149,0.74718,0.76244,0.77719,0.79158,0.80576,0.81926
+0.83227,0.84452,0.85632,0.86729,0.87761,0.88740,0.89658,0.90497,0.91252,0.91972
+0.92645,0.93255,0.93836,0.94368,0.94880,0.95353,0.95805,0.96223,0.96595,0.96935
+0.97248,0.97532,0.97786,0.98022,0.98236,0.98407,0.98562,0.98703,0.98823,0.98921
+0.99015,0.99095,0.99168,0.99236,0.99297,0.99347,0.99393,0.99435,0.99471,0.99507
+0.99539,0.99572,0.99600,0.99626,0.99645,0.99669,0.99694,0.99715,0.99733,0.99750
+0.99764,0.99779,0.99790,0.99803,0.99814,0.99824,0.99836,0.99846,0.99858,0.99868
+0.99879,0.99886,0.99892,0.99898,0.99904,0.99910,0.99916,0.99920,0.99925,0.99929
+0.99934,0.99938,0.99942,0.99946,0.99950,0.99955,0.99959,0.99964,0.99968,0.99972
+0.99975,0.99977,0.99980,0.99984,0.99987,0.99991,0.99995,0.99998,1.00000
+hwc1v1fract=0.00326,0.00757,0.01344,0.02136,0.03133,0.04381,0.05851,0.07537,0.09402
+0.11379,0.13470,0.15577,0.17671,0.19840,0.21975,0.24141,0.26240,0.28335,0.30406
+0.32477,0.34510,0.36494,0.38474,0.40449,0.42400,0.44309,0.46202,0.48081,0.49929
+0.51791,0.53613,0.55407,0.57212,0.58982,0.60751,0.62458,0.64179,0.65867,0.67544
+0.69171,0.70787,0.72383,0.73970,0.75520,0.77045,0.78516,0.79926,0.81315,0.82651
+0.83940,0.85139,0.86268,0.87328,0.88328,0.89254,0.90106,0.90906,0.91640,0.92333
+0.92974,0.93563,0.94125,0.94646,0.95143,0.95595,0.96020,0.96407,0.96776,0.97094
+0.97390,0.97646,0.97882,0.98089,0.98270,0.98438,0.98584,0.98707,0.98823,0.98923
+0.99011,0.99088,0.99162,0.99225,0.99278,0.99329,0.99374,0.99416,0.99454,0.99486
+0.99517,0.99546,0.99572,0.99597,0.99620,0.99639,0.99658,0.99674,0.99695,0.99713
+0.99729,0.99744,0.99757,0.99769,0.99783,0.99795,0.99806,0.99818,0.99828,0.99836
+0.99843,0.99853,0.99861,0.99869,0.99876,0.99883,0.99890,0.99895,0.99900,0.99906
+0.99911,0.99917,0.99922,0.99927,0.99933,0.99937,0.99942,0.99947,0.99952,0.99956
+0.99961,0.99967,0.99972,0.99977,0.99982,0.99987,0.99991,0.99996,1.00000
+hwc1y2fract=0.00193,0.00455,0.00809,0.01310,0.01984,0.02852,0.03980,0.05332,0.06932
+0.08717,0.10672,0.12719,0.14894,0.17063,0.19259,0.21465,0.23669,0.25832,0.27981
+0.30063,0.32150,0.34168,0.36171,0.38169,0.40121,0.42077,0.43999,0.45896,0.47755
+0.49607,0.51430,0.53253,0.55062,0.56831,0.58598,0.60344,0.62062,0.63795,0.65466
+0.67133,0.68776,0.70361,0.71950,0.73518,0.75072,0.76582,0.78047,0.79478,0.80840
+0.82153,0.83428,0.84640,0.85815,0.86919,0.87945,0.88897,0.89792,0.90626,0.91375
+0.92098,0.92753,0.93366,0.93938,0.94465,0.94961,0.95418,0.95848,0.96232,0.96580
+0.96912,0.97210,0.97492,0.97743,0.97973,0.98174,0.98358,0.98521,0.98663,0.98793
+0.98907,0.99004,0.99093,0.99183,0.99258,0.99323,0.99381,0.99432,0.99476,0.99516
+0.99551,0.99586,0.99613,0.99640,0.99662,0.99683,0.99702,0.99715,0.99731,0.99746
+0.99760,0.99774,0.99785,0.99796,0.99806,0.99818,0.99830,0.99840,0.99851,0.99860
+0.99871,0.99880,0.99888,0.99897,0.99905,0.99912,0.99918,0.99924,0.99928,0.99932
+0.99935,0.99938,0.99942,0.99947,0.99951,0.99956,0.99961,0.99965,0.99969,0.99973
+0.99977,0.99979,0.99982,0.99984,0.99987,0.99990,0.99994,0.99997,1.00000
+hwc1x2fract=0.00214,0.00519,0.00938,0.01501,0.02253,0.03198,0.04335,0.05660,0.07178
+0.08830,0.10580,0.12474,0.14447,0.16464,0.18488,0.20578,0.22678,0.24791,0.26913
+0.29016,0.31137,0.33272,0.35362,0.37431,0.39509,0.41542,0.43568,0.45557,0.47572
+0.49528,0.51454,0.53377,0.55269,0.57108,0.58959,0.60758,0.62559,0.64321,0.66102
+0.67839,0.69534,0.71201,0.72863,0.74462,0.76028,0.77534,0.79034,0.80487,0.81888
+0.83210,0.84518,0.85753,0.86894,0.87969,0.88974,0.89932,0.90804,0.91621,0.92378
+0.93098,0.93745,0.94357,0.94904,0.95423,0.95904,0.96349,0.96751,0.97109,0.97431
+0.97729,0.97991,0.98218,0.98416,0.98592,0.98743,0.98877,0.98989,0.99086,0.99165
+0.99229,0.99291,0.99344,0.99387,0.99428,0.99466,0.99499,0.99530,0.99557,0.99582
+0.99608,0.99631,0.99653,0.99673,0.99689,0.99706,0.99720,0.99735,0.99747,0.99762
+0.99775,0.99786,0.99795,0.99803,0.99812,0.99823,0.99830,0.99839,0.99848,0.99856
+0.99863,0.99870,0.99876,0.99882,0.99888,0.99894,0.99901,0.99907,0.99912,0.99918
+0.99922,0.99926,0.99932,0.99938,0.99943,0.99946,0.99951,0.99955,0.99958,0.99962
+0.99964,0.99967,0.99971,0.99976,0.99981,0.99987,0.99991,0.99997,1.00000
+hwc2x1fract=0.00282,0.00649,0.01120,0.01715,0.02503,0.03489,0.04686,0.06073,0.07660
+0.09394,0.11289,0.13303,0.15429,0.17570,0.19740,0.21912,0.24106,0.26292,0.28456
+0.30593,0.32713,0.34811,0.36891,0.38987,0.40995,0.43007,0.44995,0.46966,0.48954
+0.50886,0.52793,0.54689,0.56586,0.58451,0.60329,0.62154,0.63981,0.65771,0.67513
+0.69269,0.71016,0.72726,0.74359,0.75992,0.77568,0.79104,0.80590,0.82014,0.83358
+0.84665,0.85888,0.87027,0.88081,0.89071,0.89966,0.90797,0.91551,0.92240,0.92893
+0.93490,0.94039,0.94520,0.94965,0.95388,0.95779,0.96142,0.96479,0.96805,0.97099
+0.97367,0.97616,0.97832,0.98034,0.98206,0.98357,0.98488,0.98600,0.98706,0.98793
+0.98874,0.98942,0.99006,0.99061,0.99115,0.99166,0.99212,0.99255,0.99301,0.99339
+0.99370,0.99404,0.99434,0.99464,0.99491,0.99515,0.99537,0.99558,0.99580,0.99602
+0.99625,0.99649,0.99671,0.99693,0.99711,0.99731,0.99751,0.99766,0.99778,0.99791
+0.99805,0.99818,0.99834,0.99846,0.99855,0.99865,0.99876,0.99885,0.99894,0.99902
+0.99910,0.99918,0.99924,0.99930,0.99936,0.99943,0.99947,0.99952,0.99959,0.99964
+0.99967,0.99972,0.99976,0.99979,0.99983,0.99987,0.99991,0.99995,1.00000
+hwc2y1fract=0.00189,0.00437,0.00796,0.01268,0.01931,0.02809,0.03946,0.05361,0.06983
+0.08841,0.10844,0.12939,0.15122,0.17297,0.19463,0.21635,0.23751,0.25820,0.27859
+0.29834,0.31778,0.33715,0.35606,0.37499,0.39382,0.41228,0.43086,0.44913,0.46718
+0.48513,0.50297,0.52122,0.53882,0.55692,0.57474,0.59256,0.61020,0.62773,0.64512
+0.66252,0.67931,0.69625,0.71238,0.72877,0.74491,0.76074,0.77573,0.79078,0.80495
+0.81860,0.83137,0.84340,0.85471,0.86516,0.87507,0.88406,0.89236,0.89980,0.90652
+0.91281,0.91858,0.92396,0.92899,0.93378,0.93813,0.94229,0.94625,0.95001,0.95363
+0.95696,0.96011,0.96301,0.96574,0.96825,0.97064,0.97287,0.97484,0.97672,0.97846
+0.98018,0.98160,0.98298,0.98418,0.98526,0.98633,0.98721,0.98808,0.98884,0.98957
+0.99022,0.99080,0.99132,0.99180,0.99225,0.99268,0.99313,0.99357,0.99401,0.99437
+0.99471,0.99503,0.99529,0.99554,0.99578,0.99598,0.99618,0.99637,0.99657,0.99677
+0.99693,0.99711,0.99728,0.99746,0.99766,0.99782,0.99796,0.99808,0.99823,0.99835
+0.99846,0.99858,0.99872,0.99882,0.99891,0.99902,0.99912,0.99921,0.99930,0.99939
+0.99948,0.99956,0.99963,0.99971,0.99978,0.99984,0.99988,0.99994,1.00000
+hwc2u1fract=0.00156,0.00424,0.00842,0.01473,0.02373,0.03591,0.05072,0.06805,0.08744
+0.10833,0.12980,0.15167,0.17372,0.19581,0.21770,0.23906,0.25996,0.28089,0.30146
+0.32182,0.34209,0.36165,0.38152,0.40063,0.41985,0.43909,0.45814,0.47724,0.49609
+0.51464,0.53343,0.55206,0.57025,0.58844,0.60651,0.62447,0.64237,0.65996,0.67724
+0.69466,0.71149,0.72859,0.74535,0.76198,0.77795,0.79368,0.80892,0.82331,0.83711
+0.84992,0.86182,0.87306,0.88332,0.89267,0.90102,0.90889,0.91587,0.92213,0.92796
+0.93331,0.93846,0.94320,0.94751,0.95167,0.95557,0.95918,0.96257,0.96576,0.96880
+0.97157,0.97406,0.97631,0.97823,0.97996,0.98153,0.98299,0.98422,0.98533,0.98633
+0.98722,0.98809,0.98882,0.98952,0.99017,0.99071,0.99124,0.99177,0.99226,0.99265
+0.99304,0.99346,0.99383,0.99419,0.99457,0.99490,0.99523,0.99555,0.99583,0.99611
+0.99636,0.99662,0.99682,0.99704,0.99723,0.99740,0.99757,0.99771,0.99785,0.99800
+0.99815,0.99829,0.99842,0.99853,0.99862,0.99872,0.99881,0.99889,0.99896,0.99904
+0.99911,0.99916,0.99923,0.99929,0.99935,0.99942,0.99946,0.99951,0.99957,0.99962
+0.99967,0.99972,0.99975,0.99978,0.99982,0.99986,0.99992,0.99996,1.00000
+hwc2v1fract=0.00158,0.00407,0.00797,0.01387,0.02206,0.03355,0.04773,0.06452,0.08356
+0.10442,0.12599,0.14806,0.17010,0.19200,0.21382,0.23534,0.25636,0.27717,0.29774
+0.31812,0.33812,0.35791,0.37705,0.39600,0.41509,0.43412,0.45289,0.47167,0.49031
+0.50884,0.52730,0.54585,0.56407,0.58212,0.60006,0.61801,0.63583,0.65331,0.67073
+0.68820,0.70540,0.72245,0.73894,0.75542,0.77153,0.78715,0.80218,0.81685,0.83077
+0.84396,0.85623,0.86783,0.87837,0.88805,0.89689,0.90478,0.91199,0.91866,0.92445
+0.92997,0.93504,0.93977,0.94403,0.94816,0.95205,0.95578,0.95924,0.96243,0.96560
+0.96852,0.97104,0.97332,0.97548,0.97747,0.97914,0.98064,0.98199,0.98323,0.98433
+0.98536,0.98625,0.98711,0.98787,0.98863,0.98931,0.98990,0.99051,0.99108,0.99157
+0.99209,0.99252,0.99290,0.99330,0.99369,0.99405,0.99439,0.99472,0.99503,0.99535
+0.99563,0.99587,0.99615,0.99640,0.99663,0.99682,0.99704,0.99722,0.99741,0.99760
+0.99777,0.99794,0.99811,0.99827,0.99841,0.99851,0.99865,0.99877,0.99886,0.99896
+0.99904,0.99912,0.99919,0.99925,0.99932,0.99937,0.99940,0.99946,0.99953,0.99959
+0.99963,0.99969,0.99974,0.99978,0.99983,0.99989,0.99993,0.99996,1.00000
+hwc2y2fract=0.00176,0.00410,0.00723,0.01133,0.01696,0.02463,0.03465,0.04724,0.06251
+0.07971,0.09831,0.11812,0.13832,0.15820,0.17828,0.19793,0.21688,0.23560,0.25369
+0.27151,0.28900,0.30632,0.32373,0.34069,0.35720,0.37383,0.39021,0.40667,0.42293
+0.43900,0.45512,0.47122,0.48702,0.50263,0.51787,0.53271,0.54747,0.56211,0.57635
+0.58995,0.60304,0.61572,0.62822,0.64011,0.65187,0.66319,0.67409,0.68453,0.69493
+0.70498,0.71486,0.72479,0.73440,0.74361,0.75293,0.76231,0.77172,0.78120,0.79051
+0.80001,0.80955,0.81897,0.82859,0.83821,0.84788,0.85743,0.86694,0.87630,0.88540
+0.89430,0.90285,0.91078,0.91841,0.92546,0.93194,0.93804,0.94349,0.94846,0.95300
+0.95715,0.96093,0.96446,0.96766,0.97045,0.97295,0.97540,0.97753,0.97937,0.98110
+0.98269,0.98413,0.98533,0.98646,0.98744,0.98836,0.98920,0.98998,0.99069,0.99133
+0.99192,0.99251,0.99302,0.99347,0.99389,0.99432,0.99469,0.99507,0.99541,0.99575
+0.99603,0.99627,0.99649,0.99673,0.99695,0.99712,0.99731,0.99747,0.99762,0.99781
+0.99800,0.99814,0.99828,0.99843,0.99857,0.99872,0.99886,0.99900,0.99912,0.99922
+0.99932,0.99941,0.99952,0.99961,0.99970,0.99978,0.99986,0.99994,1.00000
+hwc2x2fract=0.00279,0.00651,0.01147,0.01804,0.02673,0.03748,0.05021,0.06558,0.08274
+0.10160,0.12165,0.14276,0.16451,0.18676,0.20891,0.23091,0.25266,0.27384,0.29508
+0.31632,0.33717,0.35768,0.37766,0.39763,0.41747,0.43736,0.45686,0.47616,0.49525
+0.51418,0.53309,0.55170,0.56999,0.58823,0.60620,0.62427,0.64203,0.65959,0.67702
+0.69461,0.71153,0.72839,0.74470,0.76116,0.77699,0.79246,0.80718,0.82121,0.83496
+0.84787,0.86009,0.87155,0.88195,0.89168,0.90050,0.90851,0.91583,0.92258,0.92879
+0.93451,0.93976,0.94453,0.94902,0.95315,0.95700,0.96057,0.96396,0.96712,0.97005
+0.97269,0.97517,0.97737,0.97937,0.98116,0.98278,0.98423,0.98543,0.98650,0.98745
+0.98835,0.98912,0.98979,0.99040,0.99098,0.99149,0.99197,0.99242,0.99280,0.99321
+0.99355,0.99391,0.99421,0.99456,0.99487,0.99517,0.99541,0.99566,0.99593,0.99619
+0.99640,0.99663,0.99682,0.99702,0.99717,0.99737,0.99749,0.99763,0.99775,0.99788
+0.99800,0.99814,0.99824,0.99835,0.99846,0.99858,0.99867,0.99876,0.99886,0.99895
+0.99903,0.99910,0.99917,0.99923,0.99932,0.99939,0.99943,0.99948,0.99954,0.99959
+0.99964,0.99971,0.99976,0.99980,0.99984,0.99989,0.99993,0.99997,1.00000
diff --git a/PARAM/HMS/DC/CUTS/hdc_cuts_6gev.param b/PARAM/HMS/DC/CUTS/hdc_cuts_6gev.param
new file mode 100644
index 0000000000000000000000000000000000000000..868d7d011de4e37f6f7680b876f22122b7ed6109
--- /dev/null
+++ b/PARAM/HMS/DC/CUTS/hdc_cuts_6gev.param
@@ -0,0 +1,22 @@
+;Utilize per wire tzero offsets, 1 means true
+h_using_tzero_per_wire = 0
+
+; TEST STAND PARAMETER
+; Custom parameter which should be loaded when aiming to analyze HMS DC
+; data with no tracking 
+hsel_using_scin  = 0
+; hsel_using_prune = 0
+
+
+; TDC window limits for each plane.
+hdc_tdc_min_win = -14000, -14000, -14000, -14000, -14000, -14000
+                  -14000, -14000, -14000, -14000, -14000, -14000
+hdc_tdc_max_win = -6000, -6000, -6000, -6000, -6000, -6000
+                  -6000, -6000, -6000, -6000, -8000, -6000
+hdc_fix_lr = 0
+hdc_fix_propcorr = 0
+
+; Zero time correction for each plane in ns that is added to TDC time.
+hdc_plane_time_zero =  1312.50,1316.50,1310.8,1313.0,1311.45,1312.76,
+                       1315.00,1313.40,1310.8,1312.0,1317.40,1313.50
+
diff --git a/PARAM/HMS/DC/hdc.pos b/PARAM/HMS/DC/GEOM/hdc_geom_6gev.param
similarity index 78%
rename from PARAM/HMS/DC/hdc.pos
rename to PARAM/HMS/DC/GEOM/hdc_geom_6gev.param
index 597ab6a88f13b944c0ddcd465a16db8f7aae7032..e94ed1bfb2c6ceeca0e9341aaf7b639962b6d2dc 100644
--- a/PARAM/HMS/DC/hdc.pos
+++ b/PARAM/HMS/DC/GEOM/hdc_geom_6gev.param
@@ -1,3 +1,40 @@
+; Geometrical parameters
+
+; Conversion factor from TDC clicks to ns.
+hdc_tdc_time_per_channel = -0.10
+
+; Number of drift chambers.
+hdc_num_chambers = 2
+
+; Total number of planes.
+hdc_num_planes = 12
+
+; Names of planes.
+hdc_plane_names = "1x1 1y1 1u1 1v1 1y2 1x2 2x1 2y1 2u1 2v1 2y2 2x2"
+
+; Chamber index for each plane.
+hdc_chamber_planes = 1, 1, 1, 1, 1, 1
+                     2, 2, 2, 2, 2, 2
+
+; Number of wires in each plane.
+hdc_nrwire = 113, 52, 107, 107, 52, 113
+             113, 52, 107, 107, 52, 113
+
+
+; Sigma of wire chamber resolution for each plane.
+; From SANE.
+hdc_sigma = 0.020, 0.020, 0.020, 0.020, 0.020, 0.020
+            0.020, 0.020, 0.020, 0.020, 0.020, 0.020
+
+; For wire velocity corrections.
+; From SANE.
+hdc_wire_velocity = 12.0
+hdc_central_time = 7, 9, 3, 4, 6, 5
+                   7, 5, 3, 4, 6, 6
+hdc_drifttime_sign = -1, -1, -1, -1, -1, -1
+                     -1, -1, -1, -1, -1, -1
+
+
 ; CHAMBER POSITION PARAMETERS
 
 ; x, y and z position of center for each wire chamber in cm.
@@ -92,3 +129,4 @@ hdc_gamma_angle = pdc_1_yaw*raddeg
                   pdc_2_yaw*raddeg
                   pdc_2_yaw*raddeg
                   pdc_2_yaw*raddeg
+
diff --git a/PARAM/HMS/DC/hdc.param b/PARAM/HMS/DC/hdc.param
deleted file mode 100644
index da5d2704d50acc4248375841fe560d0d491ae444..0000000000000000000000000000000000000000
--- a/PARAM/HMS/DC/hdc.param
+++ /dev/null
@@ -1,18 +0,0 @@
-; GENERAL PARAMETERS
-
-; Number of drift chambers.
-hdc_num_chambers = 2
-
-; Total number of planes.
-hdc_num_planes = 12
-
-; Names of planes.
-hdc_plane_names = "1x1 1y1 1u1 1v1 1y2 1x2 2x1 2y1 2u1 2v1 2y2 2x2"
-
-; Chamber index for each plane.
-hdc_chamber_planes = 1, 1, 1, 1, 1, 1
-                     2, 2, 2, 2, 2, 2
-
-; Number of wires in each plane.
-hdc_nrwire = 113, 52, 107, 107, 52, 113
-             113, 52, 107, 107, 52, 113
diff --git a/PARAM/HMS/DC/hdc_offsets.param b/PARAM/HMS/DC/hdc_offsets.param
deleted file mode 100644
index 759fed95ea802981a31f023613e00c95d3aa6aa2..0000000000000000000000000000000000000000
--- a/PARAM/HMS/DC/hdc_offsets.param
+++ /dev/null
@@ -1,126 +0,0 @@
-; deprecated parameters
-
-; cable id's for HMS Drift Chambers
-; array is 113,12 (wires,planes) but most planes have less than 113 wires)
-
-hdc_card_no=
-; Plane 1, wires 1-113, 16 per card (+one extra wire)
-              1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
-              2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
-              3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
-              4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
-              5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5
-              6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
-              7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
-             12
-; plane 2, wires 1-52, 13 per card
-              8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8
-              9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9
-             10,10,10,10,10,10,10,10,10,10,10,10,10
-             11,11,11,11,11,11,11,11,11,11,11,11,11
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-; plane 3, wires 1-107, 15 or 16 per card (12 has one x wire)
-             12,12,12,12,12,12,12,12,12,12,12,12,12,12
-             13,13,13,13,13,13,13,13,13,13,13,13,13,13,13
-             14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14
-             15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
-             16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
-             17,17,17,17,17,17,17,17,17,17,17,17,17,17,17
-             18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18
-             -1,-1,-1,-1,-1,-1
-; plane 4, wires 1-107, 15 or 16 per card (19 has one x' wire)
-             19,19,19,19,19,19,19,19,19,19,19,19,19,19
-             20,20,20,20,20,20,20,20,20,20,20,20,20,20,20
-             21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21
-             22,22,22,22,22,22,22,22,22,22,22,22,22,22,22
-             23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23
-             24,24,24,24,24,24,24,24,24,24,24,24,24,24,24
-             25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25
-             -1,-1,-1,-1,-1,-1
-; plane 5, wires 1-52, 13 per card
-             26,26,26,26,26,26,26,26,26,26,26,26,26
-             27,27,27,27,27,27,27,27,27,27,27,27,27
-             28,28,28,28,28,28,28,28,28,28,28,28,28
-             29,29,29,29,29,29,29,29,29,29,29,29,29
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-; Plane 6, wires 1-113, 16 per card (+one extra wire)
-             30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30
-             31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31
-             32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32
-             33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33
-             34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34
-             35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35
-             36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36
-             19
-; Chamber 2
-; Plane 7, wires 1-113, 16 per card (+one extra wire)
-             37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37
-             38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38
-             39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39
-             40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40
-             41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41
-             42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42
-             43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43
-             48
-; plane 8, wires 1-52, 13 per card
-             44,44,44,44,44,44,44,44,44,44,44,44,44
-             45,45,45,45,45,45,45,45,45,45,45,45,45
-             46,46,46,46,46,46,46,46,46,46,46,46,46
-             47,47,47,47,47,47,47,47,47,47,47,47,47
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-; plane 9, wires 1-107, 15 or 16 per card (48 has one x wire)
-             48,48,48,48,48,48,48,48,48,48,48,48,48,48
-             49,49,49,49,49,49,49,49,49,49,49,49,49,49,49
-             50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50
-             51,51,51,51,51,51,51,51,51,51,51,51,51,51,51
-             52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52
-             53,53,53,53,53,53,53,53,53,53,53,53,53,53,53
-             54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54
-             -1,-1,-1,-1,-1,-1
-; plane 10, wires 1-107, 15 or 16 per card (55 has one x' wire)
-             55,55,55,55,55,55,55,55,55,55,55,55,55,55
-             56,56,56,56,56,56,56,56,56,56,56,56,56,56,56
-             57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57
-             58,58,58,58,58,58,58,58,58,58,58,58,58,58,58
-             59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59
-             60,60,60,60,60,60,60,60,60,60,60,60,60,60,60
-             61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61
-             -1,-1,-1,-1,-1,-1
-; plane 11, wires 1-52, 13 per card
-             62,62,62,62,62,62,62,62,62,62,62,62,62
-             63,63,63,63,63,63,63,63,63,63,63,63,63
-             64,64,64,64,64,64,64,64,64,64,64,64,64
-             65,65,65,65,65,65,65,65,65,65,65,65,65
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-             -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-; Plane 12, wires 1-113, 16 per card (+one extra wire)
-             66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66
-             67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67
-             68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68
-             69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69
-             70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70
-             71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71
-             72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72
-             55
-;
-;       Cable Delays on a per/card basys
-;
-hdc_card_delay =  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-                  0, 0
diff --git a/PARAM/HMS/DC/hdc_test_stand.param b/PARAM/HMS/DC/hdc_test_stand.param
deleted file mode 100644
index 53fd44455af1a5afbda816d97201a7383c19f124..0000000000000000000000000000000000000000
--- a/PARAM/HMS/DC/hdc_test_stand.param
+++ /dev/null
@@ -1,17 +0,0 @@
-; TEST-STAND PARAMETERS
-; Custom parameter file which should be loaded when aiming to analyze HMS DC
-; data with no tracking.
-
-; Increase HMS TDC window size.
-hdc_tdc_min_win = -50000, -50000, -50000, -50000, -50000, -50000
-                  -50000, -50000, -50000, -50000, -50000, -50000
-hdc_tdc_max_win = 50000, 50000, 50000, 50000, 50000, 50000
-                  50000, 50000, 50000, 50000, 50000, 50000
-
-; Remove hodoscope dependence on tracking.
-hsel_using_scin  = 0
-; hsel_using_prune = 0
-
-; Adjust HMS DC plane t = 0
-; hdc_plane_time_zero = 1500.0, 1500.0, 1500.0, 1500.0, 1500.0, 1500.0
-;                       1500.0, 1500.0, 1500.0, 1500.0, 1500.0, 1500.0
diff --git a/PARAM/HMS/DC/hdc_tracking.param b/PARAM/HMS/DC/hdc_tracking.param
deleted file mode 100644
index 6d1c78595805b75d3e2ca24de99c625855d528af..0000000000000000000000000000000000000000
--- a/PARAM/HMS/DC/hdc_tracking.param
+++ /dev/null
@@ -1,34 +0,0 @@
-; TRACKING PARAMETERS
-
-; Sigma of wire chamber resolution for each plane.
-; From SANE.
-hdc_sigma = 0.020, 0.020, 0.020, 0.020, 0.020, 0.020
-            0.020, 0.020, 0.020, 0.020, 0.020, 0.020
-
-; TDC window limits for each plane.
-hdc_tdc_min_win = -14000, -14000, -14000, -14000, -14000, -14000
-                  -14000, -14000, -14000, -14000, -14000, -14000
-hdc_tdc_max_win = -6000, -6000, -6000, -6000, -6000, -6000
-                  -6000, -6000, -6000, -6000, -8000, -6000
-
-; Conversion factor from TDC clicks to ns.
-hdc_tdc_time_per_channel = -0.10
-
-; Zero time correction for each plane in ns that is added to TDC time.
-; From SANE.
-
-hdc_plane_time_zero =  1312.50,1316.50,1310.8,1313.0,1311.45,1312.76,
-                      1315.0,1313.40,1310.8,1312.0,1317.4,1313.5
-
-
-
-
-; For wire velocity corrections.
-; From SANE.
-hdc_wire_velocity = 12.0
-hdc_central_time = 7, 9, 3, 4, 6, 5
-                   7, 5, 3, 4, 6, 6
-hdc_drifttime_sign = -1, -1, -1, -1, -1, -1
-                     -1, -1, -1, -1, -1, -1
-hdc_fix_lr = 0
-hdc_fix_propcorr = 0
diff --git a/PARAM/HMS/DC/hdeadwires.param b/PARAM/HMS/DC/hdeadwires.param
deleted file mode 100644
index fc20ebfadcdf116b64a511b1d7c238dbd512e197..0000000000000000000000000000000000000000
--- a/PARAM/HMS/DC/hdeadwires.param
+++ /dev/null
@@ -1,12 +0,0 @@
-; deprecated parameters
-
-; list of dead wires in the HMS (plane,wire).  Dead means <20% efficiency.
-hdc_num_deadwires = 6
-
-hdc_deadwire_plane =  2,   6,   6,   7,   9,  10
-
-hdc_deadwire_num =   43,  18,  60,  97,  30,   8
-
-; rough efficiency  22%,  3%, .4%,  0%,  0%,  7%
-
-; pln9,wire99 is HOT (used to be that 9/#100 was DEAD)?
diff --git a/PARAM/HMS/HODO/CALIB/KPP_Spring_2017/hhodo_calib_303.param b/PARAM/HMS/HODO/CALIB/KPP_Spring_2017/hhodo_calib_303.param
new file mode 100644
index 0000000000000000000000000000000000000000..8aa8ced88515a101ce2da6585155a91009c6f3a7
--- /dev/null
+++ b/PARAM/HMS/HODO/CALIB/KPP_Spring_2017/hhodo_calib_303.param
@@ -0,0 +1,139 @@
+;HMS Hodo Calibration paramters
+
+ 
+; new param from KPP HMS run 303                 
+hhodo_pos_invadc_offset =   -0.00,   -0.00,   -0.70,   -0.00
+                            -0.00,   -0.00,   -0.31,   -2.63
+                            -0.00,    0.13,   -1.03,   -0.58
+                             1.43,   -0.51,   -0.87,   -0.63
+                             0.60,   -0.75,   -0.66,   -1.54
+                             1.73,   -0.66,   -0.82,   -1.46
+                             0.89,    0.08,   -0.92,   -0.88
+                             2.10,    0.20,   -0.32,   -0.39
+                             0.31,   -0.89,   -1.14,   -2.15
+                            -0.00,   -0.00,   -1.52,   -0.00
+                             0.80,   -0.00,   -0.75,   -0.00
+                            -0.25,   -0.00,   -2.36,   -0.00
+                             0.54,   -0.00,   -0.00,   -0.00
+                             0.47,   -0.00,   -0.00,   -0.00
+                            -0.00,   -0.00,   -0.00,   -0.00
+                            -0.00,   -0.00,   -0.00,   -0.00
+
+hhodo_neg_invadc_offset =   -0.00,   -0.00,   -0.97,   -0.00
+                            -0.00,   -0.00,    0.06,   -2.16
+                            -0.00,   -0.58,   -1.60,   -0.95
+                            -0.09,    0.95,   -0.45,   -0.49
+                            -0.79,   -0.05,    0.21,   -1.82
+                             0.32,   -1.02,   -0.05,   -0.52
+                             0.02,    0.19,    0.90,    3.75
+                            -0.35,    0.35,    0.26,   -1.65
+                            -0.27,   -1.32,    0.33,   -2.44
+                            -1.42,   -0.00,   -1.48,   -0.00
+                             0.14,   -0.00,    0.14,   -0.00
+                             0.24,   -0.00,   -0.06,   -0.00
+                             0.16,   -0.00,   -0.00,   -0.00
+                            -0.83,   -0.00,   -0.00,   -0.00
+                            -0.00,   -0.00,   -0.00,   -0.00
+                            -0.00,   -0.00,   -0.00,   -0.00
+
+hhodo_pos_invadc_linear =   15.00,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            14.56,   15.00,   15.00,   15.00
+                            12.91,   15.00,   15.00,   15.00
+                            12.81,   14.97,   15.00,   15.00
+                            14.29,   15.00,   15.00,   15.00
+                            12.94,   14.21,   14.85,   15.00
+                            13.27,   13.60,   15.00,   15.00
+                            13.44,   15.00,   15.00,   15.00
+                            14.24,   15.00,   15.00,   15.00
+                            13.24,   15.00,   14.33,   15.00
+                            13.20,   15.00,   15.00,   15.00
+                            13.94,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+
+hhodo_neg_invadc_linear =   15.00,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            15.00,   14.56,   15.00,   15.00
+                            14.55,   14.16,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            13.47,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            14.69,   14.21,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            14.74,   15.00,   15.00,   15.00
+                            14.66,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            13.71,   15.00,   15.00,   15.00
+                            12.33,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+                            15.00,   15.00,   15.00,   15.00
+
+hhodo_pos_invadc_adc=    -0.00,    -0.00,   106.88,    -0.00
+                        -0.00,    -0.00,   109.67,   122.91
+                        -0.00,   102.28,   127.88,   117.82
+                       100.32,    76.55,   109.30,   139.97
+                        72.45,    90.73,   111.62,   121.49
+                        59.46,    83.45,   116.54,   123.92
+                        95.04,    91.79,   125.49,   127.74
+                        62.95,    53.50,   113.46,   106.91
+                        78.26,    49.84,   100.37,   141.06
+                        73.52,    -0.00,   101.78,    -0.00
+                        94.23,    -0.00,   129.39,    -0.00
+                        75.59,    -0.00,    94.17,    -0.00
+                        79.87,    -0.00,    -0.00,    -0.00
+                        63.90,    -0.00,    -0.00,    -0.00
+                        -0.00,    -0.00,    -0.00,    -0.00
+                        -0.00,    -0.00,    -0.00,    -0.00
+
+hhodo_neg_invadc_adc=    -0.00,    -0.00,   128.32,    -0.00
+                        -0.00,    -0.00,   113.16,   159.99
+                        -0.00,    68.41,   116.51,   119.18
+                        73.18,    65.95,   112.50,   122.16
+                        96.71,    91.23,    96.00,   103.37
+                        52.93,    87.48,   103.59,   122.65
+                        72.72,    82.28,   118.40,   140.72
+                        76.58,    68.02,   104.25,   120.16
+                        73.69,    98.85,    91.95,   119.78
+                        72.26,    -0.00,    89.16,    -0.00
+                        70.89,    -0.00,   113.44,    -0.00
+                        72.26,    -0.00,   101.96,    -0.00
+                        76.14,    -0.00,    -0.00,    -0.00
+                        36.51,    -0.00,    -0.00,    -0.00
+                        -0.00,    -0.00,    -0.00,    -0.00
+                        -0.00,    -0.00,    -0.00,    -0.00
+
+hhodo_pos_sigma =  100.00,  100.00,    0.28,  100.00
+                   100.00,  100.00,    0.31,    0.47
+                   100.00,    0.27,    0.33,    0.34
+                     0.26,    0.32,    0.35,    0.44
+                     0.30,    0.30,    0.33,    0.51
+                     0.38,    0.28,    0.22,    0.41
+                     0.25,    0.30,    0.32,    0.46
+                     0.35,    0.30,    0.31,    0.34
+                     0.26,    0.25,    0.24,    0.41
+                     0.27,  100.00,    0.27,  100.00
+                     0.25,  100.00,    0.37,  100.00
+                     0.26,  100.00,    0.24,  100.00
+                     0.34,  100.00,  100.00,  100.00
+                     0.37,  100.00,  100.00,  100.00
+                   100.00,  100.00,  100.00,  100.00
+                   100.00,  100.00,  100.00,  100.00
+
+hhodo_neg_sigma =  100.00,  100.00,    0.32,  100.00
+                   100.00,  100.00,    0.33,    0.52
+                   100.00,    0.31,    0.35,    0.31
+                     0.25,    0.30,    0.34,    0.32
+                     0.28,    0.32,    0.27,    0.56
+                     0.36,    0.33,    0.28,    0.31
+                     0.26,    0.31,    0.37,    0.42
+                     0.32,    0.30,    0.28,    0.33
+                     0.24,    0.28,    0.20,    0.44
+                     0.27,  100.00,    0.24,  100.00
+                     0.24,  100.00,    0.29,  100.00
+                     0.25,  100.00,    0.25,  100.00
+                     0.28,  100.00,  100.00,  100.00
+                     0.33,  100.00,  100.00,  100.00
+                   100.00,  100.00,  100.00,  100.00
+                   100.00,  100.00,  100.00,  100.00
diff --git a/PARAM/HMS/HODO/hhodo.param b/PARAM/HMS/HODO/CALIB/hhodo_calib.param
similarity index 87%
rename from PARAM/HMS/HODO/hhodo.param
rename to PARAM/HMS/HODO/CALIB/hhodo_calib.param
index ac89bedebe2aec1845c89aeb22b18adb41c18986..db32aa860a63d7e0dd20f40217b5490857fcfcb7 100644
--- a/PARAM/HMS/HODO/hhodo.param
+++ b/PARAM/HMS/HODO/CALIB/hhodo_calib.param
@@ -1,44 +1,5 @@
-hcosmicflag=0
-; for now manually set hte FADC mode
-;  1 == Use the pulse int - pulse ped
-;  2 == Use the sample integral - known ped
-;  3 == Use the sample integral - sample ped
-; if not set then defaults to use the raw pulse integral
-hhodo_adc_mode=1
-; 
-; hhodo_tdc_offset is array of time offsets for all paddles in a plane
-;   to move the tdc to between 0 and 4000 channels.
-  hhodo_tdc_offset = 1120, 1120, 1120, 1120
-;  hhodo_tdc_offset = 1000, 1000, 1000, 1000
+;HMS Hodo Calibration paramters
 
-;hhodo set min and max fADC time window for all paddles in a plane in 'Channel' units
-; the conversion is 0.0625 ns / channel for flash ADC 250
-hhodo_AdcTimeWindowMin = 0., 0., 0., 0.
-hhodo_AdcTimeWindowMax = 3200., 3200., 3200., 3200.
-
-; hstart_time_center  center of allowed time window (ns)
-   hstart_time_center = 32.                                                     
-; hstart_time_slop    1/2 width of time window                                  
-   hstart_time_slop = 100.                                                       
-; hscin_tdc_min       minimum tdc value in hms scin                             
-    hscin_tdc_min = -500                                                           
-; hscin_tdc_max       maximum allowed tdc value                                 
-   hscin_tdc_max = 4000                                                         
-; hscin_tdc_to_time   scin tdc time per channel                                 
-   hscin_tdc_to_time = 0.1                                                  
-; tof and you figured out good values
-   htof_tolerance = 50.0
-;                                                                               
-; hms_tof_params                                                                
-; hnum_scin_counters, hhodo_zpos, hhodo_center_coord, hhodo_width               
-; are all calculated within h_init_scin                                         
-;    hhodo_pos_coord and hhodo_neg_coord are not yet used                       
-;                                                                               
-     hhodo_slop     =    2.,  2.,  4.,  4.                                      
-;   
-htofusinginvadc=1
-;                                                                               
-                                                                                
 hhodo_pos_invadc_offset = 0.000,   0.0000,  0.000,   0.000
  0.000,   0.0000,  0.000,   0.000
  0.000,   0.0000,  0.000,   0.000
diff --git a/PARAM/HMS/HODO/htofcal.param b/PARAM/HMS/HODO/CALIB/htofcalib.param
similarity index 54%
rename from PARAM/HMS/HODO/htofcal.param
rename to PARAM/HMS/HODO/CALIB/htofcalib.param
index 8ace71250d5a69df7036c903f5c617f9f9bd76bd..8d13290d195aa12241c26d5ed8b0ca3fdab7439d 100644
--- a/PARAM/HMS/HODO/htofcal.param
+++ b/PARAM/HMS/HODO/CALIB/htofcalib.param
@@ -1,2 +1,3 @@
+; set hdumptof =1 to write out the calibration file
 hdumptof=1
 hdumptof_filename="CALIBRATION/hodo_calib/hfort.37"
diff --git a/PARAM/HMS/HODO/CUTS/hhodo_cuts.param b/PARAM/HMS/HODO/CUTS/hhodo_cuts.param
new file mode 100644
index 0000000000000000000000000000000000000000..e322f189265a5f60dc12ab501bc837b054dd4bd8
--- /dev/null
+++ b/PARAM/HMS/HODO/CUTS/hhodo_cuts.param
@@ -0,0 +1,43 @@
+; HMS Hodo Cuts parameters
+
+; Cosmic flag for beta calculation
+hcosmicflag=0
+
+; for now manually set hte FADC mode
+;  1 == Use the pulse int - pulse ped
+;  2 == Use the sample integral - known ped
+;  3 == Use the sample integral - sample ped
+; if not set then defaults to use the raw pulse integral
+hhodo_adc_mode=1
+; 
+; hhodo_tdc_offset is array of time offsets for all paddles in a plane
+;   to move the tdc to between 0 and 4000 channels.
+  hhodo_tdc_offset = 1120, 1120, 1120, 1120
+;  hhodo_tdc_offset = 1000, 1000, 1000, 1000
+
+;hhodo set min and max fADC time window for all paddles in a plane in 'Channel' units
+; the conversion is 0.0625 ns / channel for flash ADC 250
+hhodo_AdcTimeWindowMin = 0., 0., 0., 0.
+hhodo_AdcTimeWindowMax = 3200., 3200., 3200., 3200.
+
+; hstart_time_center  center of allowed time window (ns)
+   hstart_time_center = 32.                                                     
+; hstart_time_slop    1/2 width of time window                                  
+   hstart_time_slop = 100.                                                       
+; hscin_tdc_min       minimum tdc value in hms scin                             
+    hscin_tdc_min = -500                                                           
+; hscin_tdc_max       maximum allowed tdc value                                 
+   hscin_tdc_max = 4000                                                         
+; hscin_tdc_to_time   scin tdc time per channel                                 
+   hscin_tdc_to_time = 0.1                                                  
+; tof and you figured out good values
+   htof_tolerance = 50.0
+;                                                                               
+; hms_tof_params                                                                
+; hnum_scin_counters, hhodo_zpos, hhodo_center_coord, hhodo_width               
+; are all calculated within h_init_scin                                         
+;    hhodo_pos_coord and hhodo_neg_coord are not yet used                       
+;                                                                               
+     hhodo_slop     =    2.,  2.,  4.,  4.                                      
+;   
+htofusinginvadc=1
\ No newline at end of file
diff --git a/PARAM/HMS/HODO/hhodo.pos b/PARAM/HMS/HODO/GEOM/hhodo_geom.param
similarity index 97%
rename from PARAM/HMS/HODO/hhodo.pos
rename to PARAM/HMS/HODO/GEOM/hhodo_geom.param
index d543d89a04bb7ad6c0726950a06b993dce04d1a1..ca7108746f0d84a97a5d8385130f88a259eace7f 100644
--- a/PARAM/HMS/HODO/hhodo.pos
+++ b/PARAM/HMS/HODO/GEOM/hhodo_geom.param
@@ -1,3 +1,4 @@
+; HMS Hodo Geometry parmeters
 
 hhodo_num_planes = 4
 hhodo_plane_names = "1x 1y 2x 2y"
@@ -89,4 +90,4 @@ hhodo_plane_names = "1x 1y 2x 2y"
                        -11.250
                        -18.750
                        -26.250
-                       -33.750
+                       -33.750
\ No newline at end of file
diff --git a/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_488.param b/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_488.param
index 55c78b978e2361e164dd737f4245cb3acfe12036..494a6585867e68f87fdb2eaf89261c8eb81b6906 100644
--- a/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_488.param
+++ b/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_488.param
@@ -1,18 +1,18 @@
-; Calibration constants for run report_488, 174025 events processed
+; Calibration constants for run 488_400000, 40002 events processed
 
-pcal_neg_gain_cor = 0.423, 0.302, 0.231, 0.277, 0.200, 0.320, 0.359, 0.603, 0.475, 0.329, 0.333, 0.213, 0.342, 3.817,
-pcal_pos_gain_cor = 1.674, 0.228, 0.205, 0.273, 0.228, 0.185, 0.174, 0.153, 0.458, 0.188, 0.371, 0.357, 0.724, 4.376,
-pcal_arr_gain_cor = 0.000, 0.461, 0.000,-0.592, 1.140, 7.592, 0.000, 0.000, 0.000, 8.970, 0.000, 0.000, 0.000, 0.287, 0.000, 0.000,
-                   1.207,-1.024, 1.406, 0.552, 0.566, 0.352, 0.810, 0.868, 4.021, 3.374, 0.000,18.313, 0.000, 0.000, 0.000, 0.000,
-                  -14.494, 1.336, 0.441, 0.529, 0.912, 0.848, 0.596, 1.069, 0.237, 1.229, 0.478, 0.000, 1.995, 0.000, 0.000, 0.000,
-                   2.308, 1.207, 0.505, 0.623, 0.558, 0.433, 1.152, 1.747, 2.441, 0.000, 2.967, 0.862, 0.858, 0.376, 2.133,12.337,
-                   1.026, 0.334, 0.408, 0.381, 0.891, 0.785, 0.657, 0.474, 1.059, 0.819, 0.353, 0.522, 0.514, 0.950, 1.068, 2.800,
-                   2.712, 0.402, 0.419, 0.964, 0.249, 0.555, 0.089, 0.115,-0.732, 0.000, 0.674, 0.701, 0.988, 0.240, 0.500, 1.659,
-                   2.477, 0.342, 0.715, 0.612, 0.353, 0.558, 0.107, 0.100, 0.100, 0.582, 0.466, 0.313, 0.562, 0.516, 0.106, 0.000,
-                   0.230, 0.035, 0.329, 0.185, 0.250, 0.175, 0.037, 0.073, 0.058, 0.000, 0.338, 0.283, 0.395, 0.234, 0.148, 1.184,
-                   0.908, 0.365, 0.434, 0.457, 0.655, 0.619, 0.351, 0.576, 0.651, 0.616, 0.339, 0.889, 0.381, 0.373, 0.456, 2.022,
-                   1.779,-0.199, 0.251, 0.575, 0.345, 0.850, 0.717, 0.953, 0.230, 0.265, 0.543, 0.524, 0.744, 0.478, 0.190, 5.730,
-                   1.655,-0.296, 0.000, 2.742, 0.310, 0.601, 0.221, 1.570, 0.396, 1.475, 0.309, 0.586, 0.496, 0.364, 0.108, 2.170,
-                   2.342, 1.485,-0.429, 1.523, 0.343, 0.791, 0.610,-1.725, 7.065, 1.522, 2.526,-0.132, 1.166, 0.601, 4.295, 6.234,
-                   2.451, 0.863, 1.189, 0.000, 0.000,-0.959,-1.476, 5.174, 0.000,-0.869, 0.994, 0.000, 0.000, 3.806, 0.000, 1.982,
-                   0.254, 2.304, 0.487, 0.641,-0.473,-0.373, 1.547, 3.782, 1.382, 0.000, 1.592,-3.079, 2.468, 0.000, 0.000,-0.275,
\ No newline at end of file
+pcal_neg_gain_cor = 0.285, 0.224, 0.231, 0.280, 0.201, 0.313, 0.397, 0.425, 0.510, 0.337, 0.334, 0.212, 0.528, 1.000,
+pcal_pos_gain_cor = 2.040, 0.203, 0.209, 0.277, 0.230, 0.200, 0.217, 0.187, 0.437, 0.188, 0.373, 0.359, 0.953, 1.000,
+pcal_arr_gain_cor = 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000,
+                   1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000,
+                   1.000, 2.923, 0.473, 1.000, 1.000, 1.000, 4.898, 1.000, 1.000, 1.000, 1.000, 1.000, 1.695, 1.000, 1.000, 1.000,
+                   1.000,1.000, 0.627, 0.626, 0.537, 0.461, 1.253, 1.000, 1.000, 1.000, 1.000, 0.328,1.000, 0.895, 1.000, 1.000,
+                   1.239, 0.399, 0.404, 0.377, 0.887, 0.778, 0.635, 0.469, 2.950, 1.805, 0.285, 0.576, 0.522, 0.942, 1.063, 1.000,
+                   1.000, 0.301, 0.411, 0.963, 0.249, 0.549, 0.085, 0.104, 3.675, 1.000, 0.673, 0.695, 0.985, 0.241, 0.452, 1.000,
+                   1.000, 0.282, 0.705, 0.610, 0.352, 0.552, 0.099, 0.087, 0.085, 0.627, 0.466, 0.312, 0.556, 0.519,1.000, 1.000,
+                  1.000, 0.274, 0.328, 0.185, 0.249, 0.176, 0.041, 0.045, 0.025, 1.000, 0.326, 0.282, 0.395, 0.236, 0.115, 1.858,
+                   0.015, 0.413, 0.440, 0.460, 0.650, 0.624, 0.349, 0.651, 1.323, 0.529, 0.337, 0.885, 0.381, 0.378, 0.139, 1.000,
+                   1.000, 1.000, 0.210, 0.621, 0.339, 0.824, 0.774, 0.834, 0.545,1.000, 0.534, 0.519, 0.749, 0.479, 0.174, 1.000,
+                   5.112, 1.000, 1.000, 0.634,1.000, 4.243, 0.057, 1.000, 0.732, 1.000, 0.210, 0.552, 0.488, 0.366,1.000, 1.000,
+                   1.544, 1.000,1.000, 1.000, 1.000, 1.000,1.000, 1.000, 1.000, 3.663, 1.640, 1.000, 4.630,1.000, 1.000, 1.000,
+                   1.000,1.000,1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.882, 1.000, 1.000, 4.770, 1.000, 1.000,
+                  1.000,1.000,1.000, 3.138, 1.000,1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.902, 1.000, 1.000, 1.000,
diff --git a/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_calib_488.param b/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_calib_488.param
index c9892bffad016162ae5b49a20541959386c74ce8..037c13754e8ab6543acecadc5fb87cd8a7ad8c3b 100644
--- a/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_calib_488.param
+++ b/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_calib_488.param
@@ -1,178 +1,175 @@
 ; Lookup Table: RUN 488
 ; number of bins in time to distance lookup table
-pdriftbins = 138
-
-; Number of 1st bin in table in ns
-pdrift1stbin = 0
-
-; Bin size in ns
-pdriftbinsz = 2
-
-pwc1u1fract=0.0012918,0.00393,0.00820,0.01502,0.02425,0.03662,0.05029,0.06599,0.08300
-0.10141,0.12121,0.14156,0.16225,0.18309,0.20438,0.22640,0.24785,0.26943,0.29094
-0.31248,0.33413,0.35621,0.37791,0.39938,0.42126,0.44260,0.46433,0.48604,0.50716
-0.52843,0.54937,0.57034,0.59094,0.61141,0.63218,0.65184,0.67234,0.69158,0.71067
-0.72970,0.74780,0.76594,0.78341,0.80072,0.81751,0.83289,0.84881,0.86334,0.87660
-0.88864,0.89945,0.90916,0.91760,0.92493,0.93150,0.93681,0.94170,0.94612,0.94989
-0.95348,0.95672,0.95983,0.96253,0.96502,0.96715,0.96934,0.97131,0.97314,0.97484
-0.97664,0.97817,0.97953,0.98087,0.98209,0.98319,0.98425,0.98510,0.98594,0.98672
-0.98745,0.98816,0.98877,0.98923,0.98972,0.99012,0.99053,0.99090,0.99118,0.99152
-0.99175,0.99202,0.99227,0.99254,0.99287,0.99313,0.99338,0.99362,0.99382,0.99400
-0.99416,0.99435,0.99458,0.99475,0.99495,0.99517,0.99541,0.99560,0.99581,0.99598
-0.99620,0.99641,0.99664,0.99689,0.99708,0.99726,0.99744,0.99758,0.99779,0.99793
-0.99813,0.99833,0.99855,0.99871,0.99890,0.99913,0.99933,0.99953,0.99974,0.99992
-0.99995,0.99996,0.99997,0.99997,0.99998,0.99998,0.99999,1.00000,1.00000
-pwc1u2fract=0.00084,0.00261,0.00608,0.01174,0.01994,0.03047,0.04371,0.05919,0.07632
-0.09403,0.11382,0.13511,0.15574,0.17712,0.19842,0.22085,0.24207,0.26366,0.28503
-0.30704,0.32860,0.35011,0.37177,0.39324,0.41472,0.43579,0.45711,0.47832,0.49939
-0.52040,0.54102,0.56149,0.58188,0.60190,0.62203,0.64158,0.66105,0.68067,0.69954
-0.71840,0.73671,0.75494,0.77257,0.78944,0.80656,0.82260,0.83811,0.85270,0.86690
-0.88010,0.89219,0.90275,0.91204,0.91989,0.92699,0.93297,0.93856,0.94325,0.94756
-0.95127,0.95465,0.95768,0.96047,0.96318,0.96575,0.96794,0.96997,0.97195,0.97370
-0.97553,0.97699,0.97841,0.97983,0.98107,0.98213,0.98313,0.98408,0.98497,0.98583
-0.98656,0.98720,0.98779,0.98842,0.98894,0.98946,0.98986,0.99028,0.99067,0.99108
-0.99136,0.99164,0.99196,0.99221,0.99252,0.99274,0.99298,0.99319,0.99341,0.99363
-0.99385,0.99404,0.99420,0.99439,0.99459,0.99484,0.99502,0.99528,0.99553,0.99577
-0.99602,0.99621,0.99645,0.99670,0.99693,0.99715,0.99736,0.99758,0.99772,0.99791
-0.99811,0.99834,0.99852,0.99870,0.99891,0.99913,0.99936,0.99953,0.99978,0.99992
-0.99997,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
-pwc1x1fract=0.00199,0.00555,0.01149,0.02037,0.03148,0.04552,0.06196,0.07957,0.09820
-0.11791,0.13888,0.15965,0.18097,0.20207,0.22416,0.24500,0.26649,0.28752,0.30895
-0.33010,0.35174,0.37289,0.39431,0.41543,0.43666,0.45765,0.47858,0.49959,0.52043
-0.54111,0.56187,0.58255,0.60258,0.62249,0.64258,0.66215,0.68081,0.69942,0.71745
-0.73556,0.75320,0.77041,0.78783,0.80499,0.82153,0.83660,0.85099,0.86446,0.87735
-0.88915,0.89926,0.90829,0.91603,0.92285,0.92891,0.93453,0.93921,0.94374,0.94759
-0.95092,0.95406,0.95697,0.95973,0.96233,0.96488,0.96711,0.96945,0.97132,0.97311
-0.97487,0.97652,0.97795,0.97951,0.98083,0.98180,0.98295,0.98405,0.98483,0.98569
-0.98647,0.98717,0.98776,0.98832,0.98883,0.98935,0.98988,0.99022,0.99063,0.99104
-0.99139,0.99168,0.99202,0.99228,0.99254,0.99280,0.99302,0.99332,0.99354,0.99374
-0.99394,0.99416,0.99439,0.99455,0.99479,0.99501,0.99523,0.99550,0.99573,0.99595
-0.99619,0.99642,0.99660,0.99674,0.99697,0.99712,0.99733,0.99754,0.99775,0.99800
-0.99818,0.99841,0.99865,0.99887,0.99907,0.99926,0.99940,0.99957,0.99974,0.99983
-0.99990,0.99996,0.99998,0.99999,0.99999,0.99999,0.99999,1.00000,1.00000
-pwc1x2fract=0.00104,0.00304,0.00682,0.01294,0.02230,0.03465,0.04998,0.06633,0.08490
-0.10426,0.12405,0.14473,0.16554,0.18667,0.20787,0.22900,0.24992,0.27112,0.29198
-0.31371,0.33521,0.35640,0.37773,0.39895,0.42012,0.44129,0.46246,0.48265,0.50281
-0.52309,0.54299,0.56371,0.58384,0.60377,0.62314,0.64259,0.66198,0.68112,0.69986
-0.71785,0.73552,0.75291,0.77037,0.78734,0.80354,0.81980,0.83515,0.84997,0.86352
-0.87618,0.88764,0.89807,0.90743,0.91548,0.92242,0.92847,0.93374,0.93838,0.94251
-0.94621,0.94948,0.95253,0.95545,0.95840,0.96102,0.96352,0.96584,0.96805,0.97004
-0.97189,0.97352,0.97526,0.97678,0.97830,0.97968,0.98094,0.98199,0.98319,0.98417
-0.98511,0.98601,0.98668,0.98737,0.98799,0.98855,0.98911,0.98956,0.99001,0.99042
-0.99081,0.99115,0.99145,0.99175,0.99206,0.99230,0.99261,0.99285,0.99313,0.99338
-0.99367,0.99392,0.99418,0.99443,0.99463,0.99488,0.99511,0.99533,0.99556,0.99577
-0.99602,0.99628,0.99647,0.99668,0.99689,0.99712,0.99728,0.99747,0.99774,0.99791
-0.99811,0.99827,0.99849,0.99868,0.99884,0.99902,0.99920,0.99942,0.99963,0.99978
-0.99989,0.99993,0.99996,0.99998,0.99998,0.99998,0.99999,0.99999,1.00000
-pwc1v1fract=0.00124,0.00390,0.00803,0.01445,0.02371,0.03499,0.04899,0.06461,0.08196
-0.10025,0.11984,0.14093,0.16231,0.18420,0.20581,0.22720,0.24977,0.27193,0.29343
-0.31529,0.33767,0.35914,0.38069,0.40209,0.42362,0.44576,0.46682,0.48812,0.50932
-0.53014,0.55069,0.57083,0.59087,0.61156,0.63185,0.65123,0.67066,0.68930,0.70817
-0.72701,0.74476,0.76252,0.77952,0.79657,0.81329,0.82890,0.84484,0.85921,0.87279
-0.88484,0.89560,0.90519,0.91376,0.92125,0.92775,0.93332,0.93841,0.94289,0.94685
-0.95067,0.95400,0.95696,0.95975,0.96253,0.96492,0.96731,0.96945,0.97143,0.97323
-0.97496,0.97646,0.97794,0.97928,0.98054,0.98181,0.98279,0.98391,0.98489,0.98575
-0.98644,0.98716,0.98778,0.98845,0.98898,0.98945,0.98995,0.99032,0.99062,0.99092
-0.99121,0.99150,0.99179,0.99206,0.99236,0.99261,0.99279,0.99305,0.99329,0.99355
-0.99380,0.99399,0.99422,0.99443,0.99468,0.99486,0.99508,0.99530,0.99550,0.99574
-0.99596,0.99618,0.99638,0.99659,0.99676,0.99695,0.99718,0.99740,0.99757,0.99782
-0.99805,0.99829,0.99856,0.99878,0.99899,0.99920,0.99941,0.99962,0.99977,0.99987
-0.99993,0.99996,0.99997,0.99998,0.99998,0.99998,0.99999,1.00000,1.00000
-pwc1v2fract=0.00120,0.00356,0.00791,0.01501,0.02503,0.03780,0.05265,0.06963,0.08795
-0.10693,0.12710,0.14864,0.16955,0.19124,0.21313,0.23459,0.25639,0.27811,0.29960
-0.32117,0.34208,0.36349,0.38478,0.40636,0.42740,0.44819,0.46989,0.49108,0.51235
-0.53328,0.55372,0.57372,0.59371,0.61376,0.63356,0.65358,0.67295,0.69235,0.71095
-0.72951,0.74771,0.76565,0.78345,0.80015,0.81689,0.83271,0.84776,0.86191,0.87554
-0.88784,0.89884,0.90833,0.91679,0.92419,0.93048,0.93578,0.94064,0.94494,0.94863
-0.95195,0.95525,0.95794,0.96073,0.96320,0.96563,0.96789,0.96985,0.97169,0.97331
-0.97497,0.97652,0.97787,0.97923,0.98036,0.98162,0.98279,0.98379,0.98473,0.98550
-0.98626,0.98690,0.98746,0.98808,0.98860,0.98896,0.98946,0.98987,0.99023,0.99063
-0.99096,0.99129,0.99161,0.99191,0.99218,0.99248,0.99277,0.99302,0.99323,0.99348
-0.99371,0.99390,0.99412,0.99438,0.99461,0.99479,0.99502,0.99521,0.99538,0.99559
-0.99579,0.99600,0.99623,0.99646,0.99666,0.99690,0.99711,0.99729,0.99753,0.99773
-0.99791,0.99813,0.99840,0.99864,0.99888,0.99909,0.99924,0.99948,0.99965,0.99977
-0.99988,0.99999,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000
-pwc2v2fract=0.00116,0.00336,0.00699,0.01286,0.02132,0.03216,0.04616,0.06217,0.07977
-0.09901,0.11949,0.14089,0.16228,0.18440,0.20633,0.22805,0.25032,0.27173,0.29323
-0.31432,0.33572,0.35738,0.37866,0.39962,0.42101,0.44223,0.46310,0.48401,0.50486
-0.52500,0.54535,0.56530,0.58499,0.60417,0.62324,0.64198,0.66008,0.67800,0.69562
-0.71280,0.72981,0.74627,0.76238,0.77790,0.79326,0.80792,0.82222,0.83574,0.84859
-0.86046,0.87176,0.88209,0.89143,0.89989,0.90732,0.91420,0.92004,0.92537,0.93038
-0.93495,0.93933,0.94327,0.94693,0.95011,0.95319,0.95601,0.95872,0.96117,0.96340
-0.96559,0.96757,0.96943,0.97114,0.97280,0.97425,0.97559,0.97695,0.97820,0.97941
-0.98054,0.98155,0.98253,0.98346,0.98414,0.98497,0.98584,0.98650,0.98707,0.98760
-0.98819,0.98877,0.98921,0.98970,0.99016,0.99056,0.99099,0.99142,0.99182,0.99217
-0.99252,0.99283,0.99317,0.99351,0.99380,0.99406,0.99434,0.99464,0.99489,0.99513
-0.99537,0.99563,0.99590,0.99618,0.99641,0.99665,0.99686,0.99711,0.99732,0.99755
-0.99782,0.99811,0.99838,0.99863,0.99890,0.99913,0.99939,0.99960,0.99976,0.99987
-0.99995,0.99997,0.99997,0.99998,0.99999,0.99999,0.99999,0.99999,1.00000
-pwc2v1fract=0.00106,0.00267,0.00550,0.01041,0.01777,0.02803,0.04043,0.05556,0.07182
-0.09063,0.11136,0.13254,0.15353,0.17503,0.19729,0.21878,0.24043,0.26245,0.28389
-0.30556,0.32716,0.34865,0.36989,0.39129,0.41230,0.43366,0.45482,0.47541,0.49591
-0.51616,0.53686,0.55710,0.57690,0.59662,0.61616,0.63480,0.65363,0.67195,0.69012
-0.70795,0.72464,0.74095,0.75724,0.77374,0.78943,0.80408,0.81842,0.83256,0.84582
-0.85808,0.86985,0.88080,0.89065,0.89953,0.90748,0.91436,0.92049,0.92606,0.93111
-0.93550,0.93951,0.94356,0.94726,0.95046,0.95363,0.95664,0.95937,0.96176,0.96411
-0.96636,0.96829,0.97015,0.97185,0.97350,0.97492,0.97638,0.97774,0.97892,0.98009
-0.98117,0.98227,0.98316,0.98410,0.98496,0.98573,0.98648,0.98718,0.98785,0.98835
-0.98890,0.98935,0.98984,0.99022,0.99070,0.99103,0.99135,0.99173,0.99203,0.99239
-0.99273,0.99307,0.99334,0.99363,0.99392,0.99419,0.99445,0.99471,0.99494,0.99521
-0.99547,0.99575,0.99601,0.99622,0.99648,0.99676,0.99698,0.99721,0.99747,0.99766
-0.99786,0.99812,0.99836,0.99858,0.99884,0.99909,0.99932,0.99957,0.99970,0.99984
-0.99995,0.99997,0.99997,0.99997,0.99997,0.99998,0.99999,1.00000,1.00000
-pwc2x2fract=0.00170,0.00463,0.00947,0.01681,0.02696,0.03988,0.05573,0.07310,0.09202
-0.11181,0.13244,0.15300,0.17465,0.19592,0.21768,0.23898,0.26022,0.28119,0.30216
-0.32338,0.34460,0.36564,0.38665,0.40722,0.42847,0.44916,0.46986,0.49049,0.51145
-0.53172,0.55170,0.57151,0.59052,0.60980,0.62823,0.64707,0.66570,0.68388,0.70135
-0.71885,0.73548,0.75232,0.76833,0.78451,0.80004,0.81480,0.82904,0.84284,0.85647
-0.86841,0.87929,0.88996,0.89896,0.90691,0.91380,0.91993,0.92528,0.93005,0.93439
-0.93824,0.94203,0.94541,0.94851,0.95147,0.95439,0.95701,0.95941,0.96197,0.96408
-0.96619,0.96829,0.97024,0.97201,0.97366,0.97537,0.97677,0.97820,0.97941,0.98069
-0.98173,0.98281,0.98385,0.98468,0.98548,0.98625,0.98699,0.98762,0.98819,0.98878
-0.98927,0.98977,0.99022,0.99062,0.99107,0.99145,0.99186,0.99218,0.99254,0.99281
-0.99311,0.99336,0.99365,0.99393,0.99420,0.99448,0.99471,0.99498,0.99517,0.99543
-0.99564,0.99584,0.99610,0.99635,0.99656,0.99679,0.99704,0.99732,0.99755,0.99779
-0.99801,0.99824,0.99846,0.99867,0.99888,0.99909,0.99933,0.99955,0.99976,0.99992
-0.99995,0.99998,0.99998,0.99999,0.99999,0.99999,0.99999,1.00000,1.00000
-pwc2x1fract=0.00184,0.00503,0.01008,0.01807,0.02845,0.04114,0.05585,0.07310,0.09138
-0.11098,0.13140,0.15219,0.17311,0.19406,0.21464,0.23548,0.25666,0.27740,0.29860
-0.31939,0.34055,0.36146,0.38242,0.40345,0.42427,0.44451,0.46480,0.48584,0.50670
-0.52676,0.54726,0.56755,0.58735,0.60709,0.62627,0.64521,0.66372,0.68223,0.70029
-0.71820,0.73547,0.75264,0.76901,0.78511,0.80101,0.81633,0.83086,0.84462,0.85762
-0.86981,0.88128,0.89147,0.90046,0.90807,0.91518,0.92136,0.92660,0.93143,0.93593
-0.94017,0.94390,0.94736,0.95058,0.95351,0.95631,0.95884,0.96135,0.96375,0.96597
-0.96794,0.96999,0.97189,0.97355,0.97517,0.97672,0.97804,0.97947,0.98057,0.98176
-0.98269,0.98357,0.98451,0.98524,0.98595,0.98666,0.98729,0.98795,0.98846,0.98907
-0.98956,0.99005,0.99053,0.99095,0.99133,0.99167,0.99199,0.99236,0.99270,0.99296
-0.99319,0.99348,0.99374,0.99405,0.99429,0.99457,0.99483,0.99503,0.99530,0.99556
-0.99577,0.99600,0.99626,0.99644,0.99666,0.99692,0.99717,0.99739,0.99759,0.99778
-0.99803,0.99828,0.99853,0.99880,0.99897,0.99924,0.99949,0.99966,0.99975,0.99986
-0.99995,0.99997,0.99997,0.99998,0.99998,0.99999,0.99999,0.99999,1.00000
-pwc2u2fract=0.00168,0.00467,0.00944,0.01694,0.02662,0.03880,0.05370,0.07025,0.08822
-0.10728,0.12710,0.14783,0.16849,0.18970,0.21092,0.23261,0.25397,0.27587,0.29758
-0.31901,0.34025,0.36146,0.38317,0.40436,0.42527,0.44598,0.46709,0.48780,0.50889
-0.52946,0.54962,0.57009,0.59034,0.61033,0.62965,0.64944,0.66862,0.68709,0.70499
-0.72295,0.74034,0.75733,0.77377,0.79026,0.80563,0.82104,0.83583,0.84956,0.86274
-0.87481,0.88577,0.89588,0.90421,0.91169,0.91822,0.92403,0.92915,0.93380,0.93801
-0.94188,0.94561,0.94912,0.95232,0.95522,0.95788,0.96051,0.96301,0.96531,0.96754
-0.96956,0.97132,0.97321,0.97478,0.97631,0.97764,0.97889,0.98017,0.98122,0.98228
-0.98333,0.98416,0.98495,0.98581,0.98648,0.98711,0.98777,0.98834,0.98892,0.98938
-0.98975,0.99014,0.99049,0.99081,0.99116,0.99142,0.99174,0.99205,0.99238,0.99269
-0.99299,0.99324,0.99349,0.99381,0.99411,0.99433,0.99459,0.99479,0.99502,0.99522
-0.99544,0.99566,0.99595,0.99618,0.99640,0.99662,0.99688,0.99713,0.99734,0.99756
-0.99782,0.99814,0.99833,0.99851,0.99877,0.99899,0.99923,0.99946,0.99964,0.99981
-0.99993,0.99997,0.99997,0.99998,0.99998,0.99998,0.99998,0.99999,1.00000
-pwc2u1fract=0.00138,0.00386,0.00848,0.01523,0.02445,0.03599,0.04963,0.06559,0.08327
-0.10229,0.12169,0.14196,0.16239,0.18355,0.20505,0.22665,0.24828,0.27077,0.29198
-0.31368,0.33562,0.35694,0.37839,0.39925,0.42009,0.44114,0.46206,0.48350,0.50421
-0.52463,0.54510,0.56520,0.58545,0.60526,0.62487,0.64472,0.66373,0.68222,0.70071
-0.71896,0.73686,0.75407,0.77085,0.78745,0.80368,0.81939,0.83448,0.84887,0.86212
-0.87423,0.88547,0.89526,0.90402,0.91192,0.91873,0.92510,0.93040,0.93531,0.93988
-0.94404,0.94779,0.95112,0.95426,0.95731,0.96017,0.96273,0.96526,0.96752,0.96950
-0.97161,0.97338,0.97522,0.97671,0.97806,0.97941,0.98055,0.98180,0.98277,0.98377
-0.98458,0.98534,0.98614,0.98682,0.98746,0.98802,0.98854,0.98903,0.98950,0.98991
-0.99042,0.99082,0.99117,0.99148,0.99184,0.99215,0.99246,0.99276,0.99308,0.99335
-0.99364,0.99389,0.99410,0.99436,0.99460,0.99484,0.99507,0.99525,0.99548,0.99573
-0.99589,0.99613,0.99639,0.99659,0.99680,0.99699,0.99724,0.99746,0.99771,0.99790
-0.99812,0.99834,0.99858,0.99880,0.99903,0.99926,0.99946,0.99963,0.99979,0.99986
-0.99995,0.99997,0.99997,0.99997,0.99998,0.99998,0.99999,0.99999,1.00000
+pdriftbins = 275
+; number of 1st bin in table in ns
+pdrift1stbin=0
+; bin size in ns
+pdriftbinsz=1
+pwc1u1fract=0.0011495,0.00243,0.00366,0.00539,0.00743,0.00975,0.01249,0.01605,0.02001,0.02453,0.02972,0.03511,0.04078,0.04675,0.05374,0.06102,0.06878,0.07687,0.08515
+0.09393,0.10314,0.11256,0.12215,0.13197,0.14184,0.15209,0.16243,0.17325,0.18372,0.19456,0.20521,0.21576,0.22655,0.23767,0.24822,0.25912,0.27040,0.28116,0.29233
+0.30330,0.31426,0.32525,0.33599,0.34687,0.35785,0.36891,0.38022,0.39096,0.40197,0.41297,0.42372,0.43471,0.44537,0.45641,0.46706,0.47768,0.48834,0.49927,0.51002
+0.52094,0.53162,0.54188,0.55271,0.56320,0.57384,0.58379,0.59435,0.60486,0.61506,0.62553,0.63582,0.64587,0.65548,0.66522,0.67533,0.68518,0.69477,0.70445,0.71410
+0.72364,0.73299,0.74193,0.75080,0.75949,0.76812,0.77676,0.78512,0.79353,0.80197,0.81042,0.81850,0.82631,0.83400,0.84162,0.84917,0.85645,0.86350,0.87029,0.87680
+0.88293,0.88865,0.89424,0.89980,0.90490,0.90965,0.91441,0.91866,0.92255,0.92590,0.92947,0.93273,0.93577,0.93842,0.94105,0.94333,0.94559,0.94773,0.94988,0.95189
+0.95370,0.95533,0.95691,0.95840,0.95993,0.96128,0.96258,0.96374,0.96505,0.96615,0.96734,0.96832,0.96950,0.97040,0.97134,0.97214,0.97306,0.97392,0.97475,0.97562
+0.97630,0.97705,0.97780,0.97853,0.97916,0.97981,0.98040,0.98103,0.98154,0.98210,0.98272,0.98323,0.98374,0.98421,0.98470,0.98519,0.98564,0.98606,0.98646,0.98683
+0.98715,0.98749,0.98781,0.98810,0.98840,0.98869,0.98896,0.98921,0.98946,0.98967,0.98994,0.99014,0.99031,0.99051,0.99068,0.99082,0.99099,0.99116,0.99136,0.99150
+0.99163,0.99184,0.99198,0.99211,0.99222,0.99230,0.99245,0.99262,0.99279,0.99290,0.99303,0.99317,0.99331,0.99340,0.99352,0.99361,0.99373,0.99382,0.99390,0.99398
+0.99409,0.99417,0.99429,0.99439,0.99447,0.99455,0.99468,0.99480,0.99491,0.99497,0.99506,0.99520,0.99530,0.99541,0.99550,0.99562,0.99572,0.99583,0.99594,0.99603
+0.99615,0.99625,0.99638,0.99650,0.99659,0.99669,0.99676,0.99687,0.99697,0.99710,0.99721,0.99737,0.99747,0.99756,0.99766,0.99776,0.99781,0.99791,0.99800,0.99808
+0.99815,0.99824,0.99837,0.99844,0.99854,0.99862,0.99871,0.99883,0.99893,0.99905,0.99911,0.99920,0.99926,0.99934,0.99940,0.99946,0.99951,0.99962,0.99969,0.99975
+0.99979,0.99983,0.99987,0.99989,0.99991,0.99993,0.99996,0.99997,0.99998,0.99998,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000
+pwc1u2fract=0.00135,0.00257,0.00417,0.00588,0.00782,0.01023,0.01301,0.01658,0.02034,0.02486,0.02967,0.03505,0.04080,0.04737,0.05406,0.06141,0.06910,0.07711,0.08556
+0.09444,0.10369,0.11351,0.12309,0.13328,0.14365,0.15429,0.16460,0.17538,0.18622,0.19716,0.20808,0.21936,0.23026,0.24108,0.25223,0.26330,0.27404,0.28498,0.29598
+0.30734,0.31848,0.32955,0.34039,0.35140,0.36226,0.37284,0.38416,0.39539,0.40603,0.41663,0.42723,0.43832,0.44879,0.45920,0.46992,0.48049,0.49108,0.50160,0.51229
+0.52275,0.53305,0.54350,0.55381,0.56385,0.57419,0.58418,0.59443,0.60429,0.61436,0.62408,0.63407,0.64365,0.65340,0.66319,0.67276,0.68242,0.69184,0.70126,0.71042
+0.71938,0.72855,0.73786,0.74686,0.75577,0.76456,0.77351,0.78218,0.79041,0.79855,0.80691,0.81506,0.82298,0.83061,0.83774,0.84543,0.85242,0.85973,0.86620,0.87232
+0.87850,0.88448,0.89045,0.89625,0.90149,0.90641,0.91118,0.91552,0.91946,0.92342,0.92687,0.93024,0.93358,0.93651,0.93931,0.94172,0.94409,0.94637,0.94846,0.95042
+0.95248,0.95418,0.95581,0.95735,0.95909,0.96045,0.96179,0.96295,0.96431,0.96552,0.96667,0.96784,0.96888,0.96991,0.97076,0.97166,0.97253,0.97332,0.97412,0.97489
+0.97567,0.97639,0.97701,0.97767,0.97837,0.97910,0.97975,0.98036,0.98103,0.98160,0.98211,0.98263,0.98315,0.98362,0.98411,0.98449,0.98494,0.98544,0.98585,0.98620
+0.98653,0.98688,0.98716,0.98751,0.98781,0.98812,0.98839,0.98862,0.98885,0.98912,0.98936,0.98959,0.98982,0.99002,0.99022,0.99043,0.99064,0.99080,0.99094,0.99111
+0.99128,0.99144,0.99161,0.99175,0.99190,0.99207,0.99224,0.99241,0.99252,0.99261,0.99273,0.99285,0.99297,0.99308,0.99319,0.99328,0.99344,0.99356,0.99367,0.99374
+0.99382,0.99396,0.99405,0.99415,0.99424,0.99435,0.99447,0.99455,0.99461,0.99472,0.99482,0.99493,0.99505,0.99516,0.99526,0.99533,0.99545,0.99560,0.99573,0.99584
+0.99591,0.99603,0.99616,0.99626,0.99640,0.99650,0.99663,0.99677,0.99691,0.99703,0.99710,0.99721,0.99730,0.99740,0.99752,0.99758,0.99768,0.99777,0.99787,0.99797
+0.99809,0.99817,0.99826,0.99834,0.99839,0.99851,0.99864,0.99873,0.99884,0.99891,0.99903,0.99912,0.99921,0.99929,0.99939,0.99948,0.99953,0.99962,0.99969,0.99977
+0.99982,0.99988,0.99990,0.99993,0.99995,0.99996,0.99996,0.99997,0.99997,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000
+pwc1x1fract=0.00111,0.00229,0.00364,0.00534,0.00739,0.00990,0.01320,0.01695,0.02106,0.02575,0.03089,0.03672,0.04270,0.04964,0.05674,0.06443,0.07242,0.08111,0.09000
+0.09936,0.10918,0.11894,0.12883,0.13917,0.14968,0.16016,0.17122,0.18151,0.19208,0.20313,0.21429,0.22524,0.23627,0.24719,0.25821,0.26924,0.28004,0.29079,0.30171
+0.31238,0.32303,0.33408,0.34483,0.35585,0.36661,0.37748,0.38804,0.39881,0.40944,0.42020,0.43094,0.44189,0.45228,0.46292,0.47366,0.48450,0.49485,0.50548,0.51575
+0.52606,0.53662,0.54701,0.55722,0.56739,0.57748,0.58777,0.59813,0.60804,0.61831,0.62822,0.63784,0.64737,0.65703,0.66647,0.67604,0.68520,0.69452,0.70386,0.71287
+0.72198,0.73125,0.73984,0.74863,0.75716,0.76560,0.77425,0.78259,0.79077,0.79929,0.80753,0.81535,0.82336,0.83134,0.83909,0.84642,0.85357,0.86012,0.86653,0.87314
+0.87913,0.88470,0.89008,0.89517,0.90039,0.90508,0.90948,0.91363,0.91767,0.92112,0.92461,0.92795,0.93083,0.93366,0.93630,0.93873,0.94135,0.94369,0.94563,0.94757
+0.94933,0.95105,0.95271,0.95441,0.95587,0.95726,0.95865,0.95995,0.96120,0.96245,0.96371,0.96492,0.96601,0.96707,0.96816,0.96911,0.97010,0.97097,0.97203,0.97295
+0.97375,0.97463,0.97545,0.97611,0.97690,0.97763,0.97835,0.97905,0.97977,0.98037,0.98099,0.98155,0.98211,0.98267,0.98320,0.98370,0.98412,0.98458,0.98502,0.98540
+0.98578,0.98619,0.98657,0.98692,0.98723,0.98756,0.98785,0.98815,0.98842,0.98873,0.98897,0.98915,0.98942,0.98964,0.98985,0.99008,0.99030,0.99048,0.99065,0.99082
+0.99104,0.99120,0.99136,0.99153,0.99165,0.99180,0.99191,0.99204,0.99221,0.99235,0.99249,0.99265,0.99277,0.99287,0.99299,0.99311,0.99322,0.99332,0.99347,0.99362
+0.99374,0.99385,0.99395,0.99407,0.99419,0.99429,0.99436,0.99448,0.99460,0.99472,0.99484,0.99494,0.99507,0.99518,0.99530,0.99540,0.99554,0.99567,0.99577,0.99585
+0.99596,0.99607,0.99616,0.99623,0.99633,0.99642,0.99651,0.99662,0.99672,0.99679,0.99686,0.99702,0.99712,0.99722,0.99728,0.99742,0.99753,0.99761,0.99774,0.99785
+0.99793,0.99805,0.99815,0.99828,0.99840,0.99850,0.99858,0.99868,0.99878,0.99893,0.99901,0.99909,0.99917,0.99925,0.99931,0.99937,0.99946,0.99957,0.99962,0.99969
+0.99974,0.99979,0.99981,0.99984,0.99987,0.99990,0.99992,0.99994,0.99996,0.99997,0.99997,0.99998,0.99998,0.99999,1.00000,1.00000
+pwc1x2fract=0.00109,0.00232,0.00378,0.00558,0.00777,0.01056,0.01381,0.01788,0.02227,0.02741,0.03302,0.03935,0.04573,0.05274,0.06074,0.06884,0.07767,0.08666,0.09589
+0.10544,0.11522,0.12522,0.13528,0.14545,0.15591,0.16676,0.17736,0.18800,0.19852,0.20900,0.21992,0.23080,0.24178,0.25252,0.26315,0.27373,0.28468,0.29566,0.30644
+0.31731,0.32815,0.33904,0.34992,0.36067,0.37137,0.38205,0.39290,0.40348,0.41405,0.42453,0.43512,0.44584,0.45607,0.46670,0.47717,0.48769,0.49812,0.50821,0.51841
+0.52857,0.53883,0.54912,0.55959,0.56973,0.57991,0.58992,0.59987,0.60954,0.61916,0.62871,0.63842,0.64826,0.65752,0.66693,0.67628,0.68521,0.69432,0.70363,0.71290
+0.72184,0.73072,0.73937,0.74775,0.75667,0.76534,0.77373,0.78221,0.79063,0.79879,0.80672,0.81458,0.82228,0.82966,0.83721,0.84453,0.85112,0.85813,0.86474,0.87104
+0.87696,0.88273,0.88859,0.89376,0.89886,0.90377,0.90809,0.91259,0.91667,0.92022,0.92389,0.92714,0.93024,0.93313,0.93587,0.93848,0.94090,0.94295,0.94504,0.94689
+0.94857,0.95012,0.95159,0.95313,0.95463,0.95607,0.95732,0.95872,0.95994,0.96114,0.96234,0.96347,0.96465,0.96577,0.96696,0.96799,0.96890,0.96985,0.97075,0.97162
+0.97249,0.97334,0.97417,0.97504,0.97579,0.97654,0.97731,0.97798,0.97861,0.97925,0.97994,0.98061,0.98122,0.98175,0.98229,0.98279,0.98328,0.98378,0.98422,0.98463
+0.98514,0.98559,0.98608,0.98650,0.98689,0.98728,0.98755,0.98789,0.98811,0.98842,0.98870,0.98893,0.98917,0.98941,0.98965,0.98985,0.99005,0.99023,0.99048,0.99066
+0.99088,0.99108,0.99127,0.99141,0.99157,0.99173,0.99188,0.99205,0.99220,0.99232,0.99245,0.99260,0.99271,0.99284,0.99297,0.99309,0.99324,0.99335,0.99347,0.99360
+0.99374,0.99386,0.99399,0.99413,0.99424,0.99434,0.99442,0.99451,0.99464,0.99475,0.99489,0.99500,0.99509,0.99524,0.99533,0.99545,0.99562,0.99573,0.99586,0.99594
+0.99603,0.99617,0.99630,0.99640,0.99650,0.99659,0.99674,0.99686,0.99690,0.99702,0.99711,0.99720,0.99729,0.99741,0.99751,0.99758,0.99770,0.99779,0.99788,0.99797
+0.99805,0.99812,0.99821,0.99833,0.99846,0.99854,0.99862,0.99874,0.99882,0.99892,0.99901,0.99911,0.99918,0.99929,0.99935,0.99942,0.99948,0.99955,0.99963,0.99973
+0.99977,0.99984,0.99987,0.99989,0.99992,0.99993,0.99995,0.99996,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc1v1fract=0.00102,0.00222,0.00354,0.00521,0.00721,0.00963,0.01257,0.01620,0.02021,0.02497,0.02989,0.03540,0.04122,0.04771,0.05442,0.06172,0.06926,0.07741,0.08595
+0.09498,0.10438,0.11392,0.12349,0.13377,0.14422,0.15501,0.16564,0.17648,0.18728,0.19804,0.20931,0.22017,0.23112,0.24210,0.25314,0.26456,0.27552,0.28655,0.29772
+0.30856,0.31991,0.33115,0.34208,0.35303,0.36408,0.37494,0.38606,0.39708,0.40797,0.41878,0.42946,0.44033,0.45111,0.46201,0.47288,0.48349,0.49430,0.50466,0.51483
+0.52505,0.53585,0.54633,0.55670,0.56686,0.57694,0.58703,0.59717,0.60736,0.61708,0.62744,0.63721,0.64739,0.65664,0.66657,0.67619,0.68551,0.69488,0.70414,0.71341
+0.72276,0.73184,0.74090,0.74996,0.75860,0.76712,0.77566,0.78394,0.79236,0.80091,0.80904,0.81677,0.82451,0.83207,0.83928,0.84633,0.85345,0.86044,0.86717,0.87345
+0.87937,0.88520,0.89103,0.89640,0.90134,0.90614,0.91049,0.91454,0.91856,0.92234,0.92576,0.92903,0.93221,0.93498,0.93747,0.94003,0.94245,0.94467,0.94686,0.94889
+0.95082,0.95266,0.95429,0.95587,0.95732,0.95875,0.96006,0.96125,0.96259,0.96373,0.96489,0.96616,0.96716,0.96823,0.96928,0.97024,0.97123,0.97214,0.97299,0.97384
+0.97456,0.97536,0.97609,0.97677,0.97752,0.97816,0.97882,0.97943,0.98004,0.98063,0.98126,0.98191,0.98246,0.98300,0.98351,0.98398,0.98446,0.98494,0.98534,0.98574
+0.98608,0.98645,0.98681,0.98720,0.98751,0.98781,0.98813,0.98844,0.98870,0.98894,0.98921,0.98941,0.98963,0.98981,0.99002,0.99021,0.99044,0.99065,0.99077,0.99092
+0.99103,0.99121,0.99140,0.99153,0.99166,0.99180,0.99194,0.99205,0.99219,0.99231,0.99246,0.99258,0.99268,0.99280,0.99291,0.99302,0.99313,0.99331,0.99341,0.99355
+0.99367,0.99377,0.99390,0.99401,0.99409,0.99421,0.99435,0.99448,0.99457,0.99468,0.99478,0.99487,0.99496,0.99512,0.99519,0.99526,0.99537,0.99551,0.99562,0.99573
+0.99585,0.99595,0.99607,0.99618,0.99627,0.99636,0.99646,0.99651,0.99663,0.99676,0.99685,0.99697,0.99704,0.99716,0.99730,0.99739,0.99745,0.99759,0.99772,0.99781
+0.99799,0.99809,0.99819,0.99829,0.99840,0.99849,0.99863,0.99874,0.99883,0.99892,0.99899,0.99911,0.99922,0.99932,0.99941,0.99947,0.99954,0.99960,0.99968,0.99973
+0.99980,0.99982,0.99986,0.99989,0.99990,0.99992,0.99995,0.99996,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc1v2fract=0.00104,0.00216,0.00353,0.00519,0.00721,0.00957,0.01257,0.01632,0.02040,0.02507,0.03017,0.03585,0.04185,0.04844,0.05567,0.06312,0.07116,0.07955,0.08812
+0.09699,0.10653,0.11605,0.12623,0.13608,0.14623,0.15688,0.16758,0.17847,0.18991,0.20037,0.21117,0.22214,0.23287,0.24406,0.25503,0.26607,0.27701,0.28793,0.29904
+0.30952,0.32053,0.33162,0.34266,0.35395,0.36482,0.37570,0.38622,0.39701,0.40767,0.41862,0.42919,0.43999,0.45054,0.46094,0.47174,0.48234,0.49254,0.50277,0.51337
+0.52387,0.53426,0.54453,0.55481,0.56500,0.57522,0.58545,0.59523,0.60521,0.61511,0.62517,0.63476,0.64466,0.65424,0.66369,0.67361,0.68348,0.69298,0.70245,0.71176
+0.72108,0.73023,0.73942,0.74831,0.75729,0.76595,0.77476,0.78349,0.79183,0.80035,0.80852,0.81668,0.82471,0.83234,0.83974,0.84692,0.85381,0.86095,0.86774,0.87435
+0.88053,0.88662,0.89205,0.89745,0.90250,0.90747,0.91195,0.91588,0.91988,0.92385,0.92726,0.93033,0.93349,0.93639,0.93905,0.94136,0.94369,0.94590,0.94786,0.94975
+0.95169,0.95333,0.95488,0.95638,0.95782,0.95912,0.96049,0.96173,0.96296,0.96404,0.96518,0.96638,0.96739,0.96836,0.96927,0.97016,0.97108,0.97201,0.97285,0.97371
+0.97451,0.97526,0.97603,0.97672,0.97741,0.97800,0.97862,0.97935,0.98004,0.98062,0.98117,0.98171,0.98229,0.98275,0.98320,0.98375,0.98420,0.98466,0.98507,0.98543
+0.98585,0.98620,0.98651,0.98682,0.98716,0.98748,0.98777,0.98804,0.98837,0.98862,0.98886,0.98907,0.98927,0.98951,0.98974,0.98991,0.99009,0.99027,0.99045,0.99060
+0.99084,0.99104,0.99123,0.99140,0.99156,0.99170,0.99186,0.99195,0.99211,0.99224,0.99239,0.99251,0.99266,0.99280,0.99290,0.99301,0.99320,0.99332,0.99340,0.99358
+0.99372,0.99384,0.99396,0.99407,0.99416,0.99425,0.99431,0.99440,0.99449,0.99458,0.99472,0.99485,0.99496,0.99506,0.99515,0.99525,0.99535,0.99543,0.99550,0.99563
+0.99577,0.99591,0.99598,0.99607,0.99617,0.99629,0.99637,0.99650,0.99662,0.99673,0.99682,0.99692,0.99703,0.99711,0.99724,0.99733,0.99744,0.99753,0.99769,0.99785
+0.99795,0.99803,0.99812,0.99818,0.99829,0.99839,0.99846,0.99854,0.99866,0.99876,0.99885,0.99897,0.99903,0.99912,0.99922,0.99931,0.99941,0.99949,0.99956,0.99965
+0.99970,0.99974,0.99981,0.99985,0.99989,0.99992,0.99994,0.99995,0.99996,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000
+pwc2v2fract=0.00109,0.00224,0.00372,0.00522,0.00718,0.00949,0.01230,0.01586,0.01952,0.02354,0.02831,0.03381,0.03958,0.04599,0.05261,0.06014,0.06789,0.07617,0.08486
+0.09433,0.10403,0.11409,0.12365,0.13417,0.14476,0.15531,0.16643,0.17723,0.18815,0.19907,0.21005,0.22104,0.23207,0.24285,0.25399,0.26480,0.27597,0.28700,0.29795
+0.30868,0.31962,0.33050,0.34158,0.35235,0.36281,0.37376,0.38454,0.39523,0.40607,0.41654,0.42744,0.43801,0.44883,0.45948,0.47004,0.48066,0.49077,0.50091,0.51140
+0.52166,0.53180,0.54187,0.55183,0.56192,0.57156,0.58116,0.59099,0.60080,0.60994,0.61945,0.62882,0.63811,0.64761,0.65678,0.66565,0.67467,0.68368,0.69236,0.70114
+0.70948,0.71783,0.72629,0.73447,0.74276,0.75079,0.75887,0.76663,0.77472,0.78263,0.79018,0.79753,0.80479,0.81182,0.81880,0.82572,0.83241,0.83903,0.84530,0.85125
+0.85700,0.86252,0.86821,0.87351,0.87864,0.88375,0.88846,0.89294,0.89730,0.90148,0.90509,0.90875,0.91233,0.91566,0.91895,0.92185,0.92473,0.92751,0.93007,0.93238
+0.93473,0.93694,0.93907,0.94122,0.94330,0.94519,0.94698,0.94873,0.95034,0.95188,0.95342,0.95489,0.95623,0.95766,0.95889,0.96015,0.96139,0.96242,0.96348,0.96467
+0.96578,0.96670,0.96762,0.96847,0.96933,0.97018,0.97099,0.97190,0.97279,0.97352,0.97426,0.97499,0.97566,0.97636,0.97692,0.97751,0.97804,0.97865,0.97931,0.97997
+0.98052,0.98106,0.98154,0.98206,0.98256,0.98306,0.98350,0.98392,0.98432,0.98465,0.98501,0.98537,0.98576,0.98615,0.98644,0.98672,0.98703,0.98733,0.98762,0.98792
+0.98818,0.98846,0.98878,0.98906,0.98929,0.98949,0.98964,0.98987,0.99005,0.99027,0.99052,0.99076,0.99101,0.99122,0.99140,0.99159,0.99181,0.99199,0.99218,0.99233
+0.99253,0.99269,0.99284,0.99300,0.99313,0.99325,0.99343,0.99354,0.99368,0.99382,0.99397,0.99412,0.99425,0.99437,0.99449,0.99467,0.99482,0.99497,0.99509,0.99521
+0.99533,0.99547,0.99563,0.99574,0.99585,0.99603,0.99615,0.99627,0.99640,0.99650,0.99661,0.99669,0.99684,0.99695,0.99709,0.99724,0.99738,0.99747,0.99760,0.99774
+0.99782,0.99797,0.99807,0.99821,0.99832,0.99844,0.99857,0.99868,0.99879,0.99890,0.99900,0.99911,0.99923,0.99934,0.99942,0.99950,0.99960,0.99964,0.99971,0.99978
+0.99981,0.99984,0.99987,0.99991,0.99993,0.99994,0.99995,0.99996,0.99997,0.99998,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2v1fract=0.00113,0.00252,0.00395,0.00559,0.00760,0.01001,0.01289,0.01637,0.02044,0.02489,0.02979,0.03519,0.04105,0.04776,0.05450,0.06188,0.06951,0.07765,0.08650
+0.09544,0.10509,0.11483,0.12515,0.13550,0.14591,0.15636,0.16715,0.17819,0.18908,0.19994,0.21079,0.22212,0.23340,0.24479,0.25579,0.26711,0.27849,0.28935,0.29993
+0.31083,0.32220,0.33338,0.34476,0.35563,0.36644,0.37735,0.38778,0.39853,0.40918,0.41978,0.43039,0.44107,0.45183,0.46222,0.47259,0.48281,0.49347,0.50384,0.51407
+0.52424,0.53438,0.54477,0.55496,0.56470,0.57467,0.58483,0.59443,0.60423,0.61415,0.62357,0.63302,0.64205,0.65105,0.66052,0.66949,0.67818,0.68745,0.69638,0.70543
+0.71391,0.72216,0.73035,0.73858,0.74674,0.75503,0.76291,0.77072,0.77861,0.78656,0.79405,0.80147,0.80875,0.81567,0.82266,0.82953,0.83614,0.84257,0.84893,0.85509
+0.86085,0.86664,0.87208,0.87749,0.88255,0.88721,0.89209,0.89679,0.90106,0.90527,0.90911,0.91260,0.91582,0.91894,0.92194,0.92488,0.92762,0.93025,0.93275,0.93506
+0.93741,0.93965,0.94163,0.94373,0.94552,0.94729,0.94907,0.95070,0.95210,0.95368,0.95506,0.95654,0.95791,0.95912,0.96038,0.96156,0.96272,0.96399,0.96515,0.96620
+0.96717,0.96809,0.96903,0.97004,0.97087,0.97175,0.97262,0.97335,0.97406,0.97488,0.97564,0.97637,0.97702,0.97762,0.97822,0.97884,0.97939,0.97998,0.98047,0.98101
+0.98157,0.98204,0.98254,0.98296,0.98344,0.98389,0.98430,0.98474,0.98518,0.98557,0.98597,0.98628,0.98664,0.98692,0.98726,0.98757,0.98790,0.98820,0.98848,0.98872
+0.98899,0.98921,0.98942,0.98966,0.98993,0.99014,0.99036,0.99056,0.99076,0.99093,0.99113,0.99128,0.99144,0.99158,0.99169,0.99185,0.99201,0.99216,0.99240,0.99255
+0.99275,0.99290,0.99301,0.99315,0.99332,0.99345,0.99361,0.99377,0.99390,0.99408,0.99420,0.99436,0.99445,0.99460,0.99473,0.99488,0.99497,0.99510,0.99525,0.99540
+0.99552,0.99567,0.99579,0.99590,0.99603,0.99612,0.99624,0.99635,0.99645,0.99655,0.99666,0.99677,0.99690,0.99701,0.99713,0.99723,0.99735,0.99747,0.99759,0.99769
+0.99786,0.99798,0.99809,0.99819,0.99829,0.99840,0.99857,0.99869,0.99880,0.99894,0.99905,0.99913,0.99921,0.99930,0.99941,0.99950,0.99959,0.99967,0.99974,0.99978
+0.99983,0.99988,0.99990,0.99991,0.99992,0.99994,0.99996,0.99996,0.99998,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000
+pwc2x2fract=0.00118,0.00252,0.00399,0.00571,0.00792,0.01034,0.01349,0.01725,0.02146,0.02619,0.03152,0.03763,0.04425,0.05116,0.05840,0.06629,0.07474,0.08351,0.09265
+0.10239,0.11238,0.12243,0.13260,0.14300,0.15325,0.16376,0.17467,0.18538,0.19630,0.20729,0.21823,0.22922,0.24009,0.25104,0.26203,0.27288,0.28386,0.29464,0.30537
+0.31580,0.32616,0.33708,0.34787,0.35878,0.36935,0.37969,0.39023,0.40086,0.41177,0.42230,0.43277,0.44322,0.45379,0.46439,0.47485,0.48532,0.49549,0.50570,0.51602
+0.52646,0.53620,0.54607,0.55600,0.56572,0.57586,0.58543,0.59516,0.60474,0.61427,0.62378,0.63327,0.64274,0.65175,0.66074,0.66972,0.67843,0.68744,0.69655,0.70513
+0.71389,0.72216,0.73070,0.73914,0.74757,0.75585,0.76388,0.77183,0.77950,0.78737,0.79521,0.80263,0.80981,0.81700,0.82405,0.83111,0.83791,0.84446,0.85110,0.85741
+0.86344,0.86929,0.87531,0.88078,0.88603,0.89090,0.89566,0.89996,0.90437,0.90841,0.91194,0.91550,0.91866,0.92166,0.92455,0.92722,0.92969,0.93200,0.93406,0.93619
+0.93815,0.94005,0.94190,0.94359,0.94547,0.94711,0.94862,0.95000,0.95144,0.95278,0.95417,0.95546,0.95672,0.95786,0.95914,0.96027,0.96133,0.96259,0.96366,0.96470
+0.96571,0.96674,0.96772,0.96868,0.96964,0.97054,0.97145,0.97232,0.97319,0.97399,0.97467,0.97540,0.97616,0.97689,0.97761,0.97822,0.97894,0.97962,0.98013,0.98077
+0.98131,0.98186,0.98239,0.98292,0.98344,0.98390,0.98429,0.98471,0.98512,0.98555,0.98588,0.98624,0.98663,0.98695,0.98723,0.98755,0.98793,0.98818,0.98846,0.98878
+0.98899,0.98925,0.98950,0.98974,0.98996,0.99022,0.99046,0.99063,0.99083,0.99104,0.99122,0.99140,0.99161,0.99176,0.99193,0.99210,0.99226,0.99244,0.99259,0.99275
+0.99290,0.99303,0.99321,0.99333,0.99348,0.99362,0.99375,0.99388,0.99400,0.99410,0.99424,0.99436,0.99450,0.99464,0.99475,0.99484,0.99497,0.99507,0.99524,0.99540
+0.99553,0.99567,0.99578,0.99585,0.99599,0.99612,0.99624,0.99635,0.99644,0.99655,0.99666,0.99678,0.99688,0.99702,0.99715,0.99727,0.99738,0.99749,0.99761,0.99775
+0.99784,0.99794,0.99804,0.99818,0.99831,0.99843,0.99853,0.99864,0.99872,0.99882,0.99892,0.99900,0.99911,0.99918,0.99927,0.99941,0.99949,0.99957,0.99962,0.99971
+0.99976,0.99981,0.99984,0.99991,0.99993,0.99994,0.99997,0.99998,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2x1fract=0.00108,0.00227,0.00356,0.00532,0.00752,0.00994,0.01286,0.01659,0.02081,0.02538,0.03048,0.03620,0.04250,0.04919,0.05642,0.06419,0.07233,0.08098,0.09000
+0.09961,0.10909,0.11877,0.12884,0.13897,0.14942,0.15967,0.17030,0.18060,0.19139,0.20228,0.21314,0.22352,0.23397,0.24493,0.25559,0.26598,0.27663,0.28758,0.29814
+0.30903,0.32010,0.33090,0.34093,0.35145,0.36221,0.37273,0.38306,0.39375,0.40451,0.41477,0.42552,0.43603,0.44645,0.45683,0.46705,0.47717,0.48769,0.49812,0.50857
+0.51849,0.52898,0.53902,0.54910,0.55936,0.56946,0.57907,0.58881,0.59858,0.60840,0.61824,0.62760,0.63700,0.64647,0.65579,0.66515,0.67452,0.68357,0.69294,0.70169
+0.71035,0.71905,0.72786,0.73641,0.74510,0.75359,0.76179,0.76978,0.77764,0.78534,0.79333,0.80100,0.80871,0.81608,0.82351,0.83056,0.83755,0.84441,0.85098,0.85724
+0.86387,0.86980,0.87554,0.88093,0.88617,0.89099,0.89606,0.90053,0.90490,0.90895,0.91259,0.91599,0.91931,0.92230,0.92518,0.92787,0.93045,0.93297,0.93526,0.93747
+0.93946,0.94148,0.94334,0.94512,0.94692,0.94860,0.95033,0.95194,0.95337,0.95465,0.95603,0.95722,0.95848,0.95964,0.96088,0.96210,0.96320,0.96427,0.96530,0.96622
+0.96723,0.96822,0.96920,0.97010,0.97096,0.97186,0.97273,0.97353,0.97437,0.97517,0.97593,0.97660,0.97735,0.97797,0.97863,0.97922,0.97983,0.98049,0.98108,0.98163
+0.98216,0.98265,0.98312,0.98361,0.98401,0.98441,0.98480,0.98520,0.98555,0.98595,0.98634,0.98665,0.98699,0.98733,0.98773,0.98800,0.98828,0.98852,0.98877,0.98904
+0.98929,0.98955,0.98979,0.99004,0.99028,0.99050,0.99073,0.99093,0.99117,0.99139,0.99156,0.99172,0.99188,0.99202,0.99218,0.99235,0.99250,0.99267,0.99283,0.99295
+0.99310,0.99321,0.99336,0.99348,0.99363,0.99378,0.99392,0.99407,0.99424,0.99440,0.99455,0.99467,0.99477,0.99489,0.99502,0.99515,0.99524,0.99537,0.99548,0.99562
+0.99575,0.99585,0.99596,0.99604,0.99618,0.99627,0.99638,0.99649,0.99661,0.99669,0.99682,0.99693,0.99704,0.99715,0.99726,0.99734,0.99746,0.99759,0.99772,0.99781
+0.99790,0.99803,0.99816,0.99834,0.99844,0.99857,0.99866,0.99874,0.99881,0.99895,0.99904,0.99912,0.99921,0.99932,0.99942,0.99948,0.99955,0.99965,0.99971,0.99976
+0.99982,0.99983,0.99986,0.99990,0.99992,0.99995,0.99997,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2u2fract=0.00126,0.00244,0.00386,0.00555,0.00768,0.01014,0.01294,0.01637,0.02041,0.02484,0.02991,0.03537,0.04170,0.04818,0.05489,0.06199,0.06986,0.07778,0.08642
+0.09535,0.10466,0.11410,0.12388,0.13375,0.14404,0.15456,0.16511,0.17545,0.18630,0.19721,0.20818,0.21876,0.22943,0.24038,0.25143,0.26231,0.27312,0.28409,0.29525
+0.30609,0.31695,0.32774,0.33850,0.34958,0.36048,0.37134,0.38209,0.39279,0.40322,0.41353,0.42439,0.43519,0.44569,0.45660,0.46741,0.47772,0.48795,0.49834,0.50876
+0.51911,0.52944,0.53974,0.55018,0.56005,0.57007,0.58027,0.59034,0.60014,0.61001,0.61974,0.62973,0.63901,0.64864,0.65804,0.66767,0.67673,0.68597,0.69511,0.70409
+0.71308,0.72202,0.73055,0.73929,0.74772,0.75612,0.76435,0.77265,0.78063,0.78862,0.79643,0.80391,0.81148,0.81888,0.82598,0.83314,0.84017,0.84687,0.85349,0.85997
+0.86636,0.87211,0.87771,0.88312,0.88811,0.89286,0.89751,0.90212,0.90634,0.91014,0.91396,0.91744,0.92077,0.92376,0.92670,0.92936,0.93192,0.93421,0.93660,0.93867
+0.94075,0.94263,0.94439,0.94632,0.94815,0.94987,0.95151,0.95304,0.95437,0.95568,0.95721,0.95860,0.95979,0.96104,0.96220,0.96337,0.96448,0.96559,0.96662,0.96761
+0.96863,0.96959,0.97058,0.97154,0.97239,0.97318,0.97401,0.97488,0.97557,0.97628,0.97701,0.97766,0.97825,0.97887,0.97955,0.98013,0.98072,0.98117,0.98168,0.98222
+0.98267,0.98314,0.98361,0.98406,0.98452,0.98496,0.98532,0.98575,0.98607,0.98636,0.98677,0.98707,0.98741,0.98774,0.98803,0.98835,0.98859,0.98883,0.98907,0.98934
+0.98959,0.98975,0.98995,0.99014,0.99032,0.99052,0.99068,0.99082,0.99099,0.99116,0.99132,0.99146,0.99162,0.99176,0.99188,0.99202,0.99216,0.99231,0.99246,0.99262
+0.99274,0.99286,0.99299,0.99313,0.99329,0.99341,0.99356,0.99372,0.99384,0.99393,0.99409,0.99427,0.99436,0.99450,0.99462,0.99475,0.99487,0.99500,0.99512,0.99524
+0.99534,0.99551,0.99561,0.99570,0.99579,0.99588,0.99601,0.99616,0.99628,0.99638,0.99650,0.99664,0.99676,0.99689,0.99700,0.99712,0.99725,0.99735,0.99746,0.99762
+0.99772,0.99784,0.99796,0.99808,0.99819,0.99831,0.99840,0.99851,0.99861,0.99872,0.99881,0.99895,0.99906,0.99916,0.99924,0.99935,0.99944,0.99952,0.99957,0.99966
+0.99973,0.99979,0.99983,0.99986,0.99991,0.99993,0.99995,0.99996,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2u1fract=0.00106,0.00239,0.00373,0.00544,0.00738,0.00954,0.01230,0.01551,0.01934,0.02347,0.02813,0.03335,0.03906,0.04498,0.05132,0.05827,0.06588,0.07394,0.08235
+0.09080,0.09976,0.10927,0.11884,0.12834,0.13806,0.14824,0.15850,0.16913,0.17993,0.19062,0.20142,0.21197,0.22275,0.23360,0.24452,0.25539,0.26671,0.27745,0.28853
+0.29972,0.31068,0.32179,0.33235,0.34329,0.35412,0.36485,0.37574,0.38665,0.39749,0.40797,0.41844,0.42916,0.43944,0.45021,0.46090,0.47144,0.48163,0.49214,0.50248
+0.51306,0.52322,0.53324,0.54338,0.55333,0.56337,0.57327,0.58325,0.59348,0.60350,0.61342,0.62334,0.63284,0.64245,0.65206,0.66150,0.67109,0.68040,0.68956,0.69858
+0.70776,0.71664,0.72529,0.73418,0.74304,0.75147,0.76006,0.76847,0.77655,0.78480,0.79284,0.80082,0.80862,0.81628,0.82369,0.83068,0.83797,0.84498,0.85180,0.85825
+0.86462,0.87059,0.87620,0.88177,0.88706,0.89200,0.89693,0.90127,0.90561,0.90954,0.91330,0.91701,0.92044,0.92360,0.92667,0.92951,0.93214,0.93472,0.93697,0.93927
+0.94151,0.94354,0.94541,0.94724,0.94920,0.95094,0.95260,0.95408,0.95569,0.95723,0.95866,0.96000,0.96138,0.96265,0.96398,0.96527,0.96633,0.96734,0.96854,0.96943
+0.97043,0.97138,0.97222,0.97312,0.97389,0.97479,0.97550,0.97625,0.97704,0.97777,0.97840,0.97911,0.97976,0.98038,0.98099,0.98157,0.98207,0.98257,0.98306,0.98352
+0.98404,0.98445,0.98488,0.98525,0.98568,0.98600,0.98636,0.98667,0.98696,0.98724,0.98761,0.98786,0.98811,0.98835,0.98863,0.98888,0.98916,0.98943,0.98967,0.98985
+0.99011,0.99032,0.99054,0.99072,0.99094,0.99112,0.99129,0.99150,0.99166,0.99180,0.99196,0.99213,0.99227,0.99243,0.99258,0.99272,0.99288,0.99300,0.99313,0.99330
+0.99342,0.99358,0.99371,0.99382,0.99397,0.99409,0.99420,0.99431,0.99446,0.99459,0.99472,0.99483,0.99490,0.99499,0.99508,0.99525,0.99535,0.99543,0.99555,0.99564
+0.99575,0.99586,0.99597,0.99610,0.99618,0.99626,0.99636,0.99649,0.99661,0.99670,0.99685,0.99699,0.99706,0.99718,0.99729,0.99742,0.99749,0.99758,0.99768,0.99779
+0.99788,0.99797,0.99808,0.99819,0.99831,0.99845,0.99857,0.99867,0.99880,0.99894,0.99905,0.99914,0.99922,0.99931,0.99939,0.99947,0.99956,0.99963,0.99971,0.99976
+0.99981,0.99984,0.99989,0.99992,0.99993,0.99995,0.99996,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
diff --git a/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_tzero_per_wire_488.param b/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_tzero_per_wire_488.param
new file mode 100644
index 0000000000000000000000000000000000000000..9424471eefebed7586fdbd0cd393e0fc95ee3697
--- /dev/null
+++ b/PARAM/SHMS/DC/CALIB/KPP_Spring_2017/pdc_tzero_per_wire_488.param
@@ -0,0 +1,88 @@
+ptzero1u1=
+0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+0.000000, 0.000000, 1.795920, 5.815350, -3.864150, -5.927540, 10.719800, -4.813430, 0.404404, 0.755655, 0.000000, 1.565370, 4.950330, -0.345324, -5.542140, 2.861590
+1.534980, -15.681300, 1.979280, 4.854760, 6.446210, 1.620820, 0.177650, 0.680271, 1.611940, 5.395360, 2.935390, 1.323300, 5.197490, 4.067040, 0.772863, 1.704960
+2.751230, 6.300950, 0.858680, 4.487330, 3.288680, 2.332650, 4.070710, 1.355750, 3.087380, 2.726840, 3.151510, 2.523060, 1.251760, 4.044590, 1.242660, 1.512210
+3.171260, 3.743360, 4.626910, 5.624360, 6.038540, 7.064390, 3.798730, 4.800300, 5.590810, 8.440760, 7.197160, 3.502090, 5.330660, 9.031360, 6.141750, 5.212600
+10.965900, 2.301490, 8.010930, 7.743700, 3.590260, 6.029060, 0.816870, -5.213110, 9.752780, 8.307690, 9.460380, 8.567180, 0.000000, 5.231090, 11.354300, 7.508670
+6.368630, 9.673470, 8.767530, 13.277100, -16.695200, 7.085900, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero1u2=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+0.000000, 10.916700, -4.672130, 6.038300, 4.164760, 8.883000, 6.370700, 9.557240, -0.648253, 4.362870, -10.987600, 3.678900, 7.059010, -1.258060, 5.024760, 5.735800
+4.186680, -0.536697, 0.236342, 2.694360, 4.960730, -3.547860, 2.949800, 2.134110, 4.653480, 5.121060, 5.471440, 2.201530, 3.393430, 7.740120, 4.183370, 4.699110
+6.130200, 2.142410, 2.887710, 4.458210, 1.461180, 0.891988, 3.531650, 3.226970, 3.356920, 1.415850, 3.002660, 1.083940, -2.429840, 2.518900, 4.608790, 2.840310
+5.780790, 1.942860, 4.077160, 4.112970, 2.227040, 2.115580, 3.183260, 4.864210, 3.400000, 0.632734, 1.835060, 4.341910, 5.565070, 4.406240, 7.122810, 8.552850
+5.535050, -0.324697, 3.381260, 7.990940, 3.640930, 23.795600, 6.688140, 8.332550, 7.315810, 10.925900, 0.000000, 1.500810, -0.318182, 4.046240, 9.760080, 12.506000
+11.769200, 6.388520, 4.244090, 1.200000, 2.818180, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero1x1=
+-1.862060,-5.060360,0.890689,-2.123470,0.266049,-4.394440,-3.181590,-3.011560,-7.340200,-1.131910,-5.684140,-3.339910, -3.603510, -0.171227, 2.670460, -3.477110
+0.696540, 1.928030, -0.766734, 0.935069, -4.320620, -2.370120, -4.209710, 1.379730, -0.911690, -2.316800, -5.893290, -3.126300, -7.080260, 1.282180, 3.116260, 4.467810
+2.244710, 5.122060, 6.816590, 3.063140, 1.574480, 0.466924, 2.411390, 0.143337, 0.770216, -1.611270, -2.379990, -0.308662, 1.031620, 0.181693, 3.392230, 1.548930
+3.553960, 7.047760, 4.506460, 8.317220, 2.723510, 4.768800, 5.221840, 3.216500, 0.182255, 2.475740, -1.318110, -1.395740, 3.349560, 6.663600, 7.749050, 4.382410
+9.047220, 10.447800, 11.142700, 10.615600, 10.124500, 12.012400, 10.867500, 14.273300, 12.222600, 12.880300, 10.129000, 8.611050, 8.293280, 7.103690, -2.305470
+ptzero1x2=
+-0.388060,10.210500,5.598810,6.123810,7.651880,2.782440,-8.042550,2.420080,0.388554,7.726910,3.171390,7.548380, 6.562330, 4.760400, 4.175150, 5.784480
+4.376930, 3.342330, 4.798840, -1.665290, 1.520700, 0.544997, 3.660080, 1.212270, 2.039610, -0.397125, 2.737430, 4.216970, 3.810030, 6.409610, 4.638020, -1.012270
+0.753259, 2.973150, 1.977040, 0.638232, -1.982390, -2.790790, -3.577970, -1.763710, -4.006910, -2.834720, -0.205417, -1.636630, 0.708044, 0.485227, -4.125460, -0.077492
+3.829980, -0.006536, 5.149800, 0.875090, 3.189890, 2.302570, 0.715657, 0.682134, -3.278750, -2.829270, -2.334770, -4.668020, 0.100722, 0.163470, -0.583767, 5.641670
+3.717870, 6.252000, 5.077890, 4.494680, 8.895850, 8.389630, 5.788920, 4.952720, 6.317280, 4.454020, 2.793250, 1.912540, 0.923993, 0.485133, 0.006984
+ptzero1v1=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,16.000000,0.000000,0.000000, -3.248620, 10.544300, 5.723470, -0.167832
+5.791570, 0.000000, 0.000000, -16.601400, 7.211620, 6.408960, 3.399260, 1.468270, 5.394960, 0.526718, 5.528730, -1.830630, 4.259580, -1.791670, 7.464050, 2.892630
+1.419100, 3.926050, 4.166810, 5.864460, 0.595406, 1.371100, 5.573380, 3.296000, 7.125270, 6.036240, 5.291410, 6.153040, 5.315270, 8.171190, 7.264820, 8.961300
+9.878830, 8.970030, 9.517580, 7.025000, 8.266900, 9.315160, 7.651030, 8.559870, 11.303900, 7.863830, 11.701000, 9.156380, 9.357870, 7.235850, 10.026400, -2.578380
+-0.357369, -2.929150, -1.901050, -2.151240, -2.265530, -7.198300, -2.665640, -0.212098, -3.156100, 0.106613, 1.210510, 1.478900, -5.898540, 4.406570, -4.721420, 4.283780
+-0.070747, 0.353721, 3.512260, 4.885820, 4.807120, 5.441330, 3.471640, 3.662200, 4.331610, -7.154520, 2.599710, 1.593700, 3.987850, 5.787910, 19.733300, 14.638900
+0.000000, 3.464290, -19.447200, 5.882980, -17.459500, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero1v2=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,24.857100,0.000000,0.000000, 25.060400, 4.133520, 8.519300, 5.222520
+6.879550, 8.261270, 7.433530, 3.431880, 7.536800, -7.283120, 1.879330, 2.621920, 2.068820, 8.948500, 4.047470, 5.543960, 6.173630, 8.318030, 7.155910, 3.704420
+9.330260, 7.558700, 7.531610, 0.084241, 5.609340, 5.630570, 7.967230, 5.188840, 10.209800, 9.106830, 6.858900, 8.087110, 1.440150, 1.414830, 2.399680, -0.808321
+1.099900, 1.120240, 0.300221, -2.169230, 0.451327, -2.473590, -2.036820, 0.887898, 0.369413, -1.016780, -0.898206, -1.164890, -0.681405, -0.286733, -0.384938, -3.059400
+-5.289670, 0.488029, -0.363647, -0.928181, -1.304460, -2.630200, 0.118533, 0.318898, -2.213060, 0.853546, -2.025040, 2.121240, 1.674960, 1.830370, 2.004430, 4.969520
+2.716170, 4.110770, 7.479290, 5.380610, 5.901590, 3.801040, 2.820150, 5.148150, 7.095710, 7.548680, 4.854270, -21.165700, 0.000000, 7.825210, 6.105180, 11.006400
+0.380623, 13.549600, -6.625900, 7.572230, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero2v2=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, -11.555600, 4.608350, 0.000000
+-10.000000, 4.082760, 0.000000, 0.000000, -2.180610, -4.226240, 4.414830, -1.745280, 8.621950, 5.624680, -2.607140, -0.681955, 6.067340, 13.311900, 9.795680, 11.718100
+8.676360, 5.623300, 9.703400, 9.516520, 11.716700, 10.488800, 8.604710, 10.642600, 5.977520, 11.677700, 8.582270, 7.817510, 12.096200, 5.755470, 10.820500, 11.099900
+9.506290, 9.779980, 7.397800, 8.484320, 7.980850, 8.076540, 7.184750, 6.930630, 8.418590, 7.962490, 7.990790, 6.963160, -0.431749, 3.757360, 4.615140, 2.893580
+3.444480, -3.420450, -3.933450, -2.651720, -0.127254, -1.043080, -1.475670, -0.080271, 0.068876, 2.165830, 4.720000, 0.991301, 1.594030, 5.763560, 8.133160, 10.019800
+6.025830, -1.821310, 7.595050, 3.912210, 3.349220, 4.221970, 5.452880, 3.657390, 3.391830, 1.571480, 2.540660, 3.808400, 7.113780, 2.210830, 0.901170, 5.282630
+5.211540, 3.723870, 1.217340, 6.076170, 3.841830, 7.036590, 12.992400, 0.000000, 3.265860, 9.692310, 0.000000
+ptzero2v1=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 5.092310, 5.335310, 0.000000
+-7.125980, -10.940700, 3.124150, -5.600000, -5.434780, 2.326510, -18.818200, -1.521200, -2.955410, 2.316300, -0.641013, -7.180860, -2.633960, 4.182940, 3.540350, 6.843010
+7.705500, 2.497010, 4.755030, 8.680260, 9.939430, 8.246580, 6.258310, 6.410950, 8.326710, 12.216700, 8.361320, 7.109610, 4.429420, 9.940720, 10.031400, 9.626190
+16.148300, 8.402900, 8.574210, 9.887430, 8.434920, 8.565290, 8.827220, 7.485750, 8.360080, 10.124800, 8.100660, 9.172740, 9.754290, 7.803890, 7.765130, 2.989080
+4.471970, 4.843990, 2.961210, 2.757320, 0.446784, 2.244700, 2.224380, 5.063170, -2.196180, 0.000000, 5.043370, 2.638480, 5.035890, -0.083561, 6.014590, -0.178800
+-2.936590, 0.924423, 5.063060, 1.800420, 0.567349, -1.334190, 0.000000, 2.203800, -0.084168, 3.704220, 10.890600, 3.668250, 2.581830, 2.658140, 0.882729, -0.658854
+4.596010, 2.404060, 1.996760, 11.972500, 5.221670, 5.335070, 9.104860, 7.442970, -14.638800, -2.467740, 0.000000
+ptzero2x2=
+-3.061820,1.242440,-0.920429,0.949141,-3.371390,1.538490,1.537160,2.680810,-0.375996,3.624970,4.023850,3.101700, 3.621450, 6.546410, -3.104770, -2.297460
+-4.208040, -0.680161, -0.759493, -3.256850, -3.475440, -1.010530, -1.495540, -5.828560, 0.005329, -1.934660, -0.802933, 2.697560, 2.595770, 2.262840, 3.847550, 6.508350
+7.420170, 7.293470, 4.544480, 6.006310, 1.299380, -1.178930, 0.399639, -2.844170, -0.636414, 2.689540, 0.000000, -0.005122, 3.258850, 3.209370, 2.692630, 6.696770
+8.405310, 4.999500, 6.351480, 5.621890, 4.321230, 7.012510, 5.699240, 2.569630, 6.354140, 4.117900, -2.852930, 0.848214, 3.756270, 5.198940, 1.263700, 7.994620
+7.224540, 6.740530, 8.552430, 7.867670, 8.216770, 9.636760, 8.177560, 5.522230, 9.502410, 13.189900, 12.033100, 12.005700, 12.146600, 7.825520, 12.772000
+ptzero2x1=
+-0.994652,0.323887,2.662040,-2.946220,0.944695,4.667010,2.647140,2.461640,4.957990,3.113680,4.142770,1.308310, 5.622420, 5.469640, 7.911730, 4.733910
+2.399680, 2.495830, 1.696250, -0.137557, -0.839917, 0.820595, -0.677687, 1.409470, 6.096500, 1.789550, 3.080510, 1.909060, 5.210970, 8.603190, 7.767040, 4.964880
+1.534830, 2.095010, 0.831891, 2.758970, 0.161976, -2.097360, -3.893230, -2.599900, 0.471164, -3.455090, -2.770680, -0.905358, -2.358650, -1.462630, -0.698122, -0.124938
+-0.176906, -0.640411, 0.314966, 3.389660, 0.198043, 1.051300, 0.663665, 0.172697, -5.500470, 1.035880, -1.542160, -6.413390, -2.720510, -1.530320, -3.358420, -1.622080
+5.754260, 7.172000, 7.128620, 7.212770, 9.011560, 12.249800, 7.627180, 8.218560, 10.479100, 14.471400, 13.159500, 14.039200, 12.556300, 14.254100, 10.879100
+ptzero2u2=
+0.000000,0.000000,0.000000,2.927810,1.513160,0.000000,0.082767,11.832700,0.289694,3.096540,10.310600,4.395130, -1.204390, 6.047720, 3.493290, 6.893580
+2.216220, 7.989400, 6.820680, 6.566040, 4.801940, 4.916770, -1.832630, 3.958420, 3.803680, 6.329900, 7.061990, 4.710200, 4.066710, 4.554470, 3.114060, 11.153400
+4.604940, 2.830040, 4.262040, 1.597520, 5.888230, 2.311250, 2.476890, 5.373290, 4.946830, 5.122540, 4.026250, 8.359670, -0.690787, 2.955530, 1.806160, -0.799365
+2.603230, -0.796656, 0.954418, -0.788097, -5.090030, -1.691130, 0.121203, -0.729663, -0.713128, -1.170500, 0.482169, -1.926040, 2.590880, 2.291740, 2.106530, 0.515922
+1.563030, -0.969506, 1.715190, 0.730038, 2.797450, 0.343180, 2.983660, 1.569480, 3.351930, 4.273950, 2.693030, 0.502254, 5.028720, 2.408280, 4.831420, 2.509090
+4.811720, 4.595160, 4.270700, 2.027170, 1.296140, 4.402360, 3.805610, 5.697640, 4.209350, 4.205540, 6.840550, 8.688300, 10.346200, 16.544000, 16.701800, 15.950600
+19.425700, -2.883330, 5.303570, 23.328300, -11.923100, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero2u1=
+0.000000,0.000000,0.000000,0.000000,1.981130,6.887300,9.154860,-16.603200,-16.215000,-1.705760,8.661480,8.515390, 11.496200, 11.843500, 0.198014, -4.724240
+2.248020, -1.088080, 1.330110, -1.029570, 2.240130, 5.972840, -0.982127, 0.718305, -0.225920, -2.431140, -1.316000, 0.185943, 0.340701, 4.595960, 1.248220, 3.011960
+5.469650, 4.392520, -2.113370, 5.228590, 6.901420, 1.807750, 2.789800, 2.019910, 4.260250, 4.067850, 5.996700, 4.556910, 9.895290, 7.413430, 10.164000, 7.858780
+6.970080, 7.429900, 7.051170, 7.430280, 8.005980, 7.404120, 4.407060, 7.474910, 8.819040, 6.623950, 10.455900, 10.604900, 11.910200, 10.554000, 8.699290, -1.134720
+1.416000, 0.929777, 1.344440, -1.600020, -0.365316, 4.031480, 2.137260, 2.109900, 3.030740, 4.618980, 3.938440, 5.779070, 6.430440, 7.514210, 5.483380, 1.555490
+5.777830, 0.909257, 0.741250, 4.815550, 4.298590, 3.555880, 4.731660, 6.200930, -0.525888, 0.160183, -28.817600, 6.296690, 6.827100, 8.975990, 10.564200, 8.914800
+19.375800, 17.450700, -14.710500, 23.005800, 12.757800, 23.291100, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
diff --git a/PARAM/SHMS/DC/CALIB/pdc_calib.param b/PARAM/SHMS/DC/CALIB/pdc_calib.param
index d412a66ed792de55b8df388c00c582e92eb90a72..037c13754e8ab6543acecadc5fb87cd8a7ad8c3b 100644
--- a/PARAM/SHMS/DC/CALIB/pdc_calib.param
+++ b/PARAM/SHMS/DC/CALIB/pdc_calib.param
@@ -1,190 +1,175 @@
-; Lookup Table: RUN 484
+; Lookup Table: RUN 488
 ; number of bins in time to distance lookup table
 pdriftbins = 275
-
-; Number of 1st bin in table in ns
-pdrift1stbin = 0
-
-; Bin size in ns
-pdriftbinsz = 1
-
-pwc1u1fract=0.00084747,0.00192,0.00330,0.00472,0.00646,0.00857,0.01100,0.01391,0.01743,0.02149,0.02598,0.03095,0.03631,0.04230,0.04876,0.05601,0.06347,0.07117,0.07944
-0.08802,0.09670,0.10590,0.11521,0.12466,0.13447,0.14471,0.15507,0.16538,0.17608,0.18670,0.19741,0.20827,0.21902,0.23021,0.24107,0.25188,0.26284,0.27418,0.28522
-0.29645,0.30774,0.31918,0.33046,0.34158,0.35255,0.36392,0.37461,0.38553,0.39623,0.40721,0.41772,0.42872,0.43969,0.45081,0.46192,0.47271,0.48349,0.49410,0.50509
-0.51559,0.52636,0.53686,0.54735,0.55756,0.56768,0.57806,0.58856,0.59906,0.60960,0.61951,0.62952,0.63947,0.64913,0.65896,0.66898,0.67873,0.68858,0.69813,0.70791
-0.71750,0.72665,0.73545,0.74460,0.75371,0.76250,0.77145,0.77972,0.78860,0.79693,0.80521,0.81327,0.82122,0.82895,0.83691,0.84442,0.85167,0.85878,0.86544,0.87197
-0.87804,0.88408,0.88968,0.89514,0.90064,0.90572,0.91048,0.91481,0.91898,0.92282,0.92625,0.92968,0.93275,0.93565,0.93838,0.94081,0.94327,0.94545,0.94740,0.94930
-0.95108,0.95282,0.95449,0.95611,0.95758,0.95892,0.96048,0.96186,0.96303,0.96429,0.96539,0.96653,0.96758,0.96859,0.96973,0.97071,0.97164,0.97250,0.97334,0.97422
-0.97496,0.97570,0.97637,0.97704,0.97771,0.97849,0.97912,0.97981,0.98034,0.98089,0.98140,0.98188,0.98235,0.98287,0.98335,0.98375,0.98422,0.98461,0.98504,0.98539
-0.98581,0.98617,0.98649,0.98680,0.98717,0.98745,0.98771,0.98797,0.98822,0.98850,0.98872,0.98895,0.98916,0.98932,0.98954,0.98976,0.98997,0.99019,0.99038,0.99053
-0.99073,0.99089,0.99106,0.99121,0.99137,0.99152,0.99166,0.99176,0.99194,0.99206,0.99216,0.99228,0.99241,0.99252,0.99265,0.99272,0.99284,0.99296,0.99304,0.99315
-0.99330,0.99342,0.99351,0.99362,0.99373,0.99382,0.99398,0.99408,0.99418,0.99425,0.99439,0.99453,0.99462,0.99477,0.99490,0.99501,0.99509,0.99520,0.99533,0.99542
-0.99554,0.99566,0.99577,0.99589,0.99600,0.99610,0.99620,0.99632,0.99648,0.99661,0.99676,0.99690,0.99698,0.99710,0.99721,0.99731,0.99745,0.99758,0.99770,0.99780
-0.99793,0.99802,0.99810,0.99820,0.99827,0.99840,0.99848,0.99858,0.99867,0.99877,0.99883,0.99894,0.99903,0.99912,0.99921,0.99930,0.99939,0.99947,0.99954,0.99960
-0.99970,0.99979,0.99983,0.99987,0.99989,0.99992,0.99995,0.99996,0.99997,0.99998,0.99998,0.99998,0.99998,0.99999,0.99999
-1.00000
-pwc1u2fract=0.00097,0.00200,0.00323,0.00482,0.00661,0.00888,0.01126,0.01418,0.01783,0.02174,0.02643,0.03169,0.03735,0.04334,0.04963,0.05690,0.06423,0.07250,0.08107
-0.08998,0.09916,0.10861,0.11835,0.12831,0.13820,0.14877,0.15888,0.16923,0.18018,0.19103,0.20195,0.21304,0.22404,0.23516,0.24628,0.25737,0.26863,0.27962,0.29057
-0.30150,0.31226,0.32360,0.33472,0.34561,0.35641,0.36709,0.37821,0.38930,0.39999,0.41086,0.42116,0.43196,0.44263,0.45332,0.46433,0.47469,0.48524,0.49573,0.50621
-0.51697,0.52737,0.53771,0.54786,0.55813,0.56828,0.57842,0.58866,0.59873,0.60877,0.61880,0.62908,0.63895,0.64866,0.65846,0.66811,0.67776,0.68756,0.69687,0.70611
-0.71501,0.72406,0.73294,0.74197,0.75126,0.76021,0.76891,0.77764,0.78641,0.79493,0.80305,0.81100,0.81907,0.82653,0.83419,0.84160,0.84896,0.85600,0.86273,0.86953
-0.87564,0.88198,0.88790,0.89358,0.89882,0.90400,0.90850,0.91294,0.91731,0.92099,0.92477,0.92839,0.93164,0.93446,0.93718,0.93985,0.94225,0.94460,0.94671,0.94852
-0.95039,0.95224,0.95376,0.95540,0.95684,0.95842,0.95975,0.96115,0.96240,0.96366,0.96480,0.96590,0.96705,0.96812,0.96904,0.97000,0.97099,0.97188,0.97268,0.97349
-0.97415,0.97482,0.97560,0.97625,0.97696,0.97768,0.97826,0.97890,0.97950,0.98008,0.98069,0.98129,0.98187,0.98233,0.98281,0.98320,0.98369,0.98411,0.98449,0.98487
-0.98521,0.98559,0.98598,0.98633,0.98667,0.98702,0.98732,0.98763,0.98790,0.98815,0.98842,0.98867,0.98887,0.98907,0.98924,0.98950,0.98973,0.98990,0.99008,0.99025
-0.99046,0.99059,0.99079,0.99094,0.99109,0.99121,0.99138,0.99151,0.99161,0.99175,0.99185,0.99202,0.99215,0.99230,0.99249,0.99262,0.99273,0.99288,0.99298,0.99309
-0.99321,0.99333,0.99347,0.99365,0.99378,0.99392,0.99403,0.99410,0.99418,0.99430,0.99444,0.99456,0.99465,0.99478,0.99489,0.99500,0.99512,0.99524,0.99534,0.99544
-0.99554,0.99566,0.99577,0.99588,0.99597,0.99610,0.99625,0.99635,0.99647,0.99663,0.99680,0.99694,0.99706,0.99719,0.99728,0.99740,0.99750,0.99762,0.99775,0.99783
-0.99794,0.99805,0.99819,0.99829,0.99838,0.99850,0.99863,0.99875,0.99885,0.99896,0.99908,0.99917,0.99927,0.99936,0.99946,0.99953,0.99959,0.99967,0.99973,0.99977
-0.99981,0.99986,0.99992,0.99993,0.99995,0.99997,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc1x1fract=0.00106,0.00216,0.00363,0.00544,0.00756,0.01018,0.01323,0.01671,0.02078,0.02519,0.02997,0.03535,0.04143,0.04824,0.05533,0.06275,0.07073,0.07906,0.08762
-0.09657,0.10571,0.11537,0.12499,0.13475,0.14484,0.15530,0.16581,0.17670,0.18739,0.19827,0.20936,0.22033,0.23118,0.24178,0.25252,0.26307,0.27455,0.28525,0.29622
-0.30723,0.31811,0.32911,0.33992,0.35112,0.36199,0.37285,0.38362,0.39427,0.40516,0.41577,0.42655,0.43717,0.44762,0.45836,0.46901,0.47961,0.49030,0.50048,0.51101
-0.52132,0.53147,0.54142,0.55139,0.56153,0.57167,0.58169,0.59206,0.60201,0.61200,0.62175,0.63159,0.64143,0.65162,0.66107,0.67076,0.68011,0.68962,0.69885,0.70818
-0.71699,0.72587,0.73476,0.74383,0.75255,0.76127,0.76959,0.77792,0.78640,0.79448,0.80273,0.81048,0.81862,0.82621,0.83359,0.84073,0.84789,0.85503,0.86194,0.86826
-0.87458,0.88085,0.88659,0.89218,0.89727,0.90180,0.90661,0.91100,0.91486,0.91877,0.92234,0.92578,0.92887,0.93176,0.93455,0.93727,0.93981,0.94212,0.94427,0.94629
-0.94815,0.94992,0.95174,0.95338,0.95501,0.95650,0.95806,0.95938,0.96057,0.96172,0.96299,0.96417,0.96534,0.96646,0.96743,0.96858,0.96975,0.97075,0.97177,0.97265
-0.97347,0.97431,0.97519,0.97602,0.97670,0.97746,0.97808,0.97884,0.97951,0.98012,0.98074,0.98130,0.98178,0.98228,0.98278,0.98325,0.98379,0.98419,0.98468,0.98514
-0.98557,0.98594,0.98625,0.98661,0.98690,0.98722,0.98754,0.98780,0.98807,0.98835,0.98862,0.98887,0.98909,0.98931,0.98952,0.98976,0.98992,0.99012,0.99031,0.99050
-0.99071,0.99091,0.99105,0.99119,0.99131,0.99139,0.99153,0.99168,0.99184,0.99197,0.99214,0.99227,0.99234,0.99249,0.99264,0.99282,0.99291,0.99305,0.99316,0.99327
-0.99337,0.99348,0.99361,0.99373,0.99389,0.99405,0.99419,0.99430,0.99446,0.99453,0.99466,0.99479,0.99493,0.99502,0.99513,0.99521,0.99529,0.99542,0.99550,0.99562
-0.99574,0.99579,0.99591,0.99599,0.99610,0.99622,0.99636,0.99651,0.99664,0.99676,0.99688,0.99699,0.99709,0.99718,0.99728,0.99739,0.99752,0.99763,0.99771,0.99788
-0.99796,0.99805,0.99816,0.99827,0.99839,0.99850,0.99860,0.99870,0.99880,0.99891,0.99902,0.99910,0.99922,0.99934,0.99943,0.99948,0.99955,0.99961,0.99970,0.99977
-0.99984,0.99988,0.99993,0.99996,0.99996,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc1x2fract=0.00108,0.00246,0.00406,0.00602,0.00809,0.01090,0.01415,0.01801,0.02225,0.02741,0.03285,0.03880,0.04501,0.05201,0.05963,0.06791,0.07670,0.08546,0.09474
-0.10415,0.11398,0.12378,0.13426,0.14467,0.15519,0.16561,0.17616,0.18661,0.19729,0.20781,0.21887,0.22951,0.24036,0.25114,0.26182,0.27239,0.28317,0.29394,0.30492
-0.31589,0.32677,0.33759,0.34840,0.35904,0.36949,0.38027,0.39088,0.40142,0.41200,0.42258,0.43300,0.44376,0.45430,0.46502,0.47544,0.48606,0.49654,0.50688,0.51686
-0.52705,0.53694,0.54701,0.55739,0.56751,0.57739,0.58765,0.59748,0.60735,0.61706,0.62673,0.63622,0.64543,0.65517,0.66449,0.67405,0.68334,0.69296,0.70211,0.71134
-0.72054,0.72965,0.73856,0.74715,0.75594,0.76461,0.77294,0.78117,0.78930,0.79750,0.80551,0.81365,0.82133,0.82926,0.83677,0.84389,0.85112,0.85798,0.86479,0.87136
-0.87753,0.88312,0.88880,0.89422,0.89931,0.90419,0.90873,0.91291,0.91687,0.92064,0.92405,0.92755,0.93054,0.93331,0.93587,0.93832,0.94057,0.94280,0.94493,0.94687
-0.94865,0.95044,0.95211,0.95368,0.95518,0.95664,0.95787,0.95909,0.96036,0.96152,0.96277,0.96396,0.96495,0.96592,0.96704,0.96803,0.96902,0.96994,0.97084,0.97176
-0.97266,0.97346,0.97426,0.97501,0.97578,0.97651,0.97723,0.97786,0.97842,0.97906,0.97972,0.98035,0.98092,0.98138,0.98190,0.98232,0.98275,0.98321,0.98363,0.98397
-0.98441,0.98487,0.98523,0.98556,0.98593,0.98633,0.98667,0.98692,0.98720,0.98751,0.98779,0.98800,0.98822,0.98844,0.98868,0.98889,0.98920,0.98943,0.98960,0.98975
-0.98991,0.99003,0.99022,0.99039,0.99054,0.99071,0.99085,0.99100,0.99115,0.99131,0.99146,0.99161,0.99173,0.99185,0.99195,0.99207,0.99225,0.99235,0.99247,0.99267
-0.99279,0.99291,0.99302,0.99311,0.99323,0.99335,0.99349,0.99364,0.99381,0.99393,0.99409,0.99420,0.99430,0.99443,0.99457,0.99468,0.99481,0.99493,0.99503,0.99515
-0.99529,0.99539,0.99550,0.99558,0.99568,0.99580,0.99591,0.99602,0.99614,0.99630,0.99640,0.99652,0.99665,0.99677,0.99689,0.99697,0.99712,0.99723,0.99739,0.99746
-0.99756,0.99770,0.99782,0.99794,0.99804,0.99815,0.99826,0.99838,0.99849,0.99859,0.99875,0.99891,0.99906,0.99916,0.99926,0.99934,0.99943,0.99951,0.99960,0.99968
-0.99976,0.99982,0.99986,0.99990,0.99993,0.99995,0.99998,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc1v1fract=0.00083,0.00191,0.00303,0.00451,0.00607,0.00811,0.01037,0.01321,0.01643,0.02027,0.02459,0.02937,0.03458,0.04053,0.04658,0.05301,0.06025,0.06756,0.07540
-0.08368,0.09233,0.10132,0.11082,0.12035,0.13071,0.14121,0.15171,0.16214,0.17322,0.18374,0.19460,0.20591,0.21641,0.22743,0.23879,0.24981,0.26068,0.27196,0.28313
-0.29406,0.30534,0.31620,0.32742,0.33869,0.34962,0.36100,0.37198,0.38282,0.39334,0.40405,0.41517,0.42565,0.43662,0.44698,0.45789,0.46888,0.47956,0.49026,0.50078
-0.51139,0.52221,0.53291,0.54392,0.55433,0.56459,0.57492,0.58531,0.59563,0.60571,0.61543,0.62513,0.63455,0.64400,0.65370,0.66312,0.67267,0.68202,0.69143,0.70071
-0.71029,0.71921,0.72856,0.73780,0.74663,0.75577,0.76478,0.77359,0.78205,0.79057,0.79885,0.80698,0.81483,0.82281,0.83050,0.83825,0.84547,0.85260,0.85913,0.86546
-0.87190,0.87821,0.88448,0.89018,0.89555,0.90076,0.90563,0.91031,0.91469,0.91861,0.92233,0.92580,0.92907,0.93231,0.93532,0.93802,0.94052,0.94292,0.94499,0.94700
-0.94903,0.95080,0.95256,0.95431,0.95578,0.95723,0.95868,0.96002,0.96135,0.96262,0.96388,0.96514,0.96629,0.96738,0.96847,0.96952,0.97055,0.97156,0.97248,0.97338
-0.97425,0.97509,0.97594,0.97663,0.97728,0.97794,0.97861,0.97935,0.97994,0.98046,0.98107,0.98161,0.98217,0.98268,0.98315,0.98367,0.98418,0.98457,0.98495,0.98543
-0.98580,0.98618,0.98655,0.98688,0.98718,0.98747,0.98777,0.98806,0.98832,0.98857,0.98885,0.98912,0.98932,0.98952,0.98969,0.98991,0.99015,0.99037,0.99055,0.99073
-0.99088,0.99104,0.99122,0.99139,0.99155,0.99171,0.99184,0.99200,0.99212,0.99227,0.99244,0.99258,0.99272,0.99283,0.99300,0.99310,0.99318,0.99330,0.99340,0.99352
-0.99365,0.99376,0.99391,0.99405,0.99414,0.99426,0.99437,0.99447,0.99457,0.99468,0.99482,0.99498,0.99510,0.99516,0.99527,0.99537,0.99544,0.99556,0.99567,0.99578
-0.99589,0.99605,0.99615,0.99626,0.99636,0.99646,0.99656,0.99669,0.99679,0.99687,0.99697,0.99708,0.99721,0.99730,0.99742,0.99752,0.99762,0.99771,0.99781,0.99791
-0.99803,0.99812,0.99824,0.99832,0.99842,0.99854,0.99865,0.99873,0.99884,0.99892,0.99900,0.99910,0.99921,0.99929,0.99937,0.99947,0.99954,0.99961,0.99967,0.99972
-0.99977,0.99984,0.99989,0.99994,0.99995,0.99997,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc1v2fract=0.00114,0.00251,0.00414,0.00607,0.00813,0.01090,0.01406,0.01767,0.02175,0.02626,0.03131,0.03710,0.04285,0.04927,0.05649,0.06421,0.07246,0.08115,0.08995
-0.09960,0.10913,0.11905,0.12907,0.13945,0.14985,0.16027,0.17106,0.18181,0.19257,0.20316,0.21381,0.22453,0.23545,0.24684,0.25790,0.26918,0.28024,0.29101,0.30234
-0.31325,0.32422,0.33532,0.34571,0.35641,0.36697,0.37797,0.38862,0.39960,0.41049,0.42117,0.43176,0.44245,0.45291,0.46396,0.47464,0.48533,0.49593,0.50617,0.51658
-0.52684,0.53743,0.54808,0.55805,0.56830,0.57834,0.58868,0.59861,0.60908,0.61927,0.62914,0.63929,0.64924,0.65906,0.66867,0.67858,0.68801,0.69733,0.70646,0.71569
-0.72508,0.73414,0.74275,0.75203,0.76084,0.76975,0.77844,0.78687,0.79496,0.80325,0.81139,0.81949,0.82713,0.83469,0.84211,0.84937,0.85628,0.86304,0.86958,0.87575
-0.88174,0.88763,0.89310,0.89820,0.90337,0.90792,0.91252,0.91673,0.92059,0.92444,0.92787,0.93108,0.93416,0.93696,0.93938,0.94190,0.94413,0.94632,0.94849,0.95047
-0.95227,0.95380,0.95553,0.95691,0.95830,0.95958,0.96085,0.96187,0.96305,0.96412,0.96522,0.96622,0.96727,0.96820,0.96919,0.97008,0.97094,0.97183,0.97261,0.97334
-0.97418,0.97488,0.97563,0.97633,0.97696,0.97761,0.97828,0.97884,0.97944,0.98008,0.98060,0.98116,0.98175,0.98225,0.98267,0.98314,0.98359,0.98402,0.98443,0.98480
-0.98517,0.98551,0.98580,0.98611,0.98640,0.98669,0.98692,0.98723,0.98749,0.98779,0.98805,0.98826,0.98844,0.98871,0.98895,0.98913,0.98933,0.98951,0.98971,0.98986
-0.99001,0.99019,0.99036,0.99056,0.99072,0.99087,0.99102,0.99120,0.99136,0.99148,0.99158,0.99172,0.99185,0.99199,0.99216,0.99231,0.99246,0.99257,0.99268,0.99282
-0.99296,0.99308,0.99320,0.99328,0.99340,0.99353,0.99363,0.99376,0.99392,0.99403,0.99416,0.99428,0.99439,0.99452,0.99462,0.99475,0.99486,0.99496,0.99506,0.99520
-0.99534,0.99546,0.99558,0.99568,0.99578,0.99592,0.99603,0.99615,0.99626,0.99638,0.99653,0.99670,0.99684,0.99693,0.99702,0.99714,0.99727,0.99740,0.99754,0.99768
-0.99775,0.99789,0.99796,0.99810,0.99827,0.99836,0.99845,0.99857,0.99868,0.99876,0.99888,0.99896,0.99903,0.99911,0.99923,0.99934,0.99944,0.99951,0.99959,0.99965
-0.99970,0.99978,0.99983,0.99987,0.99991,0.99995,0.99996,0.99997,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc2v2fract=0.00085,0.00187,0.00292,0.00412,0.00567,0.00753,0.00976,0.01228,0.01534,0.01862,0.02269,0.02716,0.03198,0.03756,0.04369,0.05044,0.05750,0.06518,0.07313
-0.08136,0.09022,0.09939,0.10902,0.11925,0.12920,0.13942,0.15003,0.16062,0.17181,0.18277,0.19366,0.20456,0.21559,0.22707,0.23826,0.24944,0.26078,0.27168,0.28250
-0.29344,0.30450,0.31572,0.32646,0.33705,0.34793,0.35854,0.36946,0.38038,0.39127,0.40233,0.41270,0.42325,0.43384,0.44415,0.45479,0.46501,0.47534,0.48559,0.49585
-0.50619,0.51629,0.52636,0.53643,0.54613,0.55617,0.56611,0.57584,0.58553,0.59510,0.60485,0.61433,0.62373,0.63294,0.64218,0.65103,0.66000,0.66897,0.67771,0.68622
-0.69492,0.70383,0.71268,0.72101,0.72927,0.73749,0.74599,0.75406,0.76183,0.76957,0.77716,0.78471,0.79202,0.79946,0.80651,0.81351,0.82036,0.82708,0.83390,0.84050
-0.84697,0.85322,0.85915,0.86479,0.87036,0.87560,0.88063,0.88549,0.89012,0.89477,0.89902,0.90321,0.90696,0.91052,0.91376,0.91700,0.92006,0.92279,0.92562,0.92808
-0.93057,0.93293,0.93496,0.93709,0.93912,0.94124,0.94311,0.94499,0.94670,0.94826,0.94972,0.95123,0.95275,0.95413,0.95559,0.95695,0.95820,0.95951,0.96072,0.96190
-0.96305,0.96417,0.96523,0.96640,0.96741,0.96843,0.96939,0.97020,0.97098,0.97182,0.97255,0.97335,0.97398,0.97464,0.97529,0.97599,0.97667,0.97731,0.97794,0.97856
-0.97918,0.97973,0.98033,0.98087,0.98142,0.98198,0.98249,0.98300,0.98348,0.98388,0.98422,0.98457,0.98499,0.98538,0.98577,0.98610,0.98642,0.98676,0.98709,0.98734
-0.98764,0.98789,0.98814,0.98836,0.98860,0.98887,0.98908,0.98929,0.98951,0.98978,0.98998,0.99019,0.99038,0.99056,0.99078,0.99098,0.99116,0.99135,0.99149,0.99167
-0.99180,0.99198,0.99212,0.99228,0.99245,0.99262,0.99280,0.99297,0.99315,0.99329,0.99346,0.99359,0.99377,0.99392,0.99410,0.99425,0.99442,0.99455,0.99467,0.99483
-0.99499,0.99511,0.99524,0.99535,0.99548,0.99559,0.99571,0.99587,0.99600,0.99615,0.99626,0.99639,0.99655,0.99671,0.99681,0.99695,0.99707,0.99721,0.99734,0.99744
-0.99758,0.99770,0.99785,0.99800,0.99817,0.99831,0.99843,0.99855,0.99867,0.99879,0.99889,0.99900,0.99913,0.99925,0.99937,0.99944,0.99953,0.99959,0.99967,0.99975
-0.99984,0.99988,0.99992,0.99995,0.99997,0.99998,0.99999,0.99999,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc2v1fract=0.00090,0.00202,0.00303,0.00449,0.00596,0.00768,0.00971,0.01218,0.01512,0.01857,0.02255,0.02713,0.03185,0.03734,0.04343,0.05006,0.05707,0.06438,0.07268
-0.08100,0.08971,0.09885,0.10799,0.11813,0.12776,0.13801,0.14806,0.15862,0.16942,0.18047,0.19163,0.20254,0.21333,0.22441,0.23563,0.24660,0.25794,0.26936,0.28043
-0.29135,0.30261,0.31346,0.32465,0.33554,0.34627,0.35725,0.36794,0.37879,0.38965,0.40014,0.41056,0.42092,0.43157,0.44182,0.45278,0.46319,0.47386,0.48455,0.49502
-0.50503,0.51553,0.52591,0.53599,0.54577,0.55573,0.56578,0.57533,0.58537,0.59496,0.60488,0.61448,0.62411,0.63345,0.64297,0.65240,0.66128,0.67030,0.67983,0.68880
-0.69788,0.70661,0.71483,0.72341,0.73166,0.73979,0.74788,0.75592,0.76401,0.77201,0.77989,0.78765,0.79483,0.80219,0.80934,0.81645,0.82346,0.83022,0.83676,0.84328
-0.84964,0.85566,0.86165,0.86727,0.87279,0.87793,0.88294,0.88793,0.89257,0.89694,0.90104,0.90510,0.90898,0.91245,0.91580,0.91893,0.92202,0.92488,0.92771,0.93029
-0.93284,0.93488,0.93711,0.93918,0.94124,0.94319,0.94507,0.94703,0.94866,0.95025,0.95189,0.95330,0.95481,0.95627,0.95765,0.95893,0.96014,0.96131,0.96255,0.96356
-0.96456,0.96565,0.96663,0.96762,0.96857,0.96950,0.97042,0.97125,0.97212,0.97285,0.97356,0.97432,0.97505,0.97571,0.97639,0.97704,0.97761,0.97825,0.97894,0.97957
-0.98009,0.98060,0.98115,0.98165,0.98218,0.98262,0.98304,0.98350,0.98394,0.98435,0.98478,0.98520,0.98556,0.98587,0.98617,0.98647,0.98680,0.98714,0.98749,0.98775
-0.98804,0.98834,0.98864,0.98889,0.98914,0.98937,0.98956,0.98977,0.98993,0.99011,0.99033,0.99050,0.99070,0.99088,0.99107,0.99126,0.99144,0.99159,0.99174,0.99187
-0.99206,0.99221,0.99238,0.99254,0.99268,0.99284,0.99298,0.99310,0.99323,0.99338,0.99352,0.99367,0.99380,0.99395,0.99410,0.99423,0.99437,0.99456,0.99468,0.99480
-0.99493,0.99507,0.99523,0.99534,0.99551,0.99565,0.99577,0.99591,0.99605,0.99615,0.99631,0.99645,0.99658,0.99669,0.99686,0.99698,0.99707,0.99720,0.99731,0.99740
-0.99757,0.99768,0.99780,0.99795,0.99808,0.99819,0.99837,0.99848,0.99861,0.99871,0.99881,0.99895,0.99908,0.99918,0.99928,0.99937,0.99948,0.99959,0.99968,0.99976
-0.99982,0.99987,0.99992,0.99995,0.99996,0.99998,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc2x2fract=0.00104,0.00213,0.00347,0.00519,0.00714,0.00938,0.01197,0.01511,0.01881,0.02295,0.02763,0.03274,0.03839,0.04454,0.05132,0.05854,0.06654,0.07484,0.08342
-0.09250,0.10211,0.11168,0.12168,0.13185,0.14224,0.15266,0.16291,0.17339,0.18371,0.19462,0.20544,0.21653,0.22728,0.23796,0.24868,0.25930,0.27015,0.28067,0.29190
-0.30273,0.31316,0.32375,0.33452,0.34506,0.35599,0.36701,0.37752,0.38804,0.39869,0.40923,0.41985,0.43033,0.44065,0.45093,0.46116,0.47173,0.48202,0.49221,0.50226
-0.51254,0.52286,0.53311,0.54315,0.55332,0.56314,0.57278,0.58250,0.59238,0.60215,0.61165,0.62119,0.63065,0.63980,0.64884,0.65781,0.66727,0.67639,0.68583,0.69451
-0.70341,0.71170,0.72022,0.72883,0.73702,0.74543,0.75378,0.76230,0.77036,0.77823,0.78615,0.79363,0.80118,0.80861,0.81605,0.82306,0.83001,0.83717,0.84362,0.85000
-0.85626,0.86226,0.86817,0.87385,0.87918,0.88417,0.88924,0.89382,0.89835,0.90255,0.90642,0.91003,0.91352,0.91686,0.92000,0.92278,0.92558,0.92819,0.93065,0.93296
-0.93524,0.93731,0.93939,0.94119,0.94307,0.94467,0.94626,0.94782,0.94935,0.95088,0.95221,0.95366,0.95516,0.95643,0.95765,0.95900,0.96018,0.96126,0.96228,0.96335
-0.96430,0.96542,0.96649,0.96749,0.96849,0.96938,0.97025,0.97114,0.97193,0.97275,0.97362,0.97437,0.97514,0.97586,0.97660,0.97726,0.97791,0.97864,0.97921,0.97981
-0.98046,0.98098,0.98146,0.98195,0.98237,0.98286,0.98335,0.98388,0.98428,0.98474,0.98513,0.98549,0.98592,0.98626,0.98659,0.98696,0.98731,0.98760,0.98792,0.98819
-0.98847,0.98872,0.98893,0.98917,0.98937,0.98962,0.98984,0.99004,0.99022,0.99044,0.99066,0.99085,0.99105,0.99126,0.99147,0.99163,0.99183,0.99202,0.99216,0.99229
-0.99243,0.99259,0.99278,0.99293,0.99310,0.99325,0.99335,0.99348,0.99364,0.99383,0.99397,0.99411,0.99421,0.99431,0.99445,0.99459,0.99472,0.99486,0.99497,0.99510
-0.99521,0.99537,0.99549,0.99559,0.99570,0.99583,0.99593,0.99604,0.99617,0.99630,0.99645,0.99657,0.99669,0.99682,0.99692,0.99705,0.99718,0.99732,0.99740,0.99753
-0.99765,0.99778,0.99794,0.99805,0.99814,0.99826,0.99835,0.99847,0.99856,0.99868,0.99878,0.99890,0.99903,0.99915,0.99924,0.99934,0.99943,0.99951,0.99962,0.99970
-0.99981,0.99986,0.99990,0.99991,0.99993,0.99995,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc2x1fract=0.00115,0.00248,0.00396,0.00575,0.00801,0.01048,0.01365,0.01709,0.02101,0.02545,0.03034,0.03593,0.04205,0.04876,0.05584,0.06331,0.07128,0.07954,0.08849
-0.09749,0.10660,0.11603,0.12586,0.13577,0.14567,0.15601,0.16647,0.17675,0.18696,0.19755,0.20815,0.21894,0.22977,0.24122,0.25192,0.26254,0.27321,0.28386,0.29453
-0.30515,0.31611,0.32688,0.33769,0.34829,0.35919,0.36980,0.38060,0.39114,0.40119,0.41169,0.42246,0.43280,0.44328,0.45355,0.46405,0.47488,0.48514,0.49547,0.50618
-0.51690,0.52697,0.53706,0.54737,0.55750,0.56737,0.57729,0.58733,0.59706,0.60673,0.61637,0.62585,0.63538,0.64463,0.65372,0.66309,0.67239,0.68151,0.69047,0.69965
-0.70853,0.71727,0.72578,0.73422,0.74256,0.75108,0.75942,0.76737,0.77563,0.78369,0.79163,0.79922,0.80672,0.81424,0.82148,0.82858,0.83570,0.84253,0.84924,0.85537
-0.86155,0.86754,0.87341,0.87871,0.88411,0.88911,0.89403,0.89859,0.90281,0.90680,0.91070,0.91412,0.91761,0.92089,0.92380,0.92674,0.92948,0.93196,0.93429,0.93661
-0.93877,0.94064,0.94260,0.94441,0.94620,0.94785,0.94940,0.95087,0.95250,0.95395,0.95531,0.95662,0.95776,0.95908,0.96026,0.96139,0.96257,0.96377,0.96487,0.96596
-0.96679,0.96772,0.96869,0.96965,0.97055,0.97151,0.97231,0.97320,0.97399,0.97469,0.97536,0.97605,0.97672,0.97738,0.97802,0.97873,0.97943,0.97998,0.98056,0.98114
-0.98164,0.98221,0.98270,0.98310,0.98356,0.98403,0.98450,0.98490,0.98527,0.98564,0.98601,0.98634,0.98671,0.98705,0.98730,0.98758,0.98786,0.98823,0.98846,0.98874
-0.98901,0.98921,0.98943,0.98970,0.98993,0.99014,0.99036,0.99055,0.99075,0.99091,0.99106,0.99128,0.99149,0.99168,0.99183,0.99196,0.99217,0.99231,0.99242,0.99256
-0.99270,0.99286,0.99300,0.99313,0.99327,0.99341,0.99355,0.99369,0.99382,0.99394,0.99408,0.99420,0.99435,0.99448,0.99460,0.99474,0.99488,0.99496,0.99508,0.99519
-0.99535,0.99546,0.99557,0.99568,0.99578,0.99593,0.99606,0.99617,0.99627,0.99639,0.99649,0.99661,0.99673,0.99685,0.99697,0.99708,0.99721,0.99739,0.99752,0.99765
-0.99775,0.99784,0.99798,0.99807,0.99819,0.99831,0.99845,0.99856,0.99866,0.99876,0.99889,0.99899,0.99910,0.99922,0.99930,0.99939,0.99947,0.99954,0.99961,0.99968
-0.99975,0.99984,0.99987,0.99990,0.99992,0.99996,0.99998,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc2u2fract=0.00122,0.00246,0.00390,0.00568,0.00760,0.01013,0.01299,0.01634,0.02011,0.02437,0.02936,0.03478,0.04080,0.04705,0.05394,0.06129,0.06883,0.07692,0.08551
-0.09479,0.10415,0.11378,0.12360,0.13369,0.14361,0.15426,0.16480,0.17559,0.18598,0.19668,0.20738,0.21784,0.22884,0.23949,0.25077,0.26181,0.27291,0.28361,0.29488
-0.30543,0.31633,0.32691,0.33759,0.34864,0.35963,0.37042,0.38101,0.39160,0.40220,0.41282,0.42341,0.43409,0.44464,0.45487,0.46519,0.47567,0.48571,0.49589,0.50623
-0.51664,0.52687,0.53718,0.54719,0.55743,0.56746,0.57734,0.58714,0.59694,0.60678,0.61654,0.62650,0.63626,0.64573,0.65505,0.66460,0.67409,0.68341,0.69251,0.70150
-0.71042,0.71937,0.72783,0.73643,0.74474,0.75331,0.76143,0.76962,0.77775,0.78587,0.79393,0.80169,0.80956,0.81710,0.82438,0.83159,0.83849,0.84515,0.85200,0.85824
-0.86417,0.87013,0.87583,0.88126,0.88641,0.89131,0.89609,0.90050,0.90467,0.90869,0.91240,0.91580,0.91920,0.92235,0.92549,0.92828,0.93084,0.93332,0.93566,0.93785
-0.93987,0.94193,0.94398,0.94590,0.94762,0.94931,0.95087,0.95240,0.95383,0.95529,0.95665,0.95792,0.95938,0.96061,0.96182,0.96296,0.96404,0.96507,0.96608,0.96707
-0.96812,0.96913,0.97009,0.97093,0.97175,0.97272,0.97352,0.97423,0.97505,0.97572,0.97642,0.97714,0.97786,0.97851,0.97922,0.97982,0.98040,0.98095,0.98145,0.98194
-0.98246,0.98297,0.98336,0.98374,0.98414,0.98456,0.98496,0.98534,0.98567,0.98608,0.98638,0.98666,0.98698,0.98727,0.98752,0.98782,0.98813,0.98841,0.98867,0.98889
-0.98908,0.98928,0.98952,0.98970,0.98995,0.99016,0.99034,0.99052,0.99070,0.99085,0.99104,0.99118,0.99127,0.99144,0.99160,0.99175,0.99187,0.99201,0.99215,0.99233
-0.99247,0.99264,0.99278,0.99296,0.99311,0.99323,0.99335,0.99346,0.99357,0.99369,0.99381,0.99391,0.99400,0.99413,0.99425,0.99435,0.99450,0.99462,0.99475,0.99489
-0.99503,0.99517,0.99530,0.99542,0.99553,0.99568,0.99583,0.99596,0.99607,0.99617,0.99628,0.99638,0.99648,0.99662,0.99674,0.99689,0.99700,0.99712,0.99727,0.99736
-0.99748,0.99758,0.99772,0.99783,0.99794,0.99809,0.99826,0.99840,0.99854,0.99866,0.99878,0.99889,0.99898,0.99910,0.99920,0.99929,0.99939,0.99951,0.99961,0.99969
-0.99974,0.99981,0.99986,0.99989,0.99993,0.99997,0.99998,0.99999,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000
-1.00000
-pwc2u1fract=0.00092,0.00185,0.00301,0.00443,0.00613,0.00800,0.01021,0.01299,0.01604,0.01954,0.02346,0.02783,0.03263,0.03808,0.04363,0.05002,0.05689,0.06401,0.07157
-0.07979,0.08831,0.09751,0.10678,0.11643,0.12595,0.13590,0.14634,0.15653,0.16681,0.17721,0.18777,0.19856,0.20930,0.22025,0.23147,0.24216,0.25314,0.26377,0.27484
-0.28545,0.29665,0.30750,0.31851,0.32947,0.34041,0.35118,0.36200,0.37268,0.38352,0.39435,0.40511,0.41597,0.42632,0.43702,0.44786,0.45839,0.46901,0.47939,0.48965
-0.49980,0.50972,0.52009,0.53069,0.54093,0.55091,0.56113,0.57123,0.58142,0.59143,0.60107,0.61066,0.62034,0.62974,0.63975,0.64928,0.65873,0.66805,0.67744,0.68690
-0.69606,0.70486,0.71421,0.72304,0.73197,0.74068,0.74909,0.75775,0.76588,0.77419,0.78248,0.79085,0.79856,0.80646,0.81402,0.82159,0.82896,0.83623,0.84318,0.85001
-0.85668,0.86310,0.86911,0.87487,0.88020,0.88552,0.89046,0.89551,0.90008,0.90460,0.90876,0.91299,0.91675,0.92021,0.92353,0.92666,0.92959,0.93235,0.93504,0.93745
-0.93966,0.94173,0.94379,0.94575,0.94753,0.94941,0.95112,0.95285,0.95446,0.95596,0.95743,0.95888,0.96034,0.96166,0.96299,0.96427,0.96551,0.96666,0.96769,0.96878
-0.96968,0.97061,0.97151,0.97246,0.97327,0.97410,0.97495,0.97568,0.97649,0.97732,0.97808,0.97875,0.97939,0.97996,0.98056,0.98109,0.98166,0.98214,0.98257,0.98308
-0.98360,0.98403,0.98443,0.98480,0.98518,0.98559,0.98602,0.98632,0.98664,0.98696,0.98727,0.98752,0.98786,0.98812,0.98834,0.98858,0.98881,0.98907,0.98931,0.98956
-0.98978,0.99003,0.99023,0.99040,0.99062,0.99083,0.99106,0.99120,0.99137,0.99151,0.99165,0.99176,0.99190,0.99202,0.99215,0.99228,0.99241,0.99253,0.99261,0.99275
-0.99286,0.99298,0.99309,0.99323,0.99336,0.99347,0.99362,0.99373,0.99386,0.99398,0.99414,0.99425,0.99441,0.99457,0.99469,0.99481,0.99495,0.99505,0.99518,0.99527
-0.99539,0.99551,0.99563,0.99575,0.99588,0.99599,0.99609,0.99619,0.99636,0.99647,0.99660,0.99672,0.99680,0.99692,0.99706,0.99720,0.99734,0.99748,0.99760,0.99772
-0.99781,0.99796,0.99809,0.99821,0.99834,0.99846,0.99855,0.99866,0.99879,0.99890,0.99903,0.99913,0.99920,0.99930,0.99939,0.99946,0.99954,0.99962,0.99970,0.99976
-0.99981,0.99987,0.99990,0.99994,0.99996,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
-1.00000
\ No newline at end of file
+; number of 1st bin in table in ns
+pdrift1stbin=0
+; bin size in ns
+pdriftbinsz=1
+pwc1u1fract=0.0011495,0.00243,0.00366,0.00539,0.00743,0.00975,0.01249,0.01605,0.02001,0.02453,0.02972,0.03511,0.04078,0.04675,0.05374,0.06102,0.06878,0.07687,0.08515
+0.09393,0.10314,0.11256,0.12215,0.13197,0.14184,0.15209,0.16243,0.17325,0.18372,0.19456,0.20521,0.21576,0.22655,0.23767,0.24822,0.25912,0.27040,0.28116,0.29233
+0.30330,0.31426,0.32525,0.33599,0.34687,0.35785,0.36891,0.38022,0.39096,0.40197,0.41297,0.42372,0.43471,0.44537,0.45641,0.46706,0.47768,0.48834,0.49927,0.51002
+0.52094,0.53162,0.54188,0.55271,0.56320,0.57384,0.58379,0.59435,0.60486,0.61506,0.62553,0.63582,0.64587,0.65548,0.66522,0.67533,0.68518,0.69477,0.70445,0.71410
+0.72364,0.73299,0.74193,0.75080,0.75949,0.76812,0.77676,0.78512,0.79353,0.80197,0.81042,0.81850,0.82631,0.83400,0.84162,0.84917,0.85645,0.86350,0.87029,0.87680
+0.88293,0.88865,0.89424,0.89980,0.90490,0.90965,0.91441,0.91866,0.92255,0.92590,0.92947,0.93273,0.93577,0.93842,0.94105,0.94333,0.94559,0.94773,0.94988,0.95189
+0.95370,0.95533,0.95691,0.95840,0.95993,0.96128,0.96258,0.96374,0.96505,0.96615,0.96734,0.96832,0.96950,0.97040,0.97134,0.97214,0.97306,0.97392,0.97475,0.97562
+0.97630,0.97705,0.97780,0.97853,0.97916,0.97981,0.98040,0.98103,0.98154,0.98210,0.98272,0.98323,0.98374,0.98421,0.98470,0.98519,0.98564,0.98606,0.98646,0.98683
+0.98715,0.98749,0.98781,0.98810,0.98840,0.98869,0.98896,0.98921,0.98946,0.98967,0.98994,0.99014,0.99031,0.99051,0.99068,0.99082,0.99099,0.99116,0.99136,0.99150
+0.99163,0.99184,0.99198,0.99211,0.99222,0.99230,0.99245,0.99262,0.99279,0.99290,0.99303,0.99317,0.99331,0.99340,0.99352,0.99361,0.99373,0.99382,0.99390,0.99398
+0.99409,0.99417,0.99429,0.99439,0.99447,0.99455,0.99468,0.99480,0.99491,0.99497,0.99506,0.99520,0.99530,0.99541,0.99550,0.99562,0.99572,0.99583,0.99594,0.99603
+0.99615,0.99625,0.99638,0.99650,0.99659,0.99669,0.99676,0.99687,0.99697,0.99710,0.99721,0.99737,0.99747,0.99756,0.99766,0.99776,0.99781,0.99791,0.99800,0.99808
+0.99815,0.99824,0.99837,0.99844,0.99854,0.99862,0.99871,0.99883,0.99893,0.99905,0.99911,0.99920,0.99926,0.99934,0.99940,0.99946,0.99951,0.99962,0.99969,0.99975
+0.99979,0.99983,0.99987,0.99989,0.99991,0.99993,0.99996,0.99997,0.99998,0.99998,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000
+pwc1u2fract=0.00135,0.00257,0.00417,0.00588,0.00782,0.01023,0.01301,0.01658,0.02034,0.02486,0.02967,0.03505,0.04080,0.04737,0.05406,0.06141,0.06910,0.07711,0.08556
+0.09444,0.10369,0.11351,0.12309,0.13328,0.14365,0.15429,0.16460,0.17538,0.18622,0.19716,0.20808,0.21936,0.23026,0.24108,0.25223,0.26330,0.27404,0.28498,0.29598
+0.30734,0.31848,0.32955,0.34039,0.35140,0.36226,0.37284,0.38416,0.39539,0.40603,0.41663,0.42723,0.43832,0.44879,0.45920,0.46992,0.48049,0.49108,0.50160,0.51229
+0.52275,0.53305,0.54350,0.55381,0.56385,0.57419,0.58418,0.59443,0.60429,0.61436,0.62408,0.63407,0.64365,0.65340,0.66319,0.67276,0.68242,0.69184,0.70126,0.71042
+0.71938,0.72855,0.73786,0.74686,0.75577,0.76456,0.77351,0.78218,0.79041,0.79855,0.80691,0.81506,0.82298,0.83061,0.83774,0.84543,0.85242,0.85973,0.86620,0.87232
+0.87850,0.88448,0.89045,0.89625,0.90149,0.90641,0.91118,0.91552,0.91946,0.92342,0.92687,0.93024,0.93358,0.93651,0.93931,0.94172,0.94409,0.94637,0.94846,0.95042
+0.95248,0.95418,0.95581,0.95735,0.95909,0.96045,0.96179,0.96295,0.96431,0.96552,0.96667,0.96784,0.96888,0.96991,0.97076,0.97166,0.97253,0.97332,0.97412,0.97489
+0.97567,0.97639,0.97701,0.97767,0.97837,0.97910,0.97975,0.98036,0.98103,0.98160,0.98211,0.98263,0.98315,0.98362,0.98411,0.98449,0.98494,0.98544,0.98585,0.98620
+0.98653,0.98688,0.98716,0.98751,0.98781,0.98812,0.98839,0.98862,0.98885,0.98912,0.98936,0.98959,0.98982,0.99002,0.99022,0.99043,0.99064,0.99080,0.99094,0.99111
+0.99128,0.99144,0.99161,0.99175,0.99190,0.99207,0.99224,0.99241,0.99252,0.99261,0.99273,0.99285,0.99297,0.99308,0.99319,0.99328,0.99344,0.99356,0.99367,0.99374
+0.99382,0.99396,0.99405,0.99415,0.99424,0.99435,0.99447,0.99455,0.99461,0.99472,0.99482,0.99493,0.99505,0.99516,0.99526,0.99533,0.99545,0.99560,0.99573,0.99584
+0.99591,0.99603,0.99616,0.99626,0.99640,0.99650,0.99663,0.99677,0.99691,0.99703,0.99710,0.99721,0.99730,0.99740,0.99752,0.99758,0.99768,0.99777,0.99787,0.99797
+0.99809,0.99817,0.99826,0.99834,0.99839,0.99851,0.99864,0.99873,0.99884,0.99891,0.99903,0.99912,0.99921,0.99929,0.99939,0.99948,0.99953,0.99962,0.99969,0.99977
+0.99982,0.99988,0.99990,0.99993,0.99995,0.99996,0.99996,0.99997,0.99997,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000
+pwc1x1fract=0.00111,0.00229,0.00364,0.00534,0.00739,0.00990,0.01320,0.01695,0.02106,0.02575,0.03089,0.03672,0.04270,0.04964,0.05674,0.06443,0.07242,0.08111,0.09000
+0.09936,0.10918,0.11894,0.12883,0.13917,0.14968,0.16016,0.17122,0.18151,0.19208,0.20313,0.21429,0.22524,0.23627,0.24719,0.25821,0.26924,0.28004,0.29079,0.30171
+0.31238,0.32303,0.33408,0.34483,0.35585,0.36661,0.37748,0.38804,0.39881,0.40944,0.42020,0.43094,0.44189,0.45228,0.46292,0.47366,0.48450,0.49485,0.50548,0.51575
+0.52606,0.53662,0.54701,0.55722,0.56739,0.57748,0.58777,0.59813,0.60804,0.61831,0.62822,0.63784,0.64737,0.65703,0.66647,0.67604,0.68520,0.69452,0.70386,0.71287
+0.72198,0.73125,0.73984,0.74863,0.75716,0.76560,0.77425,0.78259,0.79077,0.79929,0.80753,0.81535,0.82336,0.83134,0.83909,0.84642,0.85357,0.86012,0.86653,0.87314
+0.87913,0.88470,0.89008,0.89517,0.90039,0.90508,0.90948,0.91363,0.91767,0.92112,0.92461,0.92795,0.93083,0.93366,0.93630,0.93873,0.94135,0.94369,0.94563,0.94757
+0.94933,0.95105,0.95271,0.95441,0.95587,0.95726,0.95865,0.95995,0.96120,0.96245,0.96371,0.96492,0.96601,0.96707,0.96816,0.96911,0.97010,0.97097,0.97203,0.97295
+0.97375,0.97463,0.97545,0.97611,0.97690,0.97763,0.97835,0.97905,0.97977,0.98037,0.98099,0.98155,0.98211,0.98267,0.98320,0.98370,0.98412,0.98458,0.98502,0.98540
+0.98578,0.98619,0.98657,0.98692,0.98723,0.98756,0.98785,0.98815,0.98842,0.98873,0.98897,0.98915,0.98942,0.98964,0.98985,0.99008,0.99030,0.99048,0.99065,0.99082
+0.99104,0.99120,0.99136,0.99153,0.99165,0.99180,0.99191,0.99204,0.99221,0.99235,0.99249,0.99265,0.99277,0.99287,0.99299,0.99311,0.99322,0.99332,0.99347,0.99362
+0.99374,0.99385,0.99395,0.99407,0.99419,0.99429,0.99436,0.99448,0.99460,0.99472,0.99484,0.99494,0.99507,0.99518,0.99530,0.99540,0.99554,0.99567,0.99577,0.99585
+0.99596,0.99607,0.99616,0.99623,0.99633,0.99642,0.99651,0.99662,0.99672,0.99679,0.99686,0.99702,0.99712,0.99722,0.99728,0.99742,0.99753,0.99761,0.99774,0.99785
+0.99793,0.99805,0.99815,0.99828,0.99840,0.99850,0.99858,0.99868,0.99878,0.99893,0.99901,0.99909,0.99917,0.99925,0.99931,0.99937,0.99946,0.99957,0.99962,0.99969
+0.99974,0.99979,0.99981,0.99984,0.99987,0.99990,0.99992,0.99994,0.99996,0.99997,0.99997,0.99998,0.99998,0.99999,1.00000,1.00000
+pwc1x2fract=0.00109,0.00232,0.00378,0.00558,0.00777,0.01056,0.01381,0.01788,0.02227,0.02741,0.03302,0.03935,0.04573,0.05274,0.06074,0.06884,0.07767,0.08666,0.09589
+0.10544,0.11522,0.12522,0.13528,0.14545,0.15591,0.16676,0.17736,0.18800,0.19852,0.20900,0.21992,0.23080,0.24178,0.25252,0.26315,0.27373,0.28468,0.29566,0.30644
+0.31731,0.32815,0.33904,0.34992,0.36067,0.37137,0.38205,0.39290,0.40348,0.41405,0.42453,0.43512,0.44584,0.45607,0.46670,0.47717,0.48769,0.49812,0.50821,0.51841
+0.52857,0.53883,0.54912,0.55959,0.56973,0.57991,0.58992,0.59987,0.60954,0.61916,0.62871,0.63842,0.64826,0.65752,0.66693,0.67628,0.68521,0.69432,0.70363,0.71290
+0.72184,0.73072,0.73937,0.74775,0.75667,0.76534,0.77373,0.78221,0.79063,0.79879,0.80672,0.81458,0.82228,0.82966,0.83721,0.84453,0.85112,0.85813,0.86474,0.87104
+0.87696,0.88273,0.88859,0.89376,0.89886,0.90377,0.90809,0.91259,0.91667,0.92022,0.92389,0.92714,0.93024,0.93313,0.93587,0.93848,0.94090,0.94295,0.94504,0.94689
+0.94857,0.95012,0.95159,0.95313,0.95463,0.95607,0.95732,0.95872,0.95994,0.96114,0.96234,0.96347,0.96465,0.96577,0.96696,0.96799,0.96890,0.96985,0.97075,0.97162
+0.97249,0.97334,0.97417,0.97504,0.97579,0.97654,0.97731,0.97798,0.97861,0.97925,0.97994,0.98061,0.98122,0.98175,0.98229,0.98279,0.98328,0.98378,0.98422,0.98463
+0.98514,0.98559,0.98608,0.98650,0.98689,0.98728,0.98755,0.98789,0.98811,0.98842,0.98870,0.98893,0.98917,0.98941,0.98965,0.98985,0.99005,0.99023,0.99048,0.99066
+0.99088,0.99108,0.99127,0.99141,0.99157,0.99173,0.99188,0.99205,0.99220,0.99232,0.99245,0.99260,0.99271,0.99284,0.99297,0.99309,0.99324,0.99335,0.99347,0.99360
+0.99374,0.99386,0.99399,0.99413,0.99424,0.99434,0.99442,0.99451,0.99464,0.99475,0.99489,0.99500,0.99509,0.99524,0.99533,0.99545,0.99562,0.99573,0.99586,0.99594
+0.99603,0.99617,0.99630,0.99640,0.99650,0.99659,0.99674,0.99686,0.99690,0.99702,0.99711,0.99720,0.99729,0.99741,0.99751,0.99758,0.99770,0.99779,0.99788,0.99797
+0.99805,0.99812,0.99821,0.99833,0.99846,0.99854,0.99862,0.99874,0.99882,0.99892,0.99901,0.99911,0.99918,0.99929,0.99935,0.99942,0.99948,0.99955,0.99963,0.99973
+0.99977,0.99984,0.99987,0.99989,0.99992,0.99993,0.99995,0.99996,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc1v1fract=0.00102,0.00222,0.00354,0.00521,0.00721,0.00963,0.01257,0.01620,0.02021,0.02497,0.02989,0.03540,0.04122,0.04771,0.05442,0.06172,0.06926,0.07741,0.08595
+0.09498,0.10438,0.11392,0.12349,0.13377,0.14422,0.15501,0.16564,0.17648,0.18728,0.19804,0.20931,0.22017,0.23112,0.24210,0.25314,0.26456,0.27552,0.28655,0.29772
+0.30856,0.31991,0.33115,0.34208,0.35303,0.36408,0.37494,0.38606,0.39708,0.40797,0.41878,0.42946,0.44033,0.45111,0.46201,0.47288,0.48349,0.49430,0.50466,0.51483
+0.52505,0.53585,0.54633,0.55670,0.56686,0.57694,0.58703,0.59717,0.60736,0.61708,0.62744,0.63721,0.64739,0.65664,0.66657,0.67619,0.68551,0.69488,0.70414,0.71341
+0.72276,0.73184,0.74090,0.74996,0.75860,0.76712,0.77566,0.78394,0.79236,0.80091,0.80904,0.81677,0.82451,0.83207,0.83928,0.84633,0.85345,0.86044,0.86717,0.87345
+0.87937,0.88520,0.89103,0.89640,0.90134,0.90614,0.91049,0.91454,0.91856,0.92234,0.92576,0.92903,0.93221,0.93498,0.93747,0.94003,0.94245,0.94467,0.94686,0.94889
+0.95082,0.95266,0.95429,0.95587,0.95732,0.95875,0.96006,0.96125,0.96259,0.96373,0.96489,0.96616,0.96716,0.96823,0.96928,0.97024,0.97123,0.97214,0.97299,0.97384
+0.97456,0.97536,0.97609,0.97677,0.97752,0.97816,0.97882,0.97943,0.98004,0.98063,0.98126,0.98191,0.98246,0.98300,0.98351,0.98398,0.98446,0.98494,0.98534,0.98574
+0.98608,0.98645,0.98681,0.98720,0.98751,0.98781,0.98813,0.98844,0.98870,0.98894,0.98921,0.98941,0.98963,0.98981,0.99002,0.99021,0.99044,0.99065,0.99077,0.99092
+0.99103,0.99121,0.99140,0.99153,0.99166,0.99180,0.99194,0.99205,0.99219,0.99231,0.99246,0.99258,0.99268,0.99280,0.99291,0.99302,0.99313,0.99331,0.99341,0.99355
+0.99367,0.99377,0.99390,0.99401,0.99409,0.99421,0.99435,0.99448,0.99457,0.99468,0.99478,0.99487,0.99496,0.99512,0.99519,0.99526,0.99537,0.99551,0.99562,0.99573
+0.99585,0.99595,0.99607,0.99618,0.99627,0.99636,0.99646,0.99651,0.99663,0.99676,0.99685,0.99697,0.99704,0.99716,0.99730,0.99739,0.99745,0.99759,0.99772,0.99781
+0.99799,0.99809,0.99819,0.99829,0.99840,0.99849,0.99863,0.99874,0.99883,0.99892,0.99899,0.99911,0.99922,0.99932,0.99941,0.99947,0.99954,0.99960,0.99968,0.99973
+0.99980,0.99982,0.99986,0.99989,0.99990,0.99992,0.99995,0.99996,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc1v2fract=0.00104,0.00216,0.00353,0.00519,0.00721,0.00957,0.01257,0.01632,0.02040,0.02507,0.03017,0.03585,0.04185,0.04844,0.05567,0.06312,0.07116,0.07955,0.08812
+0.09699,0.10653,0.11605,0.12623,0.13608,0.14623,0.15688,0.16758,0.17847,0.18991,0.20037,0.21117,0.22214,0.23287,0.24406,0.25503,0.26607,0.27701,0.28793,0.29904
+0.30952,0.32053,0.33162,0.34266,0.35395,0.36482,0.37570,0.38622,0.39701,0.40767,0.41862,0.42919,0.43999,0.45054,0.46094,0.47174,0.48234,0.49254,0.50277,0.51337
+0.52387,0.53426,0.54453,0.55481,0.56500,0.57522,0.58545,0.59523,0.60521,0.61511,0.62517,0.63476,0.64466,0.65424,0.66369,0.67361,0.68348,0.69298,0.70245,0.71176
+0.72108,0.73023,0.73942,0.74831,0.75729,0.76595,0.77476,0.78349,0.79183,0.80035,0.80852,0.81668,0.82471,0.83234,0.83974,0.84692,0.85381,0.86095,0.86774,0.87435
+0.88053,0.88662,0.89205,0.89745,0.90250,0.90747,0.91195,0.91588,0.91988,0.92385,0.92726,0.93033,0.93349,0.93639,0.93905,0.94136,0.94369,0.94590,0.94786,0.94975
+0.95169,0.95333,0.95488,0.95638,0.95782,0.95912,0.96049,0.96173,0.96296,0.96404,0.96518,0.96638,0.96739,0.96836,0.96927,0.97016,0.97108,0.97201,0.97285,0.97371
+0.97451,0.97526,0.97603,0.97672,0.97741,0.97800,0.97862,0.97935,0.98004,0.98062,0.98117,0.98171,0.98229,0.98275,0.98320,0.98375,0.98420,0.98466,0.98507,0.98543
+0.98585,0.98620,0.98651,0.98682,0.98716,0.98748,0.98777,0.98804,0.98837,0.98862,0.98886,0.98907,0.98927,0.98951,0.98974,0.98991,0.99009,0.99027,0.99045,0.99060
+0.99084,0.99104,0.99123,0.99140,0.99156,0.99170,0.99186,0.99195,0.99211,0.99224,0.99239,0.99251,0.99266,0.99280,0.99290,0.99301,0.99320,0.99332,0.99340,0.99358
+0.99372,0.99384,0.99396,0.99407,0.99416,0.99425,0.99431,0.99440,0.99449,0.99458,0.99472,0.99485,0.99496,0.99506,0.99515,0.99525,0.99535,0.99543,0.99550,0.99563
+0.99577,0.99591,0.99598,0.99607,0.99617,0.99629,0.99637,0.99650,0.99662,0.99673,0.99682,0.99692,0.99703,0.99711,0.99724,0.99733,0.99744,0.99753,0.99769,0.99785
+0.99795,0.99803,0.99812,0.99818,0.99829,0.99839,0.99846,0.99854,0.99866,0.99876,0.99885,0.99897,0.99903,0.99912,0.99922,0.99931,0.99941,0.99949,0.99956,0.99965
+0.99970,0.99974,0.99981,0.99985,0.99989,0.99992,0.99994,0.99995,0.99996,0.99998,0.99999,0.99999,0.99999,1.00000,1.00000,1.00000
+pwc2v2fract=0.00109,0.00224,0.00372,0.00522,0.00718,0.00949,0.01230,0.01586,0.01952,0.02354,0.02831,0.03381,0.03958,0.04599,0.05261,0.06014,0.06789,0.07617,0.08486
+0.09433,0.10403,0.11409,0.12365,0.13417,0.14476,0.15531,0.16643,0.17723,0.18815,0.19907,0.21005,0.22104,0.23207,0.24285,0.25399,0.26480,0.27597,0.28700,0.29795
+0.30868,0.31962,0.33050,0.34158,0.35235,0.36281,0.37376,0.38454,0.39523,0.40607,0.41654,0.42744,0.43801,0.44883,0.45948,0.47004,0.48066,0.49077,0.50091,0.51140
+0.52166,0.53180,0.54187,0.55183,0.56192,0.57156,0.58116,0.59099,0.60080,0.60994,0.61945,0.62882,0.63811,0.64761,0.65678,0.66565,0.67467,0.68368,0.69236,0.70114
+0.70948,0.71783,0.72629,0.73447,0.74276,0.75079,0.75887,0.76663,0.77472,0.78263,0.79018,0.79753,0.80479,0.81182,0.81880,0.82572,0.83241,0.83903,0.84530,0.85125
+0.85700,0.86252,0.86821,0.87351,0.87864,0.88375,0.88846,0.89294,0.89730,0.90148,0.90509,0.90875,0.91233,0.91566,0.91895,0.92185,0.92473,0.92751,0.93007,0.93238
+0.93473,0.93694,0.93907,0.94122,0.94330,0.94519,0.94698,0.94873,0.95034,0.95188,0.95342,0.95489,0.95623,0.95766,0.95889,0.96015,0.96139,0.96242,0.96348,0.96467
+0.96578,0.96670,0.96762,0.96847,0.96933,0.97018,0.97099,0.97190,0.97279,0.97352,0.97426,0.97499,0.97566,0.97636,0.97692,0.97751,0.97804,0.97865,0.97931,0.97997
+0.98052,0.98106,0.98154,0.98206,0.98256,0.98306,0.98350,0.98392,0.98432,0.98465,0.98501,0.98537,0.98576,0.98615,0.98644,0.98672,0.98703,0.98733,0.98762,0.98792
+0.98818,0.98846,0.98878,0.98906,0.98929,0.98949,0.98964,0.98987,0.99005,0.99027,0.99052,0.99076,0.99101,0.99122,0.99140,0.99159,0.99181,0.99199,0.99218,0.99233
+0.99253,0.99269,0.99284,0.99300,0.99313,0.99325,0.99343,0.99354,0.99368,0.99382,0.99397,0.99412,0.99425,0.99437,0.99449,0.99467,0.99482,0.99497,0.99509,0.99521
+0.99533,0.99547,0.99563,0.99574,0.99585,0.99603,0.99615,0.99627,0.99640,0.99650,0.99661,0.99669,0.99684,0.99695,0.99709,0.99724,0.99738,0.99747,0.99760,0.99774
+0.99782,0.99797,0.99807,0.99821,0.99832,0.99844,0.99857,0.99868,0.99879,0.99890,0.99900,0.99911,0.99923,0.99934,0.99942,0.99950,0.99960,0.99964,0.99971,0.99978
+0.99981,0.99984,0.99987,0.99991,0.99993,0.99994,0.99995,0.99996,0.99997,0.99998,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2v1fract=0.00113,0.00252,0.00395,0.00559,0.00760,0.01001,0.01289,0.01637,0.02044,0.02489,0.02979,0.03519,0.04105,0.04776,0.05450,0.06188,0.06951,0.07765,0.08650
+0.09544,0.10509,0.11483,0.12515,0.13550,0.14591,0.15636,0.16715,0.17819,0.18908,0.19994,0.21079,0.22212,0.23340,0.24479,0.25579,0.26711,0.27849,0.28935,0.29993
+0.31083,0.32220,0.33338,0.34476,0.35563,0.36644,0.37735,0.38778,0.39853,0.40918,0.41978,0.43039,0.44107,0.45183,0.46222,0.47259,0.48281,0.49347,0.50384,0.51407
+0.52424,0.53438,0.54477,0.55496,0.56470,0.57467,0.58483,0.59443,0.60423,0.61415,0.62357,0.63302,0.64205,0.65105,0.66052,0.66949,0.67818,0.68745,0.69638,0.70543
+0.71391,0.72216,0.73035,0.73858,0.74674,0.75503,0.76291,0.77072,0.77861,0.78656,0.79405,0.80147,0.80875,0.81567,0.82266,0.82953,0.83614,0.84257,0.84893,0.85509
+0.86085,0.86664,0.87208,0.87749,0.88255,0.88721,0.89209,0.89679,0.90106,0.90527,0.90911,0.91260,0.91582,0.91894,0.92194,0.92488,0.92762,0.93025,0.93275,0.93506
+0.93741,0.93965,0.94163,0.94373,0.94552,0.94729,0.94907,0.95070,0.95210,0.95368,0.95506,0.95654,0.95791,0.95912,0.96038,0.96156,0.96272,0.96399,0.96515,0.96620
+0.96717,0.96809,0.96903,0.97004,0.97087,0.97175,0.97262,0.97335,0.97406,0.97488,0.97564,0.97637,0.97702,0.97762,0.97822,0.97884,0.97939,0.97998,0.98047,0.98101
+0.98157,0.98204,0.98254,0.98296,0.98344,0.98389,0.98430,0.98474,0.98518,0.98557,0.98597,0.98628,0.98664,0.98692,0.98726,0.98757,0.98790,0.98820,0.98848,0.98872
+0.98899,0.98921,0.98942,0.98966,0.98993,0.99014,0.99036,0.99056,0.99076,0.99093,0.99113,0.99128,0.99144,0.99158,0.99169,0.99185,0.99201,0.99216,0.99240,0.99255
+0.99275,0.99290,0.99301,0.99315,0.99332,0.99345,0.99361,0.99377,0.99390,0.99408,0.99420,0.99436,0.99445,0.99460,0.99473,0.99488,0.99497,0.99510,0.99525,0.99540
+0.99552,0.99567,0.99579,0.99590,0.99603,0.99612,0.99624,0.99635,0.99645,0.99655,0.99666,0.99677,0.99690,0.99701,0.99713,0.99723,0.99735,0.99747,0.99759,0.99769
+0.99786,0.99798,0.99809,0.99819,0.99829,0.99840,0.99857,0.99869,0.99880,0.99894,0.99905,0.99913,0.99921,0.99930,0.99941,0.99950,0.99959,0.99967,0.99974,0.99978
+0.99983,0.99988,0.99990,0.99991,0.99992,0.99994,0.99996,0.99996,0.99998,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000
+pwc2x2fract=0.00118,0.00252,0.00399,0.00571,0.00792,0.01034,0.01349,0.01725,0.02146,0.02619,0.03152,0.03763,0.04425,0.05116,0.05840,0.06629,0.07474,0.08351,0.09265
+0.10239,0.11238,0.12243,0.13260,0.14300,0.15325,0.16376,0.17467,0.18538,0.19630,0.20729,0.21823,0.22922,0.24009,0.25104,0.26203,0.27288,0.28386,0.29464,0.30537
+0.31580,0.32616,0.33708,0.34787,0.35878,0.36935,0.37969,0.39023,0.40086,0.41177,0.42230,0.43277,0.44322,0.45379,0.46439,0.47485,0.48532,0.49549,0.50570,0.51602
+0.52646,0.53620,0.54607,0.55600,0.56572,0.57586,0.58543,0.59516,0.60474,0.61427,0.62378,0.63327,0.64274,0.65175,0.66074,0.66972,0.67843,0.68744,0.69655,0.70513
+0.71389,0.72216,0.73070,0.73914,0.74757,0.75585,0.76388,0.77183,0.77950,0.78737,0.79521,0.80263,0.80981,0.81700,0.82405,0.83111,0.83791,0.84446,0.85110,0.85741
+0.86344,0.86929,0.87531,0.88078,0.88603,0.89090,0.89566,0.89996,0.90437,0.90841,0.91194,0.91550,0.91866,0.92166,0.92455,0.92722,0.92969,0.93200,0.93406,0.93619
+0.93815,0.94005,0.94190,0.94359,0.94547,0.94711,0.94862,0.95000,0.95144,0.95278,0.95417,0.95546,0.95672,0.95786,0.95914,0.96027,0.96133,0.96259,0.96366,0.96470
+0.96571,0.96674,0.96772,0.96868,0.96964,0.97054,0.97145,0.97232,0.97319,0.97399,0.97467,0.97540,0.97616,0.97689,0.97761,0.97822,0.97894,0.97962,0.98013,0.98077
+0.98131,0.98186,0.98239,0.98292,0.98344,0.98390,0.98429,0.98471,0.98512,0.98555,0.98588,0.98624,0.98663,0.98695,0.98723,0.98755,0.98793,0.98818,0.98846,0.98878
+0.98899,0.98925,0.98950,0.98974,0.98996,0.99022,0.99046,0.99063,0.99083,0.99104,0.99122,0.99140,0.99161,0.99176,0.99193,0.99210,0.99226,0.99244,0.99259,0.99275
+0.99290,0.99303,0.99321,0.99333,0.99348,0.99362,0.99375,0.99388,0.99400,0.99410,0.99424,0.99436,0.99450,0.99464,0.99475,0.99484,0.99497,0.99507,0.99524,0.99540
+0.99553,0.99567,0.99578,0.99585,0.99599,0.99612,0.99624,0.99635,0.99644,0.99655,0.99666,0.99678,0.99688,0.99702,0.99715,0.99727,0.99738,0.99749,0.99761,0.99775
+0.99784,0.99794,0.99804,0.99818,0.99831,0.99843,0.99853,0.99864,0.99872,0.99882,0.99892,0.99900,0.99911,0.99918,0.99927,0.99941,0.99949,0.99957,0.99962,0.99971
+0.99976,0.99981,0.99984,0.99991,0.99993,0.99994,0.99997,0.99998,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2x1fract=0.00108,0.00227,0.00356,0.00532,0.00752,0.00994,0.01286,0.01659,0.02081,0.02538,0.03048,0.03620,0.04250,0.04919,0.05642,0.06419,0.07233,0.08098,0.09000
+0.09961,0.10909,0.11877,0.12884,0.13897,0.14942,0.15967,0.17030,0.18060,0.19139,0.20228,0.21314,0.22352,0.23397,0.24493,0.25559,0.26598,0.27663,0.28758,0.29814
+0.30903,0.32010,0.33090,0.34093,0.35145,0.36221,0.37273,0.38306,0.39375,0.40451,0.41477,0.42552,0.43603,0.44645,0.45683,0.46705,0.47717,0.48769,0.49812,0.50857
+0.51849,0.52898,0.53902,0.54910,0.55936,0.56946,0.57907,0.58881,0.59858,0.60840,0.61824,0.62760,0.63700,0.64647,0.65579,0.66515,0.67452,0.68357,0.69294,0.70169
+0.71035,0.71905,0.72786,0.73641,0.74510,0.75359,0.76179,0.76978,0.77764,0.78534,0.79333,0.80100,0.80871,0.81608,0.82351,0.83056,0.83755,0.84441,0.85098,0.85724
+0.86387,0.86980,0.87554,0.88093,0.88617,0.89099,0.89606,0.90053,0.90490,0.90895,0.91259,0.91599,0.91931,0.92230,0.92518,0.92787,0.93045,0.93297,0.93526,0.93747
+0.93946,0.94148,0.94334,0.94512,0.94692,0.94860,0.95033,0.95194,0.95337,0.95465,0.95603,0.95722,0.95848,0.95964,0.96088,0.96210,0.96320,0.96427,0.96530,0.96622
+0.96723,0.96822,0.96920,0.97010,0.97096,0.97186,0.97273,0.97353,0.97437,0.97517,0.97593,0.97660,0.97735,0.97797,0.97863,0.97922,0.97983,0.98049,0.98108,0.98163
+0.98216,0.98265,0.98312,0.98361,0.98401,0.98441,0.98480,0.98520,0.98555,0.98595,0.98634,0.98665,0.98699,0.98733,0.98773,0.98800,0.98828,0.98852,0.98877,0.98904
+0.98929,0.98955,0.98979,0.99004,0.99028,0.99050,0.99073,0.99093,0.99117,0.99139,0.99156,0.99172,0.99188,0.99202,0.99218,0.99235,0.99250,0.99267,0.99283,0.99295
+0.99310,0.99321,0.99336,0.99348,0.99363,0.99378,0.99392,0.99407,0.99424,0.99440,0.99455,0.99467,0.99477,0.99489,0.99502,0.99515,0.99524,0.99537,0.99548,0.99562
+0.99575,0.99585,0.99596,0.99604,0.99618,0.99627,0.99638,0.99649,0.99661,0.99669,0.99682,0.99693,0.99704,0.99715,0.99726,0.99734,0.99746,0.99759,0.99772,0.99781
+0.99790,0.99803,0.99816,0.99834,0.99844,0.99857,0.99866,0.99874,0.99881,0.99895,0.99904,0.99912,0.99921,0.99932,0.99942,0.99948,0.99955,0.99965,0.99971,0.99976
+0.99982,0.99983,0.99986,0.99990,0.99992,0.99995,0.99997,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2u2fract=0.00126,0.00244,0.00386,0.00555,0.00768,0.01014,0.01294,0.01637,0.02041,0.02484,0.02991,0.03537,0.04170,0.04818,0.05489,0.06199,0.06986,0.07778,0.08642
+0.09535,0.10466,0.11410,0.12388,0.13375,0.14404,0.15456,0.16511,0.17545,0.18630,0.19721,0.20818,0.21876,0.22943,0.24038,0.25143,0.26231,0.27312,0.28409,0.29525
+0.30609,0.31695,0.32774,0.33850,0.34958,0.36048,0.37134,0.38209,0.39279,0.40322,0.41353,0.42439,0.43519,0.44569,0.45660,0.46741,0.47772,0.48795,0.49834,0.50876
+0.51911,0.52944,0.53974,0.55018,0.56005,0.57007,0.58027,0.59034,0.60014,0.61001,0.61974,0.62973,0.63901,0.64864,0.65804,0.66767,0.67673,0.68597,0.69511,0.70409
+0.71308,0.72202,0.73055,0.73929,0.74772,0.75612,0.76435,0.77265,0.78063,0.78862,0.79643,0.80391,0.81148,0.81888,0.82598,0.83314,0.84017,0.84687,0.85349,0.85997
+0.86636,0.87211,0.87771,0.88312,0.88811,0.89286,0.89751,0.90212,0.90634,0.91014,0.91396,0.91744,0.92077,0.92376,0.92670,0.92936,0.93192,0.93421,0.93660,0.93867
+0.94075,0.94263,0.94439,0.94632,0.94815,0.94987,0.95151,0.95304,0.95437,0.95568,0.95721,0.95860,0.95979,0.96104,0.96220,0.96337,0.96448,0.96559,0.96662,0.96761
+0.96863,0.96959,0.97058,0.97154,0.97239,0.97318,0.97401,0.97488,0.97557,0.97628,0.97701,0.97766,0.97825,0.97887,0.97955,0.98013,0.98072,0.98117,0.98168,0.98222
+0.98267,0.98314,0.98361,0.98406,0.98452,0.98496,0.98532,0.98575,0.98607,0.98636,0.98677,0.98707,0.98741,0.98774,0.98803,0.98835,0.98859,0.98883,0.98907,0.98934
+0.98959,0.98975,0.98995,0.99014,0.99032,0.99052,0.99068,0.99082,0.99099,0.99116,0.99132,0.99146,0.99162,0.99176,0.99188,0.99202,0.99216,0.99231,0.99246,0.99262
+0.99274,0.99286,0.99299,0.99313,0.99329,0.99341,0.99356,0.99372,0.99384,0.99393,0.99409,0.99427,0.99436,0.99450,0.99462,0.99475,0.99487,0.99500,0.99512,0.99524
+0.99534,0.99551,0.99561,0.99570,0.99579,0.99588,0.99601,0.99616,0.99628,0.99638,0.99650,0.99664,0.99676,0.99689,0.99700,0.99712,0.99725,0.99735,0.99746,0.99762
+0.99772,0.99784,0.99796,0.99808,0.99819,0.99831,0.99840,0.99851,0.99861,0.99872,0.99881,0.99895,0.99906,0.99916,0.99924,0.99935,0.99944,0.99952,0.99957,0.99966
+0.99973,0.99979,0.99983,0.99986,0.99991,0.99993,0.99995,0.99996,0.99998,0.99998,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000
+pwc2u1fract=0.00106,0.00239,0.00373,0.00544,0.00738,0.00954,0.01230,0.01551,0.01934,0.02347,0.02813,0.03335,0.03906,0.04498,0.05132,0.05827,0.06588,0.07394,0.08235
+0.09080,0.09976,0.10927,0.11884,0.12834,0.13806,0.14824,0.15850,0.16913,0.17993,0.19062,0.20142,0.21197,0.22275,0.23360,0.24452,0.25539,0.26671,0.27745,0.28853
+0.29972,0.31068,0.32179,0.33235,0.34329,0.35412,0.36485,0.37574,0.38665,0.39749,0.40797,0.41844,0.42916,0.43944,0.45021,0.46090,0.47144,0.48163,0.49214,0.50248
+0.51306,0.52322,0.53324,0.54338,0.55333,0.56337,0.57327,0.58325,0.59348,0.60350,0.61342,0.62334,0.63284,0.64245,0.65206,0.66150,0.67109,0.68040,0.68956,0.69858
+0.70776,0.71664,0.72529,0.73418,0.74304,0.75147,0.76006,0.76847,0.77655,0.78480,0.79284,0.80082,0.80862,0.81628,0.82369,0.83068,0.83797,0.84498,0.85180,0.85825
+0.86462,0.87059,0.87620,0.88177,0.88706,0.89200,0.89693,0.90127,0.90561,0.90954,0.91330,0.91701,0.92044,0.92360,0.92667,0.92951,0.93214,0.93472,0.93697,0.93927
+0.94151,0.94354,0.94541,0.94724,0.94920,0.95094,0.95260,0.95408,0.95569,0.95723,0.95866,0.96000,0.96138,0.96265,0.96398,0.96527,0.96633,0.96734,0.96854,0.96943
+0.97043,0.97138,0.97222,0.97312,0.97389,0.97479,0.97550,0.97625,0.97704,0.97777,0.97840,0.97911,0.97976,0.98038,0.98099,0.98157,0.98207,0.98257,0.98306,0.98352
+0.98404,0.98445,0.98488,0.98525,0.98568,0.98600,0.98636,0.98667,0.98696,0.98724,0.98761,0.98786,0.98811,0.98835,0.98863,0.98888,0.98916,0.98943,0.98967,0.98985
+0.99011,0.99032,0.99054,0.99072,0.99094,0.99112,0.99129,0.99150,0.99166,0.99180,0.99196,0.99213,0.99227,0.99243,0.99258,0.99272,0.99288,0.99300,0.99313,0.99330
+0.99342,0.99358,0.99371,0.99382,0.99397,0.99409,0.99420,0.99431,0.99446,0.99459,0.99472,0.99483,0.99490,0.99499,0.99508,0.99525,0.99535,0.99543,0.99555,0.99564
+0.99575,0.99586,0.99597,0.99610,0.99618,0.99626,0.99636,0.99649,0.99661,0.99670,0.99685,0.99699,0.99706,0.99718,0.99729,0.99742,0.99749,0.99758,0.99768,0.99779
+0.99788,0.99797,0.99808,0.99819,0.99831,0.99845,0.99857,0.99867,0.99880,0.99894,0.99905,0.99914,0.99922,0.99931,0.99939,0.99947,0.99956,0.99963,0.99971,0.99976
+0.99981,0.99984,0.99989,0.99992,0.99993,0.99995,0.99996,0.99998,0.99999,0.99999,1.00000,1.00000,1.00000,1.00000,1.00000,1.00000
diff --git a/PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire.param b/PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire.param
new file mode 100644
index 0000000000000000000000000000000000000000..9424471eefebed7586fdbd0cd393e0fc95ee3697
--- /dev/null
+++ b/PARAM/SHMS/DC/CALIB/pdc_tzero_per_wire.param
@@ -0,0 +1,88 @@
+ptzero1u1=
+0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+0.000000, 0.000000, 1.795920, 5.815350, -3.864150, -5.927540, 10.719800, -4.813430, 0.404404, 0.755655, 0.000000, 1.565370, 4.950330, -0.345324, -5.542140, 2.861590
+1.534980, -15.681300, 1.979280, 4.854760, 6.446210, 1.620820, 0.177650, 0.680271, 1.611940, 5.395360, 2.935390, 1.323300, 5.197490, 4.067040, 0.772863, 1.704960
+2.751230, 6.300950, 0.858680, 4.487330, 3.288680, 2.332650, 4.070710, 1.355750, 3.087380, 2.726840, 3.151510, 2.523060, 1.251760, 4.044590, 1.242660, 1.512210
+3.171260, 3.743360, 4.626910, 5.624360, 6.038540, 7.064390, 3.798730, 4.800300, 5.590810, 8.440760, 7.197160, 3.502090, 5.330660, 9.031360, 6.141750, 5.212600
+10.965900, 2.301490, 8.010930, 7.743700, 3.590260, 6.029060, 0.816870, -5.213110, 9.752780, 8.307690, 9.460380, 8.567180, 0.000000, 5.231090, 11.354300, 7.508670
+6.368630, 9.673470, 8.767530, 13.277100, -16.695200, 7.085900, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero1u2=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+0.000000, 10.916700, -4.672130, 6.038300, 4.164760, 8.883000, 6.370700, 9.557240, -0.648253, 4.362870, -10.987600, 3.678900, 7.059010, -1.258060, 5.024760, 5.735800
+4.186680, -0.536697, 0.236342, 2.694360, 4.960730, -3.547860, 2.949800, 2.134110, 4.653480, 5.121060, 5.471440, 2.201530, 3.393430, 7.740120, 4.183370, 4.699110
+6.130200, 2.142410, 2.887710, 4.458210, 1.461180, 0.891988, 3.531650, 3.226970, 3.356920, 1.415850, 3.002660, 1.083940, -2.429840, 2.518900, 4.608790, 2.840310
+5.780790, 1.942860, 4.077160, 4.112970, 2.227040, 2.115580, 3.183260, 4.864210, 3.400000, 0.632734, 1.835060, 4.341910, 5.565070, 4.406240, 7.122810, 8.552850
+5.535050, -0.324697, 3.381260, 7.990940, 3.640930, 23.795600, 6.688140, 8.332550, 7.315810, 10.925900, 0.000000, 1.500810, -0.318182, 4.046240, 9.760080, 12.506000
+11.769200, 6.388520, 4.244090, 1.200000, 2.818180, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero1x1=
+-1.862060,-5.060360,0.890689,-2.123470,0.266049,-4.394440,-3.181590,-3.011560,-7.340200,-1.131910,-5.684140,-3.339910, -3.603510, -0.171227, 2.670460, -3.477110
+0.696540, 1.928030, -0.766734, 0.935069, -4.320620, -2.370120, -4.209710, 1.379730, -0.911690, -2.316800, -5.893290, -3.126300, -7.080260, 1.282180, 3.116260, 4.467810
+2.244710, 5.122060, 6.816590, 3.063140, 1.574480, 0.466924, 2.411390, 0.143337, 0.770216, -1.611270, -2.379990, -0.308662, 1.031620, 0.181693, 3.392230, 1.548930
+3.553960, 7.047760, 4.506460, 8.317220, 2.723510, 4.768800, 5.221840, 3.216500, 0.182255, 2.475740, -1.318110, -1.395740, 3.349560, 6.663600, 7.749050, 4.382410
+9.047220, 10.447800, 11.142700, 10.615600, 10.124500, 12.012400, 10.867500, 14.273300, 12.222600, 12.880300, 10.129000, 8.611050, 8.293280, 7.103690, -2.305470
+ptzero1x2=
+-0.388060,10.210500,5.598810,6.123810,7.651880,2.782440,-8.042550,2.420080,0.388554,7.726910,3.171390,7.548380, 6.562330, 4.760400, 4.175150, 5.784480
+4.376930, 3.342330, 4.798840, -1.665290, 1.520700, 0.544997, 3.660080, 1.212270, 2.039610, -0.397125, 2.737430, 4.216970, 3.810030, 6.409610, 4.638020, -1.012270
+0.753259, 2.973150, 1.977040, 0.638232, -1.982390, -2.790790, -3.577970, -1.763710, -4.006910, -2.834720, -0.205417, -1.636630, 0.708044, 0.485227, -4.125460, -0.077492
+3.829980, -0.006536, 5.149800, 0.875090, 3.189890, 2.302570, 0.715657, 0.682134, -3.278750, -2.829270, -2.334770, -4.668020, 0.100722, 0.163470, -0.583767, 5.641670
+3.717870, 6.252000, 5.077890, 4.494680, 8.895850, 8.389630, 5.788920, 4.952720, 6.317280, 4.454020, 2.793250, 1.912540, 0.923993, 0.485133, 0.006984
+ptzero1v1=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,16.000000,0.000000,0.000000, -3.248620, 10.544300, 5.723470, -0.167832
+5.791570, 0.000000, 0.000000, -16.601400, 7.211620, 6.408960, 3.399260, 1.468270, 5.394960, 0.526718, 5.528730, -1.830630, 4.259580, -1.791670, 7.464050, 2.892630
+1.419100, 3.926050, 4.166810, 5.864460, 0.595406, 1.371100, 5.573380, 3.296000, 7.125270, 6.036240, 5.291410, 6.153040, 5.315270, 8.171190, 7.264820, 8.961300
+9.878830, 8.970030, 9.517580, 7.025000, 8.266900, 9.315160, 7.651030, 8.559870, 11.303900, 7.863830, 11.701000, 9.156380, 9.357870, 7.235850, 10.026400, -2.578380
+-0.357369, -2.929150, -1.901050, -2.151240, -2.265530, -7.198300, -2.665640, -0.212098, -3.156100, 0.106613, 1.210510, 1.478900, -5.898540, 4.406570, -4.721420, 4.283780
+-0.070747, 0.353721, 3.512260, 4.885820, 4.807120, 5.441330, 3.471640, 3.662200, 4.331610, -7.154520, 2.599710, 1.593700, 3.987850, 5.787910, 19.733300, 14.638900
+0.000000, 3.464290, -19.447200, 5.882980, -17.459500, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero1v2=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,24.857100,0.000000,0.000000, 25.060400, 4.133520, 8.519300, 5.222520
+6.879550, 8.261270, 7.433530, 3.431880, 7.536800, -7.283120, 1.879330, 2.621920, 2.068820, 8.948500, 4.047470, 5.543960, 6.173630, 8.318030, 7.155910, 3.704420
+9.330260, 7.558700, 7.531610, 0.084241, 5.609340, 5.630570, 7.967230, 5.188840, 10.209800, 9.106830, 6.858900, 8.087110, 1.440150, 1.414830, 2.399680, -0.808321
+1.099900, 1.120240, 0.300221, -2.169230, 0.451327, -2.473590, -2.036820, 0.887898, 0.369413, -1.016780, -0.898206, -1.164890, -0.681405, -0.286733, -0.384938, -3.059400
+-5.289670, 0.488029, -0.363647, -0.928181, -1.304460, -2.630200, 0.118533, 0.318898, -2.213060, 0.853546, -2.025040, 2.121240, 1.674960, 1.830370, 2.004430, 4.969520
+2.716170, 4.110770, 7.479290, 5.380610, 5.901590, 3.801040, 2.820150, 5.148150, 7.095710, 7.548680, 4.854270, -21.165700, 0.000000, 7.825210, 6.105180, 11.006400
+0.380623, 13.549600, -6.625900, 7.572230, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero2v2=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, -11.555600, 4.608350, 0.000000
+-10.000000, 4.082760, 0.000000, 0.000000, -2.180610, -4.226240, 4.414830, -1.745280, 8.621950, 5.624680, -2.607140, -0.681955, 6.067340, 13.311900, 9.795680, 11.718100
+8.676360, 5.623300, 9.703400, 9.516520, 11.716700, 10.488800, 8.604710, 10.642600, 5.977520, 11.677700, 8.582270, 7.817510, 12.096200, 5.755470, 10.820500, 11.099900
+9.506290, 9.779980, 7.397800, 8.484320, 7.980850, 8.076540, 7.184750, 6.930630, 8.418590, 7.962490, 7.990790, 6.963160, -0.431749, 3.757360, 4.615140, 2.893580
+3.444480, -3.420450, -3.933450, -2.651720, -0.127254, -1.043080, -1.475670, -0.080271, 0.068876, 2.165830, 4.720000, 0.991301, 1.594030, 5.763560, 8.133160, 10.019800
+6.025830, -1.821310, 7.595050, 3.912210, 3.349220, 4.221970, 5.452880, 3.657390, 3.391830, 1.571480, 2.540660, 3.808400, 7.113780, 2.210830, 0.901170, 5.282630
+5.211540, 3.723870, 1.217340, 6.076170, 3.841830, 7.036590, 12.992400, 0.000000, 3.265860, 9.692310, 0.000000
+ptzero2v1=
+0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 5.092310, 5.335310, 0.000000
+-7.125980, -10.940700, 3.124150, -5.600000, -5.434780, 2.326510, -18.818200, -1.521200, -2.955410, 2.316300, -0.641013, -7.180860, -2.633960, 4.182940, 3.540350, 6.843010
+7.705500, 2.497010, 4.755030, 8.680260, 9.939430, 8.246580, 6.258310, 6.410950, 8.326710, 12.216700, 8.361320, 7.109610, 4.429420, 9.940720, 10.031400, 9.626190
+16.148300, 8.402900, 8.574210, 9.887430, 8.434920, 8.565290, 8.827220, 7.485750, 8.360080, 10.124800, 8.100660, 9.172740, 9.754290, 7.803890, 7.765130, 2.989080
+4.471970, 4.843990, 2.961210, 2.757320, 0.446784, 2.244700, 2.224380, 5.063170, -2.196180, 0.000000, 5.043370, 2.638480, 5.035890, -0.083561, 6.014590, -0.178800
+-2.936590, 0.924423, 5.063060, 1.800420, 0.567349, -1.334190, 0.000000, 2.203800, -0.084168, 3.704220, 10.890600, 3.668250, 2.581830, 2.658140, 0.882729, -0.658854
+4.596010, 2.404060, 1.996760, 11.972500, 5.221670, 5.335070, 9.104860, 7.442970, -14.638800, -2.467740, 0.000000
+ptzero2x2=
+-3.061820,1.242440,-0.920429,0.949141,-3.371390,1.538490,1.537160,2.680810,-0.375996,3.624970,4.023850,3.101700, 3.621450, 6.546410, -3.104770, -2.297460
+-4.208040, -0.680161, -0.759493, -3.256850, -3.475440, -1.010530, -1.495540, -5.828560, 0.005329, -1.934660, -0.802933, 2.697560, 2.595770, 2.262840, 3.847550, 6.508350
+7.420170, 7.293470, 4.544480, 6.006310, 1.299380, -1.178930, 0.399639, -2.844170, -0.636414, 2.689540, 0.000000, -0.005122, 3.258850, 3.209370, 2.692630, 6.696770
+8.405310, 4.999500, 6.351480, 5.621890, 4.321230, 7.012510, 5.699240, 2.569630, 6.354140, 4.117900, -2.852930, 0.848214, 3.756270, 5.198940, 1.263700, 7.994620
+7.224540, 6.740530, 8.552430, 7.867670, 8.216770, 9.636760, 8.177560, 5.522230, 9.502410, 13.189900, 12.033100, 12.005700, 12.146600, 7.825520, 12.772000
+ptzero2x1=
+-0.994652,0.323887,2.662040,-2.946220,0.944695,4.667010,2.647140,2.461640,4.957990,3.113680,4.142770,1.308310, 5.622420, 5.469640, 7.911730, 4.733910
+2.399680, 2.495830, 1.696250, -0.137557, -0.839917, 0.820595, -0.677687, 1.409470, 6.096500, 1.789550, 3.080510, 1.909060, 5.210970, 8.603190, 7.767040, 4.964880
+1.534830, 2.095010, 0.831891, 2.758970, 0.161976, -2.097360, -3.893230, -2.599900, 0.471164, -3.455090, -2.770680, -0.905358, -2.358650, -1.462630, -0.698122, -0.124938
+-0.176906, -0.640411, 0.314966, 3.389660, 0.198043, 1.051300, 0.663665, 0.172697, -5.500470, 1.035880, -1.542160, -6.413390, -2.720510, -1.530320, -3.358420, -1.622080
+5.754260, 7.172000, 7.128620, 7.212770, 9.011560, 12.249800, 7.627180, 8.218560, 10.479100, 14.471400, 13.159500, 14.039200, 12.556300, 14.254100, 10.879100
+ptzero2u2=
+0.000000,0.000000,0.000000,2.927810,1.513160,0.000000,0.082767,11.832700,0.289694,3.096540,10.310600,4.395130, -1.204390, 6.047720, 3.493290, 6.893580
+2.216220, 7.989400, 6.820680, 6.566040, 4.801940, 4.916770, -1.832630, 3.958420, 3.803680, 6.329900, 7.061990, 4.710200, 4.066710, 4.554470, 3.114060, 11.153400
+4.604940, 2.830040, 4.262040, 1.597520, 5.888230, 2.311250, 2.476890, 5.373290, 4.946830, 5.122540, 4.026250, 8.359670, -0.690787, 2.955530, 1.806160, -0.799365
+2.603230, -0.796656, 0.954418, -0.788097, -5.090030, -1.691130, 0.121203, -0.729663, -0.713128, -1.170500, 0.482169, -1.926040, 2.590880, 2.291740, 2.106530, 0.515922
+1.563030, -0.969506, 1.715190, 0.730038, 2.797450, 0.343180, 2.983660, 1.569480, 3.351930, 4.273950, 2.693030, 0.502254, 5.028720, 2.408280, 4.831420, 2.509090
+4.811720, 4.595160, 4.270700, 2.027170, 1.296140, 4.402360, 3.805610, 5.697640, 4.209350, 4.205540, 6.840550, 8.688300, 10.346200, 16.544000, 16.701800, 15.950600
+19.425700, -2.883330, 5.303570, 23.328300, -11.923100, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
+ptzero2u1=
+0.000000,0.000000,0.000000,0.000000,1.981130,6.887300,9.154860,-16.603200,-16.215000,-1.705760,8.661480,8.515390, 11.496200, 11.843500, 0.198014, -4.724240
+2.248020, -1.088080, 1.330110, -1.029570, 2.240130, 5.972840, -0.982127, 0.718305, -0.225920, -2.431140, -1.316000, 0.185943, 0.340701, 4.595960, 1.248220, 3.011960
+5.469650, 4.392520, -2.113370, 5.228590, 6.901420, 1.807750, 2.789800, 2.019910, 4.260250, 4.067850, 5.996700, 4.556910, 9.895290, 7.413430, 10.164000, 7.858780
+6.970080, 7.429900, 7.051170, 7.430280, 8.005980, 7.404120, 4.407060, 7.474910, 8.819040, 6.623950, 10.455900, 10.604900, 11.910200, 10.554000, 8.699290, -1.134720
+1.416000, 0.929777, 1.344440, -1.600020, -0.365316, 4.031480, 2.137260, 2.109900, 3.030740, 4.618980, 3.938440, 5.779070, 6.430440, 7.514210, 5.483380, 1.555490
+5.777830, 0.909257, 0.741250, 4.815550, 4.298590, 3.555880, 4.731660, 6.200930, -0.525888, 0.160183, -28.817600, 6.296690, 6.827100, 8.975990, 10.564200, 8.914800
+19.375800, 17.450700, -14.710500, 23.005800, 12.757800, 23.291100, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
diff --git a/PARAM/SHMS/DC/GEOM/pdc_geom.param b/PARAM/SHMS/DC/GEOM/pdc_geom.param
index 11c6d510f0aa7da486c278eed0efa17ec15a9195..77f96caffab40610cec3e082ec6c46cb37f07285 100644
--- a/PARAM/SHMS/DC/GEOM/pdc_geom.param
+++ b/PARAM/SHMS/DC/GEOM/pdc_geom.param
@@ -125,92 +125,3 @@ pdc_gamma_angle = pdc_1_yaw*raddeg
                   pdc_2_yaw*raddeg
                   pdc_2_yaw*raddeg
 
-; t0 per wire corrections
-ptzero1u1=
-0,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-0.000000, 7.083270, 1.500000, 3.196340, 0.000000, 3.561760, -24.337200, -8.570420, -1.706110, -12.830400, 3.509240, 2.827790, 2.705790, 1.986040, -2.729090, -8.382810
-10.033600, 5.758360, 4.271680, -1.376360, 3.403570, 1.525080, -4.735730, 4.778730, 1.605180, 3.218400, 3.747450, 3.344810, 5.865930, 2.428980, 3.580800, 3.960000
-3.567320, 3.344210, -0.238682, 2.138960, 2.884340, 0.329329, 4.422440, -0.012958, 1.542510, 1.118420, 0.149789, 3.870530, 1.620790, 2.415800, 1.873100, 0.265011
-4.326380, 4.456440, 2.468400, 1.913820, 0.296422, 4.952560, 3.233340, 0.882905, -0.530070, 6.953640, 3.794640, 7.392780, 4.243260, 0.939313, 5.928960, -12.427700
-4.311480, 3.432400, 4.670570, 11.335200, 4.023700, 6.242110, -7.866480, 9.282300, 10.423900, 0.374937, -6.911760, -4.365030, 7.684930, 10.387500, 8.083480, 14.663100
-6.836990, 9.277780, 0.000000, -3.822580, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-ptzero1u2=
-0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-0.000000, 0.000000, 7.535710, 9.321600, 8.060740, 6.649400, -3.202800, 2.829450, 10.002000, 0.000000, 0.833333, -0.898352, -0.347926, 5.752130, -4.623180, 8.819900
-3.458390, 3.533490, 1.613840, 1.636490, 3.181650, 0.000000, 1.717210, 2.164580, 3.786680, 4.686170, 4.418830, -1.104730, 5.757000, 5.529500, 5.859070, 1.480030
-1.480020, 4.959790, 2.227600, 1.741030, 1.069710, 4.196220, 0.786994, 2.641580, 2.040250, 1.705450, 2.453350, 1.751600, 3.339380, 2.319130, 1.555940, 5.307070
-2.871200, 3.374920, 4.473150, 1.622070, 2.824360, 1.024830, 6.207940, 4.924850, 3.738000, 4.179560, 2.579510, 4.485400, 8.304240, 2.384880, 4.890470, 5.778160
--4.047530, 8.533050, 4.377990, 1.488140, 6.306490, 5.694780, 3.848290, 8.252860, 5.011630, 6.312590, 3.546400, 0.000000, -16.925500, 4.656730, 2.780700, 2.131160
-11.202300, 2.236260, 10.104000, 0.000000, 1.975000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-ptzero1x1=
--6.521600,-0.121034,1.442960,1.413790,-0.833490,-4.274030,-4.368220,-3.606530,-29.294900,-8.191560,-4.596630,-1.769630, -4.349570, -1.848970, -1.846170, 0.250345
--3.595190, -1.840290, -0.291207, -1.155760, -2.196860, -0.072281, -0.852707, -4.889880, -3.904150, -4.773820, -0.550445, -1.593940, -0.780432, -2.233060, 0.173444, 9.064500
-5.605870, 2.849670, 3.108510, 6.376590, 0.103299, 0.786836, -1.005460, -1.237070, 0.355588, -2.082220, 2.827850, -1.247850, -2.540830, 1.013970, 2.433340, 2.718400
-5.578880, 4.664560, 5.660690, 2.579650, 2.435660, 3.493600, 1.923330, 3.075040, 2.847180, 0.959091, 5.698580, 1.538380, 1.594660, 1.525710, 7.032030, 4.817720
-7.555350, 11.074900, 9.560880, 10.350900, 13.885100, 7.044440, 12.924300, 7.013180, 15.535200, 14.344300, 6.463660, 7.771640, 7.586360, 9.296230, 6.693190
-ptzero1x2=
-5.906180,-0.332492,9.168910,6.807510,-0.185402,9.003890,0.000000,0.144675,1.627240,2.690630,-0.842185,1.651300, 3.570570, 0.646789, 5.408900, 5.593600
--4.322920, 3.657480, -0.821604, -0.138379, -1.522000, -2.044930, 0.532114, 3.539900, -0.061412, 0.981311, 3.285330, 5.088900, 3.499300, 7.003920, 3.629460, -2.923940
-2.813070, -0.702863, -0.054407, -1.387600, -1.989450, -5.356700, -3.276420, -5.193500, -6.247750, -2.969430, -3.587050, -3.986650, -0.119702, -0.332043, -2.942340, 0.562886
-1.541890, 0.627844, 1.600390, 1.253580, -2.130880, 0.166592, -0.670039, -2.131260, -3.865680, -2.787630, 0.727565, -1.344390, -2.544760, -2.303480, 1.484300, 3.726310
-5.489340, 1.552390, 3.080870, 3.764110, 5.884040, 5.639260, 6.860760, 4.372220, 7.192590, 3.140370, -3.637860, -0.352032, 1.739290, -0.071104, 3.614170
-ptzero1v1=
-0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,-29.500000,-7.890620,5.753660, 0.000000, 6.830580, 0.000000, 1.287920
-5.010040, 4.049570, 2.571940, -0.561224, 2.495750, -6.700000, 0.660714, -0.815603, 2.004960, 1.303820, -7.488840, 1.980090, 8.251630, 1.607650, 2.504300, 2.892320
-3.908130, 3.745230, -7.478610, 4.575180, 0.598338, 5.071310, 4.443650, 4.252920, 6.806040, 3.022230, 3.723120, 4.521770, 6.154960, 7.392040, 6.486770, 9.416000
-11.401300, 7.400690, 5.270430, 7.688990, 8.471760, 5.690930, 6.304150, 7.057790, 9.197790, 9.544010, 9.193930, 7.615600, 7.929700, 9.963370, 9.212690, -0.755019
--1.784640, -2.130510, -4.898410, -4.127930, -0.143322, -1.614360, -5.638860, -3.720370, -2.293370, 3.633880, -0.566443, -1.491680, -4.383710, -13.729200, 1.373170, 1.632010
-7.334260, 1.944010, 0.512396, 3.230880, -9.472300, -4.360360, 1.561590, 1.331830, 3.602530, 5.307060, 9.582110, 7.177900, -2.662160, 0.668172, 11.093700, 3.027780
-14.435900, -4.045620, 1.565690, 4.528140, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-ptzero1v2=
-0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.050900,1.615940,12.149000, 3.271640, -8.738100, 4.217390, 6.807380
-2.932100, -7.674600, -17.724200, 0.472881, 7.485760, 0.000000, 3.561570, -1.520240, 7.809850, 0.000000, 2.847030, 6.346110, 3.541570, 0.488764, 1.791330, 3.583330
-7.470060, 6.501780, 3.720960, 7.344850, 3.700150, 5.028450, 5.128490, 9.522200, 7.791040, 6.941560, 9.325330, 8.754680, -2.974200, 0.047648, 2.261440, -0.456651
--2.948300, -3.315180, -1.783690, -4.406540, -1.132730, 0.003907, -1.321890, -1.499070, -3.205540, -3.580160, -1.812100, 0.206483, -2.135330, -1.001500, -2.915130, -2.241400
--0.223913, -5.434280, -2.375080, -2.212350, -5.039990, -0.807800, -1.967830, -0.647033, -1.043810, -1.452510, 0.689638, 2.433080, 4.042300, 3.787080, 4.543930, 6.023370
-5.410940, 4.777100, 5.919980, 5.157950, 3.509960, 11.620700, 7.336780, 4.260870, 10.346600, 5.349470, 9.390890, 7.806610, 0.000000, 7.397440, 6.552940, 7.316090
-0.000000, 0.000000, -16.823500, 8.949760, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-ptzero2v2=
-0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 4.132810, 4.808940, 0.000000
-0.000000, -0.198398, 3.891960, 1.250070, 8.499480, -5.826530, -6.566040, -6.621770, -1.094770, 1.302620, -0.142840, -0.726300, 6.926110, 13.788600, 11.633100, 12.748400
-12.625000, 8.641500, 7.740850, 8.396210, 9.424270, 9.251910, 5.396770, 8.321400, 5.686450, 10.866800, 11.457000, 6.697420, 6.154000, 10.037300, 10.092400, 10.486800
-9.955560, 7.776580, 9.123180, 7.711060, 7.657930, 6.218420, 6.595720, 8.531170, 6.645670, 5.049010, 6.137710, 5.576370, 1.977770, 1.041720, 4.478610, -3.012900
-1.485230, 2.046620, -0.994388, 0.462381, 0.862240, 0.960237, 0.131091, 0.593038, -2.953540, -0.143375, -0.678630, -3.322590, 5.016710, 6.228050, 1.927380, 6.236230
-4.299950, 4.352510, 6.619880, 4.521860, 4.056490, 4.782980, 4.236090, 1.817000, 2.786270, -1.286360, 1.808070, 4.799520, 0.101200, 6.963830, 5.878240, 4.047890
-2.667960, -4.663420, -7.803750, -0.195599, 5.111510, 1.059970, -12.565000, 3.689770, 5.707410, 13.883200, 0.000000
-ptzero2v1=
-0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, 0.000000, 5.042420, 0.000000, 0.000000
-29.545500, -4.912320, -4.530960, 0.000000, -1.182630, -5.462000, 1.897090, -4.993040, 1.096480, -8.615700, 0.682969, 3.485310, -2.552660, 1.377860, 1.699790, 4.977510
-13.430000, 6.387790, 0.623513, 7.993940, 6.646530, 4.871360, 1.021270, 7.352540, 8.304120, 7.258370, 3.312140, 10.112300, 3.598000, 7.608370, 7.843750, 8.473720
-14.112000, 10.726500, 6.966270, 8.564790, 9.547680, 8.571220, 6.696620, 7.100250, 9.185470, 8.285940, 8.498250, 8.512940, 5.834030, 8.784960, 6.601370, 0.644711
-1.581800, 1.883520, 2.792540, 1.715550, 2.363240, 3.932260, 1.629660, -1.532930, 0.838165, 0.000000, -4.916050, 3.425160, 5.356420, 8.636910, 6.874850, 1.094760
-3.012880, 1.093660, 0.991268, 3.470990, -1.737020, -0.804999, 0.711092, 0.916122, -3.983000, 2.961770, 0.224279, 2.821990, 3.551800, 3.184040, -0.837501, 4.909020
-3.788300, 2.571130, 0.884566, 6.181030, 6.944970, 7.720460, 1.654150, 2.159860, 9.706350, 4.506990, 0.000000
-ptzero2x2=
--0.688403,-2.474330,0.769359,0.273393,-3.842950,3.175620,2.647310,-2.330650,0.656513,-0.506003,-0.220394,-1.567530, -1.468280, 0.918318, -3.627020, -2.580340
--4.274600, -18.143700, -1.027530, -2.417240, -2.090370, -3.299980, -2.031010, -5.942300, -2.935110, -1.352990, -3.078050, 0.853961, 3.438860, 2.912380, 0.120920, -2.938710
-2.094830, 1.959370, 6.812320, 3.542000, 1.125210, -0.527240, -6.505800, -0.484739, -0.097294, 2.501040, 0.000000, 0.014243, 2.520770, -1.435190, 3.652130, 6.470530
-4.623570, 4.937470, 8.808690, 4.772290, 2.097320, 7.118320, 4.222900, 5.059260, 4.410820, 3.116630, 3.090960, 1.783830, -3.108290, 2.676440, 2.062440, 5.403880
-7.100890, 6.787900, 7.769230, 7.382360, 7.235990, 5.241530, 5.821100, 8.231230, 11.055800, 10.686900, 10.951500, 13.977700, 8.061370, 9.169630, 15.333700
-ptzero2x1=
-0.056975,0.069833,3.177410,0.446331,-6.093550,0.493855,-1.183490,3.034490,3.635620,5.447050,5.643040,5.456530, 6.315580, 3.290220, 3.068700, 2.075990
--2.612120, -0.812043, -3.406500, 0.763675, 0.123963, 1.135700, 2.672020, 2.229820, 4.139920, 1.161810, 3.092970, 1.061640, 6.146520, 6.705170, 7.493590, 4.013010
-1.976340, -0.113871, 4.605260, 4.818400, -0.467384, -2.731650, -0.819203, -3.927220, -1.644640, -0.949748, -2.850440, -1.235930, -1.780750, -0.751777, 0.600747, -0.657651
-0.380508, -0.989881, 1.262680, -2.012730, 0.251684, 1.484010, 0.283191, -2.339610, 0.143582, 0.459049, -3.547790, -3.961660, -2.041490, -3.242060, -1.978250, -4.008020
-5.812470, 7.906330, 6.640510, 5.752360, 7.395130, 9.726330, 10.952000, 6.581600, 9.910840, 11.698400, 13.083800, 13.023800, 9.398810, 12.785100, 14.099200
-ptzero2u2=
-0.000000,0.000000,0.000000,-4.488440,-2.016200,0.000000,-6.487150,5.128820,0.605660,11.008900,8.932510,7.171740, 10.914000, 6.126920, 8.738440, -5.320380
-3.661200, 6.475160, 4.591340, -2.453760, 4.066910, 0.595510, -0.208056, 1.343280, 4.689270, 0.500929, 2.222380, 3.394510, 2.079570, 3.185600, 4.138510, 7.344920
-2.197310, -0.685220, 3.837350, 3.713830, 2.646850, 0.276739, 4.579780, 4.598380, 2.839910, 6.592300, 2.704180, 3.663160, -2.414540, 1.566220, -0.191728, 1.645140
--0.847295, -3.907550, -1.091480, -1.075430, -2.551730, -2.717220, 0.551373, -3.144570, 1.852050, -1.353860, -2.333420, -0.749933, 0.441922, 1.057190, 0.549223, -0.152812
-2.848490, 1.831690, -0.956818, 0.060605, 2.004840, -0.389808, 0.157084, 2.067180, 2.126280, 3.535460, -0.135123, 1.402940, 0.899807, 2.573960, 2.722300, 5.634890
-5.383450, 0.793369, 1.112780, 1.130280, 5.118410, 4.058690, 6.784370, 5.664220, 6.246080, 2.098320, 7.331310, 4.352670, 7.357850, 16.684500, 13.898900, 21.620000
-0.000000, 6.000000, -7.760870, -15.696400, 10.256400, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
-ptzero2u1=
-0.000000,0.000000,0.000000,0.000000,-10.600000,9.200640,0.000000,6.923360,8.522830,5.105380,9.757430,2.805120, 2.245760, 8.876260, 4.450310, -10.592800
--0.561177, -1.595340, 1.682060, 1.803670, -0.651280, -4.817870, -0.932803, 3.234450, 0.940599, -0.711242, -0.475330, 0.628195, -5.375990, 0.633014, -1.563330, 3.121040
-2.805200, 4.001580, 2.877790, 3.578760, -0.898948, -3.060420, 2.324590, 2.977610, 6.276330, 5.788380, 7.049510, 9.659980, 4.958320, 7.491820, 7.052140, 6.202840
-8.025290, 8.359520, 5.533810, 9.440830, 7.172200, 7.869600, 6.970210, 8.876350, 7.855080, 7.238380, 8.958600, 3.524920, 9.025910, 10.439000, 9.563340, 1.984250
--0.605358, -2.121810, -2.865110, 2.898040, 1.940570, 1.402800, 2.932110, 0.146516, 2.824990, 5.332050, 2.056730, 5.856240, 3.462260, 3.456100, 3.258370, 1.081600
-3.582360, 3.211900, 3.349700, 3.525440, -1.618850, 1.487920, 1.197950, -0.328185, 4.216600, 6.652610, 9.629610, 10.846200, 2.199420, -7.391230, 5.319410, 18.981100
-13.786500, 10.197500, 18.342100, -26.666700, -7.045250, -20.875000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000
\ No newline at end of file
diff --git a/PARAM/SHMS/HODO/CALIB/phodo_calib.param b/PARAM/SHMS/HODO/CALIB/phodo_calib.param
index fee9af2f3219c9fdff956044d95fbee50f249b38..f33b29b69144450710027da915fe4e01a92129b8 100644
--- a/PARAM/SHMS/HODO/CALIB/phodo_calib.param
+++ b/PARAM/SHMS/HODO/CALIB/phodo_calib.param
@@ -1,5 +1,3 @@
-pdumptof = 1
-pdumptof_filename = "CALIBRATION/hodo_calib/pfort.37"
 
 phodo_pos_invadc_offset =   -5.0000,   -5.0000,  0.000,   0.000
 			    -5.0000,   -2.0000,  0.000,   0.000
diff --git a/PARAM/SHMS/HODO/CALIB/ptofcalib.param b/PARAM/SHMS/HODO/CALIB/ptofcalib.param
new file mode 100644
index 0000000000000000000000000000000000000000..75fd9e0072242811e60e16251f87ddb53e5a83fd
--- /dev/null
+++ b/PARAM/SHMS/HODO/CALIB/ptofcalib.param
@@ -0,0 +1,3 @@
+; set pdumptof =1 to write out the calibration file
+pdumptof = 1
+pdumptof_filename = "CALIBRATION/hodo_calib/pfort.37"
diff --git a/PARAM/TRIG/thms.param b/PARAM/TRIG/thms.param
index 715959a507f0ea3eecc0beca3b8d18a40103c788..5f86e65d463a51f290af0c755fefaa5972345404 100644
--- a/PARAM/TRIG/thms.param
+++ b/PARAM/TRIG/thms.param
@@ -1,10 +1,10 @@
-t_hms_numAdc = 8
+t_hms_numAdc = 12
 t_hms_numTdc = 21
 t_hms_tdcoffset=-300.
 t_hms_tdcchanperns=0.1
 
-; bar num:                1     2     3     4     5      6     7       8
-t_hms_adcNames = "hASUM hBSUM hCSUM hDSUM hPSHWR hSHWR hAERSUM hCERSUM"
+; bar num:        1     2     3     4     5      6     7       8       9     10    11    12
+t_hms_adcNames = "hASUM hBSUM hCSUM hDSUM hPSHWR hSHWR hAERSUM hCERSUM hFRXA hFRYA hFRXB hFRYB"
 
 ; bar num:              1   2   3   4   5   6   7   8     9     10    11    12       13       14    15      16      17    18      19     20      21
 t_hms_tdcNames = "h1X h1Y h2X h2Y h1T h2T hT1 hASUM hBSUM hCSUM hDSUM hPSHWRLO hPSHWRHI hSHWR hAERSUM hCERSUM hT2 hDCREF1 hDCREF2 hDCREF3 hDCREF4"
diff --git a/PARAM/TRIG/thms_raster.param b/PARAM/TRIG/thms_raster.param
index 7888eccff06df22e596337ec2df41ae8ef9644cf..2cdf405c70b02d8eb8061be95b2fa81779893ca3 100644
--- a/PARAM/TRIG/thms_raster.param
+++ b/PARAM/TRIG/thms_raster.param
@@ -1,7 +1,7 @@
 t_hms_numAdc = 4
 t_hms_numTdc = 1
 
-; bar num:                1     2     3     4     5      6     7       8
+; bar num:        1     2     3     4  
 t_hms_adcNames = "hFRXA hFRYA hFRXB hFRYB"
 t_hms_tdcNames = "hFRXA"
 
diff --git a/SCRIPTS/HMS/replay_hms_report.C b/SCRIPTS/HMS/PRODUCTION/replay_production_hms.C
similarity index 61%
rename from SCRIPTS/HMS/replay_hms_report.C
rename to SCRIPTS/HMS/PRODUCTION/replay_production_hms.C
index 659d060eb76504bd2f38cadac487168541a5d086..cb5d01d0fe3920890d5f21d0b1f2adf6cb556d0b 100644
--- a/SCRIPTS/HMS/replay_hms_report.C
+++ b/SCRIPTS/HMS/PRODUCTION/replay_production_hms.C
@@ -1,4 +1,4 @@
-void replay_hms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
+void replay_production_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
 
   // Get RunNumber and MaxEvent if not provided.
   if(RunNumber == 0) {
@@ -17,30 +17,24 @@ void replay_hms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
 
   // Create file name patterns.
   const char* RunFileNamePattern = "raw/hms_all_%05d.dat";
-  const char* ROOTFileNamePattern = "ROOTfiles/hms_replay_%d.root";
+  const char* ROOTFileNamePattern = "ROOTfiles/hms_replay_production_%d_%d.root";
+
+  //Load Global parameters
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
-
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
-
   // g_ctp_parm_filename and g_decode_map_filename should now be defined.
   gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber);
   gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
-
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
   // Load params for HMS trigger configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
-  // Load params for HODO tof calibration. 
-  // gHcParms->Load("PARAM/HMS/HODO/htofcal.param");
 
-  // Load the Hall C style detector map
+  // Load the Hall C detector map
   gHcDetectorMap = new THcDetectorMap();
-  if ( RunNumber > 243) {
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hms_stack.map");
-  } else {
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map");
-  }
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/STACK/hms_stack.map");
 
   // Add trigger apparatus
   THaApparatus* TRG = new THcTrigApp("T", "TRG");
@@ -61,6 +55,9 @@ void replay_hms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // Add Cherenkov to HMS apparatus
   THcCherenkov* cer = new THcCherenkov("cer", "Heavy Gas Cherenkov");
   HMS->AddDetector(cer);
+  // Add Aerogel Cherenkov to HMS apparatus
+  //THcAerogel* aero = new THcAerogel("aero", "Aerogel");
+  //HMS->AddDetector(aero);
   // Add calorimeter to HMS apparatus
   THcShower* cal = new THcShower("cal", "Calorimeter");
   HMS->AddDetector(cal);
@@ -68,12 +65,25 @@ void replay_hms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // Include golden track information
   THaGoldenTrack* gtr = new THaGoldenTrack("H.gtr", "HMS Golden Track", "H");
   gHaPhysics->Add(gtr);
+  // Add Ideal Beam Apparatus
+  THaApparatus* beam = new THaIdealBeam("IB", "Ideal Beamline");
+  gHaApps->Add(beam);
+  // Add Physics Module to calculate primary (scattered beam - usually electron) kinematics
+  THcPrimaryKine* hkin = new THcPrimaryKine("H.kin", "HMS single arm e- kinematics", "H", "IB");
+  gHaPhysics->Add(hkin);
 
   // Add handler for prestart event 125.
-  if ( RunNumber > 243) {
   THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125");
   gHaEvtHandlers->Add(ev125);
-  }
+  // Add handler for EPICS events
+  THaEpicsEvtHandler *hcepics = new THaEpicsEvtHandler("epics", "HC EPICS event type 180");
+  gHaEvtHandlers->Add(hcepics);
+  // Add handler for scaler events
+  THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("H", "Hall C scaler event type 1");  
+  hscaler->AddEvtType(1);
+  hscaler->SetUseFirstEvent(kTRUE);
+  gHaEvtHandlers->Add(hscaler);
+
   // 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
@@ -92,6 +102,9 @@ void replay_hms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
   sprintf(RunFileName, RunFileNamePattern, RunNumber);
   THaRun* run = new THaRun(RunFileName);
 
+  // Set to read in Hall C run database parameters
+  run->SetRunParamClass("THcRunParameters");
+  
   // Eventually need to learn to skip over, or properly analyze
   // the pedestal events
   run->SetEventRange(1, MaxEvent);    // Physics Event number, does not
@@ -101,21 +114,27 @@ void replay_hms_report(Int_t RunNumber=0, Int_t MaxEvent=0) {
   run->Print();
 
   // Define the analysis parameters
-  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber);
+  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber, MaxEvent);
   analyzer->SetCountMode(2);    // 0 = counter is # of physics triggers
                                 // 1 = counter is # of all decode reads
                                 // 2 = counter is event number
  analyzer->SetEvent(event);
+ // Set EPICS event type
+ analyzer->SetEpicsEvtType(180);
+ // Define crate map
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
+ // Define output ROOT file
  analyzer->SetOutFile(ROOTFileName.Data());
- analyzer->SetOdefFile("DEF-files/HMS/GEN/hstackana_report.def");
- analyzer->SetCutFile("DEF-files/HMS/GEN/hstackana_report_cuts.def");    // optional
-
- // File to record cuts accounting information
-  analyzer->SetSummaryFile(Form("REPORT_OUTPUT/HMS/summary_%05d.report", RunNumber));    // optional
+ // Define output DEF-file 
+ analyzer->SetOdefFile("DEF-files/HMS/PRODUCTION/hstackana_production.def");
+ // Define cuts file
+ analyzer->SetCutFile("DEF-files/HMS/PRODUCTION/hstackana_production_cuts.def");    // optional
+ // File to record cuts accounting information for cuts
+ analyzer->SetSummaryFile(Form("REPORT_OUTPUT/HMS/PRODUCTION/summary_production_%d_%d.report", RunNumber, MaxEvent));    // optional
+ // Start the actual analysis.
+ analyzer->Process(run);
+ // Create report file from template.
+ analyzer->PrintReport("TEMPLATES/HMS/PRODUCTION/hstackana_production.template",
+		       Form("REPORT_OUTPUT/HMS/PRODUCTION/replay_hms_production_%d_%d.report", RunNumber, MaxEvent));
 
-  // Start the actual analysis.
-  analyzer->Process(run);
-  // Create report file from template.
-  analyzer->PrintReport("TEMPLATES/hstackana.template",Form("REPORT_OUTPUT/HMS/replay_hms_%05d.report", RunNumber));
 }
diff --git a/SCRIPTS/HMS/replay_hms_raster_simple.C b/SCRIPTS/HMS/RASTER/replay_hms_raster_simple.C
similarity index 80%
rename from SCRIPTS/HMS/replay_hms_raster_simple.C
rename to SCRIPTS/HMS/RASTER/replay_hms_raster_simple.C
index 36843a1248515653c6fb62088b827d7b6e909ca8..f23116dac1bbc244b4ee4758a76f7e0dbb3217b9 100644
--- a/SCRIPTS/HMS/replay_hms_raster_simple.C
+++ b/SCRIPTS/HMS/RASTER/replay_hms_raster_simple.C
@@ -17,11 +17,12 @@ void replay_hms_raster_simple(Int_t RunNumber=0, Int_t MaxEvent=0) {
 
   // Create file name patterns.
   const char* RunFileNamePattern = "raw/hms_all_%05d.dat";
-  const char* ROOTFileNamePattern = "ROOTfiles/hms_raster_simple_%d.root";
+  const char* ROOTFileNamePattern = "ROOTfiles/hms_raster_simple_%d_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
+  //Load global parameters
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
 
@@ -34,14 +35,8 @@ void replay_hms_raster_simple(Int_t RunNumber=0, Int_t MaxEvent=0) {
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hraster_simple.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/RASTER/hraster_simple.map");
   
-  // Set up the equipment to be analyzed.
-  //THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
-  //gHaApps->Add(HMS);
-  // Add hodoscope to HMS apparatus
-  //THcHodoscope* hod = new THcHodoscope("hod", "Hodoscope");
-  //HMS->AddDetector(hod);
 
   // Add trigger apparatus
   THaApparatus* TRG = new THcTrigApp("T", "TRG");
@@ -77,24 +72,20 @@ void replay_hms_raster_simple(Int_t RunNumber=0, Int_t MaxEvent=0) {
   run->Print();
 
   // Define the analysis parameters
-  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber);
+  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber, MaxEvent);
   analyzer->SetCountMode(2);    // 0 = counter is # of physics triggers
                                 // 1 = counter is # of all decode reads
                                 // 2 = counter is event number
  analyzer->SetEvent(event);
+ // Define crate map
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
+ // Define output ROOT file
  analyzer->SetOutFile(ROOTFileName.Data());
+ // Define DEF-file
  analyzer->SetOdefFile("DEF-files/HMS/RASTER/hms_raster_simple.def");
+ // Define cuts file
  analyzer->SetCutFile("DEF-files/HMS/RASTER/hms_raster_simple_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/HMS/replay_hms_scalers.C b/SCRIPTS/HMS/SCALERS/replay_hms_scalers.C
similarity index 61%
rename from SCRIPTS/HMS/replay_hms_scalers.C
rename to SCRIPTS/HMS/SCALERS/replay_hms_scalers.C
index e4da9c4c2a480d390fd263b9aa9e0b694a7bddae..9d479b762215871a94bb480587ebd6ea62632f6c 100644
--- a/SCRIPTS/HMS/replay_hms_scalers.C
+++ b/SCRIPTS/HMS/SCALERS/replay_hms_scalers.C
@@ -17,37 +17,41 @@ void replay_hms_scalers(Int_t RunNumber=0, Int_t MaxEvent=0) {
 
   // Create file name patterns.
   const char* RunFileNamePattern = "raw/hms_all_%05d.dat";
-  const char* ROOTFileNamePattern = "ROOTfiles/hms_replay_scalers_%d.root";
+  const char* ROOTFileNamePattern = "ROOTfiles/hms_replay_scalers_%d_%d.root";
+  
+  // Load global parameters
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
-
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
-
   // g_ctp_parm_filename and g_decode_map_filename should now be defined.
   gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber);
   gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
-
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
   // Load params for HMS trigger configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
-  // Load params for HODO tof calibration. 
-  // gHcParms->Load("PARAM/HMS/HODO/htofcal.param");
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  if ( RunNumber > 243) {
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hms_stack.map");
-  } else {
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hms_stack_spring17_run_00001_00243.map");
-  }
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/STACK/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);
 
-  gHaEvtHandlers->Add (new THaEpicsEvtHandler("epics","HC EPICS event type 180"));
-  THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("HS","Hall C scaler event type 1");
+  // Add handler for EPICS events
+  THaEpicsEvtHandler *hcepics = new THaEpicsEvtHandler("epics", "HC EPICS event type 180");
+  gHaEvtHandlers->Add(hcepics);
+  // Add handler for scaler events
+  THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("H","Hall C scaler event type 1");
   hscaler->AddEvtType(1);
   hscaler->SetUseFirstEvent(kTRUE);
-  // hscaler->SetDebugFile("REPORT_OUTPUT/hms_scaler_debug.txt");
   gHaEvtHandlers->Add(hscaler);
+
   // 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
@@ -75,23 +79,28 @@ void replay_hms_scalers(Int_t RunNumber=0, Int_t MaxEvent=0) {
   run->Print();
 
   // Define the analysis parameters
-  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber);
+  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber, MaxEvent);
   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->SetEvent(event);
+ 
+  // Set EPICS event type
   analyzer->SetEpicsEvtType(180);
- analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
- analyzer->SetOutFile(ROOTFileName.Data());
-  analyzer->SetOdefFile("DEF-files/HMS/EPICS/epics_short.def");  // Call EPICS variables  K.Park
-  // analyzer->SetOdefFile("DEF-files/HMS/GEN/hstackana_report.def");
-  //analyzer->SetCutFile("DEF-files/HMS/GEN/hstackana_report_cuts.def");    // optional
-
- // File to record cuts accounting information
-  analyzer->SetSummaryFile(Form("REPORT_OUTPUT/HMS/summary_%05d.report", RunNumber));    // optional
-
+  // Define crate map
+  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
+  // Define output ROOT file
+  analyzer->SetOutFile(ROOTFileName.Data());
+  // Define DEF-file
+  analyzer->SetOdefFile("DEF-files/HMS/EPICS/epics_short.def");
+  // Define cuts file
+  analyzer->SetCutFile("DEF-files/HMS/SCALERS/hscaler_cuts.def");  // optional
+  // File to record accounting information for cuts
+  analyzer->SetSummaryFile(Form("REPORT_OUTPUT/HMS/SCALERS/summary_scalers_%d_%d.report", RunNumber, MaxEvent));  // optional
   // Start the actual analysis.
   analyzer->Process(run);
-  // Create report file from template.
-  // analyzer->PrintReport("TEMPLATES/hstackana.template",Form("REPORT_OUTPUT/HMS/replay_hms_%05d.report", RunNumber));
+  // Create report file from template
+  analyzer->PrintReport("TEMPLATES/HMS/SCALERS/hscalers.template",
+  			Form("REPORT_OUTPUT/HMS/SCALERS/replay_hms_scalers_%d_%d.report", RunNumber, MaxEvent));  // optional  
+
 }
diff --git a/SCRIPTS/HMS/replay_hms.C b/SCRIPTS/HMS/STACK/replay_hms.C
similarity index 75%
rename from SCRIPTS/HMS/replay_hms.C
rename to SCRIPTS/HMS/STACK/replay_hms.C
index c51371b86af2ddf4468681932b625bb79a31d704..4c16798ba61e074d6d023d4c7292e4133c28df27 100644
--- a/SCRIPTS/HMS/replay_hms.C
+++ b/SCRIPTS/HMS/STACK/replay_hms.C
@@ -17,10 +17,10 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
 
   // Create file name patterns.
   const char* RunFileNamePattern = "raw/hms_all_%05d.dat";
-  const char* ROOTFileNamePattern = "ROOTfiles/hms_replay_%d.root";
+  const char* ROOTFileNamePattern = "ROOTfiles/hms_replay_%d_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
@@ -28,13 +28,14 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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"));
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
 
   // Load params for HMS trigger configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hms_stack.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/STACK/hms_stack.map");
 
   // Add trigger apparatus
   THaApparatus* TRG = new THcTrigApp("T", "TRG");
@@ -52,6 +53,11 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // Add hodoscope to HMS apparatus
   THcHodoscope* hod = new THcHodoscope("hod", "Hodoscope");
   HMS->AddDetector(hod);
+  
+  // Add Aerogel Cherenkov to SHMS apparatus
+  //THcAerogel* aero = new THcAerogel("aero", "Aerogel");
+  //HMS->AddDetector(aero);
+
   // Add Cherenkov to HMS apparatus
   THcCherenkov* cer = new THcCherenkov("cer", "Heavy Gas Cherenkov");
   HMS->AddDetector(cer);
@@ -94,24 +100,26 @@ void replay_hms(Int_t RunNumber=0, Int_t MaxEvent=0) {
   run->Print();
 
   // Define the analysis parameters
-  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber);
+  TString ROOTFileName = Form(ROOTFileNamePattern, RunNumber, MaxEvent);
   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
-
+ 
+// Define crate map
+  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
+  // Define output ROOT file
+  analyzer->SetOutFile(ROOTFileName.Data());
+  // Define DEF-file
+  analyzer->SetOdefFile("DEF-files/HMS/STACK/hstackana.def");
+  // Define cuts file
+  analyzer->SetCutFile("DEF-files/HMS/STACK/hstackana_cuts.def");  // optional
+  // File to record accounting information for cuts
+  analyzer->SetSummaryFile(Form("REPORT_OUTPUT/HMS/STACK/summary_stack_%d_%d.report", RunNumber, MaxEvent));  // 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)
-  //);
+  // Create report file from template
+  analyzer->PrintReport("TEMPLATES/HMS/STACK/hstackana.template",
+  			Form("REPORT_OUTPUT/HMS/STACK/replay_hms_stack_%d_%d.report", RunNumber, MaxEvent));  // optional
+
 }
diff --git a/SCRIPTS/HMS/replay_hcal_test_stand.C b/SCRIPTS/HMS/TEST_STANDS/replay_hcal_test_stand.C
similarity index 89%
rename from SCRIPTS/HMS/replay_hcal_test_stand.C
rename to SCRIPTS/HMS/TEST_STANDS/replay_hcal_test_stand.C
index e047d5fa9859760468e58e597894a8aa4c38701f..e2c4fa6f02fe728b175d3bf565090e9bc651453a 100644
--- a/SCRIPTS/HMS/replay_hcal_test_stand.C
+++ b/SCRIPTS/HMS/TEST_STANDS/replay_hcal_test_stand.C
@@ -20,7 +20,7 @@ void replay_hcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/hcal_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
@@ -28,16 +28,17 @@ void replay_hcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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"));
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hcal.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/CAL/hcal.map");
   gHcParms->Load("PARAM/HMS/GEN/h_fadc_debug.param");
 
   // Set up the equipment to be analyzed.
   THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
   gHaApps->Add(HMS);
-  // Add hodoscope to HMS apparatus
+  // Add Calorimeter to HMS apparatus
   THcShower* cal = new THcShower("cal", "Calorimeter");
   HMS->AddDetector(cal);
 
@@ -79,8 +80,8 @@ void replay_hcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
  analyzer->SetEvent(event);
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
  analyzer->SetOutFile(ROOTFileName.Data());
- analyzer->SetOdefFile("DEF-files/HMS/CAL/hcalana.def");
- analyzer->SetCutFile("DEF-files/HMS/CAL/hcalana_cuts.def");    // optional
+ analyzer->SetOdefFile("DEF-files/HMS/TEST_STANDS/CAL/hcalana.def");
+ analyzer->SetCutFile("DEF-files/HMS/TEST_STANDS/CAL/hcalana_cuts.def");    // optional
 
  // File to record cuts accounting information
  //analyzer->SetSummaryFile("summary_example.log");    // optional
diff --git a/SCRIPTS/HMS/replay_hcer_test_stand.C b/SCRIPTS/HMS/TEST_STANDS/replay_hcer_test_stand.C
similarity index 90%
rename from SCRIPTS/HMS/replay_hcer_test_stand.C
rename to SCRIPTS/HMS/TEST_STANDS/replay_hcer_test_stand.C
index e6fc890985fd1c92e30f0f30ed9bdd59f9312ff0..072e1a2fea7d00c054c85ca9d73126a29df20440 100644
--- a/SCRIPTS/HMS/replay_hcer_test_stand.C
+++ b/SCRIPTS/HMS/TEST_STANDS/replay_hcer_test_stand.C
@@ -20,7 +20,7 @@ void replay_hcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/hcer_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
@@ -28,18 +28,19 @@ void replay_hcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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"));
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
 
   // Load params for HMS trigger configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
   gHcParms->Load("PARAM/HMS/GEN/h_fadc_debug.param");
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hcer_htrig.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/CER/hcer_htrig.map");
 
   // Set up the equipment to be analyzed.
   THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
   gHaApps->Add(HMS);
-  // Add hodoscope to HMS apparatus
+  // Add Cherenkov to HMS apparatus
   THcCherenkov* cer = new THcCherenkov("cer", "Heavy Gas Cherenkov");
   HMS->AddDetector(cer);
 
@@ -88,8 +89,8 @@ void replay_hcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
  analyzer->SetEvent(event);
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
  analyzer->SetOutFile(ROOTFileName.Data());
- analyzer->SetOdefFile("DEF-files/HMS/CER/hcerana.def");
- analyzer->SetCutFile("DEF-files/HMS/CER/hcerana_cuts.def");    // optional
+ analyzer->SetOdefFile("DEF-files/HMS/TEST_STANDS/CER/hcerana.def");
+ analyzer->SetCutFile("DEF-files/HMS/TEST_STANDS/CER/hcerana_cuts.def");    // optional
 
  // File to record cuts accounting information
  //analyzer->SetSummaryFile("summary_example.log");    // optional
diff --git a/SCRIPTS/HMS/replay_hdc_test_stand.C b/SCRIPTS/HMS/TEST_STANDS/replay_hdc_test_stand.C
similarity index 84%
rename from SCRIPTS/HMS/replay_hdc_test_stand.C
rename to SCRIPTS/HMS/TEST_STANDS/replay_hdc_test_stand.C
index f45e0c3fc53bfb3e2db06547c8e6c852a921005d..71c184bc8d85e72b94c8b74b576f2cf79ead6592 100644
--- a/SCRIPTS/HMS/replay_hdc_test_stand.C
+++ b/SCRIPTS/HMS/TEST_STANDS/replay_hdc_test_stand.C
@@ -20,7 +20,7 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/hdc_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
@@ -28,15 +28,15 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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"));
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
 
-  // Load params for HMS DC test stand configuration
-  gHcParms->Load("PARAM/HMS/DC/hdc_test_stand.param");
+   // Load params for HMS trigger configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
   //gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename"));
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hdc_htrig.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/DC/hdc_6gev_htrig.map");
 
   // Set up the equipment to be analyzed.
   THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
@@ -44,25 +44,20 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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 trigger apparatus
+   // 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);
 
+
   // Add handler for prestart event 125.
   THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125");
   gHaEvtHandlers->Add(ev125);
 
-  //THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("HS", "HC scaler event type 0");
-  //hscaler->SetDebugFile("HScaler.txt");
-  //gHaEvtHandlers->Add(hscaler);
-
+  
   // 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
@@ -97,8 +92,8 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
  analyzer->SetEvent(event);
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
  analyzer->SetOutFile(ROOTFileName.Data());
- analyzer->SetOdefFile("DEF-files/HMS/DC/hdcana.def");
- analyzer->SetCutFile("DEF-files/HMS/DC/hdcana_cuts.def");    // optional
+ analyzer->SetOdefFile("DEF-files/HMS/TEST_STANDS/DC/hdcana.def");
+ analyzer->SetCutFile("DEF-files/HMS/TEST_STANDS/DC/hdcana_cuts.def");    // optional
 
  // File to record cuts accounting information
  //analyzer->SetSummaryFile("summary_example.log");    // optional
diff --git a/SCRIPTS/HMS/replay_hhodo_test_stand.C b/SCRIPTS/HMS/TEST_STANDS/replay_hhodo_test_stand.C
similarity index 89%
rename from SCRIPTS/HMS/replay_hhodo_test_stand.C
rename to SCRIPTS/HMS/TEST_STANDS/replay_hhodo_test_stand.C
index 867c771a2dd7f55334d39a7efd6a8bacc570f6f0..6fa31b05174be015e9120e77ce481cd3d7c26685 100644
--- a/SCRIPTS/HMS/replay_hhodo_test_stand.C
+++ b/SCRIPTS/HMS/TEST_STANDS/replay_hhodo_test_stand.C
@@ -20,7 +20,7 @@ void replay_hhodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/hhodo_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
@@ -28,13 +28,15 @@ void replay_hhodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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"));
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
 
   // Load params for HMS trigger configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hhodo_htrig.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/HODO/hhodo_htrig.map");
+  gHcParms->Load("PARAM/HMS/GEN/h_fadc_debug.param");
 
   // Set up the equipment to be analyzed.
   THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
@@ -88,8 +90,8 @@ void replay_hhodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
  analyzer->SetEvent(event);
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
  analyzer->SetOutFile(ROOTFileName.Data());
- analyzer->SetOdefFile("DEF-files/HMS/HODO/hhodoana.def");
- analyzer->SetCutFile("DEF-files/HMS/HODO/hhodoana_cuts.def");    // optional
+ analyzer->SetOdefFile("DEF-files/HMS/TEST_STANDS/HODO/hhodoana.def");
+ analyzer->SetCutFile("DEF-files/HMS/TEST_STANDS/HODO/hhodoana_cuts.def");    // optional
 
  // File to record cuts accounting information
  //analyzer->SetSummaryFile("summary_example.log");    // optional
diff --git a/SCRIPTS/HMS/replay_htrig_test_stand.C b/SCRIPTS/HMS/TEST_STANDS/replay_htrig_test_stand.C
similarity index 90%
rename from SCRIPTS/HMS/replay_htrig_test_stand.C
rename to SCRIPTS/HMS/TEST_STANDS/replay_htrig_test_stand.C
index 70effe5a478e68890bf3e8ded8c285cddc41b8e8..219ad1daf4d7e829c7a488516b1486bc74787ff8 100644
--- a/SCRIPTS/HMS/replay_htrig_test_stand.C
+++ b/SCRIPTS/HMS/TEST_STANDS/replay_htrig_test_stand.C
@@ -20,7 +20,7 @@ void replay_htrig_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   const char* ROOTFileNamePattern = "ROOTfiles/htrig_replay_%d.root";
   // Add variables to global list.
   gHcParms->Define("gen_run_number", "Run Number", RunNumber);
-  gHcParms->AddString("g_ctp_database_filename", "DBASE/standard.database");
+  gHcParms->AddString("g_ctp_database_filename", "DBASE/STD/standard.database");
 
   // Load varibles from files to global list.
   gHcParms->Load(gHcParms->GetString("g_ctp_database_filename"), RunNumber);
@@ -28,13 +28,14 @@ void replay_htrig_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // 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"));
+  gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
 
   // Load params for HMS DC test stand configuration
   gHcParms->Load("PARAM/TRIG/thms.param");
 
   // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/htrig.map");
+  gHcDetectorMap->Load("MAPS/HMS/DETEC/TRIG/htrig.map");
 
   // Add trigger apparatus
   THaApparatus* TRG = new THcTrigApp("T", "TRG");
@@ -81,8 +82,8 @@ void replay_htrig_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
  analyzer->SetEvent(event);
  analyzer->SetCrateMapFileName("MAPS/db_cratemap.dat");
  analyzer->SetOutFile(ROOTFileName.Data());
- analyzer->SetOdefFile("DEF-files/HMS/TRIG/htrigana.def");
- analyzer->SetCutFile("DEF-files/HMS/TRIG/htrigana_cuts.def");    // optional
+ analyzer->SetOdefFile("DEF-files/HMS/TEST_STANDS/TRIG/htrigana.def");
+ analyzer->SetCutFile("DEF-files/HMS/TEST_STANDS/TRIG/htrigana_cuts.def");    // optional
 
  // File to record cuts accounting information
  //analyzer->SetSummaryFile("summary_example.log");    // optional
diff --git a/SCRIPTS/HMS/replay_epics_test.C b/SCRIPTS/HMS/replay_epics_test.C
deleted file mode 100644
index 78a56f465b09f281694469aba161ad3fd691c647..0000000000000000000000000000000000000000
--- a/SCRIPTS/HMS/replay_epics_test.C
+++ /dev/null
@@ -1,110 +0,0 @@
-void replay_epics_test(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/epics_variable_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 the Hall C style detector map
-  gHcDetectorMap = new THcDetectorMap();
-  gHcDetectorMap->Load("MAPS/HMS/DETEC/hhodo_htrig.map");
-
-  // debug : testing epics variable in Ttree
-  // gHaEvtHandlers->Add (new THaEpicsEvtHandler("epics","HC EPICS event type 180"));
-  
-  // Set up the equipment to be analyzed.
-  THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
-  gHaApps->Add(HMS);
-  // Add hodoscope to HMS apparatus
-  THcHodoscope* hod = new THcHodoscope("hod", "Hodoscope");
-  HMS->AddDetector(hod);
-
-  // 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);
-
-  // Add EPICS variables
-  //  THaEpics* epics = new THcEpics("T", "Epics");
-  //   gHaApps->AddDetector(epics);
-
-
-  // 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/HODO/hhodoana.def");
- analyzer->SetCutFile("DEF-files/HMS/HODO/hhodoana_cuts.def");    // optional
-
- analyzer->SetOdefFile("DEF-files/HMS/EPICS/epics.def");  // Call EPICS variables  K.Park
-
- // 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/PRODUCTION/replay_production_shms.C b/SCRIPTS/SHMS/PRODUCTION/replay_production_shms.C
index d0477376ae6623be95e408060f5fe80cb3e96fa4..a359b3e05e8152de142f2389ee1848898d77924f 100644
--- a/SCRIPTS/SHMS/PRODUCTION/replay_production_shms.C
+++ b/SCRIPTS/SHMS/PRODUCTION/replay_production_shms.C
@@ -58,7 +58,7 @@ void replay_production_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
   // 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
+  // Add Aerogel Cherenkov to SHMS apparatus
   THcAerogel* aero = new THcAerogel("aero", "Aerogel");
   SHMS->AddDetector(aero);
   // Add calorimeter to SHMS apparatus
@@ -68,14 +68,21 @@ void replay_production_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
   // Include golden track information
   THaGoldenTrack* gtr = new THaGoldenTrack("P.gtr", "SHMS Golden Track", "P");
   gHaPhysics->Add(gtr);
+  // Add Ideal Beam Apparatus
+  THaApparatus* beam = new THaIdealBeam("IB", "Ideal Beamline");
+  gHaApps->Add(beam);
+  // Add Physics Module to calculate primary (scattered beam - usually electrons) kinematics
+  THcPrimaryKine* kin = new THcPrimaryKine("P.kin", "SHMS Single Arm Kinematics", "P", "IB");
+  gHaPhysics->Add(kin);
 
-  // // Add handler for prestart event 125.
+  // Add event handler for prestart event 125.
   THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125");
   gHaEvtHandlers->Add(ev125);
-  // Add handler for EPICS events
-  THaEpicsEvtHandler *hcepics = new THaEpicsEvtHandler("epics", "HC EPICS event type 180");
+  // Add event handler for EPICS events
+  THaEpicsEvtHandler* hcepics = new THaEpicsEvtHandler("epics", "HC EPICS event type 180");
   gHaEvtHandlers->Add(hcepics);
-  // Add handler for scaler events
+  // Add event handler for scaler events
+  THcScalerEvtHandler* pscaler = new THcScalerEvtHandler("P", "Hall C scaler event type 1");
   pscaler->AddEvtType(1);
   pscaler->SetUseFirstEvent(kTRUE);
   gHaEvtHandlers->Add(pscaler);
@@ -98,6 +105,9 @@ void replay_production_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
   sprintf(RunFileName, RunFileNamePattern, RunNumber);
   THaRun* run = new THaRun(RunFileName);
 
+  // Set to read in Hall C run database parameters
+  run->SetRunParamClass("THcRunParameters");
+  
   // Eventually need to learn to skip over, or properly analyze
   // the pedestal events
   run->SetEventRange(1, MaxEvent);    // Physics Event number, does not
diff --git a/SCRIPTS/SHMS/STACK/replay_shms.C b/SCRIPTS/SHMS/STACK/replay_shms.C
index 345b7433f605c0677aae16bd64f06cd14a583867..18a7a7a3f22c70982372f7de1f2579ce763471d8 100644
--- a/SCRIPTS/SHMS/STACK/replay_shms.C
+++ b/SCRIPTS/SHMS/STACK/replay_shms.C
@@ -58,7 +58,7 @@ void replay_shms (Int_t RunNumber = 0, Int_t MaxEvent = 0) {
   // 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
+  // Add Aerogel Cherenkov to SHMS apparatus
   THcAerogel* aero = new THcAerogel("aero", "Aerogel");
   SHMS->AddDetector(aero);
   // Add calorimeter to SHMS apparatus
diff --git a/SCRIPTS/SHMS/TEST_STANDS/replay_pcal_test_stand.C b/SCRIPTS/SHMS/TEST_STANDS/replay_pcal_test_stand.C
index ee903f4e10a2f207090c67e676cc3ad86b9f03b7..e4334b3a7e0d3ea326496b4d43a256fadbc787d3 100644
--- a/SCRIPTS/SHMS/TEST_STANDS/replay_pcal_test_stand.C
+++ b/SCRIPTS/SHMS/TEST_STANDS/replay_pcal_test_stand.C
@@ -37,7 +37,7 @@ void replay_pcal_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // Set up the equipment to be analyzed.
   THaApparatus* SHMS = new THcHallCSpectrometer("P", "SHMS");
   gHaApps->Add(SHMS);
-  // Add hodoscope to HMS apparatus
+  // Add Calorimeter to SHMS apparatus
   THcShower* cal = new THcShower("cal", "Calorimeter");
   SHMS->AddDetector(cal);
 
diff --git a/SCRIPTS/SHMS/TEST_STANDS/replay_pdc_test_stand.C b/SCRIPTS/SHMS/TEST_STANDS/replay_pdc_test_stand.C
index cb8a1afc9c622ea37f0632849f4e024be481c7c0..30495784b16ad7eefed86c968333fbcc17fdabe0 100644
--- a/SCRIPTS/SHMS/TEST_STANDS/replay_pdc_test_stand.C
+++ b/SCRIPTS/SHMS/TEST_STANDS/replay_pdc_test_stand.C
@@ -29,9 +29,11 @@ void replay_pdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   gHcParms->Load(gHcParms->GetString("g_ctp_kinematics_filename"), RunNumber);
   gHcParms->Load(gHcParms->GetString("g_ctp_parm_filename"));
   gHcParms->Load(gHcParms->GetString("g_ctp_calib_filename"));
+  
   // Load params for HMS DC test stand configuration
-  gHcParms->Load("PARAM/SHMS/DC/pdc_test_stand.param");
+  //gHcParms->Load("PARAM/SHMS/DC/pdc_test_stand.param");
 
+  // Load the Hall C style detector map
   gHcDetectorMap = new THcDetectorMap();
   //gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename"));
   gHcDetectorMap->Load("MAPS/SHMS/DETEC/DC/pdc.map");
@@ -46,18 +48,6 @@ void replay_pdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   THcConfigEvtHandler* ev125 = new THcConfigEvtHandler("HC", "Config Event type 125");
   gHaEvtHandlers->Add(ev125);
 
-  // Additional detectors:
-  //HMS->AddDetector(new THcHodoscope("hod", "Hodoscope"));
-  //HMS->AddDetector(new THcShower("cal", "Shower"));
-  //
-  //THcCherenkov* cherenkov = new THcCherenkov("cher", "Gas Cerenkov");
-  //HMS->AddDetector(cherenkov);
-  //THcAerogel* aerogel = new THcAerogel("aero", "Aerogel Cerenkov");
-  //HMS->AddDetector(aerogel);
-  //
-  //THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("HS", "HC scaler event type 0");
-  //hscaler->SetDebugFile("HScaler.txt");
-  //gHaEvtHandlers->Add(hscaler);
 
   // Set up the analyzer - we use the standard one,
   // but this could be an experiment-specific one as well.
diff --git a/SCRIPTS/SHMS/TEST_STANDS/replay_phgcer_test_stand.C b/SCRIPTS/SHMS/TEST_STANDS/replay_phgcer_test_stand.C
index d21a487b1eccd579be30fa444e49584e9fbac868..e554f1adc75e7ed6f7761a67d84e384b8609084e 100644
--- a/SCRIPTS/SHMS/TEST_STANDS/replay_phgcer_test_stand.C
+++ b/SCRIPTS/SHMS/TEST_STANDS/replay_phgcer_test_stand.C
@@ -39,7 +39,7 @@ void replay_phgcer_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   // Set up the equipment to be analyzed.
   THaApparatus* SHMS = new THcHallCSpectrometer("P", "SHMS");
   gHaApps->Add(SHMS);
-  // Add hodoscope to HMS apparatus
+  // Add Cherenkov to HMS apparatus
   THcCherenkov* hgcer = new THcCherenkov("hgcer", "Heavy Gas Cherenkov");
   SHMS->AddDetector(hgcer);
 
diff --git a/SCRIPTS/SHMS/TEST_STANDS/replay_phodo_test_stand.C b/SCRIPTS/SHMS/TEST_STANDS/replay_phodo_test_stand.C
index 500f8563159e12672176770e5a3bfcb71b3f32a2..bfca89e9a3120c26886f210218d7492b8e42434f 100644
--- a/SCRIPTS/SHMS/TEST_STANDS/replay_phodo_test_stand.C
+++ b/SCRIPTS/SHMS/TEST_STANDS/replay_phodo_test_stand.C
@@ -37,8 +37,6 @@ void replay_phodo_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
   gHcDetectorMap->Load("MAPS/SHMS/DETEC/HODO/phodo_ptrig.map");
   gHcParms->Load("PARAM/SHMS/GEN/p_fadc_debug.param");
 
-
-
   // Set up the equipment to be analyzed.
   THaApparatus* SHMS = new THcHallCSpectrometer("P", "SHMS");
   gHaApps->Add(SHMS);
diff --git a/TEMPLATES/HMS/PRODUCTION/hstackana_production.template b/TEMPLATES/HMS/PRODUCTION/hstackana_production.template
new file mode 100644
index 0000000000000000000000000000000000000000..9f039bba22a6647b3ed68b26016836a318171a06
--- /dev/null
+++ b/TEMPLATES/HMS/PRODUCTION/hstackana_production.template
@@ -0,0 +1,74 @@
+Run #{gen_run_number}
+
+Run Time  : {H.1Mhz.scaler}  {H.1Mhz.scaler/1000000.} sec 
+
+BCM1  : {(H.BCM1.scalerRate-250000)/(4673):%3.3f} uA      Total charge = {(H.BCM1.scalerRate-250000) / (4673)*H.1Mhz.scaler/1000000.:%7.3f} uC
+BCM2  : {(H.BCM2.scalerRate-250000)/(3954):%3.3f} uA      Total charge = {(H.BCM2.scalerRate-250000) / (3954)*H.1Mhz.scaler/1000000.:%7.3f} uC 
+Unser : {(H.Unser.scalerRate-393000)/(4000):%3.3f} uA     Total charge = {(H.Unser.scalerRate-393000) / (4000)*H.1Mhz.scaler/1000000.:%7.3f} uC 
+
+{hdc_plane_names}
+Horizontal drift chamber z positions:
+Chamber 1: {hdc_zpos[0]:%6.2f} {hdc_zpos[1]:%6.2f} {hdc_zpos[2]:%6.2f} 
+           {hdc_zpos[3]:%6.2f} {hdc_zpos[4]:%6.2f} {hdc_zpos[5]:%6.2f} 
+Chamber 2: {hdc_zpos[6]:%6.2f} {hdc_zpos[7]:%6.2f} {hdc_zpos[8]:%6.2f} 
+           {hdc_zpos[9]:%6.2f} {hdc_zpos[10]:%6.2f} {hdc_zpos[11]:%6.2f}
+
+All triggers:  {all_trigs.npassed}
+
+Rate  :  {H.Trig.scalerRate/1000.:%7.3f} kHz
+
+Live Time : {(all_trigs.npassed / H.Trig.scaler)*100.0:%3.2f} %
+Dead Time : {100.0 - (all_trigs.npassed / H.Trig.scaler)*100.0:%3.2f} %
+
+hmsDC1Planes_large  Counts:       {hmsDC1Planes_large.npassed} /all_trigs : {hmsDC1Planes_large.npassed/all_trigs.npassed}
+hmsDC2Planes_large  Counts:	  {hmsDC2Planes_large.npassed}  /all_trigs : {hmsDC2Planes_large.npassed/all_trigs.npassed}  
+
+hmsDC1Planes6     Counts: {hmsDC1Planes6hits.npassed} /all_trigs : {hmsDC1Planes6hits.npassed/all_trigs.npassed}
+hmsDC2Planes6  	  Counts: {hmsDC2Planes6hits.npassed} /all_trigs : {hmsDC2Planes6hits.npassed/all_trigs.npassed}  
+
+hmsDC1x1Planes5	  Counts: {hmsDC1_5hits_x1.npassed} eff : {hmsDC1_6hits_x1.npassed/hmsDC1_5hits_x1.npassed}
+hmsDC1u1Planes5	  Counts: {hmsDC1_5hits_u1.npassed} eff : {hmsDC1_6hits_u1.npassed/hmsDC1_5hits_u1.npassed}
+hmsDC1y2Planes5	  Counts: {hmsDC1_5hits_y2.npassed} eff : {hmsDC1_6hits_y2.npassed/hmsDC1_5hits_y2.npassed}
+hmsDC1v1Planes5	  Counts: {hmsDC1_5hits_v1.npassed} eff : {hmsDC1_6hits_v1.npassed/hmsDC1_5hits_v1.npassed}
+hmsDC1y1Planes5	  Counts: {hmsDC1_5hits_y1.npassed} eff : {hmsDC1_6hits_y1.npassed/hmsDC1_5hits_y1.npassed}
+hmsDC1x2Planes5	  Counts: {hmsDC1_5hits_x2.npassed} eff : {hmsDC1_6hits_x2.npassed/hmsDC1_5hits_x2.npassed}
+
+
+hmsDC2x1Planes5	  Counts: {hmsDC2_5hits_x1.npassed} eff : {hmsDC2_6hits_x1.npassed/hmsDC2_5hits_x1.npassed}
+hmsDC2u1Planes5	  Counts: {hmsDC2_5hits_u1.npassed} eff : {hmsDC2_6hits_u1.npassed/hmsDC2_5hits_u1.npassed}
+hmsDC2y2Planes5	  Counts: {hmsDC2_5hits_y2.npassed} eff : {hmsDC2_6hits_y2.npassed/hmsDC2_5hits_y2.npassed}
+hmsDC2v1Planes5	  Counts: {hmsDC2_5hits_v1.npassed} eff : {hmsDC2_6hits_v1.npassed/hmsDC2_5hits_v1.npassed}
+hmsDC2y1Planes5	  Counts: {hmsDC2_5hits_y1.npassed} eff : {hmsDC2_6hits_y1.npassed/hmsDC2_5hits_y1.npassed}
+hmsDC2x2Planes5	  Counts: {hmsDC2_5hits_x2.npassed} eff : {hmsDC2_6hits_x2.npassed/hmsDC2_5hits_x2.npassed}
+	       	                      	       
+	       	   	       
+
+*****************************
+*HMS TRACKING EFFICIENCIES *
+*****************************
+htrig                          :   {hmscoin_event.npassed}
+hhitslt = passed hits/cham     :   {hmsHitsLt.npassed}
+hhitsplanes = +planes >= 5/6   :   {hmsHitsPlanes.npassed}
+hhitsplanessps = + sps         :   {hSpacePoints.npassed}
+hhitsplanesspsstubs +stub      :   {hSpacePointsStub.npassed}
+hsfoundtrack                   :   {hFoundTrack.npassed}
+hscleantrack                   :   {hCleanTrack.npassed}
+hstublt = passed stub tests    :   {hStubLT.npassed}
+h1hitslt                       :   {hms1HitsLt.npassed}
+h2hitslt                       :   {hms2HitsLt.npassed}
+h1planesgt                     :   {hmsDC1PlanesGT.npassed}
+h2planesgt                     :   {hmsDC2PlanesGT.npassed}
+hplanesgt = gt 5 planes/cham   :   {hmsPlanesGT.npassed}
+f1hspacepoints                 :   {f1HSpacePoints.npassed}
+f2hspacepoints                 :   {f2HSpacePoints.npassed}
+htest1=p hits/planes, f sp     :   {hTest1.npassed}
+htest2=p sp, f stubs           :   {hTest2.npassed}
+hdid                           :   {HMSScinDid.npassed}
+hdide                          :   {HMSScinDide.npassed}
+hdidh                          :   {HMSScinDidh.npassed}
+hscinshould                    :   {HMSScinShould.npassed}
+hscinshoulde                   :   {HMSScinShoulde.npassed}
+hscinshouldh                   :   {HMSScinShouldh.npassed}
+SING FID TRACK EFFIC           : {HMSScinDid.npassed/(HMSScinShould.npassed+0.0001):%8.4f} +- {(sqrt(HMSScinShould.npassed-HMSScinDid.npassed)/(HMSScinShould.npassed+.0001)):%8.4f}
+E SING FID TRACK EFFIC         : {HMSScinDide.npassed/(HMSScinShoulde.npassed+0.0001):%8.4f} +- {(sqrt(HMSScinShoulde.npassed-HMSScinDide.npassed)/(HMSScinShoulde.npassed+.0001)):%8.4f}
+HADRON SING FID TRACK EFFIC    : {HMSScinDidh.npassed/(HMSScinShouldh.npassed+0.0001):%8.4f} +- {(sqrt(HMSScinShouldh.npassed-HMSScinDidh.npassed)/(HMSScinShouldh.npassed+.0001)):%8.4f}
diff --git a/TEMPLATES/HMS/SCALERS/hscalers.template b/TEMPLATES/HMS/SCALERS/hscalers.template
new file mode 100644
index 0000000000000000000000000000000000000000..cb247bfa6239e2e9106a2fe7cf5aa255969c9270
--- /dev/null
+++ b/TEMPLATES/HMS/SCALERS/hscalers.template
@@ -0,0 +1,14 @@
+Run #: {gen_run_number}
+
+Run Time  : {H.1Mhz.scaler}  {H.1Mhz.scaler/1000000.} sec
+
+BCM1  : {(H.BCM1.scalerRate-250000)/(4673):%3.3f} uA      Total charge = {(H.BCM1.scalerRate-250000) / (4673)*H.1Mhz.scaler/1000000.:%7.3f} uC
+BCM2  : {(H.BCM2.scalerRate-250000)/(3954):%3.3f} uA      Total charge = {(H.BCM2.scalerRate-250000) / (3954)*H.1Mhz.scaler/1000000.:%7.3f} uC 
+Unser : {(H.Unser.scalerRate-393000)/(4000):%3.3f} uA     Total charge = {(H.Unser.scalerRate-393000) / (4000)*H.1Mhz.scaler/1000000.:%7.3f} uC
+
+All triggers  :  {all_trigs.npassed}
+
+Rate  :  {H.Trig.scalerRate/1000.:%7.3f} kHz
+
+Live Time : {(all_trigs.npassed / H.Trig.scaler)*100.0:%3.2f} %
+Dead Time : {100.0 - (all_trigs.npassed / H.Trig.scaler)*100.0:%3.2f} %
diff --git a/TEMPLATES/HMS/hstackana.template b/TEMPLATES/HMS/STACK/hstackana.template
similarity index 97%
rename from TEMPLATES/HMS/hstackana.template
rename to TEMPLATES/HMS/STACK/hstackana.template
index 0bffaf193231e918c3d4dd6ed3022a909cfc4265..196e4b3abfd9c23069b8dc309cf64f1bdae10970 100644
--- a/TEMPLATES/HMS/hstackana.template
+++ b/TEMPLATES/HMS/STACK/hstackana.template
@@ -1,6 +1,5 @@
 Run #{gen_run_number}
-           Standalone drift chamber analysis report template
-The names of the HMS drift chamber planes are: 
+
 {hdc_plane_names}
 Horizontal drift chamber z positions:
 Chamber 1: {hdc_zpos[0]:%6.2f} {hdc_zpos[1]:%6.2f} {hdc_zpos[2]:%6.2f} 
diff --git a/onlineGUI/Config/kpp.cfg b/onlineGUI/Config/EXAMPLES/kpp.cfg
similarity index 100%
rename from onlineGUI/Config/kpp.cfg
rename to onlineGUI/Config/EXAMPLES/kpp.cfg
diff --git a/onlineGUI/Config/standard.cfg b/onlineGUI/Config/EXAMPLES/standard.cfg
similarity index 100%
rename from onlineGUI/Config/standard.cfg
rename to onlineGUI/Config/EXAMPLES/standard.cfg
diff --git a/onlineGUI/Config/hms_scaler.cfg b/onlineGUI/Config/SCALERS/hms_scaler.cfg
similarity index 92%
rename from onlineGUI/Config/hms_scaler.cfg
rename to onlineGUI/Config/SCALERS/hms_scaler.cfg
index 04b618f06e9835bdab538c677bd4999b3205ffc3..62a27bcdb56b0713e96a218ca743926e3a0a35fb 100644
--- a/onlineGUI/Config/hms_scaler.cfg
+++ b/onlineGUI/Config/SCALERS/hms_scaler.cfg
@@ -1,14 +1,14 @@
-protorootfile ../ROOTfiles/hms_replay_scalers_XXXXX.root
-guicolor lightblue
+protorootfile ../ROOTfiles/hms_replay_scalers_XXXXX_10000.root
+guicolor orange
 canvassize 800 800
 newpage 2 3
 title Trig rates
-macro Macros/plot_hms_scalers.C("uhScalTrigh1X","none")
-macro Macros/plot_hms_scalers.C("uhScalTrigh1Y","none")
-macro Macros/plot_hms_scalers.C("uhScalTrigh2X","none")
-macro Macros/plot_hms_scalers.C("uhScalTrigh2Y","none")
-macro Macros/plot_hms_scalers.C("uhScalTrigh1Xh1y","none")
-macro Macros/plot_hms_scalers.C("uhScalTrighTrig","none")
+macro Macros/plot_hms_scalers.C("uhScalTrigS1X","none")
+macro Macros/plot_hms_scalers.C("uhScalTrigS1Y","none")
+macro Macros/plot_hms_scalers.C("uhScalTrigS2X","none")
+macro Macros/plot_hms_scalers.C("uhScalTrigS2Y","none")
+macro Macros/plot_hms_scalers.C("uhScalTrigS1XS1Y","none")
+macro Macros/plot_hms_scalers.C("uhScalTrigTrig","none")
 newpage 2 2
 title Hod ave rates
 macro Macros/plot_hms_scalers.C("uhScalHodNeg1x","uhScalHodPos1x")
diff --git a/onlineGUI/Config/shms_scaler.cfg b/onlineGUI/Config/SCALERS/shms_scaler.cfg
similarity index 90%
rename from onlineGUI/Config/shms_scaler.cfg
rename to onlineGUI/Config/SCALERS/shms_scaler.cfg
index 2617c730405ee3d4996792a61f9cf6bf53bfcec8..e5975fd9578507b5622b1aadedd4e05a2ec1e004 100644
--- a/onlineGUI/Config/shms_scaler.cfg
+++ b/onlineGUI/Config/SCALERS/shms_scaler.cfg
@@ -1,14 +1,14 @@
-protorootfile ../ROOTfiles/shms_replay_scalers_XXXXX.root
-guicolor lightblue
+protorootfile ../ROOTfiles/shms_replay_scalers_XXXXX_10000.root
+guicolor orange
 canvassize 800 800
 newpage 2 3
 title Trig rates
-macro Macros/plot_shms_scalers.C("uhScalTrigs1X","none")
-macro Macros/plot_shms_scalers.C("uhScalTrigs1Y","none")
-macro Macros/plot_shms_scalers.C("uhScalTrigs2X","none")
-macro Macros/plot_shms_scalers.C("uhScalTrigs2Y","none")
-macro Macros/plot_shms_scalers.C("uhScalTrigs1Xs1y","none")
-macro Macros/plot_shms_scalers.C("uhScalTrigsTrig","none")
+macro Macros/plot_shms_scalers.C("uhScalTrigS1X","none")
+macro Macros/plot_shms_scalers.C("uhScalTrigS1Y","none")
+macro Macros/plot_shms_scalers.C("uhScalTrigS2X","none")
+macro Macros/plot_shms_scalers.C("uhScalTrigS2Y","none")
+macro Macros/plot_shms_scalers.C("uhScalTrigS1XS1Y","none")
+macro Macros/plot_shms_scalers.C("uhScalTrigTrig","none")
 newpage 2 2
 title Hod ave rates
 macro Macros/plot_shms_scalers.C("uhScalHodNeg1x","uhScalHodPos1x")
diff --git a/onlineGUI/Config/SHMS/CER/shms_cer_eff.cfg b/onlineGUI/Config/SHMS/CER/shms_cer_eff.cfg
new file mode 100644
index 0000000000000000000000000000000000000000..eb77569302294c7e258455a5ddbde4737166d7a7
--- /dev/null
+++ b/onlineGUI/Config/SHMS/CER/shms_cer_eff.cfg
@@ -0,0 +1,15 @@
+protorootfile ../ROOTfiles/shms_replay_production_XXXXX_400000.root
+guicolor lightblue
+canvassize 800 800
+newpage 1 1
+title NG Sum 2d xy
+macro Macros/cer_2d_ratio.C("hng_xy_sumphe")
+newpage 1 1
+title HG Sum 2d xy
+macro Macros/cer_2d_ratio.C("hhg_xy_sumphe")
+newpage 1 1
+title NG Sum 2d xy
+macro Macros/cer_2d_ratio.C("hng_xy_elec_eff")
+newpage 1 1
+title HG Sum 2d xy
+macro Macros/cer_2d_ratio.C("hhg_xy_elec_eff")
diff --git a/onlineGUI/Config/hmsdc.cfg b/onlineGUI/Config/hmsdc.cfg
deleted file mode 100644
index 83f2b1d5c75f3bff8329f1c4266b825509a8ad7e..0000000000000000000000000000000000000000
--- a/onlineGUI/Config/hmsdc.cfg
+++ /dev/null
@@ -1,43 +0,0 @@
-##################################################
-# This is an example configuration file
-# for the onlineGUI.
-# Documentation for the onlineGUI can be found here:
-#  http://www.jlab.org/~moffit/onlineGUI/
-#
-protorootfile ../ROOTfiles/hms1190_XXXXX.root
-#protorootfile ROOTfiles/hadron_XXXXX.root
-#goldenrootfile ROOTfiles/hadron_golden.root
-
-#definecut zerocut BB.tp.e.LA[0]>0
-
-# FIRST PAGE
-newpage 2 3 # remove logy to make linear scale y-axis
-title  HMS DC 1 Wiremaps
-   hdc1x1_wm -nostat
-   hdc1y1_wm -nostat
-   hdc1u1_wm -nostat
-   hdc1v1_wm -nostat
-   hdc1x2_wm -nostat
-   hdc1y2_wm -nostat
-
-newpage 2 3 # remove logy to make linear scale y-axis
-title  HMS DC 1 Wiremaps v time
-   hdc1x1_wm_time -nostat -type colz
-   hdc1y1_wm_time -nostat -type colz
-   hdc1u1_wm_time -nostat -type colz
-   hdc1v1_wm_time -nostat -type colz
-   hdc1x2_wm_time -nostat -type colz
-   hdc1y2_wm_time -nostat -type colz
-
-newpage 2 3 # remove logy to make linear scale y-axis
-title  HMS DC 2 Wiremaps
-   hdc2x1_wm -nostat
-   hdc2y1_wm -nostat
-   hdc2u1_wm -nostat
-   hdc2v1_wm -nostat
-   hdc2x2_wm -nostat
-   hdc2y2_wm -nostat
-
-
-
-
diff --git a/onlineGUI/Config/rawhmshodo.cfg b/onlineGUI/Config/rawhmshodo.cfg
deleted file mode 100755
index 21ec61899bbd7fcfd511f040fd815120ec9af529..0000000000000000000000000000000000000000
--- a/onlineGUI/Config/rawhmshodo.cfg
+++ /dev/null
@@ -1,243 +0,0 @@
-protorootfile ../ROOTfiles/hhodo_htrig_replay_XXXXX.root
-guicolor lightblue
-canvassize 1600 800
-newpage 4 4
-title HMS X1+ Raw TDCS
-macro Macros/rawdraw.C("uhtdc1x1posTime")
-macro Macros/rawdraw.C("uhtdc1x2posTime")
-macro Macros/rawdraw.C("uhtdc1x3posTime")
-macro Macros/rawdraw.C("uhtdc1x4posTime")
-macro Macros/rawdraw.C("uhtdc1x5posTime")
-macro Macros/rawdraw.C("uhtdc1x6posTime")
-macro Macros/rawdraw.C("uhtdc1x7posTime")
-macro Macros/rawdraw.C("uhtdc1x8posTime")
-macro Macros/rawdraw.C("uhtdc1x9posTime")
-macro Macros/rawdraw.C("uhtdc1x10posTime")
-macro Macros/rawdraw.C("uhtdc1x11posTime")
-macro Macros/rawdraw.C("uhtdc1x12posTime")
-macro Macros/rawdraw.C("uhtdc1x13posTime")
-macro Macros/rawdraw.C("uhtdc1x14posTime")
-macro Macros/rawdraw.C("uhtdc1x15posTime")
-macro Macros/rawdraw.C("uhtdc1x16posTime")
-newpage 4 4
-title HMS X1- Raw TDCS
-macro Macros/rawdraw.C("uhtdc1x1negTime")
-macro Macros/rawdraw.C("uhtdc1x2negTime")
-macro Macros/rawdraw.C("uhtdc1x3negTime")
-macro Macros/rawdraw.C("uhtdc1x4negTime")
-macro Macros/rawdraw.C("uhtdc1x5negTime")
-macro Macros/rawdraw.C("uhtdc1x6negTime")
-macro Macros/rawdraw.C("uhtdc1x7negTime")
-macro Macros/rawdraw.C("uhtdc1x8negTime")
-macro Macros/rawdraw.C("uhtdc1x9negTime")
-macro Macros/rawdraw.C("uhtdc1x10negTime")
-macro Macros/rawdraw.C("uhtdc1x11negTime")
-macro Macros/rawdraw.C("uhtdc1x12negTime")
-macro Macros/rawdraw.C("uhtdc1x13negTime")
-macro Macros/rawdraw.C("uhtdc1x14negTime")
-macro Macros/rawdraw.C("uhtdc1x15negTime")
-macro Macros/rawdraw.C("uhtdc1x16negTime")
-newpage 4 4
-title HMS X1+ Raw ADCS
-macro Macros/rawdraw.C("uhadc1x1posPed")
-macro Macros/rawdraw.C("uhadc1x2posPed")
-macro Macros/rawdraw.C("uhadc1x3posPed")
-macro Macros/rawdraw.C("uhadc1x4posPed")
-macro Macros/rawdraw.C("uhadc1x5posPed")
-macro Macros/rawdraw.C("uhadc1x6posPed")
-macro Macros/rawdraw.C("uhadc1x7posPed")
-macro Macros/rawdraw.C("uhadc1x8posPed")
-macro Macros/rawdraw.C("uhadc1x9posPed")
-macro Macros/rawdraw.C("uhadc1x10posPed")
-macro Macros/rawdraw.C("uhadc1x11posPed")
-macro Macros/rawdraw.C("uhadc1x12posPed")
-macro Macros/rawdraw.C("uhadc1x13posPed")
-macro Macros/rawdraw.C("uhadc1x14posPed")
-macro Macros/rawdraw.C("uhadc1x15posPed")
-macro Macros/rawdraw.C("uhadc1x16posPed")
-newpage 4 4
-title HMS X1- Raw ADCS
-macro Macros/rawdraw.C("uhadc1x1negPed")
-macro Macros/rawdraw.C("uhadc1x2negPed")
-macro Macros/rawdraw.C("uhadc1x3negPed")
-macro Macros/rawdraw.C("uhadc1x4negPed")
-macro Macros/rawdraw.C("uhadc1x5negPed")
-macro Macros/rawdraw.C("uhadc1x6negPed")
-macro Macros/rawdraw.C("uhadc1x7negPed")
-macro Macros/rawdraw.C("uhadc1x8negPed")
-macro Macros/rawdraw.C("uhadc1x9negPed")
-macro Macros/rawdraw.C("uhadc1x10negPed")
-macro Macros/rawdraw.C("uhadc1x11negPed")
-macro Macros/rawdraw.C("uhadc1x12negPed")
-macro Macros/rawdraw.C("uhadc1x13negPed")
-macro Macros/rawdraw.C("uhadc1x14negPed")
-macro Macros/rawdraw.C("uhadc1x15negPed")
-macro Macros/rawdraw.C("uhadc1x16negPed")
-newpage 4 4
-title HMS Y1+ Raw TDCS
-macro Macros/rawdraw.C("uhtdc1y1posTime")
-macro Macros/rawdraw.C("uhtdc1y2posTime")
-macro Macros/rawdraw.C("uhtdc1y3posTime")
-macro Macros/rawdraw.C("uhtdc1y4posTime")
-macro Macros/rawdraw.C("uhtdc1y5posTime")
-macro Macros/rawdraw.C("uhtdc1y6posTime")
-macro Macros/rawdraw.C("uhtdc1y7posTime")
-macro Macros/rawdraw.C("uhtdc1y8posTime")
-macro Macros/rawdraw.C("uhtdc1y9posTime")
-macro Macros/rawdraw.C("uhtdc1y10posTime")
-newpage 4 4
-title HMS Y1- Raw TDCS
-macro Macros/rawdraw.C("uhtdc1y1negTime")
-macro Macros/rawdraw.C("uhtdc1y2negTime")
-macro Macros/rawdraw.C("uhtdc1y3negTime")
-macro Macros/rawdraw.C("uhtdc1y4negTime")
-macro Macros/rawdraw.C("uhtdc1y5negTime")
-macro Macros/rawdraw.C("uhtdc1y6negTime")
-macro Macros/rawdraw.C("uhtdc1y7negTime")
-macro Macros/rawdraw.C("uhtdc1y8negTime")
-macro Macros/rawdraw.C("uhtdc1y9negTime")
-macro Macros/rawdraw.C("uhtdc1y10negTime")
-newpage 4 4
-title HMS Y1+ Raw ADCS
-macro Macros/rawdraw.C("uhadc1y1posPed")
-macro Macros/rawdraw.C("uhadc1y2posPed")
-macro Macros/rawdraw.C("uhadc1y3posPed")
-macro Macros/rawdraw.C("uhadc1y4posPed")
-macro Macros/rawdraw.C("uhadc1y5posPed")
-macro Macros/rawdraw.C("uhadc1y6posPed")
-macro Macros/rawdraw.C("uhadc1y7posPed")
-macro Macros/rawdraw.C("uhadc1y8posPed")
-macro Macros/rawdraw.C("uhadc1y9posPed")
-macro Macros/rawdraw.C("uhadc1y10posPed")
-newpage 4 4
-title HMS Y1- Raw ADCS
-macro Macros/rawdraw.C("uhadc1y1negPed")
-macro Macros/rawdraw.C("uhadc1y2negPed")
-macro Macros/rawdraw.C("uhadc1y3negPed")
-macro Macros/rawdraw.C("uhadc1y4negPed")
-macro Macros/rawdraw.C("uhadc1y5negPed")
-macro Macros/rawdraw.C("uhadc1y6negPed")
-macro Macros/rawdraw.C("uhadc1y7negPed")
-macro Macros/rawdraw.C("uhadc1y8negPed")
-macro Macros/rawdraw.C("uhadc1y9negPed")
-macro Macros/rawdraw.C("uhadc1y10negPed")
-newpage 4 4
-title HMS X2+ Raw TDCS
-macro Macros/rawdraw.C("uhtdc2x1posTime")
-macro Macros/rawdraw.C("uhtdc2x2posTime")
-macro Macros/rawdraw.C("uhtdc2x3posTime")
-macro Macros/rawdraw.C("uhtdc2x4posTime")
-macro Macros/rawdraw.C("uhtdc2x5posTime")
-macro Macros/rawdraw.C("uhtdc2x6posTime")
-macro Macros/rawdraw.C("uhtdc2x7posTime")
-macro Macros/rawdraw.C("uhtdc2x8posTime")
-macro Macros/rawdraw.C("uhtdc2x9posTime")
-macro Macros/rawdraw.C("uhtdc2x10posTime")
-macro Macros/rawdraw.C("uhtdc2x11posTime")
-macro Macros/rawdraw.C("uhtdc2x12posTime")
-macro Macros/rawdraw.C("uhtdc2x13posTime")
-macro Macros/rawdraw.C("uhtdc2x14posTime")
-macro Macros/rawdraw.C("uhtdc2x15posTime")
-macro Macros/rawdraw.C("uhtdc2x16posTime")
-newpage 4 4
-title HMS X2- Raw TDCS
-macro Macros/rawdraw.C("uhtdc2x1negTime")
-macro Macros/rawdraw.C("uhtdc2x2negTime")
-macro Macros/rawdraw.C("uhtdc2x3negTime")
-macro Macros/rawdraw.C("uhtdc2x4negTime")
-macro Macros/rawdraw.C("uhtdc2x5negTime")
-macro Macros/rawdraw.C("uhtdc2x6negTime")
-macro Macros/rawdraw.C("uhtdc2x7negTime")
-macro Macros/rawdraw.C("uhtdc2x8negTime")
-macro Macros/rawdraw.C("uhtdc2x9negTime")
-macro Macros/rawdraw.C("uhtdc2x10negTime")
-macro Macros/rawdraw.C("uhtdc2x11negTime")
-macro Macros/rawdraw.C("uhtdc2x12negTime")
-macro Macros/rawdraw.C("uhtdc2x13negTime")
-macro Macros/rawdraw.C("uhtdc2x14negTime")
-macro Macros/rawdraw.C("uhtdc2x15negTime")
-macro Macros/rawdraw.C("uhtdc2x16negTime")
-newpage 4 4
-title HMS X2+ Raw ADCS
-macro Macros/rawdraw.C("uhadc2x1posPed")
-macro Macros/rawdraw.C("uhadc2x2posPed")
-macro Macros/rawdraw.C("uhadc2x3posPed")
-macro Macros/rawdraw.C("uhadc2x4posPed")
-macro Macros/rawdraw.C("uhadc2x5posPed")
-macro Macros/rawdraw.C("uhadc2x6posPed")
-macro Macros/rawdraw.C("uhadc2x7posPed")
-macro Macros/rawdraw.C("uhadc2x8posPed")
-macro Macros/rawdraw.C("uhadc2x9posPed")
-macro Macros/rawdraw.C("uhadc2x10posPed")
-macro Macros/rawdraw.C("uhadc2x11posPed")
-macro Macros/rawdraw.C("uhadc2x12posPed")
-macro Macros/rawdraw.C("uhadc2x13posPed")
-macro Macros/rawdraw.C("uhadc2x14posPed")
-macro Macros/rawdraw.C("uhadc2x15posPed")
-macro Macros/rawdraw.C("uhadc2x16posPed")
-newpage 4 4
-title HMS X2- Raw ADCS
-macro Macros/rawdraw.C("uhadc2x1negPed")
-macro Macros/rawdraw.C("uhadc2x2negPed")
-macro Macros/rawdraw.C("uhadc2x3negPed")
-macro Macros/rawdraw.C("uhadc2x4negPed")
-macro Macros/rawdraw.C("uhadc2x5negPed")
-macro Macros/rawdraw.C("uhadc2x6negPed")
-macro Macros/rawdraw.C("uhadc2x7negPed")
-macro Macros/rawdraw.C("uhadc2x8negPed")
-macro Macros/rawdraw.C("uhadc2x9negPed")
-macro Macros/rawdraw.C("uhadc2x10negPed")
-macro Macros/rawdraw.C("uhadc2x11negPed")
-macro Macros/rawdraw.C("uhadc2x12negPed")
-macro Macros/rawdraw.C("uhadc2x13negPed")
-macro Macros/rawdraw.C("uhadc2x14negPed")
-macro Macros/rawdraw.C("uhadc2x15negPed")
-macro Macros/rawdraw.C("uhadc2x16negPed")
-newpage 4 4
-title HMS Y2+ Raw TDCS
-macro Macros/rawdraw.C("uhtdc2y1posTime")
-macro Macros/rawdraw.C("uhtdc2y2posTime")
-macro Macros/rawdraw.C("uhtdc2y3posTime")
-macro Macros/rawdraw.C("uhtdc2y4posTime")
-macro Macros/rawdraw.C("uhtdc2y5posTime")
-macro Macros/rawdraw.C("uhtdc2y6posTime")
-macro Macros/rawdraw.C("uhtdc2y7posTime")
-macro Macros/rawdraw.C("uhtdc2y8posTime")
-macro Macros/rawdraw.C("uhtdc2y9posTime")
-macro Macros/rawdraw.C("uhtdc2y10posTime")
-newpage 4 4
-title HMS Y2- Raw TDCS
-macro Macros/rawdraw.C("uhtdc2y1negTime")
-macro Macros/rawdraw.C("uhtdc2y2negTime")
-macro Macros/rawdraw.C("uhtdc2y3negTime")
-macro Macros/rawdraw.C("uhtdc2y4negTime")
-macro Macros/rawdraw.C("uhtdc2y5negTime")
-macro Macros/rawdraw.C("uhtdc2y6negTime")
-macro Macros/rawdraw.C("uhtdc2y7negTime")
-macro Macros/rawdraw.C("uhtdc2y8negTime")
-macro Macros/rawdraw.C("uhtdc2y9negTime")
-macro Macros/rawdraw.C("uhtdc2y10negTime")
-newpage 4 4
-title HMS Y2+ Raw ADCS
-macro Macros/rawdraw.C("uhadc2y1posPed")
-macro Macros/rawdraw.C("uhadc2y2posPed")
-macro Macros/rawdraw.C("uhadc2y3posPed")
-macro Macros/rawdraw.C("uhadc2y4posPed")
-macro Macros/rawdraw.C("uhadc2y5posPed")
-macro Macros/rawdraw.C("uhadc2y6posPed")
-macro Macros/rawdraw.C("uhadc2y7posPed")
-macro Macros/rawdraw.C("uhadc2y8posPed")
-macro Macros/rawdraw.C("uhadc2y9posPed")
-macro Macros/rawdraw.C("uhadc2y10posPed")
-newpage 4 4
-title HMS Y2- Raw ADCS
-macro Macros/rawdraw.C("uhadc2y1negPed")
-macro Macros/rawdraw.C("uhadc2y2negPed")
-macro Macros/rawdraw.C("uhadc2y3negPed")
-macro Macros/rawdraw.C("uhadc2y4negPed")
-macro Macros/rawdraw.C("uhadc2y5negPed")
-macro Macros/rawdraw.C("uhadc2y6negPed")
-macro Macros/rawdraw.C("uhadc2y7negPed")
-macro Macros/rawdraw.C("uhadc2y8negPed")
-macro Macros/rawdraw.C("uhadc2y9negPed")
-macro Macros/rawdraw.C("uhadc2y10negPed")
diff --git a/onlineGUI/Macros/kpp_analysis.C b/onlineGUI/Macros/EXAMPLES/EXAMPLE/kpp_analysis.C
similarity index 100%
rename from onlineGUI/Macros/kpp_analysis.C
rename to onlineGUI/Macros/EXAMPLES/EXAMPLE/kpp_analysis.C
diff --git a/onlineGUI/Macros/hodo_efficiency.C b/onlineGUI/Macros/EXAMPLES/hodo_efficiency.C
similarity index 100%
rename from onlineGUI/Macros/hodo_efficiency.C
rename to onlineGUI/Macros/EXAMPLES/hodo_efficiency.C
diff --git a/onlineGUI/Macros/overlay.C b/onlineGUI/Macros/EXAMPLES/overlay.C
similarity index 100%
rename from onlineGUI/Macros/overlay.C
rename to onlineGUI/Macros/EXAMPLES/overlay.C
diff --git a/onlineGUI/Macros/rawdraw.C b/onlineGUI/Macros/EXAMPLES/rawdraw.C
similarity index 100%
rename from onlineGUI/Macros/rawdraw.C
rename to onlineGUI/Macros/EXAMPLES/rawdraw.C
diff --git a/onlineGUI/Macros/gooddraw_2d_hhodo.C b/onlineGUI/Macros/HMS/HODO/gooddraw_2d_hhodo.C
similarity index 100%
rename from onlineGUI/Macros/gooddraw_2d_hhodo.C
rename to onlineGUI/Macros/HMS/HODO/gooddraw_2d_hhodo.C
diff --git a/onlineGUI/Macros/rawdraw_2d_hhodo.C b/onlineGUI/Macros/HMS/HODO/rawdraw_2d_hhodo.C
similarity index 100%
rename from onlineGUI/Macros/rawdraw_2d_hhodo.C
rename to onlineGUI/Macros/HMS/HODO/rawdraw_2d_hhodo.C
diff --git a/onlineGUI/Macros/rawdraw_hhodo.C b/onlineGUI/Macros/HMS/HODO/rawdraw_hhodo.C
similarity index 100%
rename from onlineGUI/Macros/rawdraw_hhodo.C
rename to onlineGUI/Macros/HMS/HODO/rawdraw_hhodo.C
diff --git a/onlineGUI/Macros/SCALERS/plot_hms_scalers.C b/onlineGUI/Macros/SCALERS/plot_hms_scalers.C
new file mode 100644
index 0000000000000000000000000000000000000000..ca9f5dd3149313af832478f8d47236fde205e81e
--- /dev/null
+++ b/onlineGUI/Macros/SCALERS/plot_hms_scalers.C
@@ -0,0 +1,289 @@
+// UserScript.C
+//
+// Helper macro to build additional histograms
+
+void UserScript()
+{
+  //
+  const UInt_t NTRIGS  = 6;
+  const TString trig_names[NTRIGS]={"S1X", "S1Y", "S1XS1Y", "S2X", "S2Y", "Trig"};
+  TH1F* hScalTrig[NTRIGS];
+  Double_t trig_scal[NTRIGS];
+  Double_t trig_ave[NTRIGS]={0,0,0,0,0,0};
+  TH1F* hAveTrig;
+  hAveTrig=new TH1F("AveTrig","Ave Trig Rates ",NTRIGS,0,NTRIGS);
+  //
+  const UInt_t NBCMS  = 3;
+  const TString bcm_names[NBCMS] = {"BCM1", "BCM2","Unser"};
+  TH1F* hScalBCM[NBCMS];
+  TH1F* hCurBCM[NBCMS];
+  TH1F* hAveCurBCM;
+  hAveCurBCM=new TH1F("AveCurBCM","Ave Current ",NBCMS,0,NBCMS);
+  TH1F* hAveRateBCM;
+  hAveRateBCM=new TH1F("AveRateBCM","Ave BCM Rate ",NBCMS,0,NBCMS);
+  Double_t bcm_scal[NBCMS];
+  Double_t bcm_cur[NBCMS];
+  Double_t bcm_ave_cur[NBCMS]={0.,0.,0.};
+  Double_t bcm_ave_rate[NBCMS]={0.,0.,0.};
+  Double_t bcm_offset[NBCMS]={250000,250000,393000};
+  Double_t bcm_slope[NBCMS]={4500*1.15,4500,4000};
+  //
+  const UInt_t NPLANES  = 4;
+  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
+  const UInt_t  nbars[NPLANES] = {16, 10, 16, 10};
+  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 1};
+  TH1F* hScalHodNegEv[NPLANES][16];
+  TH1F* hScalHodPosEv[NPLANES][16];
+  TH1F* hScalHodNeg[NPLANES];
+  TH1F* hScalHodPos[NPLANES];
+  Double_t hod_scalneg[NPLANES][16];
+  Double_t hod_scalpos[NPLANES][16];
+  Double_t hod_scalneg_rate[NPLANES][16];
+  Double_t hod_scalpos_rate[NPLANES][16];
+  Double_t good_bcm=0;
+  Double_t good_bcm_limit=265000.;
+  //
+  TTree *T=(TTree*)gDirectory->Get("TSH");
+  Int_t totev=T->GetEntries();
+  // totev=400;
+  //
+  TString i2dbarname;TString h2dttitle;TString h2dtname;TString list_name;
+  for(UInt_t ip = 0; ip < NTRIGS; ip++) {
+    h2dttitle= trig_names[ip]+"; Event Number  ; Rate ";
+    h2dtname="uhScalTrig"+trig_names[ip];
+    hScalTrig[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+    list_name ="H."+trig_names[ip]+".scalerRate";
+    T->SetBranchAddress(list_name,&trig_scal[ip]);
+  }
+  //
+  for(UInt_t ip = 0; ip < NBCMS; ip++) {
+    h2dttitle= bcm_names[ip]+"; Event Number  ;  Rate ";
+    h2dtname="uhScal"+bcm_names[ip];
+    hScalBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+    h2dttitle= bcm_names[ip]+"; Event Number  ; Current  ";
+    h2dtname="uhCur"+bcm_names[ip];
+    hCurBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+    list_name ="H."+bcm_names[ip]+".scalerRate";
+    T->SetBranchAddress(list_name,&bcm_scal[ip]);
+  }
+  //
+  for(UInt_t ip = 0; ip < NPLANES; ip++) {
+    h2dttitle= "Beam On,Neg"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate ";
+    h2dtname="uhScalHodNeg"+plane_names[ip];
+    hScalHodNeg[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
+    h2dttitle= "Beam on,Pos"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate   ";
+    h2dtname="uhScalHodPos"+plane_names[ip];
+    hScalHodPos[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
+    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+      i2dbarname = Form("%02d",ibar+1);
+      h2dttitle= "Neg Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate ";
+      h2dtname="uhScalEvHodNeg"+plane_names[ip]+"Pad"+i2dbarname;
+      hScalHodNegEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+      h2dttitle= "Pos Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate  ";
+      h2dtname="uhScalEvHodPos"+plane_names[ip]+"Pad"+i2dbarname;
+      hScalHodPosEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+      hod_scalneg_rate[ip][ibar]=0;
+      hod_scalpos_rate[ip][ibar]=0;
+    }
+  }
+  //
+  //
+  for(UInt_t ip = 0; ip < NPLANES; ip++) {
+    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+      i2dbarname = Form("%d",ibar+1);
+      list_name ="H.hod."+plane_names[ip]+i2dbarname+".negScalerRate";
+      T->SetBranchAddress(list_name,&hod_scalneg[ip][ibar]);
+      list_name ="H.hod."+plane_names[ip]+i2dbarname+".posScalerRate";
+      T->SetBranchAddress(list_name,&hod_scalpos[ip][ibar]);
+    }
+  }
+  // Loop over the events, filling the histograms
+  //  cout << " looping over data " << endl;
+  for(UInt_t iev = 0; iev < totev; iev++) {
+    //    cout << " iev = " << iev << endl;
+    //       cout << " get entry = " << iev << endl;
+    T->GetEntry(iev);
+    //
+    for(UInt_t ip = 0; ip < NTRIGS; ip++) {
+      hScalTrig[ip]->SetBinContent(iev,trig_scal[ip]);
+      if (bcm_scal[0] > good_bcm_limit) trig_ave[ip]+=trig_scal[ip];
+    }
+    //
+    for(UInt_t ip = 0; ip < NBCMS; ip++) {
+      hScalBCM[ip]->SetBinContent(iev,bcm_scal[ip]);
+      bcm_cur[ip]=(bcm_scal[ip]-bcm_offset[ip])/bcm_slope[ip];
+      hCurBCM[ip]->SetBinContent(iev,bcm_cur[ip]);         
+      if (bcm_scal[0] > good_bcm_limit) bcm_ave_cur[ip]+=bcm_cur[ip];
+      if (bcm_scal[0] > good_bcm_limit) bcm_ave_rate[ip]+=bcm_scal[ip];
+    }
+    if (bcm_scal[0] > good_bcm_limit) good_bcm++;
+    //
+    for(UInt_t ip = 0; ip < NPLANES; ip++) {
+      for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+	hScalHodNegEv[ip][ibar]->SetBinContent(iev,hod_scalneg[ip][ibar]);
+	hScalHodPosEv[ip][ibar]->SetBinContent(iev,hod_scalpos[ip][ibar]);
+	if (bcm_scal[0] > good_bcm_limit) {
+	  hod_scalneg_rate[ip][ibar]+=hod_scalneg[ip][ibar];
+	  hod_scalpos_rate[ip][ibar]+=hod_scalpos[ip][ibar];
+	}
+	// cout << ip+1 << " " << ibar+1 << " " << hod_scalneg[ip][ibar]<< " " << hod_scalpos[ip][ibar] << endl;
+      }
+    }    
+    //     cout  << " finish event = " << iev << endl; 
+  }
+  cout << " Done " << endl;
+  // calculate average when beam-on
+  if (good_bcm >0) {
+    cout << " tot ev = " << totev << " Good BCm events = " << good_bcm << endl;
+    for(UInt_t ip = 0; ip < NBCMS; ip++) {
+      hAveCurBCM->SetBinContent(ip,bcm_ave_cur[ip]/good_bcm);
+      hAveRateBCM->SetBinContent(ip,bcm_ave_rate[ip]/good_bcm);
+    }
+    for(UInt_t ip = 0; ip < NTRIGS; ip++) {
+      hAveTrig->SetBinContent(ip,trig_ave[ip]/good_bcm);
+    }
+    for(UInt_t ip = 0; ip < NPLANES; ip++) {
+      for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+	hScalHodNeg[ip]->SetBinContent(ibar+1,hod_scalneg_rate[ip][ibar]/good_bcm);
+	hScalHodPos[ip]->SetBinContent(ibar+1,hod_scalpos_rate[ip][ibar]/good_bcm);
+      }
+    }
+  }
+  //
+  return;
+}
+
+
+
+void plot_hms_scalers(TString histname,TString histname2) {
+  const UInt_t NTRIGS  = 6;
+  const TString trig_names[NTRIGS]={"h1X","h1Y","h1Xh1y","h2X","h2Y","hTrig"};
+  const UInt_t NPLANES  = 4;
+  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
+  const TString bar_names[16] = {"Pad01", "Pad02", "Pad03", "Pad04","Pad05", "Pad06", "Pad07", "Pad08","Pad09","Pad10","Pad11", "Pad12", "Pad13", "Pad14","Pad15", "Pad16"};
+  const UInt_t  nbars[NPLANES] = {16, 10, 16, 10};
+  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 1};
+  TH1F* h;
+  TH1F* hh;
+  TH1F* htrig;
+  TH1F* hhtrig;
+  TText* htext;
+  TText* hhtext;
+  Double_t aveh=0,avehh=0;
+  h = (TH1F*) gDirectory->Get(histname);
+  hh = (TH1F*) gDirectory->Get(histname2);
+  if(!h) {
+    UserScript();
+    h = (TH1F*) gDirectory->Get(histname);
+    if(!h) {
+      cout << "User histogram " << histname << " not found" << endl;
+      exit(1);
+    }
+    if (histname2!="none") {
+      hh = (TH1F*) gDirectory->Get(histname2);
+      if(!hh) {
+	cout << "User histogram " << histname2 << " not found" << endl;
+	exit(1);
+      } 
+    }
+  }
+  if (histname.Contains("Trig")) {
+    htrig = (TH1F*) gDirectory->Get("AveTrig");
+  }
+  if (histname2.Contains("Trig")) {
+    hhtrig = (TH1F*) gDirectory->Get("AveTrig");
+  }
+  for (Int_t ip=0;ip<NTRIGS;ip++) {
+    if (histname.Contains(trig_names[ip])) aveh=htrig->GetBinContent(ip);
+    if (histname2.Contains(trig_names[ip])) avehh=hhtrig->GetBinContent(ip);
+  }
+  // cout << histname.Contains("adcpeak") << endl;
+  Double_t maxf=0,max1=0,max2=0;
+  h->SetStats(0);
+  h->GetXaxis()->SetTitleOffset(.6);
+  h->GetXaxis()->SetTitleSize(0.08);
+  h->GetYaxis()->SetTitleOffset(.6);
+  h->GetYaxis()->SetTitleSize(0.08);
+  h->SetMinimum(0);
+  max1=h->GetBinContent(h->GetMaximumBin());
+  if (histname.Contains("uhScalHod")) {
+    TH1F* h1hod;
+    TH1F* h2hod;
+    TString h1title;
+    TString h2title;
+    UInt_t ipl_f1=0;
+    UInt_t ipl_f2=0;
+    for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
+      if (histname.Contains(plane_names[ipl]))ipl_f1 = ipl;
+      if (histname2.Contains(plane_names[ipl])) ipl_f2=ipl;
+    }
+    if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl_f1];
+    if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl_f1];
+    if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl_f2];
+    if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl_f2];
+    h1hod = (TH1F*) gDirectory->Get(h1title);
+    h2hod = (TH1F*) gDirectory->Get(h2title);
+    for(UInt_t ibar = nbars_low[ipl_f1]-1; ibar < nbars[ipl_f1]; ibar++) {
+      if (h1hod) aveh+=h1hod->GetBinContent(ibar+1);
+    }
+    for(UInt_t ibar = nbars_low[ipl_f2]-1; ibar < nbars[ipl_f2]; ibar++) {
+      if (h2hod) avehh+=h2hod->GetBinContent(ibar+1);
+    }
+  }
+  if (histname.Contains("EvHod")) {
+    TH1F* h1hod;
+    TH1F* h2hod;
+    TString h1title;
+    TString h2title;
+    TString i2barname;
+    for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
+      for(UInt_t ibar = nbars_low[ipl]-1; ibar < nbars[ipl]; ibar++) {
+	if (histname.Contains(plane_names[ipl]) && histname.Contains(bar_names[ibar])) {
+	  if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl];
+	  if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl];
+	  h1hod = (TH1F*) gDirectory->Get(h1title);
+	  if (h1hod) aveh=h1hod->GetBinContent(ibar+1);
+	}
+	if (histname2.Contains(plane_names[ipl]) && histname2.Contains(bar_names[ibar])) {
+	  if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl];
+	  if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl];
+	  h2hod = (TH1F*) gDirectory->Get(h2title);
+	  if (h2hod) avehh=h2hod->GetBinContent(ibar+1);
+	}
+      }
+    }
+  }
+  if (histname.Contains("BCM") || histname.Contains("Unser")) {
+    TH1F* hbcm;
+    if (histname.Contains("Cur") ) hbcm = (TH1F*) gDirectory->Get("AveCurBCM");
+    if (histname.Contains("Scal") ) hbcm = (TH1F*) gDirectory->Get("AveRateBCM");
+    if (histname.Contains("BCM1")) aveh=hbcm->GetBinContent(0);
+    if (histname.Contains("BCM2")) aveh=hbcm->GetBinContent(1);
+    if (histname.Contains("Unser")) aveh=hbcm->GetBinContent(2);
+    if (histname2!="none") {
+      if (histname2.Contains("BCM1")) avehh=hbcm->GetBinContent(0);
+      if (histname2.Contains("BCM2")) avehh=hbcm->GetBinContent(1);
+      if (histname2.Contains("Unser")) avehh=hbcm->GetBinContent(2);
+    }
+  }
+  if (hh)  max2=hh->GetBinContent(hh->GetMaximumBin());
+  maxf=max1*1.2;
+  if (hh && max2>max1) maxf=max2*1.2;
+  if (h && !histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Ave = %7.2f",h->GetTitle(),aveh));
+  if (hh && !histname.Contains("uhScalHod")) hhtext = new TText(2,maxf*.90,Form("%s Ave = %7.2f",hh->GetTitle(),avehh));
+  if (h && histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Integral = %7.2f",h->GetTitle(),aveh));
+  if (hh && histname.Contains("uhScalHod")) hhtext = new TText(2,maxf*.90,Form("%s Integral = %7.2f",hh->GetTitle(),avehh));
+  h->SetMaximum(maxf);
+  h->Draw("p");
+  h->SetMarkerStyle(7);
+  h->SetMarkerColor(1);
+  htext->Draw();
+  if (hh) {
+    hh->Draw("p same");
+    hh->SetMarkerColor(2);
+    hh->SetMarkerStyle(7);
+    hhtext->Draw();
+    hhtext->SetTextColor(2);
+  }
+}
+
diff --git a/onlineGUI/Macros/SCALERS/plot_shms_scalers.C b/onlineGUI/Macros/SCALERS/plot_shms_scalers.C
new file mode 100644
index 0000000000000000000000000000000000000000..904db1df62fb074d9fb8c772f443c030875e9c33
--- /dev/null
+++ b/onlineGUI/Macros/SCALERS/plot_shms_scalers.C
@@ -0,0 +1,288 @@
+// UserScript.C
+//
+// Helper macro to build additional histograms
+
+void UserScript()
+{
+  //
+  const UInt_t NTRIGS  = 6;
+  const TString trig_names[NTRIGS]={"S1X","S1Y","S1XS1Y","S2X","S2Y","Trig"};
+  TH1F* hScalTrig[NTRIGS];
+  Double_t trig_scal[NTRIGS];
+  Double_t trig_ave[NTRIGS]={0,0,0,0,0,0};
+  TH1F* hAveTrig;
+  hAveTrig=new TH1F("AveTrig","Ave Trig Rates ",NTRIGS,0,NTRIGS);
+  //
+  const UInt_t NBCMS  = 3;
+  const TString bcm_names[NBCMS] = {"BCM1", "BCM2","Unser"};
+  TH1F* hScalBCM[NBCMS];
+  TH1F* hCurBCM[NBCMS];
+  TH1F* hAveCurBCM;
+  hAveCurBCM=new TH1F("AveCurBCM","Ave Current ",NBCMS,0,NBCMS);
+  TH1F* hAveRateBCM;
+  hAveRateBCM=new TH1F("AveRateBCM","Ave BCM Rate ",NBCMS,0,NBCMS);
+  Double_t bcm_scal[NBCMS];
+  Double_t bcm_cur[NBCMS];
+  Double_t bcm_ave_cur[NBCMS]={0.,0.,0.};
+  Double_t bcm_ave_rate[NBCMS]={0.,0.,0.};
+  Double_t bcm_offset[NBCMS]={250000,250000,393000};
+  Double_t bcm_slope[NBCMS]={4500*1.15,4500,4000};
+  //
+  const UInt_t NPLANES  = 4;
+  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
+  const UInt_t  nbars[NPLANES] = {13, 13, 14, 16};
+  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 7};
+  TH1F* hScalHodNegEv[NPLANES][16];
+  TH1F* hScalHodPosEv[NPLANES][16];
+  TH1F* hScalHodNeg[NPLANES];
+  TH1F* hScalHodPos[NPLANES];
+  Double_t hod_scalneg[NPLANES][16];
+  Double_t hod_scalpos[NPLANES][16];
+  Double_t hod_scalneg_rate[NPLANES][16];
+  Double_t hod_scalpos_rate[NPLANES][16];
+  Double_t good_bcm=0;
+  Double_t good_bcm_limit=260000.;
+  //
+  TTree *T=(TTree*)gDirectory->Get("TSP");
+  Int_t totev=T->GetEntries();
+  totev=400;
+  //
+  TString i2dbarname;TString h2dttitle;TString h2dtname;TString list_name;
+  for(UInt_t ip = 0; ip < NTRIGS; ip++) {
+    h2dttitle= trig_names[ip]+"; Event Number  ; Rate ";
+    h2dtname="uhScalTrig"+trig_names[ip];
+    hScalTrig[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+    list_name ="P."+trig_names[ip]+".scalerRate";
+    T->SetBranchAddress(list_name,&trig_scal[ip]);
+  }
+  //
+  for(UInt_t ip = 0; ip < NBCMS; ip++) {
+    h2dttitle= bcm_names[ip]+"; Event Number  ;  Rate ";
+    h2dtname="uhScal"+bcm_names[ip];
+    hScalBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+    h2dttitle= bcm_names[ip]+"; Event Number  ; Current  ";
+    h2dtname="uhCur"+bcm_names[ip];
+    hCurBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+    list_name ="P."+bcm_names[ip]+".scalerRate";
+    T->SetBranchAddress(list_name,&bcm_scal[ip]);
+  }
+  //
+  for(UInt_t ip = 0; ip < NPLANES; ip++) {
+    h2dttitle= "Beam On,Neg"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate ";
+    h2dtname="uhScalHodNeg"+plane_names[ip];
+    hScalHodNeg[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
+    h2dttitle= "Beam On,Pos"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate   ";
+    h2dtname="uhScalHodPos"+plane_names[ip];
+    hScalHodPos[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
+    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+      i2dbarname = Form("%02d",ibar+1);
+      h2dttitle= "Neg Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate ";
+      h2dtname="uhScalEvHodNeg"+plane_names[ip]+"Pad"+i2dbarname;
+      hScalHodNegEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+      h2dttitle= "Pos Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate  ";
+      h2dtname="uhScalEvHodPos"+plane_names[ip]+"Pad"+i2dbarname;
+      hScalHodPosEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
+      hod_scalneg_rate[ip][ibar]=0;
+      hod_scalpos_rate[ip][ibar]=0;
+    }
+  }
+  //
+  //
+  for(UInt_t ip = 0; ip < NPLANES; ip++) {
+    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+      i2dbarname = Form("%d",ibar+1);
+      list_name ="P.hod."+plane_names[ip]+i2dbarname+".negScalerRate";
+      T->SetBranchAddress(list_name,&hod_scalneg[ip][ibar]);
+      list_name ="P.hod."+plane_names[ip]+i2dbarname+".posScalerRate";
+      T->SetBranchAddress(list_name,&hod_scalpos[ip][ibar]);
+    }
+  }
+  // Loop over the events, filling the histograms
+  //  cout << " looping over data " << endl;
+  for(UInt_t iev = 0; iev < totev; iev++) {
+    //    cout << " iev = " << iev << endl;
+    //       cout << " get entry = " << iev << endl;
+    T->GetEntry(iev);
+    //
+    for(UInt_t ip = 0; ip < NTRIGS; ip++) {
+      hScalTrig[ip]->SetBinContent(iev,trig_scal[ip]);
+      if (bcm_scal[0] > good_bcm_limit) trig_ave[ip]+=trig_scal[ip];
+    }
+    //
+    for(UInt_t ip = 0; ip < NBCMS; ip++) {
+      hScalBCM[ip]->SetBinContent(iev,bcm_scal[ip]);
+      bcm_cur[ip]=(bcm_scal[ip]-bcm_offset[ip])/bcm_slope[ip];
+      hCurBCM[ip]->SetBinContent(iev,bcm_cur[ip]);         
+      if (bcm_scal[0] > good_bcm_limit) bcm_ave_cur[ip]+=bcm_cur[ip];
+      if (bcm_scal[0] > good_bcm_limit) bcm_ave_rate[ip]+=bcm_scal[ip];
+    }
+    if (bcm_scal[0] > good_bcm_limit) good_bcm++;
+    //
+    for(UInt_t ip = 0; ip < NPLANES; ip++) {
+      for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+	hScalHodNegEv[ip][ibar]->SetBinContent(iev,hod_scalneg[ip][ibar]);
+	hScalHodPosEv[ip][ibar]->SetBinContent(iev,hod_scalpos[ip][ibar]);
+	if (bcm_scal[0] > good_bcm_limit) {
+	  hod_scalneg_rate[ip][ibar]+=hod_scalneg[ip][ibar];
+	  hod_scalpos_rate[ip][ibar]+=hod_scalpos[ip][ibar];
+	}
+	// cout << ip+1 << " " << ibar+1 << " " << hod_scalneg[ip][ibar]<< " " << hod_scalpos[ip][ibar] << endl;
+      }
+    }    
+    //     cout  << " finish event = " << iev << endl; 
+  }
+  cout << " Done " << endl;
+  // calculate average when beam-on
+  if (good_bcm >0) {
+    for(UInt_t ip = 0; ip < NBCMS; ip++) {
+      hAveCurBCM->SetBinContent(ip,bcm_ave_cur[ip]/good_bcm);
+      hAveRateBCM->SetBinContent(ip,bcm_ave_rate[ip]/good_bcm);
+    }
+    for(UInt_t ip = 0; ip < NTRIGS; ip++) {
+      hAveTrig->SetBinContent(ip,trig_ave[ip]/good_bcm);
+    }
+    for(UInt_t ip = 0; ip < NPLANES; ip++) {
+      for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
+	hScalHodNeg[ip]->SetBinContent(ibar+1,hod_scalneg_rate[ip][ibar]/good_bcm);
+	hScalHodPos[ip]->SetBinContent(ibar+1,hod_scalpos_rate[ip][ibar]/good_bcm);
+      }
+    }
+  }
+  //
+  return;
+}
+
+
+
+void plot_shms_scalers(TString histname,TString histname2) {
+  const UInt_t NTRIGS  = 6;
+  const TString trig_names[NTRIGS]={"s1X","s1Y","s1Xs1y","s2X","s2Y","sTrig"};
+  const UInt_t NPLANES  = 4;
+  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
+  const TString bar_names[16] = {"Pad01", "Pad02", "Pad03", "Pad04","Pad05", "Pad06", "Pad07", "Pad08","Pad09","Pad10","Pad11", "Pad12", "Pad13", "Pad14","Pad15", "Pad16"};
+  const UInt_t  nbars[NPLANES] = {13, 13, 14, 16};
+  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 7};
+  TH1F* h;
+  TH1F* hh;
+  TH1F* htrig;
+  TH1F* hhtrig;
+  TText* htext;
+  TText* hhtext;
+  Double_t aveh=0,avehh=0;
+  h = (TH1F*) gDirectory->Get(histname);
+  hh = (TH1F*) gDirectory->Get(histname2);
+  if(!h) {
+    UserScript();
+    h = (TH1F*) gDirectory->Get(histname);
+    if(!h) {
+      cout << "User histogram " << histname << " not found" << endl;
+      exit(1);
+    }
+    if (histname2!="none") {
+      hh = (TH1F*) gDirectory->Get(histname2);
+      if(!hh) {
+	cout << "User histogram " << histname2 << " not found" << endl;
+	exit(1);
+      } 
+    }
+  }
+  if (histname.Contains("Trig")) {
+    htrig = (TH1F*) gDirectory->Get("AveTrig");
+  }
+  if (histname2.Contains("Trig")) {
+    hhtrig = (TH1F*) gDirectory->Get("AveTrig");
+  }
+  for (Int_t ip=0;ip<NTRIGS;ip++) {
+    if (histname.Contains(trig_names[ip])) aveh=htrig->GetBinContent(ip);
+    if (histname2.Contains(trig_names[ip])) avehh=hhtrig->GetBinContent(ip);
+  }
+  // cout << histname.Contains("adcpeak") << endl;
+  Double_t maxf=0,max1=0,max2=0;
+  h->SetStats(0);
+  h->GetXaxis()->SetTitleOffset(.6);
+  h->GetXaxis()->SetTitleSize(0.08);
+  h->GetYaxis()->SetTitleOffset(.6);
+  h->GetYaxis()->SetTitleSize(0.08);
+  h->SetMinimum(0);
+  max1=h->GetBinContent(h->GetMaximumBin());
+  if (histname.Contains("uhScalHod")) {
+    TH1F* h1hod;
+    TH1F* h2hod;
+    TString h1title;
+    TString h2title;
+    UInt_t ipl_f1=0;
+    UInt_t ipl_f2=0;
+    for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
+      if (histname.Contains(plane_names[ipl]))ipl_f1 = ipl;
+      if (histname2.Contains(plane_names[ipl])) ipl_f2=ipl;
+    }
+    if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl_f1];
+    if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl_f1];
+    if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl_f2];
+    if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl_f2];
+    h1hod = (TH1F*) gDirectory->Get(h1title);
+    h2hod = (TH1F*) gDirectory->Get(h2title);
+    for(UInt_t ibar = nbars_low[ipl_f1]-1; ibar < nbars[ipl_f1]; ibar++) {
+      if (h1hod) aveh+=h1hod->GetBinContent(ibar+1);
+    }
+    for(UInt_t ibar = nbars_low[ipl_f2]-1; ibar < nbars[ipl_f2]; ibar++) {
+      if (h2hod) avehh+=h2hod->GetBinContent(ibar+1);
+    }
+  }
+  if (histname.Contains("EvHod")) {
+    TH1F* h1hod;
+    TH1F* h2hod;
+    TString h1title;
+    TString h2title;
+    TString i2barname;
+    for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
+      for(UInt_t ibar = nbars_low[ipl]-1; ibar < nbars[ipl]; ibar++) {
+	if (histname.Contains(plane_names[ipl]) && histname.Contains(bar_names[ibar])) {
+	  if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl];
+	  if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl];
+	  h1hod = (TH1F*) gDirectory->Get(h1title);
+	  if (h1hod) aveh=h1hod->GetBinContent(ibar+1);
+	}
+	if (histname2.Contains(plane_names[ipl]) && histname2.Contains(bar_names[ibar])) {
+	  if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl];
+	  if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl];
+	  h2hod = (TH1F*) gDirectory->Get(h2title);
+	  if (h2hod) avehh=h2hod->GetBinContent(ibar+1);
+	}
+      }
+    }
+  }
+  if (histname.Contains("BCM") || histname.Contains("Unser")) {
+    TH1F* hbcm;
+    if (histname.Contains("Cur") ) hbcm = (TH1F*) gDirectory->Get("AveCurBCM");
+    if (histname.Contains("Scal") ) hbcm = (TH1F*) gDirectory->Get("AveRateBCM");
+    if (histname.Contains("BCM1")) aveh=hbcm->GetBinContent(0);
+    if (histname.Contains("BCM2")) aveh=hbcm->GetBinContent(1);
+    if (histname.Contains("Unser")) aveh=hbcm->GetBinContent(2);
+    if (histname2!="none") {
+      if (histname2.Contains("BCM1")) avehh=hbcm->GetBinContent(0);
+      if (histname2.Contains("BCM2")) avehh=hbcm->GetBinContent(1);
+      if (histname2.Contains("Unser")) avehh=hbcm->GetBinContent(2);
+    }
+  }
+  if (hh)  max2=hh->GetBinContent(hh->GetMaximumBin());
+  maxf=max1*1.2;
+  if (hh && max2>max1) maxf=max2*1.2;
+  if (h && !histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Ave = %7.2f",h->GetTitle(),aveh));
+  if (hh && !histname.Contains("uhScalHod")) hhtext = new TText(2,maxf*.90,Form("%s Ave = %7.2f",hh->GetTitle(),avehh));
+  if (h && histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Integral = %7.2f",h->GetTitle(),aveh));
+  if (hh && histname.Contains("uhScalHod"))  hhtext = new TText(2,maxf*.90,Form("%s Integral = %7.2f",hh->GetTitle(),avehh));
+  h->SetMaximum(maxf);
+  h->Draw("p");
+  h->SetMarkerStyle(7);
+  h->SetMarkerColor(1);
+  htext->Draw();
+  if (hh) {
+    hh->Draw("p same");
+    hh->SetMarkerColor(2);
+    hh->SetMarkerStyle(7);
+    hhtext->Draw();
+    hhtext->SetTextColor(2);
+  }
+}
+
diff --git a/onlineGUI/Macros/SHMS/CER/cer_2d_ratio.C b/onlineGUI/Macros/SHMS/CER/cer_2d_ratio.C
new file mode 100644
index 0000000000000000000000000000000000000000..8fac162cdb7711174b7e529fa1b2bb8d644f145e
--- /dev/null
+++ b/onlineGUI/Macros/SHMS/CER/cer_2d_ratio.C
@@ -0,0 +1,72 @@
+// UserScript.C
+//
+// Helper macro to build additional histograms
+#include <TH2.h>
+void UserScript()
+{
+  TTree *T=(TTree*)gDirectory->Get("T");
+          Double_t ng_npesum;
+	  T->SetBranchAddress("P.ngcer.npeSum", &ng_npesum);
+          Double_t hg_npesum;
+	  T->SetBranchAddress("P.hgcer.npeSum", &hg_npesum);
+          Double_t etrack_norm;
+	  T->SetBranchAddress("P.cal.etracknorm", &etrack_norm);
+          Double_t x_fp;
+	  T->SetBranchAddress("P.dc.x_fp", &x_fp);
+          Double_t delta;
+	  T->SetBranchAddress("P.gtr.dp", &delta);
+          Double_t y_fp;
+	  T->SetBranchAddress("P.dc.y_fp", &y_fp);
+          Double_t xp_fp;
+	  T->SetBranchAddress("P.dc.xp_fp", &xp_fp);
+          Double_t yp_fp;
+	  T->SetBranchAddress("P.dc.yp_fp", &yp_fp);
+          TH2F* hng_xy_w_sumphe;
+          TH2F* hng_xy_sumphe;
+          TH2F* hng_xy;
+          hng_xy_w_sumphe = new TH2F("hng_xy_w_sumphe"," NG Cer; Y at NG (cm); X at NG (cm)",40,-40,40,40,-40,40);
+          hng_xy_sumphe = new TH2F("hng_xy_sumphe"," NG Cer (Z scale Total Npe); Y at NG (cm); X at NG (cm)",40,-40,40,40,-40,40);
+          hng_xy = new TH2F("hng_xy"," NG Cer; Y at NG (cm); X at NG (cm)",40,-40,40,40,-40,40);
+          hng_xy_elec = new TH2F("hng_xy_elec"," NG Cer; Y at NG (cm); X at NG (cm)",40,-40,40,40,-40,40);
+          hng_xy_elec_eff = new TH2F("hng_xy_elec_eff"," NG Cer Eff; Y at NG (cm); X at NG (cm)",40,-40,40,40,-40,40);
+          hhg_xy_w_sumphe = new TH2F("hhg_xy_w_sumphe"," HG Cer; Y at HG (cm); X at HG (cm)",60,-60,60,60,-60,60);
+          hhg_xy_sumphe = new TH2F("hhg_xy_sumphe"," HG Cer (Z scale Total Npe); Y at HG (cm); X at HG (cm)",60,-60,60,60,-60,60);
+          hhg_xy = new TH2F("hhg_xy"," HG Cer; Y at HG (cm); X at HG (cm)",60,-60,60,60,-60,60);
+          hhg_xy_elec = new TH2F("hhg_xy_elec"," HG Cer; Y at HG (cm); X at HG (cm)",60,-60,60,60,-60,60);
+          hhg_xy_elec_eff = new TH2F("hhg_xy_elec_eff"," HG Cer Eff; Y at HG (cm); X at HG (cm)",60,-60,60,60,-60,60);
+  for(UInt_t iev = 0, N = T->GetEntries(); iev < N; iev++) {
+    T->GetEntry(iev);
+    if (iev%10000==0) cout << " iev = " << iev << endl;
+    if ( etrack_norm > 0.8 && delta > -10 && delta < 22. ) {
+    hng_xy_w_sumphe->Fill(y_fp-90*yp_fp,x_fp-90*xp_fp,ng_npesum);    
+    hng_xy->Fill(y_fp-90*yp_fp,x_fp-90*xp_fp,1);    
+    if (ng_npesum > .5) hng_xy_elec->Fill(y_fp-90*yp_fp,x_fp-90*xp_fp,1);    
+    hhg_xy_w_sumphe->Fill(y_fp+156*yp_fp,x_fp+156*xp_fp,hg_npesum);    
+    hhg_xy->Fill(y_fp+156*yp_fp,x_fp+156*xp_fp,1);    
+    if (hg_npesum > .5) hhg_xy_elec->Fill(y_fp+156*yp_fp,x_fp+156*xp_fp,1);    
+    }
+  }
+  hng_xy_sumphe->Divide(hng_xy_w_sumphe,hng_xy,1,1,"B");
+  hhg_xy_sumphe->Divide(hhg_xy_w_sumphe,hhg_xy,1,1,"B");
+  hng_xy_elec_eff->Divide(hng_xy_elec,hng_xy,1,1,"B");
+  hhg_xy_elec_eff->Divide(hhg_xy_elec,hhg_xy,1,1,"B");
+}
+//
+void cer_2d_ratio(TString histname){
+  h2d = (TH2F*) gDirectory->Get(histname);
+  if(!h2d) {
+    UserScript();
+    h2d = (TH2F*) gDirectory->Get(histname);
+  }
+  if (h2d) {
+  h2d->SetStats(0);
+  h2d->Draw("colz");
+  //  h2d->SetMinimum(0);
+  //h2d->SetMaximum(100);
+    h2d->GetXaxis()->SetTitleOffset(.6);
+    h2d->GetXaxis()->SetTitleSize(0.08);
+    h2d->GetYaxis()->SetTitleOffset(.6);
+    h2d->GetYaxis()->SetTitleSize(0.08);
+  }
+  //
+}
diff --git a/onlineGUI/Macros/gooddraw_2d_phodo.C b/onlineGUI/Macros/SHMS/HODO/gooddraw_2d_phodo.C
similarity index 100%
rename from onlineGUI/Macros/gooddraw_2d_phodo.C
rename to onlineGUI/Macros/SHMS/HODO/gooddraw_2d_phodo.C
diff --git a/onlineGUI/Macros/rawdraw_2d_phodo.C b/onlineGUI/Macros/SHMS/HODO/rawdraw_2d_phodo.C
similarity index 100%
rename from onlineGUI/Macros/rawdraw_2d_phodo.C
rename to onlineGUI/Macros/SHMS/HODO/rawdraw_2d_phodo.C
diff --git a/onlineGUI/Macros/rawdraw_phodo.C b/onlineGUI/Macros/SHMS/HODO/rawdraw_phodo.C
similarity index 100%
rename from onlineGUI/Macros/rawdraw_phodo.C
rename to onlineGUI/Macros/SHMS/HODO/rawdraw_phodo.C
diff --git a/onlineGUI/Macros/plot_hms_scalers.C b/onlineGUI/Macros/plot_hms_scalers.C
deleted file mode 100644
index b7c79fa79469ace96d2845a7667dfef6122396dd..0000000000000000000000000000000000000000
--- a/onlineGUI/Macros/plot_hms_scalers.C
+++ /dev/null
@@ -1,289 +0,0 @@
-// UserScript.C
-//
-// Helper macro to build additional histograms
-
-void UserScript()
-{
-  //
-  const UInt_t NTRIGS  = 6;
-  const TString trig_names[NTRIGS]={"h1X","h1Y","h1Xh1y","h2X","h2Y","hTrig"};
-  TH1F* hScalTrig[NTRIGS];
-  Double_t trig_scal[NTRIGS];
-  Double_t trig_ave[NTRIGS]={0,0,0,0,0,0};
-    TH1F* hAveTrig;
-    hAveTrig=new TH1F("AveTrig","Ave Trig Rates ",NTRIGS,0,NTRIGS);
-  //
-  const UInt_t NBCMS  = 3;
-  const TString bcm_names[NBCMS] = {"BCM1", "BCM2","Unser"};
-    TH1F* hScalBCM[NBCMS];
-    TH1F* hCurBCM[NBCMS];
-    TH1F* hAveCurBCM;
-    hAveCurBCM=new TH1F("AveCurBCM","Ave Current ",NBCMS,0,NBCMS);
-    TH1F* hAveRateBCM;
-    hAveRateBCM=new TH1F("AveRateBCM","Ave BCM Rate ",NBCMS,0,NBCMS);
-   Double_t bcm_scal[NBCMS];
-   Double_t bcm_cur[NBCMS];
-   Double_t bcm_ave_cur[NBCMS]={0.,0.,0.};
-   Double_t bcm_ave_rate[NBCMS]={0.,0.,0.};
-   Double_t bcm_offset[NBCMS]={250000,250000,393000};
-   Double_t bcm_slope[NBCMS]={4500*1.15,4500,4000};
-  //
-  const UInt_t NPLANES  = 4;
-  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
-  const UInt_t  nbars[NPLANES] = {16, 10, 16, 10};
-  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 1};
-  TH1F* hScalHodNegEv[NPLANES][16];
-  TH1F* hScalHodPosEv[NPLANES][16];
-  TH1F* hScalHodNeg[NPLANES];
-  TH1F* hScalHodPos[NPLANES];
-  Double_t hod_scalneg[NPLANES][16];
-  Double_t hod_scalpos[NPLANES][16];
-  Double_t hod_scalneg_rate[NPLANES][16];
-  Double_t hod_scalpos_rate[NPLANES][16];
-  Double_t good_bcm=0;
-  Double_t good_bcm_limit=265000.;
-  //
- TTree *T=(TTree*)gDirectory->Get("TSHS");
-  Int_t totev=T->GetEntries();
-  // totev=400;
-  //
-  TString i2dbarname;TString h2dttitle;TString h2dtname;TString list_name;
-  for(UInt_t ip = 0; ip < NTRIGS; ip++) {
-     h2dttitle= trig_names[ip]+"; Event Number  ; Rate ";
-     h2dtname="uhScalTrig"+trig_names[ip];
-    hScalTrig[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-    list_name ="HS"+trig_names[ip]+"r";
-    T->SetBranchAddress(list_name,&trig_scal[ip]);
-  }
-  //
-  for(UInt_t ip = 0; ip < NBCMS; ip++) {
-     h2dttitle= bcm_names[ip]+"; Event Number  ;  Rate ";
-     h2dtname="uhScal"+bcm_names[ip];
-    hScalBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-     h2dttitle= bcm_names[ip]+"; Event Number  ; Current  ";
-     h2dtname="uhCur"+bcm_names[ip];
-    hCurBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-    list_name ="HS"+bcm_names[ip]+"r";
-    T->SetBranchAddress(list_name,&bcm_scal[ip]);
-  }
-  //
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	      h2dttitle= "Beam On,Neg"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate ";
-	      h2dtname="uhScalHodNeg"+plane_names[ip];
-              hScalHodNeg[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
-	      h2dttitle= "Beam on,Pos"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate   ";
-	      h2dtname="uhScalHodPos"+plane_names[ip];
-              hScalHodPos[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
- 	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      i2dbarname = Form("%02d",ibar+1);
-	      h2dttitle= "Neg Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate ";
-	      h2dtname="uhScalEvHodNeg"+plane_names[ip]+"Pad"+i2dbarname;
-             hScalHodNegEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-	      h2dttitle= "Pos Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate  ";
-	      h2dtname="uhScalEvHodPos"+plane_names[ip]+"Pad"+i2dbarname;
-              hScalHodPosEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-              hod_scalneg_rate[ip][ibar]=0;
-              hod_scalpos_rate[ip][ibar]=0;
-	    }
-  }
-  //
-  //
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      i2dbarname = Form("%d",ibar+1);
-	       list_name ="HShhod"+plane_names[ip]+i2dbarname+"Mr";
-	       T->SetBranchAddress(list_name,&hod_scalneg[ip][ibar]);
-	       list_name ="HShhod"+plane_names[ip]+i2dbarname+"Pr";
-	       T->SetBranchAddress(list_name,&hod_scalpos[ip][ibar]);
-	    }
-  }
-  // Loop over the events, filling the histograms
-  //  cout << " looping over data " << endl;
-  for(UInt_t iev = 0; iev < totev; iev++) {
-    //    cout << " iev = " << iev << endl;
-    //       cout << " get entry = " << iev << endl;
-    T->GetEntry(iev);
-    //
-    for(UInt_t ip = 0; ip < NTRIGS; ip++) {
-         hScalTrig[ip]->SetBinContent(iev,trig_scal[ip]);
-        if (bcm_scal[0] > good_bcm_limit) trig_ave[ip]+=trig_scal[ip];
-     }
-    //
-    for(UInt_t ip = 0; ip < NBCMS; ip++) {
-         hScalBCM[ip]->SetBinContent(iev,bcm_scal[ip]);
-         bcm_cur[ip]=(bcm_scal[ip]-bcm_offset[ip])/bcm_slope[ip];
-         hCurBCM[ip]->SetBinContent(iev,bcm_cur[ip]);         
-         if (bcm_scal[0] > good_bcm_limit) bcm_ave_cur[ip]+=bcm_cur[ip];
-         if (bcm_scal[0] > good_bcm_limit) bcm_ave_rate[ip]+=bcm_scal[ip];
-     }
-       if (bcm_scal[0] > good_bcm_limit) good_bcm++;
-//
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      hScalHodNegEv[ip][ibar]->SetBinContent(iev,hod_scalneg[ip][ibar]);
-	      hScalHodPosEv[ip][ibar]->SetBinContent(iev,hod_scalpos[ip][ibar]);
-             if (bcm_scal[0] > good_bcm_limit) {
-                  hod_scalneg_rate[ip][ibar]+=hod_scalneg[ip][ibar];
-                 hod_scalpos_rate[ip][ibar]+=hod_scalpos[ip][ibar];
-  	      }
-	      // cout << ip+1 << " " << ibar+1 << " " << hod_scalneg[ip][ibar]<< " " << hod_scalpos[ip][ibar] << endl;
-	    }
-  }    
-     //     cout  << " finish event = " << iev << endl; 
-}
-  cout << " Done " << endl;
-// calculate average when beam-on
-if (good_bcm >0) {
-  cout << " tot ev = " << totev << " Good BCm events = " << good_bcm << endl;
-  for(UInt_t ip = 0; ip < NBCMS; ip++) {
-    hAveCurBCM->SetBinContent(ip,bcm_ave_cur[ip]/good_bcm);
-    hAveRateBCM->SetBinContent(ip,bcm_ave_rate[ip]/good_bcm);
-  }
-  for(UInt_t ip = 0; ip < NTRIGS; ip++) {
-    hAveTrig->SetBinContent(ip,trig_ave[ip]/good_bcm);
-  }
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      hScalHodNeg[ip]->SetBinContent(ibar+1,hod_scalneg_rate[ip][ibar]/good_bcm);
-	      hScalHodPos[ip]->SetBinContent(ibar+1,hod_scalpos_rate[ip][ibar]/good_bcm);
-            }
-  }
-}
-	      //
-  return;
-}
-
-
-
-void plot_hms_scalers(TString histname,TString histname2) {
-  const UInt_t NTRIGS  = 6;
-  const TString trig_names[NTRIGS]={"h1X","h1Y","h1Xh1y","h2X","h2Y","hTrig"};
-  const UInt_t NPLANES  = 4;
-  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
-  const TString bar_names[16] = {"Pad01", "Pad02", "Pad03", "Pad04","Pad05", "Pad06", "Pad07", "Pad08","Pad09","Pad10","Pad11", "Pad12", "Pad13", "Pad14","Pad15", "Pad16"};
-  const UInt_t  nbars[NPLANES] = {16, 10, 16, 10};
-  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 1};
-  TH1F* h;
-  TH1F* hh;
-  TH1F* htrig;
-  TH1F* hhtrig;
-  TText* htext;
-  TText* hhtext;
-  Double_t aveh=0,avehh=0;
-  h = (TH1F*) gDirectory->Get(histname);
-  hh = (TH1F*) gDirectory->Get(histname2);
-  if(!h) {
-    UserScript();
-    h = (TH1F*) gDirectory->Get(histname);
-    if(!h) {
-      cout << "User histogram " << histname << " not found" << endl;
-      exit(1);
-    }
-    if (histname2!="none") {
-    hh = (TH1F*) gDirectory->Get(histname2);
-    if(!hh) {
-      cout << "User histogram " << histname2 << " not found" << endl;
-      exit(1);
-    } 
-    }
-  }
-  if (histname.Contains("Trig")) {
-         htrig = (TH1F*) gDirectory->Get("AveTrig");
-  }
-  if (histname2.Contains("Trig")) {
-         hhtrig = (TH1F*) gDirectory->Get("AveTrig");
-  }
-  for (Int_t ip=0;ip<NTRIGS;ip++) {
-    if (histname.Contains(trig_names[ip])) aveh=htrig->GetBinContent(ip);
-    if (histname2.Contains(trig_names[ip])) avehh=hhtrig->GetBinContent(ip);
-  }
-  // cout << histname.Contains("adcpeak") << endl;
-  Double_t maxf=0,max1=0,max2=0;
-    h->SetStats(0);
-    h->GetXaxis()->SetTitleOffset(.6);
-    h->GetXaxis()->SetTitleSize(0.08);
-    h->GetYaxis()->SetTitleOffset(.6);
-    h->GetYaxis()->SetTitleSize(0.08);
-    h->SetMinimum(0);
-    max1=h->GetBinContent(h->GetMaximumBin());
-    if (histname.Contains("uhScalHod")) {
-         TH1F* h1hod;
-         TH1F* h2hod;
-         TString h1title;
-         TString h2title;
-         UInt_t ipl_f1=0;
-         UInt_t ipl_f2=0;
-         for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
-	   if (histname.Contains(plane_names[ipl]))ipl_f1 = ipl;
-	   if (histname2.Contains(plane_names[ipl])) ipl_f2=ipl;
-	 }
-	     if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl_f1];
-	     if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl_f1];
-	     if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl_f2];
-	     if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl_f2];
-	     h1hod = (TH1F*) gDirectory->Get(h1title);
-	     h2hod = (TH1F*) gDirectory->Get(h2title);
- 	     for(UInt_t ibar = nbars_low[ipl_f1]-1; ibar < nbars[ipl_f1]; ibar++) {
- 	     if (h1hod) aveh+=h1hod->GetBinContent(ibar+1);
-	     }
- 	     for(UInt_t ibar = nbars_low[ipl_f2]-1; ibar < nbars[ipl_f2]; ibar++) {
-	     if (h2hod) avehh+=h2hod->GetBinContent(ibar+1);
-	     }
-    }
-    if (histname.Contains("EvHod")) {
-         TH1F* h1hod;
-         TH1F* h2hod;
-         TString h1title;
-         TString h2title;
-         TString i2barname;
-         for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
- 	    for(UInt_t ibar = nbars_low[ipl]-1; ibar < nbars[ipl]; ibar++) {
-            if (histname.Contains(plane_names[ipl]) && histname.Contains(bar_names[ibar])) {
-	     if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl];
-	     if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl];
-	     h1hod = (TH1F*) gDirectory->Get(h1title);
- 	     if (h1hod) aveh=h1hod->GetBinContent(ibar+1);
-            }
-            if (histname2.Contains(plane_names[ipl]) && histname2.Contains(bar_names[ibar])) {
-	     if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl];
-	     if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl];
-	     h2hod = (TH1F*) gDirectory->Get(h2title);
- 	     if (h2hod) avehh=h2hod->GetBinContent(ibar+1);
-            }
-	    }
-         }
-    }
-    if (histname.Contains("BCM") || histname.Contains("Unser")) {
-         TH1F* hbcm;
-         if (histname.Contains("Cur") ) hbcm = (TH1F*) gDirectory->Get("AveCurBCM");
-         if (histname.Contains("Scal") ) hbcm = (TH1F*) gDirectory->Get("AveRateBCM");
-         if (histname.Contains("BCM1")) aveh=hbcm->GetBinContent(0);
-         if (histname.Contains("BCM2")) aveh=hbcm->GetBinContent(1);
-         if (histname.Contains("Unser")) aveh=hbcm->GetBinContent(2);
-         if (histname2!="none") {
-         if (histname2.Contains("BCM1")) avehh=hbcm->GetBinContent(0);
-         if (histname2.Contains("BCM2")) avehh=hbcm->GetBinContent(1);
-         if (histname2.Contains("Unser")) avehh=hbcm->GetBinContent(2);
-	 }
-    }
-    if (hh)  max2=hh->GetBinContent(hh->GetMaximumBin());
-    maxf=max1*1.2;
-    if (hh && max2>max1) maxf=max2*1.2;
-    if (h && !histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Ave = %7.2f",h->GetTitle(),aveh));
-    if (hh && !histname.Contains("uhScalHod")) hhtext = new TText(2,maxf*.90,Form("%s Ave = %7.2f",hh->GetTitle(),avehh));
-    if (h && histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Integral = %7.2f",h->GetTitle(),aveh));
-    if (hh && histname.Contains("uhScalHod")) hhtext = new TText(2,maxf*.90,Form("%s Integral = %7.2f",hh->GetTitle(),avehh));
-    h->SetMaximum(maxf);
-    h->Draw("p");
-    h->SetMarkerStyle(7);
-    h->SetMarkerColor(1);
-    htext->Draw();
-    if (hh) {
-    hh->Draw("p same");
-    hh->SetMarkerColor(2);
-    hh->SetMarkerStyle(7);
-    hhtext->Draw();
-    hhtext->SetTextColor(2);
-    }
-}
-
diff --git a/onlineGUI/Macros/plot_shms_scalers.C b/onlineGUI/Macros/plot_shms_scalers.C
deleted file mode 100644
index 5259e871f97220cf8a2d7191ff15d739daca69ae..0000000000000000000000000000000000000000
--- a/onlineGUI/Macros/plot_shms_scalers.C
+++ /dev/null
@@ -1,288 +0,0 @@
-// UserScript.C
-//
-// Helper macro to build additional histograms
-
-void UserScript()
-{
-  //
-  const UInt_t NTRIGS  = 6;
-  const TString trig_names[NTRIGS]={"s1X","s1Y","s1Xs1y","s2X","s2Y","sTrig"};
-  TH1F* hScalTrig[NTRIGS];
-  Double_t trig_scal[NTRIGS];
-  Double_t trig_ave[NTRIGS]={0,0,0,0,0,0};
-    TH1F* hAveTrig;
-    hAveTrig=new TH1F("AveTrig","Ave Trig Rates ",NTRIGS,0,NTRIGS);
-  //
-  const UInt_t NBCMS  = 3;
-  const TString bcm_names[NBCMS] = {"BCM1", "BCM2","Unser"};
-    TH1F* hScalBCM[NBCMS];
-    TH1F* hCurBCM[NBCMS];
-    TH1F* hAveCurBCM;
-    hAveCurBCM=new TH1F("AveCurBCM","Ave Current ",NBCMS,0,NBCMS);
-    TH1F* hAveRateBCM;
-    hAveRateBCM=new TH1F("AveRateBCM","Ave BCM Rate ",NBCMS,0,NBCMS);
-   Double_t bcm_scal[NBCMS];
-   Double_t bcm_cur[NBCMS];
-   Double_t bcm_ave_cur[NBCMS]={0.,0.,0.};
-   Double_t bcm_ave_rate[NBCMS]={0.,0.,0.};
-   Double_t bcm_offset[NBCMS]={250000,250000,393000};
-   Double_t bcm_slope[NBCMS]={4500*1.15,4500,4000};
-  //
-  const UInt_t NPLANES  = 4;
-  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
-  const UInt_t  nbars[NPLANES] = {13, 13, 14, 16};
-  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 7};
-  TH1F* hScalHodNegEv[NPLANES][16];
-  TH1F* hScalHodPosEv[NPLANES][16];
-  TH1F* hScalHodNeg[NPLANES];
-  TH1F* hScalHodPos[NPLANES];
-  Double_t hod_scalneg[NPLANES][16];
-  Double_t hod_scalpos[NPLANES][16];
-  Double_t hod_scalneg_rate[NPLANES][16];
-  Double_t hod_scalpos_rate[NPLANES][16];
-  Double_t good_bcm=0;
-  Double_t good_bcm_limit=260000.;
-  //
- TTree *T=(TTree*)gDirectory->Get("TSPS");
-  Int_t totev=T->GetEntries();
-  totev=400;
-  //
-  TString i2dbarname;TString h2dttitle;TString h2dtname;TString list_name;
-  for(UInt_t ip = 0; ip < NTRIGS; ip++) {
-     h2dttitle= trig_names[ip]+"; Event Number  ; Rate ";
-     h2dtname="uhScalTrig"+trig_names[ip];
-    hScalTrig[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-    list_name ="PS"+trig_names[ip]+"r";
-    T->SetBranchAddress(list_name,&trig_scal[ip]);
-  }
-  //
-  for(UInt_t ip = 0; ip < NBCMS; ip++) {
-     h2dttitle= bcm_names[ip]+"; Event Number  ;  Rate ";
-     h2dtname="uhScal"+bcm_names[ip];
-    hScalBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-     h2dttitle= bcm_names[ip]+"; Event Number  ; Current  ";
-     h2dtname="uhCur"+bcm_names[ip];
-    hCurBCM[ip]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-    list_name ="PS"+bcm_names[ip]+"r";
-    T->SetBranchAddress(list_name,&bcm_scal[ip]);
-  }
-  //
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	      h2dttitle= "Beam On,Neg"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate ";
-	      h2dtname="uhScalHodNeg"+plane_names[ip];
-              hScalHodNeg[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
-	      h2dttitle= "Beam On,Pos"+plane_names[ip]+"; Scintillator Bar  ; Ave Rate   ";
-	      h2dtname="uhScalHodPos"+plane_names[ip];
-              hScalHodPos[ip]= new TH1F(h2dtname,h2dttitle,nbars[ip],0.5,nbars[ip]+.5);
- 	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      i2dbarname = Form("%02d",ibar+1);
-	      h2dttitle= "Neg Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate ";
-	      h2dtname="uhScalEvHodNeg"+plane_names[ip]+"Pad"+i2dbarname;
-             hScalHodNegEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-	      h2dttitle= "Pos Hod"+plane_names[ip]+i2dbarname+"; Event Number  ; Rate  ";
-	      h2dtname="uhScalEvHodPos"+plane_names[ip]+"Pad"+i2dbarname;
-              hScalHodPosEv[ip][ibar]= new TH1F(h2dtname,h2dttitle,totev,0,totev);
-              hod_scalneg_rate[ip][ibar]=0;
-              hod_scalpos_rate[ip][ibar]=0;
-	    }
-  }
-  //
-  //
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      i2dbarname = Form("%d",ibar+1);
-	       list_name ="PSshod"+plane_names[ip]+i2dbarname+"Mr";
-	       T->SetBranchAddress(list_name,&hod_scalneg[ip][ibar]);
-	       list_name ="PSshod"+plane_names[ip]+i2dbarname+"Pr";
-	       T->SetBranchAddress(list_name,&hod_scalpos[ip][ibar]);
-	    }
-  }
-  // Loop over the events, filling the histograms
-  //  cout << " looping over data " << endl;
-  for(UInt_t iev = 0; iev < totev; iev++) {
-    //    cout << " iev = " << iev << endl;
-    //       cout << " get entry = " << iev << endl;
-    T->GetEntry(iev);
-    //
-    for(UInt_t ip = 0; ip < NTRIGS; ip++) {
-         hScalTrig[ip]->SetBinContent(iev,trig_scal[ip]);
-        if (bcm_scal[0] > good_bcm_limit) trig_ave[ip]+=trig_scal[ip];
-     }
-    //
-    for(UInt_t ip = 0; ip < NBCMS; ip++) {
-         hScalBCM[ip]->SetBinContent(iev,bcm_scal[ip]);
-         bcm_cur[ip]=(bcm_scal[ip]-bcm_offset[ip])/bcm_slope[ip];
-         hCurBCM[ip]->SetBinContent(iev,bcm_cur[ip]);         
-         if (bcm_scal[0] > good_bcm_limit) bcm_ave_cur[ip]+=bcm_cur[ip];
-         if (bcm_scal[0] > good_bcm_limit) bcm_ave_rate[ip]+=bcm_scal[ip];
-     }
-       if (bcm_scal[0] > good_bcm_limit) good_bcm++;
-//
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      hScalHodNegEv[ip][ibar]->SetBinContent(iev,hod_scalneg[ip][ibar]);
-	      hScalHodPosEv[ip][ibar]->SetBinContent(iev,hod_scalpos[ip][ibar]);
-             if (bcm_scal[0] > good_bcm_limit) {
-                  hod_scalneg_rate[ip][ibar]+=hod_scalneg[ip][ibar];
-                 hod_scalpos_rate[ip][ibar]+=hod_scalpos[ip][ibar];
-  	      }
-	      // cout << ip+1 << " " << ibar+1 << " " << hod_scalneg[ip][ibar]<< " " << hod_scalpos[ip][ibar] << endl;
-	    }
-  }    
-     //     cout  << " finish event = " << iev << endl; 
-}
-  cout << " Done " << endl;
-// calculate average when beam-on
-if (good_bcm >0) {
-  for(UInt_t ip = 0; ip < NBCMS; ip++) {
-    hAveCurBCM->SetBinContent(ip,bcm_ave_cur[ip]/good_bcm);
-    hAveRateBCM->SetBinContent(ip,bcm_ave_rate[ip]/good_bcm);
-  }
-  for(UInt_t ip = 0; ip < NTRIGS; ip++) {
-    hAveTrig->SetBinContent(ip,trig_ave[ip]/good_bcm);
-  }
-  for(UInt_t ip = 0; ip < NPLANES; ip++) {
-	    for(UInt_t ibar = nbars_low[ip]-1; ibar < nbars[ip]; ibar++) {
-	      hScalHodNeg[ip]->SetBinContent(ibar+1,hod_scalneg_rate[ip][ibar]/good_bcm);
-	      hScalHodPos[ip]->SetBinContent(ibar+1,hod_scalpos_rate[ip][ibar]/good_bcm);
-            }
-  }
-}
-	      //
-  return;
-}
-
-
-
-void plot_shms_scalers(TString histname,TString histname2) {
-  const UInt_t NTRIGS  = 6;
-  const TString trig_names[NTRIGS]={"s1X","s1Y","s1Xs1y","s2X","s2Y","sTrig"};
-  const UInt_t NPLANES  = 4;
-  const TString plane_names[NPLANES] = {"1x", "1y", "2x", "2y"};
-  const TString bar_names[16] = {"Pad01", "Pad02", "Pad03", "Pad04","Pad05", "Pad06", "Pad07", "Pad08","Pad09","Pad10","Pad11", "Pad12", "Pad13", "Pad14","Pad15", "Pad16"};
-  const UInt_t  nbars[NPLANES] = {13, 13, 14, 16};
-  const UInt_t  nbars_low[NPLANES] = {1, 1, 1, 7};
-  TH1F* h;
-  TH1F* hh;
-  TH1F* htrig;
-  TH1F* hhtrig;
-  TText* htext;
-  TText* hhtext;
-  Double_t aveh=0,avehh=0;
-  h = (TH1F*) gDirectory->Get(histname);
-  hh = (TH1F*) gDirectory->Get(histname2);
-  if(!h) {
-    UserScript();
-    h = (TH1F*) gDirectory->Get(histname);
-    if(!h) {
-      cout << "User histogram " << histname << " not found" << endl;
-      exit(1);
-    }
-    if (histname2!="none") {
-    hh = (TH1F*) gDirectory->Get(histname2);
-    if(!hh) {
-      cout << "User histogram " << histname2 << " not found" << endl;
-      exit(1);
-    } 
-    }
-  }
-  if (histname.Contains("Trig")) {
-         htrig = (TH1F*) gDirectory->Get("AveTrig");
-  }
-  if (histname2.Contains("Trig")) {
-         hhtrig = (TH1F*) gDirectory->Get("AveTrig");
-  }
-  for (Int_t ip=0;ip<NTRIGS;ip++) {
-    if (histname.Contains(trig_names[ip])) aveh=htrig->GetBinContent(ip);
-    if (histname2.Contains(trig_names[ip])) avehh=hhtrig->GetBinContent(ip);
-  }
-  // cout << histname.Contains("adcpeak") << endl;
-  Double_t maxf=0,max1=0,max2=0;
-    h->SetStats(0);
-    h->GetXaxis()->SetTitleOffset(.6);
-    h->GetXaxis()->SetTitleSize(0.08);
-    h->GetYaxis()->SetTitleOffset(.6);
-    h->GetYaxis()->SetTitleSize(0.08);
-    h->SetMinimum(0);
-    max1=h->GetBinContent(h->GetMaximumBin());
-    if (histname.Contains("uhScalHod")) {
-         TH1F* h1hod;
-         TH1F* h2hod;
-         TString h1title;
-         TString h2title;
-         UInt_t ipl_f1=0;
-         UInt_t ipl_f2=0;
-         for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
-	   if (histname.Contains(plane_names[ipl]))ipl_f1 = ipl;
-	   if (histname2.Contains(plane_names[ipl])) ipl_f2=ipl;
-	 }
-	     if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl_f1];
-	     if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl_f1];
-	     if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl_f2];
-	     if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl_f2];
-	     h1hod = (TH1F*) gDirectory->Get(h1title);
-	     h2hod = (TH1F*) gDirectory->Get(h2title);
- 	     for(UInt_t ibar = nbars_low[ipl_f1]-1; ibar < nbars[ipl_f1]; ibar++) {
- 	     if (h1hod) aveh+=h1hod->GetBinContent(ibar+1);
-	     }
- 	     for(UInt_t ibar = nbars_low[ipl_f2]-1; ibar < nbars[ipl_f2]; ibar++) {
-	     if (h2hod) avehh+=h2hod->GetBinContent(ibar+1);
-	     }
-    }
-    if (histname.Contains("EvHod")) {
-         TH1F* h1hod;
-         TH1F* h2hod;
-         TString h1title;
-         TString h2title;
-         TString i2barname;
-         for(UInt_t ipl = 0; ipl < NPLANES; ipl++) {
- 	    for(UInt_t ibar = nbars_low[ipl]-1; ibar < nbars[ipl]; ibar++) {
-            if (histname.Contains(plane_names[ipl]) && histname.Contains(bar_names[ibar])) {
-	     if (histname.Contains("Neg")) h1title="uhScalHodNeg"+plane_names[ipl];
-	     if (histname.Contains("Pos")) h1title="uhScalHodPos"+plane_names[ipl];
-	     h1hod = (TH1F*) gDirectory->Get(h1title);
- 	     if (h1hod) aveh=h1hod->GetBinContent(ibar+1);
-            }
-            if (histname2.Contains(plane_names[ipl]) && histname2.Contains(bar_names[ibar])) {
-	     if (histname2.Contains("Neg")) h2title="uhScalHodNeg"+plane_names[ipl];
-	     if (histname2.Contains("Pos")) h2title="uhScalHodPos"+plane_names[ipl];
-	     h2hod = (TH1F*) gDirectory->Get(h2title);
- 	     if (h2hod) avehh=h2hod->GetBinContent(ibar+1);
-            }
-	    }
-         }
-    }
-    if (histname.Contains("BCM") || histname.Contains("Unser")) {
-         TH1F* hbcm;
-         if (histname.Contains("Cur") ) hbcm = (TH1F*) gDirectory->Get("AveCurBCM");
-         if (histname.Contains("Scal") ) hbcm = (TH1F*) gDirectory->Get("AveRateBCM");
-         if (histname.Contains("BCM1")) aveh=hbcm->GetBinContent(0);
-         if (histname.Contains("BCM2")) aveh=hbcm->GetBinContent(1);
-         if (histname.Contains("Unser")) aveh=hbcm->GetBinContent(2);
-         if (histname2!="none") {
-         if (histname2.Contains("BCM1")) avehh=hbcm->GetBinContent(0);
-         if (histname2.Contains("BCM2")) avehh=hbcm->GetBinContent(1);
-         if (histname2.Contains("Unser")) avehh=hbcm->GetBinContent(2);
-	 }
-    }
-    if (hh)  max2=hh->GetBinContent(hh->GetMaximumBin());
-    maxf=max1*1.2;
-    if (hh && max2>max1) maxf=max2*1.2;
-    if (h && !histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Ave = %7.2f",h->GetTitle(),aveh));
-    if (hh && !histname.Contains("uhScalHod")) hhtext = new TText(2,maxf*.90,Form("%s Ave = %7.2f",hh->GetTitle(),avehh));
-    if (h && histname.Contains("uhScalHod"))  htext = new TText(2,maxf*.95,Form("%s Integral = %7.2f",h->GetTitle(),aveh));
-    if (hh && histname.Contains("uhScalHod"))  hhtext = new TText(2,maxf*.90,Form("%s Integral = %7.2f",hh->GetTitle(),avehh));
-    h->SetMaximum(maxf);
-    h->Draw("p");
-    h->SetMarkerStyle(7);
-    h->SetMarkerColor(1);
-    htext->Draw();
-    if (hh) {
-    hh->Draw("p same");
-    hh->SetMarkerColor(2);
-    hh->SetMarkerStyle(7);
-    hhtext->Draw();
-    hhtext->SetTextColor(2);
-    }
-}
-