//*-- AUTHOR Rainer Schicker //*-- modified: 15/08/2005 by Filip Krizek //*-- modified: 18/12/2001 by Ilse Koenig //*-- modified: 06/03/2000 by Ilse Koenig //*-- created : 18/02/00 //_HADES_CLASS_DESCRIPTION ///////////////////////////////////////////////////////////// // // HWallCalPar // // Container class for Forward Wall calibration parameters // ///////////////////////////////////////////////////////////// using namespace std; #include "hwallcalpar.h" #include "hades.h" #include "hruntimedb.h" #include "hspectrometer.h" #include "hwalldetector.h" #include "hpario.h" #include "hdetpario.h" #include ClassImp(HWallCalPar) ClassImp(HWallCalParCell) HWallCalPar::HWallCalPar(const Char_t* name,const Char_t* title, const Char_t* context) : HParSet(name,title,context) { // constructor creates an array of pointers of type HWallCalParCell strcpy(detName,"Wall"); HDetector* det= gHades->getSetup()->getDetector("Wall"); Int_t nComp=det->getMaxComponents(); //302 cells array = new TObjArray(nComp); for(Int_t i=0; iAddAt(new HWallCalParCell(),i); } HWallCalPar::~HWallCalPar() { // destructor array->Delete(); delete array; } Bool_t HWallCalPar::init(HParIo* inp,Int_t* set) { // intitializes the container from an input HDetParIo* input=inp->getDetParIo("HWallParIo"); if (input) return (input->init(this,set)); return kFALSE; } Int_t HWallCalPar::write(HParIo* output) { // writes the container to an output HDetParIo* out=output->getDetParIo("HWallParIo"); if (out) return out->write(this); return -1; } void HWallCalPar::clear() { // clears the container for(Int_t i=0;i