From 3c3c41461e1655136113389672da37982c795f0d Mon Sep 17 00:00:00 2001
From: hallc-online <hallc-online@jlab.org>
Date: Mon, 27 Mar 2017 16:59:36 -0400
Subject: [PATCH] Add #define directive for low threshold on heavy Gas
 Cherenkov signal in SHMS calorimeter's calibration code, in THcShowerCalib.h
 header file.

---
 CALIBRATION/shms_cal_calib/THcPShowerCalib.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/CALIBRATION/shms_cal_calib/THcPShowerCalib.h b/CALIBRATION/shms_cal_calib/THcPShowerCalib.h
index 46761976..2666fbea 100644
--- a/CALIBRATION/shms_cal_calib/THcPShowerCalib.h
+++ b/CALIBRATION/shms_cal_calib/THcPShowerCalib.h
@@ -35,6 +35,8 @@
 #define BETA_MIN 0.5
 #define BETA_MAX 1.5
 
+#define HGCER_NPE_MIN 2
+
 #define MIN_HIT_COUNT 5   //Minimum number of hits for a PMT to be calibrated.
 
 using namespace std;
@@ -327,10 +329,10 @@ bool THcPShowerCalib::ReadShRawTrack(THcPShTrack &trk, UInt_t ientry) {
 		    P_tr_y + P_tr_yp*D_CALO_FP < YMAX ;
   if (!good_trk) return 0;
 
-  bool good_hgcer = P_hgcer_npe[0] > 2 ||
-		    P_hgcer_npe[1] > 2 ||
-		    P_hgcer_npe[2] > 2 ||
-		    P_hgcer_npe[3] > 2  ;
+  bool good_hgcer = P_hgcer_npe[0] > HGCER_NPE_MIN ||
+		    P_hgcer_npe[1] > HGCER_NPE_MIN ||
+		    P_hgcer_npe[2] > HGCER_NPE_MIN ||
+		    P_hgcer_npe[3] > HGCER_NPE_MIN  ;
   if(!good_hgcer) return 0;
 
   bool good_beta = P_tr_beta > BETA_MIN &&
-- 
GitLab