using namespace std;
#include "hrichIPUparlocmax.h"
#include "hades.h"
#include "hruntimedb.h"
#include "hspectrometer.h"
#include "hrichdetector.h"
#include "hpario.h"
#include "hdetpario.h"
#include "hparamlist.h"
#include <iostream>
#include <iomanip>
ClassImp(HRichIPUParLocMax)
void HRichIPUParLocMax::setDefaults(void) {
locmax=0;
locmax_flag=0;
}
HRichIPUParLocMax::HRichIPUParLocMax(const Char_t* name,const Char_t* title,
const Char_t* context)
: HParCond(name,title,context) {
strcpy(detName,"Trigger");
}
HRichIPUParLocMax::~HRichIPUParLocMax(void) {
}
Bool_t HRichIPUParLocMax::init(HParIo* inp,Int_t* set) {
HDetParIo* input=inp->getDetParIo("HTriggerParIo");
if (input) return (input->init(this,set));
cout << "Did not get input >HTriggerParIo< " << endl;
return kFALSE;
}
Int_t HRichIPUParLocMax::write(HParIo* output) {
HDetParIo* out=output->getDetParIo("HTriggerParIo");
if (out) return out->write(this);
return -1;
}
void HRichIPUParLocMax::putParams(HParamList* l) {
if (!l) return;
l->add("locmax",locmax);
l->add("locmax_flag",locmax_flag);
}
Bool_t HRichIPUParLocMax::getParams(HParamList* l) {
if (!l) return kFALSE;
if (!l->fill("locmax",&locmax)) return kFALSE;
if (!l->fill("locmax_flag",&locmax_flag)) return kFALSE;
return kTRUE;
}
void HRichIPUParLocMax::clear(){
setDefaults();
status=kFALSE;
resetInputVersions();
}
void HRichIPUParLocMax::readline(const Char_t *buf, Int_t *set) {
Int_t fl,lm;
sscanf(buf,"%i%i",&fl,&lm);
setLocMax(lm);
setLocMaxFlag(fl);
}
void HRichIPUParLocMax::putAsciiHeader(TString& header) {
header=
"# Parameters for RICH IPU LocMax\n"
"# Format:\n"
"# locmax_flag locmax\n";
}
void HRichIPUParLocMax::printPause(void) {
printf("Press any key to continue");
getchar();
printf("\n\n");
}
void HRichIPUParLocMax::printParam(void) {
printf("\n Parameters for RICH IPU LocMax\n");
printf(" Format:\n");
printf(" locmax_flag locmax\n");
printf("==============================================================\n");
cout << "PRINTPARAM " << getLocMaxFlag() << " " << getLocMax() << endl;
printf("==============================================================\n");
}
Last change: Sat May 22 13:09:13 2010
Last generated: 2010-05-22 13:09
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.