#include "hrtdata.h"
#include "hpario.h"
#include "hdetpario.h"
#include "hrtfunctional.h"
#include "hkicktask.h"
#include "hruntimedb.h"


/************************************************************/
/*                      HRTDATA                             */
/************************************************************/

HRtData::HRtData(const Char_t *name, const Char_t *title, const Char_t *context) 
        : HParSet(name, title, context) {
  strcpy(detName,"Mdc");
  HKickTask::setKickParIo(HRuntimeDb::instance());
  fGrid[0] = fGrid[1] = 0;
}

HRtData::~HRtData(void) {
  for (Int_t i=0;i<2;i++)
    if (fGrid[i]) {
      delete fGrid[i];
      fGrid[i]=0;
    }
}

Bool_t HRtData::init(HParIo *inp, Int_t *set) {
  HDetParIo *input = inp->getDetParIo("HKickParIo");
  if (input) return (input->init(this,set));
  return kFALSE;
}

Int_t HRtData::write(HParIo *io) {
  //See HParSet::write
  HDetParIo *out=io->getDetParIo("HKickParIo");
  if (out) return (out->write(this));
  return -1;
}

void HRtData::stealData(HRtData &o) {
  delete fGrid[0];
  delete fGrid[1];
  fGrid[0] = o.fGrid[0];
  fGrid[1] = o.fGrid[1];
  o.clear();
}
  
ClassImp(HRtData)  


Last change: Sat May 22 13:11:28 2010
Last generated: 2010-05-22 13:11

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.