12 #ifndef ROOT_TProofBench
13 #define ROOT_TProofBench
26 #ifndef ROOT_TProofBenchTypes
99 TProofBench(
const char *url,
const char *outfile =
"<default>",
const char *proofopt = 0);
109 Int_t CopyDataSet(
const char *dset,
const char *dsetdst,
const char *destdir);
virtual ~TProofBench()
Destructor.
const char * GetOutFileName() const
TProofBenchRunCPU * fRunCPU
TProofBench(const char *url, const char *outfile="<default>", const char *proofopt=0)
Constructor: check PROOF and load selectors PAR.
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 SetOutFile(const char *outfile, Bool_t verbose=kTRUE)
Set the output file Return 0 on success, -1 on error.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
void SetReadType(TPBReadType *readtype)
static void DrawEfficiency(const char *outfile, const char *opt="", Bool_t verbose=kFALSE)
Draw the efficiency plot.
static TList * GetGraphs()
void SetSelOption(const char *opt)
void SetCPUSel(const char *sel)
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, -1 on error.
Int_t RemoveDataSet(const char *dset)
Physically remove the dataset 'dset', i.e.
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
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.
void SetNFilesWrk(Int_t nf=0)
void SetDebug(Bool_t debug=kTRUE)
void SetHistType(TPBHistType *histtype)
static void GetPerfSpecs(const char *path=".", Int_t degfit=1)
Get performance specs.
void SetDataGenSel(const char *sel)
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...
void SetProofDS(TProof *p)
Set the PROOF instance to be used for dataset operations, like releasing cache ...
static void AssertFittingFun(Double_t mi, Double_t mx)
Make sure that the fitting functions are defined.
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset 'dset' Return 0 on success, -1 on error.
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 SetCPUPar(const char *par)
Describe directory structure in memory.
Int_t OpenOutFile(Bool_t wrt=kFALSE, Bool_t verbose=kTRUE)
Set the otuput file Return 0 on success, -1 on error.
void SetDataPar(const char *par)
void SetReleaseCache(Bool_t on=kTRUE)
Mother of all ROOT objects.
TProofBenchRunDataRead * fRunDS
void SetDataGenPar(const char *par)
void CloseOutFile()
Close output file.
A TGraphErrors is a TGraph with error bars.
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...
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.
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.
void SetDataSel(const char *sel)
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.