#include "hmagnetpar.h"
#include "hpario.h"
#include "hdetpario.h"
#include "hparamlist.h"
#include <math.h>
ClassImp(HMagnetPar)
HMagnetPar::HMagnetPar(const Char_t* name,
const Char_t* title,
const Char_t* context)
: HParCond(name,title,context) {
maxCurrent=3465;
current=0;
}
Float_t HMagnetPar::getScalingFactor(void) {
return ((Float_t)current/maxCurrent);
}
Bool_t HMagnetPar::init(HParIo* inp,Int_t* set) {
HDetParIo* input=inp->getDetParIo("HSpecParIo");
if (input) return (input->init(this,set));
return kFALSE;
}
Int_t HMagnetPar::write(HParIo* output) {
HDetParIo* out=output->getDetParIo("HSpecParIo");
if (out) return out->write(this);
return kFALSE;
}
void HMagnetPar::clear(void) {
current=0;
status=kFALSE;
resetInputVersions();
changed=kFALSE;
}
void HMagnetPar::putParams(HParamList* l) {
if (!l) return;
l->add("current",current);
}
Bool_t HMagnetPar::getParams(HParamList* l) {
if (!l) return kFALSE;
if (!l->fill("current",¤t)) return kFALSE;
return kTRUE;
}
Last change: Sat May 22 12:59:22 2010
Last generated: 2010-05-22 12:59
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.