From 482654c1b3e51a8e79a1143289b1bbcdc016ebc9 Mon Sep 17 00:00:00 2001
From: sanghwapark <sanghwapark@gmail.com>
Date: Sun, 28 Jan 2018 16:13:08 -0500
Subject: [PATCH] remove scaler event with evNumber<-1

---
 CALIBRATION/bcm_current_calib/ScalerCalib.C | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/CALIBRATION/bcm_current_calib/ScalerCalib.C b/CALIBRATION/bcm_current_calib/ScalerCalib.C
index 332ffe9b..b28bb9ed 100644
--- a/CALIBRATION/bcm_current_calib/ScalerCalib.C
+++ b/CALIBRATION/bcm_current_calib/ScalerCalib.C
@@ -67,6 +67,10 @@ int ScalerCalib::Run()
       PrintContainer(bcm17);
     }
   
+  outfile << "\n" << "\n";
+  outfile << "scal_read_event = ";
+  PrintContainer(evnum);
+
   //  outfile.close();
 
   return 0;
@@ -166,6 +170,8 @@ int ScalerCalib::FillContainer()
     {
       T->GetEntry(ientry);
 
+      if(evnumber < 0) continue;
+
       evnum.push_back(evnumber);
       bcm1.push_back(bcm1_current);
       bcm2.push_back(bcm2_current);
-- 
GitLab