#include "hrpchitfpar.h"
#include "hparamlist.h"
ClassImp(HRpcHitFPar)
HRpcHitFPar::HRpcHitFPar(const Char_t* name,const Char_t* title,
                       const Char_t* context)
    : HParCond(name,title,context)
{
    fPol5Pars.Set(1152*6);
    fPol1Pars.Set(1152*2);
    clear();
}
HRpcHitFPar::~HRpcHitFPar()
{
  
}
void HRpcHitFPar::clear()
{
    for(Int_t i=0;i<1152*6;i++) {
			fPol5Pars[i]=0.;
    }
    for(Int_t i=0;i<1152*2;i++) {
			fPol1Pars[i]=0.;
    }
    fQcut=0.;
    status=kFALSE;
    resetInputVersions();
    changed=kFALSE;
}
void HRpcHitFPar::putParams(HParamList* l)
{
    
    
    if (!l) return;
    l->add("fPol5Pars",fPol5Pars);
    l->add("fPol1Pars",fPol1Pars);
    l->add("fQcut",    fQcut);
}
Bool_t HRpcHitFPar::getParams(HParamList* l)
{
    if (!l) return kFALSE;
    if(!( l->fill("fPol5Pars",&fPol5Pars))) return kFALSE;
    if(!( l->fill("fPol1Pars",&fPol1Pars))) return kFALSE;
    if(!( l->fill("fQcut",    &fQcut)))     return kFALSE;
    return kTRUE;
}