#include "hpidparasciifileio.h"
#include "hpidparcont.h"
#include "TClass.h"
ClassImp(HPidParAsciiFileIo)
HPidParAsciiFileIo::HPidParAsciiFileIo(fstream* f) : HDetParAsciiFileIo(f)
{
fName = PID_PAR_IO_NAME;
}
Bool_t HPidParAsciiFileIo::init(HParSet* pPar)
{
if(pPar == NULL)
{
Error("init", "pPar == NULL");
return kFALSE;
}
if(pPar->IsA()->InheritsFrom("HParCond") == kFALSE)
{
Error("init", "%s does not inherits from HParCond",
pPar->IsA()->GetName());
return kFALSE;
}
return readCond((HParCond *) pPar);
}
Int_t HPidParAsciiFileIo::write(HParSet* pPar)
{
if(pPar == NULL)
{
Error("write", "pPar == NULL");
return 0;
}
if(pPar->IsA()->InheritsFrom("HParCond") == kFALSE)
{
Error("write", "%s does not inherits from HParCond",
pPar->IsA()->GetName());
return 0;
}
return writeCond((HParCond *) pPar);
}
Last change: Sat May 22 13:07:12 2010
Last generated: 2010-05-22 13:07
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.