#ifndef HRUN_H
#define HRUN_H
using namespace std;
#include "TNamed.h"
#include "TList.h"
#include "TString.h"
#include <iostream>
#include <iomanip>
class HParVersion : public TNamed {
protected:
Int_t inputVersions[3];
Int_t rootVersion;
public:
HParVersion() {}
HParVersion(const Text_t* name);
~HParVersion() {}
void setInputVersion(Int_t v=-1,Int_t i=0) {
if (i>=0 && i<3) inputVersions[i]=v;
}
Int_t getInputVersion(Int_t i) {
if (i>=0 && i<3) return inputVersions[i];
else return -1;
}
void resetInputVersions() {
for(Int_t i=0;i<3;i++) {inputVersions[i]=-1;}
}
void setRootVersion(Int_t v) {rootVersion=v;}
Int_t getRootVersion() {return rootVersion;}
ClassDef(HParVersion,1)
};
class HRun : public TNamed {
protected:
TList* parVersions;
TString refRun;
public:
HRun() {}
HRun(const Text_t* name,const Text_t* refName="");
HRun(Int_t r,Int_t rr=-1);
HRun(HRun &run);
~HRun();
inline Int_t getRunId(void);
void addParVersion(HParVersion *pv);
HParVersion* getParVersion(const Text_t* name);
TList* getParVersions() {return parVersions;}
const Text_t* getRefRun() {return refRun.Data();}
void setRefRun(const Text_t* s) {refRun=s;}
inline void setRefRun(Int_t r);
void resetInputVersions();
void resetOutputVersions();
void print();
void write(fstream&);
ClassDef(HRun,1)
};
inline Int_t HRun::getRunId(void) {
Int_t r;
sscanf(GetName(),"%i",&r);
return r;
}
inline void HRun::setRefRun(Int_t r) {
if (r==-1) refRun="";
else {
Char_t name[255];
sprintf(name,"%i",r);
refRun=name;
}
}
#endif /* !HRUN_H */
Last change: Sat May 22 13:06:30 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.