From 124f7bca1eb329569faf61100f0d068af52d3338 Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Tue, 7 Nov 2017 11:03:37 -0500
Subject: [PATCH] Add THcRun constructor that has pathList

---
 src/THcRun.cxx | 30 ++++++++++++++++++++++++++++++
 src/THcRun.h   |  8 ++++----
 2 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/src/THcRun.cxx b/src/THcRun.cxx
index 025b8d8..4604d07 100644
--- a/src/THcRun.cxx
+++ b/src/THcRun.cxx
@@ -21,6 +21,36 @@ THcRun::THcRun( const char* fname, const char* description ) :
   fHcParms = gHcParms;
 }
 
+//_____________________________________________________________________________
+THcRun::THcRun( const THcRun& rhs ) :
+  THcRun(rhs)
+{
+  // Copy ctor
+
+  fHcParms = gHcParms;
+}
+
+//_____________________________________________________________________________
+THcRun::THcRun( const vector<TString>& pathList, const char* filename,
+		const char* description )
+  : THaRun(pathList, filename, description)
+{
+  
+  fHcParms = gHcParms;
+}
+
+//_____________________________________________________________________________
+THcRun& THcRun::operator=(const THaRun& rhs)
+{
+  // Assignment operator.  Not really sure what I (saw) am doing here.
+
+  if (this != &rhs) {
+     THaRun::operator=(rhs);
+     fHcParms = gHcParms;
+  }
+  return *this;
+}
+
 //_____________________________________________________________________________
 THcRun::~THcRun()
 {
diff --git a/src/THcRun.h b/src/THcRun.h
index 1ae9873..fa9eada 100644
--- a/src/THcRun.h
+++ b/src/THcRun.h
@@ -14,10 +14,10 @@ class THcRun : public THaRun {
 
  public:
   THcRun( const char* filename="", const char* description="" );
-  //  THaRun( const THaRun& run );
-  //  THaRun( const std::vector<TString>& pathList, const char* filename,
-  //	  const char* description="" );
-  //  virtual THaRun& operator=( const THaRunBase& rhs );
+  THcRun( const THcRun& run );
+  THcRun( const std::vector<TString>& pathList, const char* filename,
+  	  const char* description="" );
+  virtual THcRun& operator=( const THaRun& rhs );
   virtual ~THcRun();
   virtual void         Print( Option_t* opt="" ) const;
   THcParmList* GetHCParms() const { return fHcParms; }
-- 
GitLab