#ifndef HPARROOTFILEIO_H
#define HPARROOTFILEIO_H
#include "hpario.h"
#include "TFile.h"
#include "TList.h"
#include <string.h>
class HSpectrometer;
class HRun;
class HParRootFile : public TFile {
public:
HRun* run;
HParRootFile(const Text_t* fname,const Option_t* option="READ",
const Text_t* ftitle="",Int_t compress=1);
~HParRootFile();
HRun* getRun() {return run;}
void readVersions(HRun*);
ClassDef(HParRootFile,0)
};
class HParRootFileIo : public HParIo {
protected:
HParRootFile* file;
public:
HParRootFileIo();
~HParRootFileIo();
Bool_t open(const Text_t* fname,const Option_t* option="READ",
const Text_t* ftitle="",Int_t compress=1);
void close();
void print();
HParRootFile* getParRootFile();
void readVersions(HRun*);
TList* getList();
Bool_t check() {
if (file) return file->IsOpen();
else return kFALSE;
}
void cd() {
if (file) file->cd();
}
ClassDef(HParRootFileIo,0)
};
#endif /* !HPARROOTFILEIO_H */
Last change: Sat May 22 13:06:28 2010
Last generated: 2010-05-22 13:06
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.