#include "hrtsavgolpar.h"
#include "hdetpario.h"
#include "hpario.h"
#include "hparamlist.h"
#include "hkicktask.h"
#include "hruntimedb.h"
HRtSavGolPar::HRtSavGolPar(const Char_t *name, const Char_t *title,
const Char_t *context) : HParCond(name,title,context) {
strcpy(detName,"Mdc");
HKickTask::setKickParIo(HRuntimeDb::instance());
}
Bool_t HRtSavGolPar::init(HParIo *inp, Int_t *set) {
HDetParIo *input = inp->getDetParIo("HKickParIo");
if (input) return (input->init(this,set));
return kFALSE;
}
Int_t HRtSavGolPar::write(HParIo *io) {
HDetParIo *out=io->getDetParIo("HKickParIo");
if (out) return (out->write(this));
return -1;
}
void HRtSavGolPar::putParams(HParamList* l) {
if (!l) return;
l->add("fNLeft",fNLeft);
l->add("fNRight",fNRight);
l->add("fM",fM);
}
Bool_t HRtSavGolPar::getParams(HParamList* l) {
if (!l) return kFALSE;
if (!l->fill("fNLeft",&fNLeft)) return kFALSE;
if (!l->fill("fNRight",&fNRight)) return kFALSE;
if (!l->fill("fM",&fM)) return kFALSE;
return kTRUE;
}
void HRtSavGolPar::readFrom(const HRtSavGolPar &o) {
fNLeft = o.fNLeft;
fNRight = o.fNRight;
fM = o.fM;
}
ClassImp(HRtSavGolPar)
Last change: Sat May 22 13:12:06 2010
Last generated: 2010-05-22 13:12
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.