#pragma implementation
// -----------------------------------------------------------------------------
#include "hsuhldinfo.h"
#include "hldfilevt.h"
#include "hevent.h"
#include "hrecevent.h"
// -----------------------------------------------------------------------------
ClassImp(HSUHldFileInfo);
// -----------------------------------------------------------------------------
HSUHldFileInfo::HSUHldFileInfo(Text_t *psName, Bool_t bAutoProceed)
: HldFileSource()
{
char *p;
if((p = strrchr(psName, '/')) == NULL)
{
setDirectory(".");
addFile(psName);
}
else
{
*p = '0';
setDirectory(psName);
addFile(p + 1);
*p = '/';
}
m_ppEvent = NULL;
setEventAddress(&m_ppEvent);
init();
if(bAutoProceed)
proceed();
}
// -----------------------------------------------------------------------------
void HSUHldFileInfo::print(void)
{
printf("File : %snRunId : %dnEvents: %dn",
getCurrentFileName(), getCurrentRunId(), fEventNr);
}
// -----------------------------------------------------------------------------
void HSUHldFileInfo::proceed(void)
{
for( ; ; )
{
if((isDumped) && (dumpEvt() == kDsError))
break;
if((isScanned) && (scanEvt() == kDsError))
break;
if( ! ((HldFilEvt*)fReadEvent)->execute())
break;
fEventNr++;
decodeHeader((*fEventAddr)->getHeader());
}
}
ROOT page - Class index - Class Hierarchy - Top of the page
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.