Skip to content
Snippets Groups Projects
Commit 124f7bca authored by Stephen A. Wood's avatar Stephen A. Wood Committed by Mark K Jones
Browse files

Add THcRun constructor that has pathList

parent 0ff812cd
No related branches found
No related tags found
No related merge requests found
......@@ -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()
{
......
......@@ -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; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment