From 9760daba82e71e67d473273b68adb959af7d5479 Mon Sep 17 00:00:00 2001
From: Eric Pooser <pooser@jlab.org>
Date: Fri, 28 Jul 2017 14:14:50 -0400
Subject: [PATCH] Clean up analyzer output

---
 src/THcAerogel.cxx           | 26 ++++++++++----------
 src/THcCherenkov.cxx         | 26 ++++++++++----------
 src/THcDC.cxx                |  6 ++---
 src/THcDriftChamber.cxx      |  2 +-
 src/THcDriftChamberPlane.cxx | 12 ++++-----
 src/THcHallCSpectrometer.cxx | 14 +++++++----
 src/THcHodoscope.cxx         | 47 ++++++++++++++++++------------------
 src/THcPrimaryKine.cxx       |  2 +-
 src/THcScintillatorPlane.cxx | 28 ++++++++++-----------
 src/THcSecondaryKine.cxx     |  5 ++--
 src/THcShower.cxx            | 30 +++++++++++------------
 src/THcShowerArray.cxx       |  2 +-
 src/THcTrigDet.cxx           |  2 +-
 13 files changed, 103 insertions(+), 99 deletions(-)

diff --git a/src/THcAerogel.cxx b/src/THcAerogel.cxx
index a93e090..44361a9 100644
--- a/src/THcAerogel.cxx
+++ b/src/THcAerogel.cxx
@@ -169,7 +169,7 @@ void THcAerogel::DeleteArrays()
 THaAnalysisObject::EStatus THcAerogel::Init( const TDatime& date )
 {
 
-  cout << "THcAerogel::Init for: " << GetName() << endl;
+  // cout << "THcAerogel::Init for: " << GetName() << endl;
 
   char EngineDID[] = "xAERO";
   EngineDID[0] = toupper(GetApparatus()->GetName()[0]);
@@ -196,7 +196,7 @@ Int_t THcAerogel::ReadDatabase( const TDatime& date )
   // This function is called by THaDetectorBase::Init() once at the beginning
   // of the analysis.
 
-  cout << "THcAerogel::ReadDatabase for: " << GetName() << endl;
+  // cout << "THcAerogel::ReadDatabase for: " << GetName() << endl;
 
   char prefix[2];
   prefix[0]=tolower(GetApparatus()->GetName()[0]);
@@ -213,8 +213,8 @@ Int_t THcAerogel::ReadDatabase( const TDatime& date )
 
   Bool_t optional = true ;
 
-  cout << "Number of " << GetApparatus()->GetName() << "."
-       << GetName() << " PMT pairs defined = " << fNelem << endl;
+  cout << "Created aerogel detector " << GetApparatus()->GetName() << "."
+       << GetName() << " with " << fNelem << " PMT pairs" << endl;
 
   fPosGain = new Double_t[fNelem];
   fNegGain = new Double_t[fNelem];
@@ -321,14 +321,14 @@ Int_t THcAerogel::ReadDatabase( const TDatime& date )
 
   fIsInit = true;
 
-  cout << "Track Matching Parameters for: " << GetApparatus()->GetName()
-       << "." << GetName() << endl;
-  for (Int_t iregion = 0; iregion < fNRegions; iregion++) {
-    cout << "Region = " << iregion + 1 << endl;
-    for (Int_t ivalue = 0; ivalue < 8; ivalue++)
-      cout << fRegionValue[GetIndex(iregion, ivalue)] << "  ";
-    cout << endl;
-  }
+  // cout << "Track Matching Parameters for: " << GetApparatus()->GetName()
+  //      << "." << GetName() << endl;
+  // for (Int_t iregion = 0; iregion < fNRegions; iregion++) {
+  //   cout << "Region = " << iregion + 1 << endl;
+  //   for (Int_t ivalue = 0; ivalue < 8; ivalue++)
+  //     cout << fRegionValue[GetIndex(iregion, ivalue)] << "  ";
+  //   cout << endl;
+  // }
 
   return kOK;
 }
