#ifndef ROOT_TProofBenchTypes
#define ROOT_TProofBenchTypes
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
const char* const kPROOF_BenchCPUSelPar = "ProofBenchCPUSel";
const char* const kPROOF_BenchDataSelPar = "ProofBenchDataSel";
const char* const kPROOF_BenchParDir = "proof/proofbench/";
const char* const kPROOF_BenchSrcDir = "proof/proofbench/src/";
const char* const kPROOF_BenchIncDir = "proof/proofbench/inc/";
const char* const kPROOF_BenchSelCPUDef = "TSelHist";
const char* const kPROOF_BenchSelDataDef = "TSelEvent";
const char* const kPROOF_BenchSelDataGenDef = "TSelEventGen";
class TPBReadType : public TObject {
public:
enum EReadType {
kReadNotSpecified = 0,
kReadFull = 1,
kReadOpt = 2,
kReadNo = 4
};
private:
EReadType fType;
TString fName;
public:
TPBReadType(EReadType type = kReadOpt) : fType(type), fName("PROOF_Benchmark_ReadType") { }
virtual ~TPBReadType() { }
EReadType GetType() const { return fType; }
Bool_t IsReadFull() const { return (fType == kReadFull) ? kTRUE : kFALSE; }
Bool_t IsReadOpt() const { return (fType == kReadOpt) ? kTRUE : kFALSE; }
Bool_t IsReadNo() const { return (fType == kReadNo) ? kTRUE : kFALSE; }
const char *GetName() const { return fName; }
ClassDef(TPBReadType, 1)
};
class TPBHistType : public TObject {
public:
enum EHistType {
kHistNotSpecified = 0,
kHist1D = 1,
kHist2D = 2,
kHist3D = 4,
kHistAll = kHist1D | kHist2D | kHist3D
};
private:
EHistType fType;
TString fName;
public:
TPBHistType(EHistType type = kHist1D) : fType(type), fName("PROOF_Benchmark_HistType") { }
virtual ~TPBHistType() { }
EHistType GetType() const { return fType; }
Bool_t IsHist1D() const { return (fType == kHist1D) ? kTRUE : kFALSE; }
Bool_t IsHist2D() const { return (fType == kHist2D) ? kTRUE : kFALSE; }
Bool_t IsHist3D() const { return (fType == kHist3D) ? kTRUE : kFALSE; }
Bool_t IsHistAll() const { return (fType == kHistAll) ? kTRUE : kFALSE; }
const char *GetName() const { return fName; }
ClassDef(TPBHistType, 1)
};
class TPBHandleDSType : public TObject {
public:
enum EHandleDSType {
kReleaseCache = 0,
kCheckCache = 1,
kRemoveFiles = 2,
kCopyFiles = 3
};
private:
EHandleDSType fType;
TString fName;
public:
TPBHandleDSType(EHandleDSType type = kReleaseCache) : fType(type), fName("PROOF_Benchmark_HandleDSType") { }
virtual ~TPBHandleDSType() { }
EHandleDSType GetType() const { return fType; }
Bool_t IsReleaseCache() const { return (fType == kReleaseCache) ? kTRUE : kFALSE; }
Bool_t IsCheckCache() const { return (fType == kCheckCache) ? kTRUE : kFALSE; }
Bool_t IsRemoveFiles() const { return (fType == kRemoveFiles) ? kTRUE : kFALSE; }
Bool_t IsCopyFiles() const { return (fType == kCopyFiles) ? kTRUE : kFALSE; }
const char *GetName() const { return fName; }
ClassDef(TPBHandleDSType, 1)
};
#endif