From 9cd5dffb272704e566e3e97d6e76ba8938a1fc85 Mon Sep 17 00:00:00 2001
From: Mark Jones <jones@jlab.org>
Date: Mon, 19 Feb 2018 23:47:57 -0500
Subject: [PATCH] Add reference time cuts PARAMETERS for SHMS/HMS

Add file PARAM/SHMS/GEN/p_reftime_cut.param

Add file PARAM/HMS/GEN/h_reftime_cut.param

Update the COIN/SHMS/HMS general.param in DBASE
to use these files.
---
 DBASE/COIN/general.param           |  2 ++
 DBASE/HMS/general.param            |  1 +
 DBASE/SHMS/general.param           |  1 +
 PARAM/HMS/GEN/h_reftime_cut.param  | 16 ++++++++++++++++
 PARAM/SHMS/GEN/p_reftime_cut.param | 18 ++++++++++++++++++
 5 files changed, 38 insertions(+)
 create mode 100644 PARAM/HMS/GEN/h_reftime_cut.param
 create mode 100644 PARAM/SHMS/GEN/p_reftime_cut.param

diff --git a/DBASE/COIN/general.param b/DBASE/COIN/general.param
index 24914187..cb767c67 100644
--- a/DBASE/COIN/general.param
+++ b/DBASE/COIN/general.param
@@ -16,6 +16,7 @@ cminch=2.54
 #include "PARAM/HMS/GEN/hdebug.param"
 #include "PARAM/HMS/GEN/hmsflags.param"
 #include "PARAM/HMS/GEN/htracking.param"
+#include "PARAM/HMS/GEN/h_reftime_cut.param"
 
 ; HMS default geometry parameter files 
 #include "PARAM/HMS/CER/hcer_geom.param"
@@ -45,6 +46,7 @@ cminch=2.54
 #include "PARAM/SHMS/GEN/pdebug.param"
 #include "PARAM/SHMS/GEN/shmsflags.param"
 #include "PARAM/SHMS/GEN/ptracking.param"
+#include "PARAM/SHMS/GEN/p_reftime_cut.param"
 
 ; SHMS default geometry parameter files
 #include "PARAM/SHMS/NGCER/pngcer_geom.param"
diff --git a/DBASE/HMS/general.param b/DBASE/HMS/general.param
index 6b916a13..bbf29997 100644
--- a/DBASE/HMS/general.param
+++ b/DBASE/HMS/general.param
@@ -16,6 +16,7 @@ cminch=2.54
 #include "PARAM/HMS/GEN/hdebug.param"
 #include "PARAM/HMS/GEN/hmsflags.param"
 #include "PARAM/HMS/GEN/htracking.param"
+#include "PARAM/HMS/GEN/h_reftime_cut.param"
 
 ; HMS default geometry parameter files 
 #include "PARAM/HMS/CER/hcer_geom.param"
diff --git a/DBASE/SHMS/general.param b/DBASE/SHMS/general.param
index 1377a7a2..74d1d5a3 100644
--- a/DBASE/SHMS/general.param
+++ b/DBASE/SHMS/general.param
@@ -16,6 +16,7 @@ cminch=2.54
 #include "PARAM/SHMS/GEN/pdebug.param"
 #include "PARAM/SHMS/GEN/shmsflags.param"
 #include "PARAM/SHMS/GEN/ptracking.param"
+#include "PARAM/SHMS/GEN/p_reftime_cut.param"
 
 ; SHMS default geometry parameter files
 #include "PARAM/SHMS/NGCER/pngcer_geom.param"
diff --git a/PARAM/HMS/GEN/h_reftime_cut.param b/PARAM/HMS/GEN/h_reftime_cut.param
new file mode 100644
index 00000000..a9217b43
--- /dev/null
+++ b/PARAM/HMS/GEN/h_reftime_cut.param
@@ -0,0 +1,16 @@
+; Cut to select the Reference time when multiple hits in reference time 
+; The units in channels for the module (CAEN tdc or FADC)
+; negative value refcut means that the first reference time greater than the abs(refcut)
+;     is used as reftime. If no ref time is found  greater than the abs(refcut) then first
+;     reference time is used.
+; positive value refcut means that the the first reference time greater than the abs(refcut)
+;     is used as reftime. If no ref time is found  greater than the abs(refcut) then no
+;     reference time is used and warning message is produced.
+; Cut is on reference time per detector.
+hdc_tdcrefcut=-14000.
+hhodo_tdcrefcut=-2000.
+hhodo_adcrefcut=-150./.0625
+hcer_adcrefcut=-150./.0625
+hcal_adcrefcut=-150./.0625
+
+
diff --git a/PARAM/SHMS/GEN/p_reftime_cut.param b/PARAM/SHMS/GEN/p_reftime_cut.param
new file mode 100644
index 00000000..cade1829
--- /dev/null
+++ b/PARAM/SHMS/GEN/p_reftime_cut.param
@@ -0,0 +1,18 @@
+; Cut to select the Reference time when multiple hits in reference time 
+; The units in channels for the module (CAEN tdc or FADC)
+; negative value refcut means that the first reference time greater than the abs(refcut)
+;     is used as reftime. If no ref time is found  greater than the abs(refcut) then first
+;     reference time is used.
+; positive value refcut means that the the first reference time greater than the abs(refcut)
+;     is used as reftime. If no ref time is found  greater than the abs(refcut) then no
+;     reference time is used and warning message is produced.
+; Cut is on reference time per detector.
+pdc_tdcrefcut=-14000.
+phodo_tdcrefcut=-3000.
+phodo_adcrefcut=-200./.0625
+pngcer_adcrefcut=-200./.0625
+phgcer_adcrefcut=-200./.0625
+paero_adcrefcut=-200./.0625
+pcal_adcrefcut=-200./.0625
+
+
-- 
GitLab