//*-- AUTHOR : Denis Bertini //*-- Last modified : 02/07/2002 by Ilse Koenig //_HADES_CLASS_DESCRIPTION ///////////////////////////////////////////////////////////// //HShowerParAsciiFileIo // // Class for Mdc parameter input/output from/into Asci file // ///////////////////////////////////////////////////////////// using namespace std; #include "hshowerparasciifileio.h" #include "hades.h" #include "hparset.h" #include "hspectrometer.h" #include "hshowerdetector.h" #include #include ClassImp(HShowerParAsciiFileIo) HShowerParAsciiFileIo::HShowerParAsciiFileIo(fstream* f) : HDetParAsciiFileIo(f) { fName="HShowerParIo"; } Bool_t HShowerParAsciiFileIo::init(HParSet* pPar,Int_t* set) { const Text_t* name = ((TNamed*)pPar)->GetName(); if (pFile) { if (!strcmp(pPar->IsA()->GetName(),"HShowerGeometry")) return HDetParAsciiFileIo::read((HDetGeomPar*)pPar,set); } cerr<<"initialization of "<GetName(); if (pFile) { if (!strcmp(pPar->IsA()->GetName(),"HShowerGeometry")) return HDetParAsciiFileIo::writeFile((HDetGeomPar*)pPar); } cerr<