From 6247a933eb61ddc9f30f4161fd950ff82df6ff0b Mon Sep 17 00:00:00 2001
From: Yero1990 <cyero002@fiu.edu>
Date: Mon, 29 May 2017 19:08:11 -0400
Subject: [PATCH] Hodo work (#128)

* -Added the fAdcTimeWindowMin/Max parameter values per plane for the hms/shms h(p)hodo.param file

* -added comments to SHMS/HMS hodo.param file
---
 PARAM/HMS/HODO/hhodo.param  | 6 ++++++
 PARAM/SHMS/HODO/phodo.param | 8 +++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/PARAM/HMS/HODO/hhodo.param b/PARAM/HMS/HODO/hhodo.param
index 8343971e..ac89bede 100644
--- a/PARAM/HMS/HODO/hhodo.param
+++ b/PARAM/HMS/HODO/hhodo.param
@@ -10,6 +10,12 @@ hhodo_adc_mode=1
 ;   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                                  
diff --git a/PARAM/SHMS/HODO/phodo.param b/PARAM/SHMS/HODO/phodo.param
index d48b22b4..bcca416c 100644
--- a/PARAM/SHMS/HODO/phodo.param
+++ b/PARAM/SHMS/HODO/phodo.param
@@ -6,9 +6,15 @@ pcosmicflag=0
 ; if not set then defaults to use the raw pulse integral
 phodo_adc_mode=1
 ; 
-; hhodo_tdc_offset is array of time offsets for all paddles in a plane
+; phodo_tdc_offset is array of time offsets for all paddles in a plane
 ;   to move the tdc to between 0 and 4000 channels.
   phodo_tdc_offset = 1860, 2000, 2060, 2000
+
+;phodo 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
+phodo_AdcTimeWindowMin = 0., 0., 0., 640.
+phodo_AdcTimeWindowMax = 3200., 3200., 3200., 1760.
+
 ; pstart_time_center  center of allowed time window                             
    pstart_time_center = 32.                                                     
 ; hstart_time_slop    1/2 width of time window                                  
-- 
GitLab