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

Hall C specific Run class THcRun.

  This will add the Hall C parameter DB (gHCParms) to the Run_Data object
  The GetHCParms method will retrieve the parameter DB
parent cbc17043
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@
char RunFileName[100];
sprintf(RunFileName,RunFileNamePattern,RunNumber);
THaRun* run = new THaRun(RunFileName);
THcRun* run = new THcRun(RunFileName);
run->SetRunParamClass("THcRunParameters");
// Perhaps we should make a THcRun that does this
......
/** \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()
{
// Destructor.
}
//_____________________________________________________________________________
void THcRun::Print( Option_t* opt ) const
{
THaRun::Print( opt );
fHcParms->Print();
}
ClassImp(THaRun)
#ifndef ROOT_THcRun
#define ROOT_THcRun
//////////////////////////////////////////////////////////////////////////
//
// THaRun
//
//////////////////////////////////////////////////////////////////////////
#include "THaRun.h"
#include "THcParmList.h"
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 );
virtual ~THcRun();
virtual void Print( Option_t* opt="" ) const;
THcParmList* GetHCParms() const { return fHcParms; }
private:
THcParmList* fHcParms; /* gHcParms object */
ClassDef(THcRun,0);
};
#endif
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