12 #ifndef ROOT_TProofBenchTypes
13 #define ROOT_TProofBenchTypes
24 const char*
const kPROOF_BenchCPUSelPar =
"ProofBenchCPUSel";
25 const char*
const kPROOF_BenchDataSelPar =
"ProofBenchDataSel";
26 const char*
const kPROOF_BenchParDir =
"proof/proofbench/";
27 const char*
const kPROOF_BenchSrcDir =
"proof/proofbench/src/";
28 const char*
const kPROOF_BenchIncDir =
"proof/proofbench/inc/";
29 const char*
const kPROOF_BenchSelCPUDef =
"TSelHist";
30 const char*
const kPROOF_BenchSelDataDef =
"TSelEvent";
31 const char*
const kPROOF_BenchSelDataGenDef =
"TSelEventGen";
33 class TPBReadType :
public TObject {
36 kReadNotSpecified = 0,
45 TPBReadType(EReadType type = kReadOpt) : fType(type), fName(
"PROOF_Benchmark_ReadType") { }
46 virtual ~TPBReadType() { }
48 EReadType GetType()
const {
return fType; }
49 Bool_t IsReadFull()
const {
return (fType == kReadFull) ? kTRUE : kFALSE; }
50 Bool_t IsReadOpt()
const {
return (fType == kReadOpt) ? kTRUE : kFALSE; }
51 Bool_t IsReadNo()
const {
return (fType == kReadNo) ? kTRUE : kFALSE; }
52 const char *GetName()
const {
return fName; }
54 ClassDef(TPBReadType, 1)
57 class TPBHistType :
public TObject {
60 kHistNotSpecified = 0,
64 kHistAll = kHist1D | kHist2D | kHist3D
70 TPBHistType(EHistType type = kHist1D) : fType(type), fName(
"PROOF_Benchmark_HistType") { }
71 virtual ~TPBHistType() { }
73 EHistType GetType()
const {
return fType; }
74 Bool_t IsHist1D()
const {
return (fType == kHist1D) ? kTRUE : kFALSE; }
75 Bool_t IsHist2D()
const {
return (fType == kHist2D) ? kTRUE : kFALSE; }
76 Bool_t IsHist3D()
const {
return (fType == kHist3D) ? kTRUE : kFALSE; }
77 Bool_t IsHistAll()
const {
return (fType == kHistAll) ? kTRUE : kFALSE; }
78 const char *GetName()
const {
return fName; }
80 ClassDef(TPBHistType, 1)
83 class TPBHandleDSType :
public TObject {
95 TPBHandleDSType(EHandleDSType type = kReleaseCache) : fType(type), fName(
"PROOF_Benchmark_HandleDSType") { }
96 virtual ~TPBHandleDSType() { }
98 EHandleDSType GetType()
const {
return fType; }
99 Bool_t IsReleaseCache()
const {
return (fType == kReleaseCache) ? kTRUE : kFALSE; }
100 Bool_t IsCheckCache()
const {
return (fType == kCheckCache) ? kTRUE : kFALSE; }
101 Bool_t IsRemoveFiles()
const {
return (fType == kRemoveFiles) ? kTRUE : kFALSE; }
102 Bool_t IsCopyFiles()
const {
return (fType == kCopyFiles) ? kTRUE : kFALSE; }
103 const char *GetName()
const {
return fName; }
105 ClassDef(TPBHandleDSType, 1)