From e3a3fa8cd81a231fdec37f855ca6c4b00d32b6b1 Mon Sep 17 00:00:00 2001
From: Edward Brash <brash@jlab.org>
Date: Tue, 15 Oct 2013 09:30:53 -0400
Subject: [PATCH] Updates to Hall C shower and interface codes for scaler
 debugging purposes.

---
 src/THcInterface.cxx | 18 +++++++++---------
 src/THcShower.cxx    | 16 ++++++++--------
 src/THcShowerHit.h   |  6 +++---
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/src/THcInterface.cxx b/src/THcInterface.cxx
index 092c2c3..ef72321 100644
--- a/src/THcInterface.cxx
+++ b/src/THcInterface.cxx
@@ -38,15 +38,15 @@
 
 using namespace std;
 
-THaVarList*  gHaVars     = NULL;  // List of symbolic analyzer variables
-THaCutList*  gHaCuts     = NULL;  // List of global analyzer cuts/tests
-TList*       gHaApps     = NULL;  // List of Apparatuses
-TList*       gHaScalers  = NULL;  // List of scaler groups
-TList*       gHaPhysics  = NULL;  // List of physics modules
-THaRunBase*  gHaRun      = NULL;  // The currently active run
-TClass*      gHaDecoder  = NULL;  // Class(!) of decoder to use
-THaDB*       gHaDB       = NULL;  // Database system to use
-THaTextvars* gHaTextvars = NULL;  // Text variable definitions
+//THaVarList*  gHaVars     = NULL;  // List of symbolic analyzer variables
+//THaCutList*  gHaCuts     = NULL;  // List of global analyzer cuts/tests
+//TList*       gHaApps     = NULL;  // List of Apparatuses
+//TList*       gHaScalers  = NULL;  // List of scaler groups
+//TList*       gHaPhysics  = NULL;  // List of physics modules
+//THaRunBase*  gHaRun      = NULL;  // The currently active run
+//TClass*      gHaDecoder  = NULL;  // Class(!) of decoder to use
+//THaDB*       gHaDB       = NULL;  // Database system to use
+//THaTextvars* gHaTextvars = NULL;  // Text variable definitions
 
 THcParmList* gHcParms     = NULL;  // List of symbolic analyzer variables
 THcDetectorMap* gHcDetectorMap = NULL; // Global (Hall C style) detector map
diff --git a/src/THcShower.cxx b/src/THcShower.cxx
index 14da4dc..161d782 100644
--- a/src/THcShower.cxx
+++ b/src/THcShower.cxx
@@ -658,17 +658,17 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
 
       THcShowerCluster* cluster = (*ClusterList).ListedCluster(i);
 
-      cout << "Cluster #" << i 
-	   <<":  E=" << (*cluster).clE() 
-	   << "  Epr=" << (*cluster).clEpr()
-	   << "  X=" << (*cluster).clX()
-	   << "  Z=" << (*cluster).clZ()
-	   << "  size=" << (*cluster).clSize()
-	   << endl;
+      //cout << "Cluster #" << i 
+	   //<<":  E=" << (*cluster).clE() 
+	   //<< "  Epr=" << (*cluster).clEpr()
+	   //<< "  X=" << (*cluster).clX()
+	   //<< "  Z=" << (*cluster).clZ()
+	   //<< "  size=" << (*cluster).clSize()
+	   //<< endl;
 
       for (UInt_t j=0; j!=(*cluster).clSize(); j++) {
 	THcShowerHit* hit = (*cluster).ClusteredHit(j);
-	cout << "  hit #" << j << ":  "; (*hit).show();
+	//cout << "  hit #" << j << ":  "; (*hit).show();
       }
 
     }
diff --git a/src/THcShowerHit.h b/src/THcShowerHit.h
index 269ddde..d526cca 100644
--- a/src/THcShowerHit.h
+++ b/src/THcShowerHit.h
@@ -83,9 +83,9 @@ public:
   //Print out hit information
   //
   void show() {
-    cout << "row=" << fRow << "  column=" << fCol 
-	 << "  x=" << fX << "  z=" << fZ 
-	 << "  E=" << fE << "  Epos=" << fEpos << "  Eneg=" << fEneg << endl;
+    //cout << "row=" << fRow << "  column=" << fCol 
+ 	// << "  x=" << fX << "  z=" << fZ 
+	// << "  E=" << fE << "  Epos=" << fEpos << "  Eneg=" << fEneg << endl;
   }
 
 };
-- 
GitLab