using namespace std;
#include "hgo4parrootfileio.h"
#include "hparrootfileio.h"
#include "hades.h"
#include "hspectrometer.h"
#include "hruntimedb.h"
#include "hgo4onlineconfig.h"
#include "htriggerhistbooker.h"
#include "hstarthistbooker.h"
#include "hhodohistbooker.h"
#include "hwallhistbooker.h"
#include "hrichhistbooker.h"
#include "hmdcdetector.h"
#include "htofhistbooker.h"
#include "htofinohistbooker.h"
#include "hshowerhistbooker.h"
#include "hmdchistbooker.h"
#include <iostream>
#include <iomanip>
ClassImp(HGo4ParRootFileIo)
HGo4ParRootFileIo::HGo4ParRootFileIo(HParRootFile* f) : HDetParRootFileIo(f) {
fName="HGo4ParIo";
initModules=new TArrayI(24);
initModuleTypes=new TArrayI(4);
}
HGo4ParRootFileIo::~HGo4ParRootFileIo() {
if (modulesFound) {
delete modulesFound;
modulesFound=0;
}
if (initModules) {
delete initModules;
initModules=0;
}
if (initModuleTypes) {
delete initModuleTypes;
initModuleTypes=0;
}
}
Bool_t HGo4ParRootFileIo::init(HParSet* pPar,Int_t* set) {
if (!isActiv) readModules("Mdc");
const Text_t* name=pPar->GetName();
if (pFile) {
if (strncmp(name,"Go4OnlineConfig",strlen("Go4OnlineConfig"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"TriggerHistBooker",strlen("TriggerHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"HodoHistBooker",strlen("HodoHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"WallHistBooker",strlen("WallHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"StartHistBooker",strlen("StartHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"RichHistBooker",strlen("RichHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"MdcHistBooker",strlen("MdcHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"TofHistBooker",strlen("TofHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"TofinoHistBooker",strlen("TofinoHistBooker"))==0) return HDetParRootFileIo::read(pPar);
if (strncmp(name,"ShowerHistBooker",strlen("ShowerHistBooker"))==0) return HDetParRootFileIo::read(pPar);
}
Error("HGo4ParRootFileIo::init()","initialization of %s not possible from ROOT file!",name);
return kFALSE;
}
Last change: Sat May 22 12:57:00 2010
Last generated: 2010-05-22 12:57
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.