#include "THaCodaRun.h"
#include "THaCodaData.h"
using namespace std;
THaCodaRun::THaCodaRun( const char* description )
: THaRunBase(description), fCodaData(NULL)
{
}
THaCodaRun::THaCodaRun( const THaCodaRun& rhs )
: THaRunBase(rhs), fCodaData(NULL)
{
}
THaCodaRun::~THaCodaRun()
{
delete fCodaData; fCodaData = 0;
}
THaCodaRun& THaCodaRun::operator=(const THaRunBase& rhs)
{
if( this != &rhs ) {
THaRunBase::operator=(rhs);
delete fCodaData;
fCodaData = NULL;
}
return *this;
}
Int_t THaCodaRun::Close()
{
fOpened = kFALSE;
if( !IsOpen() )
return 0;
return fCodaData->codaClose();
}
const Int_t* THaCodaRun::GetEvBuffer() const
{
return fCodaData->getEvBuffer();
}
Bool_t THaCodaRun::IsOpen() const
{
return fCodaData->isOpen();
}
Int_t THaCodaRun::ReadEvent()
{
return fCodaData->codaRead();
}
ClassImp(THaCodaRun)
Last change: Sat Nov 7 21:26:43 2009
Last generated: 2009-11-07 21:26
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.