#include "TString.h"
#include "hwalldigipar.h"
#include "hpario.h"
#include "hdetpario.h"
#include "hparamlist.h"
ClassImp(HWallDigiPar)
HWallDigiPar::HWallDigiPar(const Char_t* name,const Char_t* title,
const Char_t* context)
: HParCond(name,title,context) {
clear();
}
Bool_t HWallDigiPar::init(HParIo* inp,Int_t* set) {
HDetParIo* input=inp->getDetParIo("HCondParIo");
if (input) return (input->init(this,set));
return kFALSE;
}
Int_t HWallDigiPar::write(HParIo* output) {
HDetParIo* out=output->getDetParIo("HCondParIo");
if (out) return out->write(this);
return -1;
}
void HWallDigiPar::clear() {
for(Int_t i=0;i<getSize();i++) {
TDC_slope[i] = 0.F;
TDC_offset[i] = 0.F;
ADC_slope[i] = 0.F;
ADC_offset[i] = 0.F;
CFD_threshold[i] = 0.F;
ADC_threshold[i] = 0.F;
}
status=kFALSE;
resetInputVersions();
}
void HWallDigiPar::putParams(HParamList* l) {
if (!l) return;
l->add("TDC_slope",TDC_slope,WALL_MAXCELLS);
l->add("TDC_offset",TDC_offset,WALL_MAXCELLS);
l->add("ADC_slope",ADC_slope,WALL_MAXCELLS);
l->add("ADC_offset",TDC_offset,WALL_MAXCELLS);
l->add("CFD_threshold",CFD_threshold,WALL_MAXCELLS);
l->add("ADC_threshold",ADC_threshold,WALL_MAXCELLS);
}
Bool_t HWallDigiPar::getParams(HParamList* l) {
if (!l) return kFALSE;
if (!(l->fill("TDC_slope",TDC_slope,WALL_MAXCELLS))) return kFALSE;
if (!(l->fill("TDC_offset",TDC_offset,WALL_MAXCELLS))) return kFALSE;
if (!(l->fill("ADC_slope",ADC_slope,WALL_MAXCELLS))) return kFALSE;
if (!(l->fill("ADC_offset",TDC_offset,WALL_MAXCELLS))) return kFALSE;
if (!(l->fill("CFD_threshold",CFD_threshold,WALL_MAXCELLS))) return kFALSE;
if (!(l->fill("ADC_threshold",ADC_threshold,WALL_MAXCELLS))) return kFALSE;
return kTRUE;
}
Last change: Sat May 22 13:17:30 2010
Last generated: 2010-05-22 13:17
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.