using namespace std;
#include "hshowerparasciifileio.h"
#include "hades.h"
#include "hparset.h"
#include "hspectrometer.h"
#include "hshowerdetector.h"
#include <iostream>
#include <iomanip>
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 "<<name<<" not possible from ASCII file!"<<endl;
return kFALSE;
}
Int_t HShowerParAsciiFileIo::write(HParSet* pPar) {
const Text_t* name = ((TNamed*)pPar)->GetName();
if (pFile) {
if (!strcmp(pPar->IsA()->GetName(),"HShowerGeometry"))
return HDetParAsciiFileIo::writeFile((HDetGeomPar*)pPar);
}
cerr<<name<<" could not be written to Asci file"<<endl;
return kFALSE;
}
Bool_t HShowerParAsciiFileIo::write(HDetector* p) {
return kTRUE;
}
Last change: Sat May 22 13:13:58 2010
Last generated: 2010-05-22 13:13
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.