#include "hcondparasciifileio.h"
#include "hparcond.h"
ClassImp(HCondParAsciiFileIo)
HCondParAsciiFileIo::HCondParAsciiFileIo(fstream* f) : HDetParAsciiFileIo(f) {
fName="HCondParIo";
}
Bool_t HCondParAsciiFileIo::init(HParSet* pPar,Int_t* set) {
if (!pFile) return kFALSE;
if (pPar->InheritsFrom("HParCond"))
return HDetParAsciiFileIo::readCond((HParCond*)pPar);
Error("HCondParAsciiFileIo::init(HParSet*,Int_t*)",
"%s does not inherit from HParCond",pPar->GetName());
return kFALSE;
}
Int_t HCondParAsciiFileIo::write(HParSet* pPar) {
if (!pFile) return -1;
if (pPar->InheritsFrom("HParCond"))
return HCondParAsciiFileIo::writeCond((HParCond*)pPar);
Error("HCondParAsciiFileIo::write(HParSet*)",
"%s does not inherit from HParCond",pPar->GetName());
return -1;
}
Last change: Sat May 22 12:53:54 2010
Last generated: 2010-05-22 12:53
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.