12#ifndef ROOT_TProofBench
13#define ROOT_TProofBench
93 TProofBench(
const char *url,
const char *outfile =
"<default>",
const char *proofopt = 0);
103 Int_t CopyDataSet(
const char *dset,
const char *dsetdst,
const char *destdir);
134 static void DrawCPU(
const char *outfile,
const char *opt =
"std:",
Bool_t verbose =
kFALSE,
#define ClassDef(name, id)
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
A TGraphErrors is a TGraph with error bars.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
Handle operations on datasets used by ProofBench.
CPU-intensive PROOF benchmark test generates events and fill 1, 2, or 3-D histograms.
I/O-intensive PROOF benchmark test reads in event files distributed on the cluster.
Steering class for PROOF benchmarks.
void SetDataGenSel(const char *sel)
void SetDataSel(const char *sel)
static void AssertFittingFun(Double_t mi, Double_t mx)
Make sure that the fitting functions are defined.
void SetNFilesWrk(Int_t nf=0)
void SetDataPar(const char *par)
void CloseOutFile()
Close output file.
Int_t CopyDataSet(const char *dset, const char *dsetdst, const char *destdir)
Copy the files of dataset 'dset' to 'destdir' and create a new dataset named 'dsetdst' decribing them...
void SetReadType(TPBReadType *readtype)
static void DrawCPU(const char *outfile, const char *opt="std:", Bool_t verbose=kFALSE, Int_t dofit=0, Int_t n0=-1, Int_t n1=-1)
Draw the CPU speedup plot.
Int_t RunCPUx(Long64_t nevents=-1, Int_t start=-1, Int_t stop=-1)
Perform the CPU run scanning over the number of workers per node Return 0 on success,...
void SetDataGenPar(const char *par)
Int_t SetOutFile(const char *outfile, Bool_t verbose=kTRUE)
Set the output file Return 0 on success, -1 on error.
Int_t MakeDataSet(const char *dset=0, Long64_t nevt=-1, const char *fnroot="event", Bool_t regenerate=kFALSE)
Create the largest dataset for the run.
Int_t RunDataSetx(const char *dset="BenchDataSet", Int_t start=1, Int_t stop=-1)
Perform a test using dataset 'dset' scanning over the number of workers per node.
void SetDebug(Bool_t debug=kTRUE)
void SetHistType(TPBHistType *histtype)
Int_t RunDataSet(const char *dset="BenchDataSet", Int_t start=1, Int_t stop=-1, Int_t step=1)
Perform a test using dataset 'dset' Return 0 on success, -1 on error Open the file for the results.
static void DrawDataSet(const char *outfile, const char *opt="std:", const char *type="mbs", Bool_t verbose=kFALSE, Int_t dofit=0, Int_t n0=-1, Int_t n1=-1)
Draw the CPU speedup plot.
TProofBenchRunCPU * fRunCPU
static void GetPerfSpecs(const char *path=".", Int_t degfit=1)
Get performance specs.
static void DrawEfficiency(const char *outfile, const char *opt="", Bool_t verbose=kFALSE)
Draw the efficiency plot.
void SetProofDS(TProof *p)
Set the PROOF instance to be used for dataset operations, like releasing cache ......
void SetReleaseCache(Bool_t on=kTRUE)
Int_t RemoveDataSet(const char *dset)
Physically remove the dataset 'dset', i.e.
Int_t OpenOutFile(Bool_t wrt=kFALSE, Bool_t verbose=kTRUE)
Set the otuput file Return 0 on success, -1 on error.
void SetCPUSel(const char *sel)
const char * GetOutFileName() const
TProofBenchRunDataRead * fRunDS
static TList * GetGraphs()
Int_t RunCPU(Long64_t nevents=-1, Int_t start=-1, Int_t stop=-1, Int_t step=-1)
Perform the CPU run Return 0 on success, -1 on error.
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset 'dset' Return 0 on success, -1 on error.
TProofBench(const char *url, const char *outfile="<default>", const char *proofopt=0)
Constructor: check PROOF and load selectors PAR.
void SetCPUPar(const char *par)
static TGraphErrors * GetGraph(TDirectory *d, const char *pfn, Int_t &nb, Double_t &xmi, Double_t &xmx, Double_t &ymi, Double_t &ymx, Int_t &kmx, TProfile *&pf)
Get from TDirectory 'd' the TProfile named 'pfn' and create the graph.
virtual ~TProofBench()
Destructor.
void SetSelOption(const char *opt)
This class controls a Parallel ROOT Facility, PROOF, cluster.