using namespace std;
#include "htofinoparset.h"
#include "hdetector.h"
#include "hpario.h"
#include "hdetpario.h"
#include <iostream> 
#include <iomanip>

ClassImp(HTofinoParSet)
//_HADES_CLASS_DESCRIPTION 
/////////////////////////////////////////////////////////////
//HTofinoParSet
//
//  Base class for all tofino parameter containers
//
/////////////////////////////////////////////////////////////


HTofinoParSet::HTofinoParSet(const Char_t* name,const Char_t* title,
                             const Char_t* context)
              : HParSet(name,title,context) {
  //initialize HParSet for tofino detector
  strcpy(detName,"Tofino");
}

Bool_t HTofinoParSet::init(HParIo* inp,Int_t* set) {
  // intitializes the container from an input
  // set additional information for tofino detector

  //printf("xxxxxxxxxxxxx\n");
  HDetParIo* input=inp->getDetParIo("HTofinoParIo");
  if (input) return (input->init(this,set));
  return kFALSE;
}

Int_t HTofinoParSet::write(HParIo* output) {
  // writes the tofino container to the output defined in the runtime
  // database

  //printf("-----------");
  HDetParIo* out=output->getDetParIo("HTofinoParIo");
  if (out) return out->write(this);
  return -1;
}

Last change: Sat May 22 13:16:52 2010
Last generated: 2010-05-22 13:16

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.