Skip to content
Snippets Groups Projects
THcRun.cxx 1.48 KiB
Newer Older
  • Learn to ignore specific revisions
  • /** \class THcRun
        \ingroup Base
    
    \brief Description of a CODA run on disk with Hall C parameter DB
    
    \author S. A. Wood, 31-October-2017
    
    */
    #include "THcRun.h"
    #include "THcGlobals.h"
    #include "TSystem.h"
    
    using namespace std;
    
    //_____________________________________________________________________________
    THcRun::THcRun( const char* fname, const char* description ) :
      THaRun(fname, description)
    {
      // Normal & default constructor
      
      fHcParms = gHcParms;
    }
    
    
    //_____________________________________________________________________________
    THcRun::THcRun( const THcRun& rhs ) :
    
      THaRun(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 THaRunBase& rhs)
    
    {
      // Assignment operator.  Not really sure what I (saw) am doing here.
    
      if (this != &rhs) {
         THaRun::operator=(rhs);
         fHcParms = gHcParms;
      }
      return *this;
    }
    
    
    //_____________________________________________________________________________
    THcRun::~THcRun()
    {
      // Destructor.
    
    }
    
    //_____________________________________________________________________________
    void THcRun::Print( Option_t* opt ) const
    {
      THaRun::Print( opt );
    
      //  fHcParms->Print();
    
    }
    
    ClassImp(THaRun)