From de22a1340f1c8084b991f015f1b3fc0b03f8de73 Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Fri, 17 Jan 2014 17:03:11 -0500
Subject: [PATCH] Remove unneeded THcHitList:: from THcHitList method calls in
 detector classes.

---
 src/THcAerogel.cxx   | 4 ++--
 src/THcCherenkov.cxx | 4 ++--
 src/THcDC.cxx        | 4 ++--
 src/THcHodoscope.cxx | 4 ++--
 src/THcShower.cxx    | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/THcAerogel.cxx b/src/THcAerogel.cxx
index 60f92df..8d5e47b 100644
--- a/src/THcAerogel.cxx
+++ b/src/THcAerogel.cxx
@@ -80,7 +80,7 @@ THaAnalysisObject::EStatus THcAerogel::Init( const TDatime& date )
 
   // Should probably put this in ReadDatabase as we will know the
   // maximum number of hits after setting up the detector map
-  THcHitList::InitHitList(fDetMap, "THcAerogelHit", 100);
+  InitHitList(fDetMap, "THcAerogelHit", 100);
 
   EStatus status;
   if( (status = THaNonTrackingDetector::Init( date )) )
@@ -237,7 +237,7 @@ void THcAerogel::Clear(Option_t* opt)
 Int_t THcAerogel::Decode( const THaEvData& evdata )
 {
   // Get the Hall C style hitlist (fRawHitList) for this event
-  fNhits = THcHitList::DecodeToHitList(evdata);
+  fNhits = DecodeToHitList(evdata);
 
   if(gHaCuts->Result("Pedestal_event")) {
 
diff --git a/src/THcCherenkov.cxx b/src/THcCherenkov.cxx
index 2db648b..5587a54 100644
--- a/src/THcCherenkov.cxx
+++ b/src/THcCherenkov.cxx
@@ -95,7 +95,7 @@ THaAnalysisObject::EStatus THcCherenkov::Init( const TDatime& date )
 
   // Should probably put this in ReadDatabase as we will know the
   // maximum number of hits after setting up the detector map
-  THcHitList::InitHitList(fDetMap, "THcCherenkovHit", 100); // 100 is max hits
+  InitHitList(fDetMap, "THcCherenkovHit", 100); // 100 is max hits
 
   EStatus status;
   if( (status = THaNonTrackingDetector::Init( date )) )
@@ -206,7 +206,7 @@ void THcCherenkov::Clear(Option_t* opt)
 Int_t THcCherenkov::Decode( const THaEvData& evdata )
 {
   // Get the Hall C style hitlist (fRawHitList) for this event
-  fNhits = THcHitList::DecodeToHitList(evdata);
+  fNhits = DecodeToHitList(evdata);
 
   if(gHaCuts->Result("Pedestal_event")) {
 
diff --git a/src/THcDC.cxx b/src/THcDC.cxx
index 3831572..63199d5 100644
--- a/src/THcDC.cxx
+++ b/src/THcDC.cxx
@@ -170,7 +170,7 @@ THaAnalysisObject::EStatus THcDC::Init( const TDatime& date )
 
   // Should probably put this in ReadDatabase as we will know the
   // maximum number of hits after setting up the detector map
-  THcHitList::InitHitList(fDetMap, "THcRawDCHit", 1000);
+  InitHitList(fDetMap, "THcRawDCHit", 1000);
 
   EStatus status;
   // This triggers call of ReadDatabase and DefineVariables
@@ -427,7 +427,7 @@ Int_t THcDC::Decode( const THaEvData& evdata )
   Int_t num_event = evdata.GetEvNum();
   if (fdebugprintrawdc ||fdebugprintdecodeddc || fdebuglinkstubs || fdebugtrackprint) cout << " event num = " << num_event << endl;
   // Get the Hall C style hitlist (fRawHitList) for this event
-  fNhits = THcHitList::DecodeToHitList(evdata);
+  fNhits = DecodeToHitList(evdata);
 
   // Let each plane get its hits
   Int_t nexthit = 0;
diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx
index a2c4010..202b97c 100644
--- a/src/THcHodoscope.cxx
+++ b/src/THcHodoscope.cxx
@@ -142,7 +142,7 @@ THaAnalysisObject::EStatus THcHodoscope::Init( const TDatime& date )
   // But it needs to happen before the sub detectors are initialized
   // so that they can get the pointer to the hitlist.
 
-  THcHitList::InitHitList(fDetMap, "THcHodoscopeHit", 100);
+  InitHitList(fDetMap, "THcHodoscopeHit", 100);
 
   EStatus status;
   // This triggers call of ReadDatabase and DefineVariables
@@ -596,7 +596,7 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata )
 {
 
   // Get the Hall C style hitlist (fRawHitList) for this event
-  Int_t nhits = THcHitList::DecodeToHitList(evdata);
+  Int_t nhits = DecodeToHitList(evdata);
 
   if(gHaCuts->Result("Pedestal_event")) {
     Int_t nexthit = 0;
diff --git a/src/THcShower.cxx b/src/THcShower.cxx
index 67c2ca0..2047500 100644
--- a/src/THcShower.cxx
+++ b/src/THcShower.cxx
@@ -111,7 +111,7 @@ THaAnalysisObject::EStatus THcShower::Init( const TDatime& date )
   // Should probably put this in ReadDatabase as we will know the
   // maximum number of hits after setting up the detector map
 
-  THcHitList::InitHitList(fDetMap, "THcRawShowerHit", 100);
+  InitHitList(fDetMap, "THcRawShowerHit", 100);
 
   EStatus status;
   if( (status = THaNonTrackingDetector::Init( date )) )
@@ -514,7 +514,7 @@ Int_t THcShower::Decode( const THaEvData& evdata )
   Clear();
 
   // Get the Hall C style hitlist (fRawHitList) for this event
-  Int_t nhits = THcHitList::DecodeToHitList(evdata);
+  Int_t nhits = DecodeToHitList(evdata);
 
   if(gHaCuts->Result("Pedestal_event")) {
     Int_t nexthit = 0;
-- 
GitLab