From 60587d99911aa813b0e94f053c95c9bf71c4b7cf Mon Sep 17 00:00:00 2001
From: Eric Pooser <pooser@jlab.org>
Date: Tue, 31 Oct 2017 13:13:38 -0400
Subject: [PATCH] Update parameter files to cut on FADC pulse time window in
 units of ns

---
 PARAM/HMS/AERO/CUTS/haero_cuts.param                      | 4 ++--
 PARAM/HMS/CAL/CUTS/hcal_cuts.param                        | 4 ++--
 PARAM/HMS/CER/CUTS/hcer_cuts.param                        | 4 ++--
 PARAM/HMS/HODO/CUTS/hhodo_cuts.param                      | 4 ++--
 PARAM/SHMS/AERO/CUTS/paero_cuts.param                     | 4 ++--
 PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_479.param | 2 +-
 PARAM/SHMS/CAL/CUTS/pcal_cuts.param                       | 8 ++++----
 PARAM/SHMS/HGCER/CUTS/phgcer_cuts.param                   | 4 ++--
 PARAM/SHMS/HODO/CUTS/phodo_cuts.param                     | 4 ++--
 PARAM/SHMS/NGCER/CUTS/pngcer_cuts.param                   | 4 ++--
 10 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/PARAM/HMS/AERO/CUTS/haero_cuts.param b/PARAM/HMS/AERO/CUTS/haero_cuts.param
index 76383687..a0849e79 100644
--- a/PARAM/HMS/AERO/CUTS/haero_cuts.param
+++ b/PARAM/HMS/AERO/CUTS/haero_cuts.param
@@ -17,8 +17,8 @@ haero_dp_min = -20.0
 haero_dp_max = 25.0
 
 ; ADC time window cut values used to select "good" ADC events
-haero_adcTimeWindowMin = 500.
-haero_adcTimeWindowMax = 2500.
+haero_adcTimeWindowMin = 31.25
+haero_adcTimeWindowMax = 156.25
 
 ; NPE Threshold for "good" hit (for measureing effic.)
 haero_npe_thresh = 0.5
diff --git a/PARAM/HMS/CAL/CUTS/hcal_cuts.param b/PARAM/HMS/CAL/CUTS/hcal_cuts.param
index 782f843f..310e3468 100644
--- a/PARAM/HMS/CAL/CUTS/hcal_cuts.param
+++ b/PARAM/HMS/CAL/CUTS/hcal_cuts.param
@@ -6,8 +6,8 @@
 hcal_ADCmode=1
 
 ;FADC Pulse time window cuts
-hcal_AdcTimeWindowMin=1000.
-hcal_AdcTimeWindowMax=2800.
+hcal_AdcTimeWindowMin = 62.5
+hcal_AdcTimeWindowMax = 175.0
 
 ; threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
 hcal_AdcNegThreshold=0.
diff --git a/PARAM/HMS/CER/CUTS/hcer_cuts.param b/PARAM/HMS/CER/CUTS/hcer_cuts.param
index f149a61b..c1aefa16 100644
--- a/PARAM/HMS/CER/CUTS/hcer_cuts.param
+++ b/PARAM/HMS/CER/CUTS/hcer_cuts.param
@@ -17,8 +17,8 @@ hcer_dp_min = -20.0
 hcer_dp_max = 25.0
 
 ; ADC time window cut values used to select "good" ADC events
-hcer_adcTimeWindowMin = 1500.
-hcer_adcTimeWindowMax = 3500.
+hcer_adcTimeWindowMin = 93.75
+hcer_adcTimeWindowMax = 218.75
 
 ; NPE Threshold for good hit (for measureing effic.)
 hcer_npe_thresh = 0.5
diff --git a/PARAM/HMS/HODO/CUTS/hhodo_cuts.param b/PARAM/HMS/HODO/CUTS/hhodo_cuts.param
index e322f189..cae48924 100644
--- a/PARAM/HMS/HODO/CUTS/hhodo_cuts.param
+++ b/PARAM/HMS/HODO/CUTS/hhodo_cuts.param
@@ -15,10 +15,10 @@ hhodo_adc_mode=1
   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
+; 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 = 3200., 3200., 3200., 3200.
+hhodo_AdcTimeWindowMax = 200., 200., 200., 200.
 
 ; hstart_time_center  center of allowed time window (ns)
    hstart_time_center = 32.                                                     
diff --git a/PARAM/SHMS/AERO/CUTS/paero_cuts.param b/PARAM/SHMS/AERO/CUTS/paero_cuts.param
index c8f1b75d..11d16f81 100644
--- a/PARAM/SHMS/AERO/CUTS/paero_cuts.param
+++ b/PARAM/SHMS/AERO/CUTS/paero_cuts.param
@@ -15,8 +15,8 @@ paero_dp_min = -20.0
 paero_dp_max = 25.0
 
 ; ADC time window cut values used to select "good" ADC events
-paero_adcTimeWindowMin = 500.
-paero_adcTimeWindowMax = 2500.
+paero_adcTimeWindowMin = 31.25
+paero_adcTimeWindowMax = 156.25
 
 ; NPE Threshold for "good" hit (for measureing effic.)
 paero_npe_thresh = 0.5