@@ -338,7 +338,7 @@ Int_t THcAerogel::DefineVariables( EMode mode )
 {
   // Initialize global variables for histogramming and tree
 
-  cout << "THcAerogel::DefineVariables called for: " << GetName() << endl;
+  // cout << "THcAerogel::DefineVariables called for: " << GetName() << endl;
 
   if( mode == kDefine && fIsSetup ) return kOK;
   fIsSetup = ( mode == kDefine );
diff --git a/src/THcCherenkov.cxx b/src/THcCherenkov.cxx
index de38d09..c2e9bd5 100644
--- a/src/THcCherenkov.cxx
+++ b/src/THcCherenkov.cxx
@@ -131,7 +131,7 @@ void THcCherenkov::DeleteArrays()
 //_____________________________________________________________________________
 THaAnalysisObject::EStatus THcCherenkov::Init( const TDatime& date )
 {
-  cout << "THcCherenkov::Init for: " << GetName() << endl;
+  // cout << "THcCherenkov::Init for: " << GetName() << endl;
 
   string EngineDID = string(GetApparatus()->GetName()).substr(0, 1) + GetName();
   std::transform(EngineDID.begin(), EngineDID.end(), EngineDID.begin(), ::toupper);
@@ -158,7 +158,7 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
   // This function is called by THaDetectorBase::Init() once at the beginning
   // of the analysis.
 
-  cout << "THcCherenkov::ReadDatabase for: " << GetName() << endl; // Ahmed
+  // cout << "THcCherenkov::ReadDatabase for: " << GetName() << endl; // Ahmed
 
   string prefix = string(GetApparatus()->GetName()).substr(0, 1) + GetName();
   std::transform(prefix.begin(), prefix.end(), prefix.begin(), ::tolower);
@@ -174,8 +174,8 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
 
   Bool_t optional = true;
 
-  cout << "Number of " << GetApparatus()->GetName() << "."
-       << GetName() << " PMTs defined = " << fNelem << endl;
+  cout << "Created Cherenkov detector " << GetApparatus()->GetName() << "."
+       << GetName() << " with " << fNelem << " PMTs" << endl;
 
   // 6 GeV pedestal paramters
   fPedLimit = new Int_t[fNelem];
@@ -209,17 +209,17 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
 
   gHcParms->LoadParmValues((DBRequest*)&list, prefix.c_str());
 
-  if (fDebugAdc) cout << "Cherenkov ADC Debug Flag Set To TRUE" << endl;
+  // if (fDebugAdc) cout << "Cherenkov ADC Debug Flag Set To TRUE" << endl;
 
   fIsInit = true;
 
-  cout << "Track Matching Parameters for: " << GetName() << endl;
-  for (Int_t iregion = 0; iregion < fNRegions; iregion++) {
-    cout << "Region = " << iregion + 1 << endl;
-    for (Int_t ivalue = 0; ivalue < 8; ivalue++)
-      cout << fRegionValue[GetIndex(iregion, ivalue)] << "  ";
-    cout << endl;
-  }
+  // cout << "Track Matching Parameters for: " << GetName() << endl;
+  // for (Int_t iregion = 0; iregion < fNRegions; iregion++) {
+  //   cout << "Region = " << iregion + 1 << endl;
+  //   for (Int_t ivalue = 0; ivalue < 8; ivalue++)
+  //     cout << fRegionValue[GetIndex(iregion, ivalue)] << "  ";
+  //   cout << endl;
+  // }
 
   // Create arrays to hold pedestal results
   InitializePedestals();
@@ -231,7 +231,7 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
 Int_t THcCherenkov::DefineVariables( EMode mode )
 {
   // Initialize global variables for histogramming and tree
-  cout << "THcCherenkov::DefineVariables called for: " << GetName() << endl;
+  // cout << "THcCherenkov::DefineVariables called for: " << GetName() << endl;
 
   if( mode == kDefine && fIsSetup ) return kOK;
   fIsSetup = ( mode == kDefine );
diff --git a/src/THcDC.cxx b/src/THcDC.cxx
index 071e263..56b7132 100644
--- a/src/THcDC.cxx
+++ b/src/THcDC.cxx
@@ -89,7 +89,7 @@ void THcDC::Setup(const char* name, const char* description)
 
   THaApparatus *app = GetApparatus();
   if(app) {
-    cout << app->GetName() << endl;
+    // cout << app->GetName() << endl;
     fPrefix[0]=tolower(app->GetName()[0]);
     fPrefix[1]='\0';
   } else {
@@ -116,7 +116,7 @@ void THcDC::Setup(const char* name, const char* description)
   };
 
   gHcParms->LoadParmValues((DBRequest*)&list,fPrefix);
-  cout << planenamelist << endl;
+  cout << "Plane Name List: " << planenamelist << endl;
   cout << "Drift Chambers: " <<  fNPlanes << " planes in " << fNChambers << " chambers" << endl;
 
   vector<string> plane_names = vsplit(planenamelist);
@@ -148,7 +148,7 @@ void THcDC::Setup(const char* name, const char* description)
     }
     fPlanes.push_back(newplane);
     newplane->SetDebug(fDebug);
-    cout << "Created Drift Chamber Plane " << fPlaneNames[i] << ", " << desc << endl;
+    // cout << "Created Drift Chamber Plane " << fPlaneNames[i] << ", " << desc << endl;
 
   }
 
diff --git a/src/THcDriftChamber.cxx b/src/THcDriftChamber.cxx
index 5ab1dff..be5af9a 100644
--- a/src/THcDriftChamber.cxx
+++ b/src/THcDriftChamber.cxx
@@ -130,7 +130,7 @@ void THcDriftChamber::AddPlane(THcDriftChamberPlane *plane)
 Int_t THcDriftChamber::ReadDatabase( const TDatime& date )
 {
 
-  cout << "THcDriftChamber::ReadDatabase()" << endl;
+  // cout << "THcDriftChamber::ReadDatabase()" << endl;
   char prefix[2];
   prefix[0]=tolower(GetApparatus()->GetName()[0]);
   prefix[1]='\0';
diff --git a/src/THcDriftChamberPlane.cxx b/src/THcDriftChamberPlane.cxx
index eb0dd80..68dd0dd 100644
--- a/src/THcDriftChamberPlane.cxx
+++ b/src/THcDriftChamberPlane.cxx
@@ -65,7 +65,7 @@ THaAnalysisObject::EStatus THcDriftChamberPlane::Init( const TDatime& date )
 {
   // Extra initialization for scintillator plane: set up DataDest map
 
-  cout << "THcDriftChamberPlane::Init called " << GetName() << endl;
+  // cout << "THcDriftChamberPlane::Init called " << GetName() << endl;
 
   if( IsZombie())
     return fStatus = kInitError;
@@ -139,11 +139,11 @@ Int_t THcDriftChamberPlane::ReadDatabase( const TDatime& date )
     {0}
   };
   gHcParms->LoadParmValues((DBRequest*)&list3,prefix);
-    printf(" using tzero per wire plane = %s  nwires = %d  \n",GetName(),fNWires);
-      for (Int_t iw=0;iw < fNWires;iw++) {
-	//	printf("%d  %f ",iw+1,fTzeroWire[iw]) ;
- 	if ( iw!=0 && iw%8 == 0) printf("\n") ;
-	}
+    // printf(" using tzero per wire plane = %s  nwires = %d  \n",GetName(),fNWires);
+    //   for (Int_t iw=0;iw < fNWires;iw++) {
+    // 	//	printf("%d  %f ",iw+1,fTzeroWire[iw]) ;
+    // 	if ( iw!=0 && iw%8 == 0) printf("\n") ;
+    // 	}
   } else {
   fTzeroWire = new Double_t [fNWires];
   for (Int_t iw=0;iw < fNWires;iw++) {
diff --git a/src/THcHallCSpectrometer.cxx b/src/THcHallCSpectrometer.cxx
index e85b887..158dad9 100644
--- a/src/THcHallCSpectrometer.cxx
+++ b/src/THcHallCSpectrometer.cxx
@@ -148,8 +148,10 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
 
   char prefix[2];
 
+#ifdef WITH_DEBUG
   cout << " GetName() " << GetName() << endl;
-
+#endif
+  
   prefix[0]=tolower(GetName()[0]);
   prefix[1]='\0';
 
@@ -200,8 +202,9 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
 
   EnforcePruneLimits();
 
-  cout <<  "\n\n\nhodo planes = " << fNPlanes << endl;
-  cout <<  "sel using scin = "    << fSelUsingScin << endl;
+#ifdef WITH_DEBUG
+  cout <<  "\n\n\nhodo planes = " <<  fNPlanes << endl;
+  cout <<  "sel using scin = "    <<  fSelUsingScin << endl;
   cout <<  "fPruneXp = "          <<  fPruneXp << endl;
   cout <<  "fPruneYp = "          <<  fPruneYp << endl;
   cout <<  "fPruneYtar = "        <<  fPruneYtar << endl;
@@ -212,14 +215,15 @@ Int_t THcHallCSpectrometer::ReadDatabase( const TDatime& date )
   cout <<  "fPruneFpTime = "      <<  fPruneFpTime << endl;
   cout <<  "fPruneNPMT = "        <<  fPruneNPMT << endl;
   cout <<  "sel using prune = "   <<  fSelUsingPrune << endl;
+#endif
   cout <<  "fPartMass = "         <<  fPartMass << endl;
   cout <<  "fPcentral = "         <<  fPcentral << " " <<fPCentralOffset << endl;
-  cout <<  "fThate_lab = "        <<  fTheta_lab << " " <<fThetaCentralOffset << endl;
+  cout <<  "fThetalab = "         <<  fTheta_lab << " " <<fThetaCentralOffset << endl;
   fPcentral= fPcentral*(1.+fPCentralOffset/100.);
   // Check that these offsets are in radians
   fTheta_lab=fTheta_lab + fThetaCentralOffset*TMath::RadToDeg();
   Double_t ph = fPhi_lab+fPhiOffset*TMath::RadToDeg();
-  cout << " Central angles = " << fTheta_lab << endl;
+  cout << "Central angles = " << fTheta_lab << endl;
   SetCentralAngles(fTheta_lab, ph, false);
   Double_t off_x = 0.0, off_y = 0.0, off_z = 0.0;
   fPointingOffset.SetXYZ( off_x, off_y, off_z );
diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx
index 33c0d69..aed843f 100644
--- a/src/THcHodoscope.cxx
+++ b/src/THcHodoscope.cxx
@@ -76,11 +76,11 @@ void THcHodoscope::Setup(const char* name, const char* description)
   //  static const char* const message =
   //    "Must construct %s detector with valid name! Object construction failed.";
 
-  cout << "In THcHodoscope::Setup()" << endl;
+  // cout << "In THcHodoscope::Setup()" << endl;
   // Base class constructor failed?
   if( IsZombie()) return;
 
-  fDebug   = 1;  // Keep this at one while we're working on the code
+  // fDebug = 1;  // Keep this at one while we're working on the code
 
   char prefix[2];
 
@@ -90,7 +90,7 @@ void THcHodoscope::Setup(const char* name, const char* description)
   TString temp(prefix[0]);
   fSHMS=kFALSE;
   if (temp == "p" ) fSHMS=kTRUE;
-  cout << " fSHMS = " << fSHMS << endl;
+  // cout << " fSHMS = " << fSHMS << endl;
   string planenamelist;
   DBRequest listextra[]={
     {"hodo_num_planes", &fNPlanes, kInt},
@@ -145,6 +145,7 @@ void THcHodoscope::Setup(const char* name, const char* description)
   // --------------- To get energy from THcShower ----------------------
 
   // --------------- To get NPEs from THcCherenkov -------------------
+  
   const char* chern_detector_name = "cer";
   THaDetector* detc = app->GetDetector( chern_detector_name );
 
@@ -152,7 +153,7 @@ void THcHodoscope::Setup(const char* name, const char* description)
     fChern = dynamic_cast<THcCherenkov*>(detc);
   }
   else if( !dynamic_cast<THcCherenkov*>(detc) ) {
-    cout << "Warining: Cherenkov detector analysis module "
+    cout << "Warning: Cherenkov detector analysis module "
 	 << chern_detector_name << " not loaded for spectrometer "
 	 << prefix << endl;
 
@@ -170,7 +171,7 @@ void THcHodoscope::Setup(const char* name, const char* description)
 //_____________________________________________________________________________
 THaAnalysisObject::EStatus THcHodoscope::Init( const TDatime& date )
 {
-  cout << "In THcHodoscope::Init()" << endl;
+  // cout << "In THcHodoscope::Init()" << endl;
   Setup(GetName(), GetTitle());
 
   char EngineDID[] = "xSCIN";
@@ -251,7 +252,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
   strcpy(parname,prefix);
   strcat(parname,"scin_");
   //  Int_t plen=strlen(parname);
-  cout << " readdatabse hodo fnplanes = " << fNPlanes << endl;
+  // cout << " readdatabse hodo fnplanes = " << fNPlanes << endl;
 
   fBetaNoTrk = 0.;
   fBetaNoTrkChiSq = 0.;
@@ -369,8 +370,8 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
   // to make sure valid range is all positive.
 
   gHcParms->LoadParmValues((DBRequest*)&list,prefix);
-  if (fCosmicFlag==1) cout << " setup for cosmics in TOF"<< endl;
-  cout << " cosmic flag = " << fCosmicFlag << endl;
+  if (fCosmicFlag==1) cout << "Setup for cosmics in TOF"<< endl;
+  // cout << " cosmic flag = " << fCosmicFlag << endl;
   if(fDumpTOF) {
       fDumpOut.open(fTOFDumpFile.c_str());
    if(fDumpOut.is_open()) {
@@ -382,22 +383,22 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
     }
   }
 
-  cout << " x1 lo = " << fxLoScin[0]
-       << " x2 lo = " << fxLoScin[1]
-       << " x1 hi = " << fxHiScin[0]
-       << " x2 hi = " << fxHiScin[1]
-       << endl;
+  // cout << " x1 lo = " << fxLoScin[0]
+  //      << " x2 lo = " << fxLoScin[1]
+  //      << " x1 hi = " << fxHiScin[0]
+  //      << " x2 hi = " << fxHiScin[1]
+  //      << endl;
 
-  cout << " y1 lo = " << fyLoScin[0]
-       << " y2 lo = " << fyLoScin[1]
-       << " y1 hi = " << fyHiScin[0]
-       << " y2 hi = " << fyHiScin[1]
-       << endl;
+  // cout << " y1 lo = " << fyLoScin[0]
+  //      << " y2 lo = " << fyLoScin[1]
+  //      << " y1 hi = " << fyHiScin[0]
+  //      << " y2 hi = " << fyHiScin[1]
+  //      << endl;
 
-  cout << "Hdososcope planes hits for trigger = " << fTrackEffTestNScinPlanes
-       << " normalized energy min = " << fNormETot
-       << " number of photo electrons = " << fNCerNPE
-       << endl;
+  // cout << "Hdososcope planes hits for trigger = " << fTrackEffTestNScinPlanes
+  //      << " normalized energy min = " << fNormETot
+  //      << " number of photo electrons = " << fNCerNPE
+  //      << endl;
 
   if (fTofUsingInvAdc) {
     DBRequest list2[]={
@@ -466,7 +467,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
 Int_t THcHodoscope::DefineVariables( EMode mode )
 {
   // Initialize global variables and lookup table for decoder
-  cout << "THcHodoscope::DefineVariables called " << GetName() << endl;
+  // cout << "THcHodoscope::DefineVariables called " << GetName() << endl;
   if( mode == kDefine && fIsSetup ) return kOK;
   fIsSetup = ( mode == kDefine );
 
diff --git a/src/THcPrimaryKine.cxx b/src/THcPrimaryKine.cxx
index c4dd070..79d34bd 100644
--- a/src/THcPrimaryKine.cxx
+++ b/src/THcPrimaryKine.cxx
@@ -193,7 +193,7 @@ Int_t THcPrimaryKine::ReadDatabase( const TDatime& date )
   //
   char prefix[2];
 
-  cout << " GetName() " << GetName() << endl;
+  // cout << " GetName() " << GetName() << endl;
 
   prefix[0]=tolower(GetName()[0]);
   prefix[1]='\0';
diff --git a/src/THcScintillatorPlane.cxx b/src/THcScintillatorPlane.cxx
index 7f8f844..8e21eb4 100644
--- a/src/THcScintillatorPlane.cxx
+++ b/src/THcScintillatorPlane.cxx
@@ -154,7 +154,7 @@ THaAnalysisObject::EStatus THcScintillatorPlane::Init( const TDatime& date )
 {
   // Extra initialization for scintillator plane: set up DataDest map
 
-  cout << "THcScintillatorPlane::Init called " << GetName() << endl;
+  // cout << "THcScintillatorPlane::Init called " << GetName() << endl;
 
   if( IsZombie())
     return fStatus = kInitError;
@@ -237,7 +237,7 @@ Int_t THcScintillatorPlane::ReadDatabase( const TDatime& date )
   fCosmicFlag=0;
   gHcParms->LoadParmValues((DBRequest*)&list,prefix);
   if (fCosmicFlag==1) cout << " setup for cosmics in scint plane"<< endl;
-  cout << " cosmic flag = " << fCosmicFlag << endl;
+  // cout << " cosmic flag = " << fCosmicFlag << endl;
   // fetch the parameter from the temporary list
 
   // Retrieve parameters we need from parent class
@@ -289,17 +289,17 @@ Int_t THcScintillatorPlane::ReadDatabase( const TDatime& date )
     fHodoSigma[j] = TMath::Sqrt(possigma*possigma+negsigma*negsigma)/2.0;
   }
 
-  cout <<" plane num = "<<fPlaneNum<<endl;
-  cout <<" nelem     = "<<fNelem<<endl;
-  cout <<" zpos      = "<<fZpos<<endl;
-  cout <<" dzpos     = "<<fDzpos<<endl;
-  cout <<" spacing   = "<<fSpacing<<endl;
-  cout <<" size      = "<<fSize<<endl;
-  cout <<" hodoslop  = "<<fHodoSlop<<endl;
-  cout <<"PosLeft = "<<fPosLeft<<endl;
-  cout <<"PosRight = "<<fPosRight<<endl;
-  cout <<"PosOffset = "<<fPosOffset<<endl;
-  cout <<"PosCenter[0] = "<<fPosCenter[0]<<endl;
+  // cout <<" plane num = "<<fPlaneNum<<endl;
+  // cout <<" nelem     = "<<fNelem<<endl;
+  // cout <<" zpos      = "<<fZpos<<endl;
+  // cout <<" dzpos     = "<<fDzpos<<endl;
+  // cout <<" spacing   = "<<fSpacing<<endl;
+  // cout <<" size      = "<<fSize<<endl;
+  // cout <<" hodoslop  = "<<fHodoSlop<<endl;
+  // cout <<"PosLeft = "<<fPosLeft<<endl;
+  // cout <<"PosRight = "<<fPosRight<<endl;
+  // cout <<"PosOffset = "<<fPosOffset<<endl;
+  // cout <<"PosCenter[0] = "<<fPosCenter[0]<<endl;
 
   // Think we will make special methods to pass most
   // How generic do we want to make this class?
@@ -340,7 +340,7 @@ Int_t THcScintillatorPlane::DefineVariables( EMode mode )
 {
   // Initialize global variables and lookup table for decoder
 
-  cout << "THcScintillatorPlane::DefineVariables called " << GetName() << endl;
+  // cout << "THcScintillatorPlane::DefineVariables called " << GetName() << endl;
 
   if( mode == kDefine && fIsSetup ) return kOK;
   fIsSetup = ( mode == kDefine );
diff --git a/src/THcSecondaryKine.cxx b/src/THcSecondaryKine.cxx
index 63df141..4dbdd8d 100644
--- a/src/THcSecondaryKine.cxx
+++ b/src/THcSecondaryKine.cxx
@@ -274,9 +274,8 @@ Int_t THcSecondaryKine::Process( const THaEvData& )
 //_____________________________________________________________________________
 Int_t THcSecondaryKine::ReadDatabase( const TDatime& date )
 {
-   cout << "*************&&&&&&&&&&&&&&************" << endl;
-  cout << "In THcSecondaryKine::ReadDatabase() " << endl;
-  cout << "particleMASS: " << fMX << endl; 
+  // cout << "In THcSecondaryKine::ReadDatabase() " << endl;
+  // cout << "particleMASS: " << fMX << endl; 
 // Query the run database for any parameters of the module that were not
   // set by the constructor. This module has only one parameter,
   // the mass of the detected secondary particle X.
diff --git a/src/THcShower.cxx b/src/THcShower.cxx
index 31e250e..d03aca0 100644
--- a/src/THcShower.cxx
+++ b/src/THcShower.cxx
@@ -107,7 +107,7 @@ void THcShower::Setup(const char* name, const char* description)
 
   delete [] desc;
 
-  cout << "---------------------------------------------------------------\n";
+  // cout << "---------------------------------------------------------------\n";
 
   cout << "From THcShower::Setup: created Shower planes for "
        << GetApparatus()->GetName() << ": ";
@@ -117,10 +117,10 @@ void THcShower::Setup(const char* name, const char* description)
     i < fNTotLayers-1 ? cout << ", " : cout << ".\n";
   }
 
-  if(fHasArray)
-    cout << fLayerNames[fNTotLayers-1] << " has fly\'s eye configuration\n";
+  // if(fHasArray)
+  //   cout << fLayerNames[fNTotLayers-1] << " has fly\'s eye configuration\n";
 
-  cout << "---------------------------------------------------------------\n";
+  // cout << "---------------------------------------------------------------\n";
 
 }
 
@@ -159,23 +159,23 @@ THaAnalysisObject::EStatus THcShower::Init( const TDatime& date )
   }
 
   if(fHasArray) {
-    cout << "THcShower::Init: adjustment of fiducial volume limits to the fly's eye part." << endl;
-    cout << "  Old limits:" << endl;
-    cout << "    Xmin = " << fvXmin << "  Xmax = " << fvXmax << endl;
-    cout << "    Ymin = " << fvYmin << "  Ymax = " << fvYmax << endl;
+    // cout << "THcShower::Init: adjustment of fiducial volume limits to the fly's eye part." << endl;
+    // cout << "  Old limits:" << endl;
+    // cout << "    Xmin = " << fvXmin << "  Xmax = " << fvXmax << endl;
+    // cout << "    Ymin = " << fvYmin << "  Ymax = " << fvYmax << endl;
     fvXmin = TMath::Max(fvXmin, fArray->fvXmin());
     fvXmax = TMath::Min(fvXmax, fArray->fvXmax());
     fvYmin = TMath::Max(fvYmin, fArray->fvYmin());
     fvYmax = TMath::Min(fvYmax, fArray->fvYmax());
-    cout << "  New limits:" << endl;
-    cout << "    Xmin = " << fvXmin << "  Xmax = " << fvXmax << endl;
-    cout << "    Ymin = " << fvYmin << "  Ymax = " << fvYmax << endl;
+    // cout << "  New limits:" << endl;
+    // cout << "    Xmin = " << fvXmin << "  Xmax = " << fvXmax << endl;
+    // cout << "    Ymin = " << fvYmin << "  Ymax = " << fvYmax << endl;
   }
 
-  cout << "---------------------------------------------------------------\n";
-  cout << "From THcShower::Init: initialized " << GetApparatus()->GetName()
-       <<  GetName() << endl;
-  cout << "---------------------------------------------------------------\n";
+  // cout << "---------------------------------------------------------------\n";
+  // cout << "From THcShower::Init: initialized " << GetApparatus()->GetName()
+  //      <<  GetName() << endl;
+  // cout << "---------------------------------------------------------------\n";
 
   return fStatus = kOK;
 }
diff --git a/src/THcShowerArray.cxx b/src/THcShowerArray.cxx
index c2a31dc..5075ff4 100644
--- a/src/THcShowerArray.cxx
+++ b/src/THcShowerArray.cxx
@@ -120,7 +120,7 @@ Int_t THcShowerArray::ReadDatabase( const TDatime& date )
   prefix[0]=tolower(GetParent()->GetPrefix()[0]);
   prefix[1]='\0';
 
-  cout << "Parent name: " << GetParent()->GetPrefix() << endl;
+  // cout << "Parent name: " << GetParent()->GetPrefix() << endl;
   fNRows=fNColumns=0;
   fXFront=fYFront=fZFront=0.;
   fXStep=fYStep=fZSize=0.;
diff --git a/src/THcTrigDet.cxx b/src/THcTrigDet.cxx
index 245eefd..ff317b4 100644
--- a/src/THcTrigDet.cxx
+++ b/src/THcTrigDet.cxx
@@ -174,7 +174,7 @@ THaAnalysisObject::EStatus THcTrigDet::Init(const TDatime& date) {
     return kInitError;
   }
   // Initialize hitlist part of the class.
-  printf(" Init trig det hitlist\n");
+  // printf(" Init trig det hitlist\n");
   InitHitList(fDetMap, "THcTrigRawHit", 100);
 
   fStatus = kOK;
-- 
GitLab