12 #ifndef ROOT_TProofBench
13 #define ROOT_TProofBench
33 class TProofBenchRunCPU;
34 class TProofBenchRunDataRead;
35 class TProofBenchDataSet;
37 class TProofBench :
public TObject {
40 Bool_t fUnlinkOutfile;
49 TPBHistType *fHistType;
51 TPBReadType *fReadType;
65 TProofBenchRunCPU *fRunCPU;
66 TProofBenchRunDataRead *fRunDS;
67 TProofBenchDataSet *fDS;
73 static TGraphErrors *GetGraph(TDirectory *d,
const char *pfn,
74 Int_t &nb, Double_t &xmi, Double_t &xmx,
75 Double_t &ymi, Double_t &ymx, Int_t &kmx, TProfile *&pf);
87 static TList *fgGraphs;
89 static void AssertFittingFun(Double_t mi, Double_t mx);
93 TProofBench(
const char *url,
const char *outfile =
"<default>",
const char *proofopt = 0);
95 virtual ~TProofBench();
97 Int_t RunCPU(Long64_t nevents=-1, Int_t start=-1, Int_t stop=-1, Int_t step=-1);
98 Int_t RunCPUx(Long64_t nevents=-1, Int_t start=-1, Int_t stop=-1);
99 Int_t RunDataSet(
const char *dset =
"BenchDataSet",
100 Int_t start = 1, Int_t stop = -1, Int_t step = 1);
101 Int_t RunDataSetx(
const char *dset =
"BenchDataSet", Int_t start = 1, Int_t stop = -1);
103 Int_t CopyDataSet(
const char *dset,
const char *dsetdst,
const char *destdir);
104 Int_t MakeDataSet(
const char *dset = 0, Long64_t nevt = -1,
const char *fnroot =
"event",
105 Bool_t regenerate = kFALSE);
106 Int_t ReleaseCache(
const char *dset);
107 Int_t RemoveDataSet(
const char *dset);
110 Int_t OpenOutFile(Bool_t wrt = kFALSE, Bool_t verbose = kTRUE);
111 Int_t SetOutFile(
const char *outfile, Bool_t verbose = kTRUE);
112 const char *GetOutFileName()
const {
return fOutFileName; }
113 void SetNFilesWrk(Int_t nf = 0) { fNFilesWrk = (nf > 0) ? nf : 4; }
114 void SetNTries(Int_t nt) {
if (nt > 0) fNtries = nt; }
115 void SetHistType(TPBHistType *histtype) { fHistType = histtype; }
116 void SetNHist(Int_t nh) { fNHist = nh; }
117 void SetReadType(TPBReadType *readtype) { fReadType = readtype; }
118 void SetReleaseCache(Bool_t on = kTRUE) { fReleaseCache = on; }
120 void SetCPUSel(
const char *sel) { fCPUSel = sel; }
121 void SetCPUPar(
const char *par) { fCPUPar = par; }
122 void SetDataSel(
const char *sel) { fDataSel = sel; }
123 void SetDataPar(
const char *par) { fDataPar = par; }
124 void SetDataGenSel(
const char *sel) { fDataGenSel = sel; }
125 void SetDataGenPar(
const char *par) { fDataGenPar = par; }
126 void SetSelOption(
const char *opt) { fSelOption = opt; }
128 void SetProofDS(TProof *p);
130 void SetDebug(Bool_t debug = kTRUE) { fDebug = debug; }
132 Bool_t GetDebug() {
return fDebug; }
134 static void DrawCPU(
const char *outfile,
const char *opt =
"std:", Bool_t verbose = kFALSE,
135 Int_t dofit = 0, Int_t n0 = -1, Int_t n1 = -1);
136 static void DrawDataSet(
const char *outfile,
const char *opt =
"std:",
const char *type =
"mbs", Bool_t verbose = kFALSE,
137 Int_t dofit = 0, Int_t n0 = -1, Int_t n1 = -1);
138 static void GetPerfSpecs(
const char *path =
".", Int_t degfit = 1);
139 static void DrawEfficiency(
const char *outfile,
const char *opt =
"", Bool_t verbose = kFALSE);
141 static TList *GetGraphs() {
return fgGraphs; }
143 ClassDef(TProofBench, 0)