From af55073c621ad8747080ebf6168bc0f9130efd2e Mon Sep 17 00:00:00 2001
From: Mark Jones <jones@jlab.org>
Date: Sun, 26 Nov 2017 06:43:47 -0500
Subject: [PATCH] Make specific HMS/HODO/CUTS/KPP_Spring_2017/hhodo_cuts.param

---
 DBASE/HMS/GEN/KPP_Spring_2017/general.param   |  2 +-
 .../CUTS/KPP_Spring_2017/hhodo_cuts.param     | 43 +++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 PARAM/HMS/HODO/CUTS/KPP_Spring_2017/hhodo_cuts.param

diff --git a/DBASE/HMS/GEN/KPP_Spring_2017/general.param b/DBASE/HMS/GEN/KPP_Spring_2017/general.param
index dc882c1b..b0857584 100644
--- a/DBASE/HMS/GEN/KPP_Spring_2017/general.param
+++ b/DBASE/HMS/GEN/KPP_Spring_2017/general.param
@@ -27,7 +27,7 @@ cminch=2.54
 ; HMS default cut parameter files
 #include "PARAM/HMS/CER/CUTS/hcer_cuts.param"
 #include "PARAM/HMS/DC/CUTS/KPP_Spring_2017/hdc_cuts_6gev.param"
-#include "PARAM/HMS/HODO/CUTS/hhodo_cuts.param"
+#include "PARAM/HMS/HODO/CUTS/KPP_Spring_2017/hhodo_cuts.param"
 #include "PARAM/HMS/AERO/CUTS/haero_cuts.param"
 #include "PARAM/HMS/CAL/CUTS/hcal_cuts.param"
 
diff --git a/PARAM/HMS/HODO/CUTS/KPP_Spring_2017/hhodo_cuts.param b/PARAM/HMS/HODO/CUTS/KPP_Spring_2017/hhodo_cuts.param
new file mode 100644
index 00000000..cae48924
--- /dev/null
+++ b/PARAM/HMS/HODO/CUTS/KPP_Spring_2017/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 units of ns
+; the conversion is 0.0625 ns / channel for flash ADC 250
+hhodo_AdcTimeWindowMin = 0., 0., 0., 0.
+hhodo_AdcTimeWindowMax = 200., 200., 200., 200.
+
+; 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
-- 
GitLab