diff --git a/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_479.param b/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_479.param
index 40b18ecb..46d33c69 100644
--- a/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_479.param
+++ b/PARAM/SHMS/CAL/CALIB/KPP_Spring_2017/pcal_calib_479.param
@@ -4,7 +4,7 @@
 ;  3 == Use the sample integral - sample ped
 ; if not set then defaults to use the raw pulse integral
 pcal_ADCmode=1
-pcal_AdcTimeWindowMin=1300.
+pcal_AdcTimeWindowMin = 81.25
 ; Calibration constants for run 479_-1, 278685 events processed
 
 pcal_neg_gain_cor = 0.226/0.0195, 0.312/0.0195, 0.229/0.0195, 0.281/0.0195, 0.209/0.0195, 0.351/0.0195, 0.467/0.0195, 0.372/0.0195, 0.244/0.0195, 0.310/0.0195, 0.333/0.0195, 0.214/0.0195, 0.282/0.0195, 0.879/0.0195,
diff --git a/PARAM/SHMS/CAL/CUTS/pcal_cuts.param b/PARAM/SHMS/CAL/CUTS/pcal_cuts.param
index 964fdc8e..a2d7f646 100644
--- a/PARAM/SHMS/CAL/CUTS/pcal_cuts.param
+++ b/PARAM/SHMS/CAL/CUTS/pcal_cuts.param
@@ -8,8 +8,8 @@
 pcal_ADCmode = 1
 
 ; FADC pulse time window cuts
-pcal_AdcTimeWindowMin = 1300.
-pcal_AdcTimeWindowMax = 2300.
+pcal_AdcTimeWindowMin = 81.25
+pcal_AdcTimeWindowMax = 143.75
 
 ; Threshold on selecting good adc is dynamic pedestal+pcal_AdcNegThreshold
 pcal_AdcNegThreshold = 0.
@@ -19,8 +19,8 @@ pcal_AdcPosThreshold = 0.
 pcal_arr_ADCmode = 1
 
 ; FADC pulse time window cuts
-pcal_arr_AdcTimeWindowMin = 1200.
-pcal_arr_AdcTimeWindowMax = 1800.
+pcal_arr_AdcTimeWindowMin = 75.0
+pcal_arr_AdcTimeWindowMax = 112.5
 
 ; Threshold on selecting good adc is dynamic pedestal+pcal_arr_AdcThreshold
 pcal_arr_AdcThreshold = 0.
diff --git a/PARAM/SHMS/HGCER/CUTS/phgcer_cuts.param b/PARAM/SHMS/HGCER/CUTS/phgcer_cuts.param
index 52ce39c4..0ad7bbd1 100644
--- a/PARAM/SHMS/HGCER/CUTS/phgcer_cuts.param
+++ b/PARAM/SHMS/HGCER/CUTS/phgcer_cuts.param
@@ -15,8 +15,8 @@ phgcer_dp_min = -20.0
 phgcer_dp_max = 25.0
 
 ; ADC time window cut values used to select "good" ADC events
-phgcer_adcTimeWindowMin = 500.
-phgcer_adcTimeWindowMax = 2500.
+phgcer_adcTimeWindowMin = 31.25
+phgcer_adcTimeWindowMax = 156.25
 
 ; NPE Threshold for "good" hit (for measureing effic.)
 phgcer_npe_thresh = 0.5
\ No newline at end of file
diff --git a/PARAM/SHMS/HODO/CUTS/phodo_cuts.param b/PARAM/SHMS/HODO/CUTS/phodo_cuts.param
index fad7ba23..64c4a0e4 100644
--- a/PARAM/SHMS/HODO/CUTS/phodo_cuts.param
+++ b/PARAM/SHMS/HODO/CUTS/phodo_cuts.param
@@ -15,8 +15,8 @@ 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.
+phodo_AdcTimeWindowMin = 0., 0., 0., 40.
+phodo_AdcTimeWindowMax = 200., 200., 200., 110.
 
 ; pstart_time_center  center of allowed time window                             
 pstart_time_center = 32.                                                     
diff --git a/PARAM/SHMS/NGCER/CUTS/pngcer_cuts.param b/PARAM/SHMS/NGCER/CUTS/pngcer_cuts.param
index f9fd930f..bb95a248 100644
--- a/PARAM/SHMS/NGCER/CUTS/pngcer_cuts.param
+++ b/PARAM/SHMS/NGCER/CUTS/pngcer_cuts.param
@@ -15,8 +15,8 @@ pngcer_dp_min = -20.0
 pngcer_dp_max = 25.0
 
 ; ADC time window cut values used to select "good" ADC events
-pngcer_adcTimeWindowMin = 500.
-pngcer_adcTimeWindowMax = 2500.
+pngcer_adcTimeWindowMin = 31.25
+pngcer_adcTimeWindowMax = 156.25
 
 ; ; NPE Threshold for "good" hit (for measureing effic.)
 pngcer_npe_thresh = 0.5
\ No newline at end of file
-- 
GitLab