//*-- AUTHOR : Ilse Koenig
//*-- Created : 20/11/2002 by I.Koenig

//_HADES_CLASS_DESCRIPTION 
//////////////////////////////////////////////////////////////////////////////
// HCondParRootFileIo
//
// Interface class to ROOT file for input/output of parameters derived
// from HParCond
//
//////////////////////////////////////////////////////////////////////////////

#include "hcondparrootfileio.h"
#include "hparcond.h"

ClassImp(HCondParRootFileIo)

HCondParRootFileIo::HCondParRootFileIo(HParRootFile* f) : HDetParRootFileIo(f) {
  // constructor
  // sets the name of the I/O class "HCondParIo"
  // gets the pointer to the ROOT file
  fName="HCondParIo";
}

Bool_t HCondParRootFileIo::init(HParSet* pPar,Int_t* set) {
  // calls HDetParRootFileIo"::read(HParCond*)
  if (!pFile) return kFALSE; 
  if (pPar->InheritsFrom("HParCond"))
    return HDetParRootFileIo::read((HParCond*)pPar);
  Error("HCondParRootFileIo::init(HParSet*,Int_t*)",
        "%s does not inherit from HParCond",pPar->GetName());
  return kFALSE;
}

Last change: Sat May 22 12:53:56 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.