ROOT  6.06/08
Reference Guide
TProofBenchRunDataRead.cxx
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Sangsu Ryu 22/06/2010
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 //////////////////////////////////////////////////////////////////////////
13 // //
14 // TProofBenchRunDataRead //
15 // //
16 // I/O-intensive PROOF benchmark test reads in event files distributed //
17 // on the cluster. Number of events processed per second and size of //
18 // events processed per second are plotted against number of active //
19 // workers. Performance rate for unit packets and performance rate //
20 // for query are plotted. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "RConfigure.h"
25 
26 #include "TProofBenchRunDataRead.h"
27 #include "TProofBenchDataSet.h"
28 #include "TProofPerfAnalysis.h"
29 #include "TProofNodes.h"
30 #include "TFileCollection.h"
31 #include "TFileInfo.h"
32 #include "TProof.h"
33 #include "TString.h"
34 #include "Riostream.h"
35 #include "TMap.h"
36 #include "TTree.h"
37 #include "TH1.h"
38 #include "TH2D.h"
39 #include "TCanvas.h"
40 #include "TProfile.h"
41 #include "TKey.h"
42 #include "TRegexp.h"
43 #include "TPerfStats.h"
44 #include "THashList.h"
45 #include "TSortedList.h"
46 #include "TPad.h"
47 #include "TEnv.h"
48 #include "TLeaf.h"
49 #include "TQueryResult.h"
50 #include "TMath.h"
51 #include "TStyle.h"
52 #include "TLegend.h"
53 #include "TROOT.h"
54 
56 
57 ////////////////////////////////////////////////////////////////////////////////
58 
60  TDirectory* dirproofbench, TProof* proof,
61  TProofNodes* nodes, Long64_t nevents, Int_t ntries,
62  Int_t start, Int_t stop, Int_t step, Int_t debug)
63  : TProofBenchRun(proof, kPROOF_BenchSelDataDef), fProof(proof),
64  fReadType(readtype), fDS(pbds),
65  fNEvents(nevents), fNTries(ntries), fStart(start), fStop(stop), fStep(step),
66  fDebug(debug), fFilesPerWrk(2), fReleaseCache(kTRUE),
67  fDirProofBench(dirproofbench), fNodes(nodes),
68  fListPerfPlots(0), fProfile_perfstat_event(0), fHist_perfstat_event(0),
69  fProfile_perfstat_evtmax(0), fNorm_perfstat_evtmax(0),
70  fProfile_queryresult_event(0), fNorm_queryresult_event(0),
71  fProfile_perfstat_IO(0), fHist_perfstat_IO(0),
72  fProfile_perfstat_IOmax(0), fNorm_perfstat_IOmax(0),
73  fProfile_queryresult_IO(0), fNorm_queryresult_IO(0), fProfile_cpu_eff(0),
74  fProfLegend_evt(0), fNormLegend_evt(0), fProfLegend_mb(0), fNormLegend_mb(0),
75  fCPerfProfiles(0), fName(0)
76 {
77  // Default constructor
78 
79  if (!fProof) fProof = gProof;
80  if (!fDS) fDS = new TProofBenchDataSet(fProof);
81 
82  // Set name
83  fName = "DataRead";
84 
85  if (!fNodes) fNodes = new TProofNodes(fProof);
86  fNodes->GetMapOfActiveNodes()->Print();
87 
88  if (stop == -1) fStop = fNodes->GetNWorkersCluster();
89 
90  fListPerfPlots = new TList;
91 
92  gEnv->SetValue("Proof.StatsTrace",1);
93  gStyle->SetOptStat(0);
94 }
95 
96 ////////////////////////////////////////////////////////////////////////////////
97 /// Destructor
98 
100 {
101  fProof=0;
102  fDirProofBench=0;
104  if (fCPerfProfiles) delete fCPerfProfiles;
109 }
110 
111 ////////////////////////////////////////////////////////////////////////////////
112 /// Run benchmark
113 /// Input parameters
114 /// dset: Dataset on which to run
115 /// start: Start scan with 'start' workers.
116 /// stop: Stop scan at 'stop workers.
117 /// step: Scan every 'step' workers.
118 /// ntries: Number of tries. When it is -1, data member fNTries is used.
119 /// debug: debug switch.
120 /// Int_t: Ignored
121 /// Returns
122 /// Nothing
123 
124 void TProofBenchRunDataRead::Run(const char *dset, Int_t start, Int_t stop,
125  Int_t step, Int_t ntries, Int_t debug, Int_t)
126 {
127  if (!fProof){
128  Error("Run", "Proof not set");
129  return;
130  }
131  if (!dset || (dset && strlen(dset) <= 0)){
132  Error("Run", "dataset name not set");
133  return;
134  }
135  // Check if the dataset exists
136  if (!fProof->ExistsDataSet(dset)) {
137  Error("Run", "no such data set found; %s", dset);
138  return;
139  }
140 
141  start = (start == -1) ? fStart : start;
142  stop = (stop == -1) ? fStop : stop;
143  step = (step == -1) ? fStep : step;
144  ntries = (ntries == -1) ? fNTries : ntries;
145  debug = (debug == -1) ? fDebug : debug;
146 
147  Int_t fDebug_sav = fDebug;
148  fDebug = debug;
149 
150  Bool_t nx = kFALSE;
151  if (step == -2){
152  nx = kTRUE;
153  step = 1;
154  }
155 
156  if (nx){
157  Int_t minnworkersanode = fNodes->GetMinWrksPerNode();
158  if (stop > minnworkersanode) stop = minnworkersanode;
159  }
160 
161  // Load the selector, if needed
163  // Is it the default selector?
165  // Load the parfile
167  Info("Run", "Uploading '%s' ...", par.Data());
168  if (fProof->UploadPackage(par) != 0) {
169  Error("Run", "problems uploading '%s' - cannot continue", par.Data());
170  return;
171  }
172  Info("Run", "Enabling '%s' ...", kPROOF_BenchDataSelPar);
174  Error("Run", "problems enabling '%s' - cannot continue", kPROOF_BenchDataSelPar);
175  return;
176  }
177  } else {
178  if (fParList.IsNull()) {
179  Error("Run", "you should load the class '%s' before running the benchmark", fSelName.Data());
180  return;
181  } else {
182  TString par;
183  Int_t from = 0;
184  while (fParList.Tokenize(par, from, ",")) {
185  Info("Run", "Uploading '%s' ...", par.Data());
186  if (fProof->UploadPackage(par) != 0) {
187  Error("Run", "problems uploading '%s' - cannot continue", par.Data());
188  return;
189  }
190  Info("Run", "Enabling '%s' ...", par.Data());
191  if (fProof->EnablePackage(par) != 0) {
192  Error("Run", "problems enabling '%s' - cannot continue", par.Data());
193  return;
194  }
195  }
196  }
197  }
198  // Check
199  if (!TClass::GetClass(fSelName)) {
200  Error("Run", "failed to load '%s'", fSelName.Data());
201  return;
202  }
203  }
204 
205  // Build histograms, profiles and graphs needed for this run
206  BuildHistos(start, stop, step, nx);
207 
208  TString dsname(dset);
209  TString dsbasename = gSystem->BaseName(dset);
210 
211  // Get pad
212  if (!fCPerfProfiles){
213  TString canvasname = TString::Format("Performance Profiles %s", GetName());
214  fCPerfProfiles = new TCanvas(canvasname.Data(), canvasname.Data());
215  }
216 
217  // Cleanup up the canvas
219 
220  fCPerfProfiles->Divide(2,2);
221 
222  Info("Run", "Running IO-bound tests on dataset '%s'; %d ~ %d active worker(s),"
223  " every %d worker(s).", dset, start, stop, step);
224 
225  Int_t npad = 1; //pad number
226 
227  Int_t nnodes = fNodes->GetNNodes(); // Number of machines
228  Int_t ncores = fNodes->GetNCores(); // Number of cores
229 
230  Bool_t drawpf = kFALSE;
231  Double_t ymi = -1., ymx = -1., emx =- 1, ymiio = -1., ymxio = -1., mbmx = -1.;
232  for (Int_t nactive = start; nactive <= stop; nactive += step) {
233 
234  // For CPU effectiveness (ok for lite; should do it properly for standard clusters)
235  Int_t ncoren = (nactive < ncores) ? nactive : ncores;
236 
237  // Actvate the wanted workers
238  Int_t nw = -1;
239  if (nx) {
240  TString workers;
241  workers.Form("%dx", nactive);
242  nw = fNodes->ActivateWorkers(workers);
243  } else {
244  nw = fNodes->ActivateWorkers(nactive);
245  }
246  if (nw < 0){
247  Error("Run", "could not activate the requested number of"
248  " workers/node on the cluster; skipping the test point"
249  " (%d workers/node)", nactive);
250  continue;
251  }
252 
253  // Prepare the dataset for this run. possibly a subsample of
254  // the total one
255  TFileCollection *fc = GetDataSet(dsname, nactive, nx);
256  if (!fc) {
257  Error("Run", "could not retrieve dataset '%s'", dsname.Data());
258  continue;
259  }
260  fc->Print("F");
261  TString dsn = TString::Format("%s_%d_%d", dsbasename.Data(), nactive, (Int_t)nx);
262  fProof->RegisterDataSet(dsn, fc, "OT");
263  fProof->ShowDataSet(dsn, "F");
264 
265  for (Int_t j=0; j<ntries; j++) {
266 
267  if (nx){
268  Info("Run", "Running IO-bound tests with %d active worker(s)/node;"
269  " trial %d/%d", nactive, j + 1, ntries);
270  } else {
271  Info("Run", "Running IO-bound tests with %d active worker(s);"
272  " trial %d/%d", nactive, j + 1, ntries);
273  }
274 
275  // Cleanup run
276  const char *dsnr = (fDS->IsProof(fProof)) ? dsn.Data() : dsname.Data();
277  if (fReleaseCache) fDS->ReleaseCache(dsnr);
278 
280  SetParameters();
281 
282  Info("Run", "Processing data set %s with"
283  " %d active worker(s).", dsn.Data(), nactive);
284 
285  TTime starttime = gSystem->Now();
287 
289 
290  TTime endtime = gSystem->Now();
291 
292  TList *l = fProof->GetOutputList();
293 
294  //save perfstats
295  TString perfstats_name = "PROOF_PerfStats";
296  TTree *t = 0;
297  if (l) t = dynamic_cast<TTree*>(l->FindObject(perfstats_name.Data()));
298  if (t) {
299  drawpf = kTRUE;
300  TTree* tnew=(TTree*)t->Clone("tnew");
301 
302  FillPerfStatProfiles(tnew, nactive);
303 
304  TProofPerfAnalysis pfa(tnew);
305  Double_t pf_eventrate = pfa.GetEvtRateAvgMax();
306  Double_t pf_IOrate = pfa.GetMBRateAvgMax();
307  fProfile_perfstat_evtmax->Fill(nactive, pf_eventrate);
308  fCPerfProfiles->cd(npad);
313  gPad->Update();
314  fProfile_perfstat_IOmax->Fill(nactive, pf_IOrate);
315  fCPerfProfiles->cd(npad + 2);
319  fProfLegend_mb->Draw();
320  gPad->Update();
321  // The normalised histos
322  // Use the first bin to set the Y range for the histo
323  Double_t nert = nx ? pf_eventrate/nactive/nnodes : pf_eventrate/nactive;
324  fNorm_perfstat_evtmax->Fill(nactive, nert);
327  Double_t dy = 5 * e1;
328  if (dy / y1 < 0.2) dy = y1 * 0.2;
329  if (dy > y1) dy = y1*.999999;
330  if (ymi < 0.) ymi = y1 - dy;
331  if (fNorm_perfstat_evtmax->GetBinContent(nactive) < ymi)
332  ymi = fNorm_perfstat_evtmax->GetBinContent(nactive) / 2.;
333  if (ymx < 0.) ymx = y1 + dy;
334  if (fNorm_perfstat_evtmax->GetBinContent(nactive) > ymx)
335  ymx = fNorm_perfstat_evtmax->GetBinContent(nactive) * 1.5;
338  fCPerfProfiles->cd(npad + 1);
340  gPad->Update();
341  //
342  Double_t niort = nx ? pf_IOrate/nactive/nnodes : pf_IOrate/nactive;
343  fNorm_perfstat_IOmax->Fill(nactive, niort);
346  dy = 5 * e1;
347  if (dy / y1 < 0.2) dy = y1 * 0.2;
348  if (dy > y1) dy = y1*.999999;
349  if (ymiio < 0.) ymiio = y1 - dy;
350  if (fNorm_perfstat_IOmax->GetBinContent(nactive) < ymiio)
351  ymiio = fNorm_perfstat_IOmax->GetBinContent(nactive) / 2.;
352  if (ymxio < 0.) ymxio = y1 + dy;
353  if (fNorm_perfstat_IOmax->GetBinContent(nactive) > ymxio)
354  ymxio = fNorm_perfstat_IOmax->GetBinContent(nactive) * 1.5;
357  fCPerfProfiles->cd(npad + 3);
359  gPad->Update();
360 
361  //change the name
362  TString newname = TString::Format("%s_%s_%dwrks%dthtry", t->GetName(), GetName(), nactive, j);
363  tnew->SetName(newname);
364 
365  if (debug && fDirProofBench->IsWritable()){
366  TDirectory *curdir = gDirectory;
367  TString dirn = nx ? "RunDataReadx" : "RunDataRead";
368  if (!fDirProofBench->GetDirectory(dirn))
369  fDirProofBench->mkdir(dirn, "RunDataRead results");
370  if (fDirProofBench->cd(dirn)) {
372  tnew->Write();
373  l->Remove(tnew);
374  } else {
375  Warning("Run", "cannot cd to subdirectory '%s' to store the results!", dirn.Data());
376  }
377  curdir->cd();
378  }
379  } else {
380  if (l)
381  Warning("Run", "%s: tree not found", perfstats_name.Data());
382  else
383  Error("Run", "PROOF output list is empty!");
384  }
385 
386  //
387  const char *drawopt = t ? "SAME" : "";
388  // Performance measures from TQueryResult
389  TQueryResult *queryresult = fProof->GetQueryResult();
390  if (queryresult) {
391  TDatime qr_start = queryresult->GetStartTime();
392  TDatime qr_end = queryresult->GetEndTime();
393  Float_t qr_proc = queryresult->GetProcTime();
394  Long64_t qr_bytes = queryresult->GetBytes();
395 
396  Long64_t qr_entries = queryresult->GetEntries();
397 
398  // Calculate and fill CPU efficiency
399  Float_t qr_cpu_eff = -1.;
400  if (qr_proc > 0.) {
401  qr_cpu_eff = queryresult->GetUsedCPU() / ncoren / qr_proc ;
402  fProfile_cpu_eff->Fill(nactive, qr_cpu_eff);
403  Printf("cpu_eff: %f", qr_cpu_eff);
404  }
405 
406  // Calculate event rate, fill and draw
407  Double_t qr_eventrate=0;
408 
409  qr_eventrate = qr_entries / Double_t(qr_proc);
410  if (qr_eventrate > emx) emx = qr_eventrate;
411 
412  fProfile_queryresult_event->Fill(nactive, qr_eventrate);
413  fCPerfProfiles->cd(npad);
417  gPad->Update();
418 
419  // Calculate IO rate, fill and draw
420  Double_t qr_IOrate = 0;
421 
422  const Double_t Dmegabytes = 1024*1024;
423 
424  qr_IOrate = qr_bytes / Dmegabytes / Double_t(qr_proc);
425  if (qr_IOrate > mbmx) mbmx = qr_IOrate;
426 
427  fProfile_queryresult_IO->Fill(nactive, qr_IOrate);
428  fCPerfProfiles->cd(npad + 2);
430  fProfile_queryresult_IO->Draw(drawopt);
431  fProfLegend_mb->Draw();
432  gPad->Update();
433 
434  // The normalised histos
435  // Use the first bin to set the Y range for the histo
436  Double_t nert = nx ? qr_eventrate/nactive/nnodes : qr_eventrate/nactive;
437  fNorm_queryresult_event->Fill(nactive, nert);
440  Double_t dy = 5 * e1;
441  if (dy / y1 < 0.2) dy = y1 * 0.2;
442  if (dy > y1) dy = y1*.999999;
443  if (ymi < 0.) ymi = y1 - dy;
444  if (fNorm_queryresult_event->GetBinContent(nactive) < ymi)
445  ymi = fNorm_queryresult_event->GetBinContent(nactive) / 2.;
446  if (ymx < 0.) ymx = y1 + dy;
447  if (fNorm_queryresult_event->GetBinContent(nactive) > ymx)
448  ymx = fNorm_queryresult_event->GetBinContent(nactive) * 1.5;
449 // fNorm_queryresult_event->SetMaximum(ymx);
451  fCPerfProfiles->cd(npad + 1);
452  fNorm_queryresult_event->Draw(drawopt);
454  gPad->Update();
455  //
456  Double_t niort = nx ? qr_IOrate/nactive/nnodes : qr_IOrate/nactive;
457  fNorm_queryresult_IO->Fill(nactive, niort);
460  dy = 5 * e1;
461  if (dy / y1 < 0.2) dy = y1 * 0.2;
462  if (dy > y1) dy = y1*.999999;
463  if (ymiio < 0.) ymiio = y1 - dy;
464  if (fNorm_queryresult_IO->GetBinContent(nactive) < ymiio)
465  ymiio = fNorm_queryresult_IO->GetBinContent(nactive) / 2.;
466  if (ymxio < 0.) ymxio = y1 + dy;
467  if (fNorm_queryresult_IO->GetBinContent(nactive) > ymxio)
468  ymxio = fNorm_queryresult_IO->GetBinContent(nactive) * 1.5;
469 // fNorm_queryresult_IO->SetMaximum(ymxio);
471  fCPerfProfiles->cd(npad + 3);
472  fNorm_queryresult_IO->Draw(drawopt);
473  fNormLegend_mb->Draw();
474  gPad->Update();
475  }
476  fCPerfProfiles->cd(0);
477  }
478  // Remove temporary dataset
479  fProof->RemoveDataSet(dsn);
480  SafeDelete(fc);
481  }
482 
483  // Make the result persistent
484  fCPerfProfiles->cd(npad);
487  if (drawpf) fProfile_perfstat_evtmax->DrawCopy("SAME");
489  fCPerfProfiles->cd(npad + 2);
492  if (drawpf) fProfile_perfstat_IOmax->DrawCopy("SAME");
493  fProfLegend_mb->Draw();
494  fCPerfProfiles->cd(npad + 1);
496  if (drawpf) fNorm_perfstat_evtmax->DrawCopy("SAME");
498  fCPerfProfiles->cd(npad + 3);
500  if (drawpf) fNorm_perfstat_IOmax->DrawCopy("SAME");
501  fProfLegend_mb->Draw();
502  gPad->Update();
503 
504  //save performance profiles to file
505  if (fDirProofBench->IsWritable()){
506  TDirectory *curdir = gDirectory;
507  TString dirn = nx ? "RunDataReadx" : "RunDataRead";
508  if (!fDirProofBench->GetDirectory(dirn))
509  fDirProofBench->mkdir(dirn, "RunDataRead results");
510  if (fDirProofBench->cd(dirn)) {
514  } else {
515  Warning("Run", "cannot cd to subdirectory '%s' to store the results!", dirn.Data());
516  }
517  curdir->cd();
518  }
519  // Restore member data
520  fDebug = fDebug_sav;
521 }
522 
523 ////////////////////////////////////////////////////////////////////////////////
524 /// Get a subsample of dsname suited to run with 'nact' and option 'nx'.
525 
527  Int_t nact, Bool_t nx)
528 {
529  TFileCollection *fcsub = 0;
530 
531  // Dataset must exists
532  if (!fProof || (fProof && !fProof->ExistsDataSet(dset))) {
533  Error("GetDataSet", "dataset '%s' does not exist", dset);
534  return fcsub;
535  }
536 
537  // Get the full collection
538  TFileCollection *fcref = fProof->GetDataSet(dset);
539  if (!fcref) {
540  Error("GetDataSet", "dataset '%s' could not be retrieved", dset);
541  return fcsub;
542  }
543  // Is it remote ?
545 
546  // Separate info per server
547 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,30,0)
548  TMap *mpref = fcref->GetFilesPerServer(fProof->GetMaster(), kTRUE);
549 #else
550  TMap *mpref = fcref->GetFilesPerServer(fProof->GetMaster());
551 #endif
552  if (!mpref) {
553  SafeDelete(fcref);
554  Error("GetDataSet", "problems classifying info on per-server base");
555  return fcsub;
556  }
557  mpref->Print();
558 
559  // Get Active node information
560  TMap *mpnodes = fNodes->GetMapOfActiveNodes();
561  if (!mpnodes) {
562  SafeDelete(fcref);
563  SafeDelete(mpref);
564  Error("GetDataSet", "problems getting map of active nodes");
565  return fcsub;
566  }
567  mpnodes->Print();
568 
569  // Number of files: fFilesPerWrk per active worker
571  Printf(" number of files needed (ideally): %d (%d per worker)", nf, fFilesPerWrk);
572 
573  // The output dataset
574  fcsub = new TFileCollection(TString::Format("%s_%d_%d", fcref->GetName(), nact, nx),
575  fcref->GetTitle());
576 
577  // Order reference sub-collections
578  TIter nxnd(mpnodes);
579  TObject *key = 0;
580  TFileInfo *fi = 0;
581  TFileCollection *xfc = 0;
582  TList *lswrks = 0;
583  while ((key = nxnd())) {
584  TIter nxsrv(mpref);
585  TObject *ksrv = 0;
586  while ((ksrv = nxsrv())) {
587  TUrl urlsrv(ksrv->GetName());
588  if (TString(urlsrv.GetHostFQDN()).IsNull())
589  urlsrv.SetHost(TUrl(gProof->GetMaster()).GetHostFQDN());
590  if (remote ||
591  !strcmp(urlsrv.GetHostFQDN(), TUrl(key->GetName()).GetHostFQDN())) {
592  if ((xfc = dynamic_cast<TFileCollection *>(mpref->GetValue(ksrv)))) {
593  if ((lswrks = dynamic_cast<TList *>(mpnodes->GetValue(key)))) {
594  Int_t nfnd = fFilesPerWrk * lswrks->GetSize();
595  while (nfnd-- && xfc->GetList()->GetSize() > 0) {
596  if ((fi = (TFileInfo *) xfc->GetList()->First())) {
597  xfc->GetList()->Remove(fi);
598  fcsub->Add(fi);
599  }
600  }
601  } else {
602  Warning("GetDataSet", "could not attach to worker list for node '%s'",
603  key->GetName());
604  }
605  } else {
606  Warning("GetDataSet", "could not attach to file collection for server '%s'",
607  ksrv->GetName());
608  }
609  }
610  }
611  }
612 
613  // Update counters
614  fcsub->Update();
615  fcsub->Print();
616 
617  // Make sure that the tree name is the one of the original dataset
618  if (fcref) {
619  TString dflt(fcref->GetDefaultTreeName());
620  if (!dflt.IsNull()) fcsub->SetDefaultTreeName(dflt);
621  }
622 
623  // Cleanup
624  SafeDelete(fcref);
625  SafeDelete(mpref);
626  // Done
627  return fcsub;
628 }
629 
630 ////////////////////////////////////////////////////////////////////////////////
631 
633 {
634  // Fill performance profiles using tree 't'(PROOF_PerfStats).
635  // Input parameters
636  // t: Proof output tree (PROOF_PerfStat) containing performance
637  // statistics.
638  // nactive: Number of active workers processed the query.
639  // Return
640  // Nothing
641 
642  // extract timing information
643  TPerfEvent pe;
644  TPerfEvent* pep = &pe;
645  t->SetBranchAddress("PerfEvents",&pep);
646  Long64_t entries = t->GetEntries();
647 
648  const Double_t Dmegabytes = 1024.*1024.;
649  Double_t event_rate_packet = 0;
650  Double_t IO_rate_packet = 0;
651 
652  for (Long64_t k=0; k<entries; k++) {
653  t->GetEntry(k);
654 
655  // Skip information from workers
656  if (pe.fEvtNode.Contains(".")) continue;
657 
659  if (pe.fProcTime != 0.0) {
660  event_rate_packet = pe.fEventsProcessed / pe.fProcTime;
661  fHist_perfstat_event->Fill(Double_t(nactive), event_rate_packet);
662  IO_rate_packet = pe.fBytesRead / Dmegabytes / pe.fProcTime;
663  fHist_perfstat_IO->Fill(Double_t(nactive), IO_rate_packet);
664  }
665  }
666  }
667 
668  return;
669 }
670 
671 ////////////////////////////////////////////////////////////////////////////////
672 /// Print the content of this object
673 
675 {
676  Printf("Name = %s", fName.Data());
677  if (fProof) fProof->Print(option);
678  Printf("fReadType = %s%s", "k", GetNameStem().Data());
679  Printf("fNEvents = %lld", fNEvents);
680  Printf("fNTries = %d", fNTries);
681  Printf("fStart = %d", fStart);
682  Printf("fStop = %d", fStop);
683  Printf("fStep = %d", fStep);
684  Printf("fDebug = %d", fDebug);
685  if (fDirProofBench)
686  Printf("fDirProofBench = %s", fDirProofBench->GetPath());
687  if (fNodes) fNodes->Print(option);
688  if (fListPerfPlots) fListPerfPlots->Print(option);
689 
690  if (fCPerfProfiles)
691  Printf("Performance Profiles Canvas: Name = %s Title = %s",
693 }
694 
695 ////////////////////////////////////////////////////////////////////////////////
696 /// Get canvas
697 
699 {
700  if (!fCPerfProfiles){
701  TString canvasname = TString::Format("Performance Profiles %s", GetName());
702  fCPerfProfiles = new TCanvas(canvasname.Data(), canvasname.Data());
703  }
704 
706 
707  // Divide the canvas as many as the number of profiles in the list
708  Int_t nprofiles = fListPerfPlots->GetSize();
709  if (nprofiles <= 2){
710  fCPerfProfiles->Divide(nprofiles);
711  } else {
712  Int_t nside = (Int_t)TMath::Sqrt((Float_t)nprofiles);
713  nside = (nside*nside < nprofiles) ? nside + 1 : nside;
714  fCPerfProfiles->Divide(nside,nside);
715  }
716 
717  Int_t npad=1;
718  TIter nxt(fListPerfPlots);
719  TProfile* profile=0;
720  while ((profile=(TProfile*)(nxt()))){
721  fCPerfProfiles->cd(npad++);
722  profile->Draw();
723  gPad->Update();
724  }
725  return;
726 }
727 
728 ////////////////////////////////////////////////////////////////////////////////
729 /// Get name for this run
730 
732 {
733  TString namestem("+++undef+++");
734  if (fReadType) {
735  switch (fReadType->GetType()) {
737  namestem="Full";
738  break;
740  namestem="Opt";
741  break;
743  namestem="No";
744  break;
745  default:
746  break;
747  }
748  }
749  return namestem;
750 }
751 
752 ////////////////////////////////////////////////////////////////////////////////
753 /// Set parameters
754 
756 {
757  if (!fProof){
758  Error("SetParameters", "Proof not set; Doing nothing");
759  return 1;
760  }
763  fProof->SetParameter("PROOF_BenchmarkDebug", Int_t(fDebug));
764  // For Mac Os X only: do not OS cache the files read
765  fProof->SetParameter("PROOF_DontCacheFiles", Int_t(1));
766  return 0;
767 }
768 
769 ////////////////////////////////////////////////////////////////////////////////
770 /// Delete parameters set for this run
771 
773 {
774  if (!fProof){
775  Error("DeleteParameters", "Proof not set; Doing nothing");
776  return 1;
777  }
778  if (fProof->GetInputList()) {
779  TObject *type = fProof->GetInputList()->FindObject("PROOF_Benchmark_ReadType");
780  if (type) fProof->GetInputList()->Remove(type);
781  }
782  fProof->DeleteParameters("PROOF_BenchmarkDebug");
783  return 0;
784 }
785 
786 ////////////////////////////////////////////////////////////////////////////////
787 /// Build histograms, profiles and graphs needed for this run
788 
790 {
791  TObject *o = 0;
792  Int_t quotient = (stop - start) / step;
793  Int_t ndiv = quotient + 1;
794  Double_t ns_min = start - step/2.;
795  Double_t ns_max = quotient*step + start + step/2.;
796 
797  fProfLegend_evt = new TLegend(0.1, 0.8, 0.3, 0.9);
798  fNormLegend_evt = new TLegend(0.7, 0.8, 0.9, 0.9);
799  fProfLegend_mb = new TLegend(0.1, 0.8, 0.3, 0.9);
800  fNormLegend_mb = new TLegend(0.7, 0.8, 0.9, 0.9);
801 
802  TString axtitle("Active Workers"), namelab(GetName()), sellab(GetSelName());
803  if (nx) {
804  axtitle = "Active Workers/Node";
805  namelab.Form("x_%s", GetName());
806  }
808  sellab.Form("%s_%s", GetSelName(), GetNameStem().Data());
809 
810  TString name, title;
811 
812  // Book perfstat profile (max evts)
813  name.Form("Prof_%s_PS_MaxEvts_%s", namelab.Data(), sellab.Data());
814  title.Form("Profile %s PerfStat Event- %s", namelab.Data(), sellab.Data());
815  fProfile_perfstat_evtmax = new TProfile(name, title, ndiv, ns_min, ns_max);
817  fProfile_perfstat_evtmax->GetYaxis()->SetTitle("Events/sec");
821  if ((o = fListPerfPlots->FindObject(name))) {
823  delete o;
824  }
827 
828  // Book perfstat profile (evts)
829  name.Form("Prof_%s_PS_Evts_%s", namelab.Data(), sellab.Data());
830  title.Form("Profile %s PerfStat Event - %s", namelab.Data(), sellab.Data());
831  fProfile_perfstat_event = new TProfile(name, title, ndiv, ns_min, ns_max);
833  fProfile_perfstat_event->GetYaxis()->SetTitle("Events/sec");
836  if ((o = fListPerfPlots->FindObject(name))) {
838  delete o;
839  }
841 
842  // Book perfstat histogram (evts)
843  name.Form("Hist_%s_PS_Evts_%s", namelab.Data(), sellab.Data());
844  title.Form("Histogram %s PerfStat Event - %s", namelab.Data(), sellab.Data());
845  fHist_perfstat_event = new TH2D(name, title, ndiv, ns_min, ns_max, 100, 0, 0);
847  fHist_perfstat_event->GetYaxis()->SetTitle("Events/sec");
850  if ((o = fListPerfPlots->FindObject(name))) {
852  delete o;
853  }
855 
856  // Book normalized perfstat profile (max evts)
857  name.Form("Norm_%s_PF_MaxEvts_%s", namelab.Data(), sellab.Data());
858  title.Form("Profile %s Normalized QueryResult Event - %s", namelab.Data(), sellab.Data());
859  fNorm_perfstat_evtmax = new TProfile(name, title, ndiv, ns_min, ns_max);
861  fNorm_perfstat_evtmax->GetYaxis()->SetTitle("Events/sec");
865  if ((o = fListPerfPlots->FindObject(name))) {
867  delete o;
868  }
871 
872  // Book queryresult profile (evts)
873  name.Form("Prof_%s_QR_Evts_%s", namelab.Data(), sellab.Data());
874  title.Form("Profile %s QueryResult Event - %s", namelab.Data(), sellab.Data());
875  fProfile_queryresult_event = new TProfile(name, title, ndiv, ns_min, ns_max);
877  fProfile_queryresult_event->GetYaxis()->SetTitle("Events/sec");
880  if ((o = fListPerfPlots->FindObject(name))) {
882  delete o;
883  }
886 
887  // Book normalized queryresult profile (evts)
888  name.Form("Norm_%s_QR_Evts_%s", namelab.Data(), sellab.Data());
889  title.Form("Profile %s Normalized QueryResult Event - %s", namelab.Data(), sellab.Data());
890  fNorm_queryresult_event = new TProfile(name, title, ndiv, ns_min, ns_max);
892  fNorm_queryresult_event->GetYaxis()->SetTitle("Events/sec");
895  if ((o = fListPerfPlots->FindObject(name))) {
897  delete o;
898  }
901 
902  // Book perfstat profile (mbs)
903  name.Form("Prof_%s_PS_IO_%s", namelab.Data(), sellab.Data());
904  title.Form("Profile %s PerfStat I/O %s", namelab.Data(), sellab.Data());
905  fProfile_perfstat_IO = new TProfile(name, title, ndiv, ns_min, ns_max);
907  fProfile_perfstat_IO->GetYaxis()->SetTitle("MB/sec");
910  if ((o = fListPerfPlots->FindObject(name))) {
912  delete o;
913  }
915 
916  // Book perfstat histogram (mbs)
917  name.Form("Hist_%s_PS_IO_%s", namelab.Data(), sellab.Data());
918  title.Form("Histogram %s PerfStat I/O - %s", namelab.Data(), sellab.Data());
919  fHist_perfstat_IO = new TH2D(name, title, ndiv, ns_min, ns_max, 100, 0, 0);
921  fHist_perfstat_IO->GetYaxis()->SetTitle("MB/sec");
922  fHist_perfstat_IO->GetXaxis()->SetTitle(axtitle);
924  if ((o = fListPerfPlots->FindObject(name))) {
926  delete o;
927  }
929 
930  // Book perfstat profile (max mbs)
931  name.Form("Prof_%s_PS_MaxIO_%s", namelab.Data(), sellab.Data());
932  title.Form("Profile %s PerfStat I/O - %s", namelab.Data(), sellab.Data());
933  fProfile_perfstat_IOmax = new TProfile(name, title, ndiv, ns_min, ns_max);
939  if ((o = fListPerfPlots->FindObject(name))) {
941  delete o;
942  }
945 
946  // Book normalized perfstat profile (max mbs)
947  name.Form("Norm_%s_PS_MaxIO_%s", namelab.Data(), sellab.Data());
948  title.Form("Profile %s Normalized PerfStat I/O - %s", namelab.Data(), sellab.Data());
949  fNorm_perfstat_IOmax = new TProfile(name, title, ndiv, ns_min, ns_max);
951  fNorm_perfstat_IOmax->GetYaxis()->SetTitle("MB/sec");
955  if ((o = fListPerfPlots->FindObject(name))) {
957  delete o;
958  }
961 
962  // Book queryresult profile (mbs)
963  name.Form("Prof_%s_QR_IO_%s", namelab.Data(), sellab.Data());
964  title.Form("Profile %s QueryResult I/O - %s", namelab.Data(), sellab.Data());
965  fProfile_queryresult_IO = new TProfile(name, title, ndiv, ns_min, ns_max);
970  if ((o = fListPerfPlots->FindObject(name))) {
972  delete o;
973  }
976 
977  // Book normalized queryresult profile (mbs)
978  name.Form("Norm_%s_QR_IO_%s", namelab.Data(), sellab.Data());
979  title.Form("Profile %s Normalized QueryResult I/O - %s", namelab.Data(), sellab.Data());
980  fNorm_queryresult_IO = new TProfile(name, title, ndiv, ns_min, ns_max);
982  fNorm_queryresult_IO->GetYaxis()->SetTitle("MB/sec");
985  if ((o = fListPerfPlots->FindObject(name))) {
987  delete o;
988  }
991 
992  // Book CPU efficiency profile
993  name.Form("Prof_%s_CPU_eff_%s", namelab.Data(), sellab.Data());
994  title.Form("Profile %s CPU efficiency - %s", namelab.Data(), sellab.Data());
995  fProfile_cpu_eff = new TProfile(name, title, ndiv, ns_min, ns_max);
997  fProfile_cpu_eff->GetYaxis()->SetTitle("Efficiency");
998  fProfile_cpu_eff->GetXaxis()->SetTitle(axtitle);
1000  if ((o = fListPerfPlots->FindObject(name))) {
1001  fListPerfPlots->Remove(o);
1002  delete o;
1003  }
1005 }
const int nx
Definition: kalman.C:16
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
Definition: TSystem.cxx:928
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:51
Long64_t GetEntries() const
Definition: TQueryResult.h:130
double par[1]
Definition: unuranDistr.cxx:38
Int_t SetParameters()
Set parameters.
TVirtualPerfStats::EEventType fType
Definition: TPerfStats.h:54
void Print(Option_t *option="") const
Print the content of this object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Definition: TObject.cxx:892
THist< 2, double > TH2D
Definition: THist.h:320
const char * GetDefaultTreeName() const
Returns the tree set with SetDefaultTreeName if set Returns the name of the first tree in the meta da...
long long Long64_t
Definition: RtypesCore.h:69
virtual void SetMaximum(Double_t maximum=-1111)
Definition: TH1.h:394
This class displays a legend box (TPaveText) containing several legend entries.
Definition: TLegend.h:35
virtual Bool_t ExistsDataSet(const char *dataset)
Returns kTRUE if &#39;dataset&#39; exists, kFALSE otherwise.
Definition: TProof.cxx:11435
Int_t EnablePackage(const char *package, Bool_t notOnClient=kFALSE, TList *workers=0)
Enable specified package.
Definition: TProof.cxx:8632
virtual Bool_t RegisterDataSet(const char *name, TFileCollection *dataset, const char *optStr="")
Register the &#39;dataSet&#39; on the cluster under the current user, group and the given &#39;dataSetName&#39;...
Definition: TProof.cxx:11274
float Float_t
Definition: RtypesCore.h:53
virtual void SetDirectory(TDirectory *dir)
By default when an histogram is created, it is added to the list of histogram objects in the current ...
Definition: TH1.cxx:8272
const char Option_t
Definition: RtypesCore.h:62
This class represents a WWW compatible URL.
Definition: TUrl.h:41
R__EXTERN TStyle * gStyle
Definition: TStyle.h:423
Bool_t TestBit(UInt_t f) const
Definition: TObject.h:173
#define gDirectory
Definition: TDirectory.h:218
Bool_t IsProof(TProof *p)
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
Definition: TLegend.cxx:373
Double_t GetMBRateAvgMax() const
void SetParameter(const char *par, const char *value)
Set input list parameter.
Definition: TProof.cxx:10389
TDatime GetStartTime() const
Definition: TQueryResult.h:125
void FillPerfStatProfiles(TTree *t, Int_t nactive)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Definition: TCanvas.cxx:659
virtual TFileCollection * GetDataSet(const char *dataset, const char *optStr="")
Get a list of TFileInfo objects describing the files of the specified dataset.
Definition: TProof.cxx:11504
const char * GetName() const
Returns name of object.
TList * GetOutputList()
Get list with all object created during processing (see Process()).
Definition: TProof.cxx:10375
virtual void SetMinimum(Double_t minimum=-1111)
Definition: TH1.h:395
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
Definition: TTree.cxx:5163
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
virtual TDirectory * mkdir(const char *name, const char *title="")
Create a sub-directory and return a pointer to the created directory.
Definition: TDirectory.cxx:955
bool Bool_t
Definition: RtypesCore.h:59
const char *const kPROOF_BenchParDir
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
Definition: TH1.cxx:2931
Basic time type with millisecond precision.
Definition: TTime.h:29
Profile Historam.
Definition: TProfile.h:34
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
Definition: TList.cxx:496
void Run(Long64_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t)
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
Definition: TEnv.cxx:725
void Print(Option_t *option="") const
Description: Print node information.
static struct mg_connection * fc(struct mg_context *ctx)
Definition: civetweb.c:839
Int_t Update(Long64_t avgsize=-1)
Update accumulated information about the elements of the collection (e.g.
#define SafeDelete(p)
Definition: RConfig.h:449
virtual void Print(Option_t *option="") const
Print status of PROOF cluster.
Definition: TProof.cxx:4793
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Definition: TString.cxx:2334
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Change branch address, dealing with clone trees properly.
Definition: TTree.cxx:7529
Int_t GetNCores() const
Definition: TProofNodes.h:52
virtual Bool_t IsWritable() const
Definition: TDirectory.h:168
Float_t GetProcTime() const
Definition: TQueryResult.h:143
virtual const char * GetSelName()
Long64_t GetBytes() const
Definition: TQueryResult.h:132
Int_t DeleteParameters()
Delete parameters set for this run.
const char * GetTitle() const
Returns title of object.
Definition: TPad.h:256
void ShowDataSet(const char *dataset="", const char *opt="filter:SsCc")
display meta-info for given dataset usi
Definition: TProof.cxx:11544
virtual void SetMarkerColor(Color_t mcolor=1)
Definition: TAttMarker.h:51
TString fEvtNode
Definition: TPerfStats.h:52
void Clear(Option_t *option="")
Remove all primitives from the canvas.
Definition: TCanvas.cxx:678
std::vector< std::vector< double > > Data
virtual Double_t GetBinContent(Int_t bin) const
Return bin content of a Profile histogram.
Definition: TProfile.cxx:795
Double_t GetEvtRateAvgMax() const
TQueryResult * GetQueryResult(const char *ref=0)
Return pointer to the full TQueryResult instance owned by the player and referenced by &#39;ref&#39;...
Definition: TProof.cxx:2143
Int_t GetNActives() const
Definition: TProofNodes.h:54
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset &#39;dset&#39; Return 0 on success, -1 on error.
A container class for query results.
Definition: TQueryResult.h:44
virtual Double_t GetBinError(Int_t bin) const
Return bin error of a Profile histogram.
Definition: TProfile.cxx:860
A doubly linked list.
Definition: TList.h:47
const char *const kPROOF_BenchSelDataDef
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
Upload a PROOF archive (PAR file).
Definition: TProof.cxx:8898
EReadType GetType() const
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
Definition: TSystem.cxx:467
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
Definition: TTree.cxx:8811
const char *const kPROOF_BenchDataSelPar
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Definition: TList.cxx:556
R__EXTERN TSystem * gSystem
Definition: TSystem.h:549
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Definition: TH1.cxx:2884
Long64_t fEventsProcessed
Definition: TPerfStats.h:60
Double_t fProcTime
Definition: TPerfStats.h:64
THashList * GetList()
Int_t Add(TFileInfo *info)
Add TFileInfo to the collection.
TFileCollection * GetDataSet(const char *dset, Int_t nact, Bool_t nx)
Get a subsample of dsname suited to run with &#39;nact&#39; and option &#39;nx&#39;.
void Print(Option_t *option="") const
Prints the contents of the TFileCollection.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Definition: TList.cxx:674
TProofBenchDataSet * fDS
TString fSelOption
TObject * Remove(TObject *obj)
Remove object from the list.
Definition: THashList.cxx:284
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Definition: TString.cxx:2321
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition: TObject.cxx:918
TMap * GetMapOfActiveNodes() const
Definition: TProofNodes.h:56
Int_t Fill(const Double_t *v)
Definition: TProfile.h:56
TLine * l
Definition: textangle.C:4
virtual void SetMarkerStyle(Style_t mstyle=1)
Definition: TAttMarker.h:53
TAxis * GetYaxis()
Definition: TH1.h:320
virtual Long64_t Process(TDSet *dset, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector (.C) file or Tselector object Entry- or event...
Definition: TProof.cxx:5293
TString GetNameStem() const
Get name for this run.
virtual const char * GetPath() const
Returns the full path of the directory.
Definition: TDirectory.cxx:909
Float_t GetUsedCPU() const
Definition: TQueryResult.h:133
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
Definition: TProof.cxx:10301
#define Printf
Definition: TGeoToOCC.h:18
void SetHost(const char *host)
Definition: TUrl.h:93
The Canvas class.
Definition: TCanvas.h:48
TList * GetInputList()
Get input list.
Definition: TProof.cxx:10320
R__EXTERN TProof * gProof
Definition: TProof.h:1110
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
Definition: TString.cxx:2240
void DrawPerfProfiles()
Get canvas.
virtual void SetDirectory(TDirectory *dir)
Change the tree&#39;s directory.
Definition: TTree.cxx:8095
void SetDefaultTreeName(const char *treeName)
#define ClassImp(name)
Definition: Rtypes.h:279
void DeleteParameters(const char *wildcard)
Delete the input list parameters specified by a wildcard (e.g.
Definition: TProof.cxx:10500
double Double_t
Definition: RtypesCore.h:55
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
Definition: TLegend.cxx:280
Int_t ActivateWorkers(Int_t nwrks)
Description: Activate &#39;nwrks&#39; workers; calls TProof::SetParallel and rebuild the internal lists Input...
Describe directory structure in memory.
Definition: TDirectory.h:41
const char * GetMaster() const
Definition: TProof.h:936
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:44
int type
Definition: TGX11.cxx:120
R__EXTERN TEnv * gEnv
Definition: TEnv.h:174
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
Definition: TROOT.cxx:2601
Definition: TProof.h:339
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Definition: TString.h:567
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
Definition: TClass.cxx:2871
virtual void Clear(Option_t *option="")
Remove all objects from the list.
Definition: TList.cxx:348
virtual Long64_t GetEntries() const
Definition: TTree.h:382
Bool_t IsNull() const
Definition: TString.h:387
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Definition: TNamed.cxx:63
Int_t GetMinWrksPerNode() const
Definition: TProofNodes.h:53
Mother of all ROOT objects.
Definition: TObject.h:58
Long64_t fBytesRead
Definition: TPerfStats.h:61
TDatime GetEndTime() const
Definition: TQueryResult.h:126
void BuildHistos(Int_t start, Int_t stop, Int_t step, Bool_t nx)
Build histograms, profiles and graphs needed for this run.
const char * GetName() const
Returns name of object.
Definition: TPad.h:255
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.
Definition: TDirectory.cxx:433
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
Definition: TPad.cxx:1077
virtual void Add(TObject *obj)
Definition: TList.h:81
Class that contains a list of TFileInfo&#39;s and accumulated meta data information about its entries...
Int_t GetNNodes() const
Definition: TProofNodes.h:51
virtual TDirectory * GetDirectory(const char *namecycle, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory using apath.
Definition: TDirectory.cxx:336
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Definition: TStyle.cxx:1252
#define gPad
Definition: TVirtualPad.h:288
bool debug
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
Definition: TMap.cxx:234
A TTree object has a header with a name and a title.
Definition: TTree.h:94
Class describing a generic file including meta information.
Definition: TFileInfo.h:50
Double_t Sqrt(Double_t x)
Definition: TMath.h:464
virtual Int_t RemoveDataSet(const char *dataset, const char *optStr="")
Remove the specified dataset from the PROOF cluster.
Definition: TProof.cxx:11558
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
virtual const char * GetName() const
Returns name of object.
Definition: TObject.cxx:415
virtual Int_t GetSize() const
Definition: TCollection.h:95
const Bool_t kTRUE
Definition: Rtypes.h:91
Int_t Fill(Double_t)
Invalid Fill method.
Definition: TH2.cxx:290
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
Definition: TNamed.cxx:152
TMap * GetFilesPerServer(const char *exclude=0, Bool_t curronly=kFALSE)
Return a map of TFileCollections with the files on each data server, excluding servers in the comma-s...
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write all objects in this collection.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
Definition: TObject.cxx:904
TAxis * GetXaxis()
Definition: TH1.h:319
virtual void SetName(const char *name)
Change the name of this tree.
Definition: TTree.cxx:8300
virtual const char * GetTitle() const
Returns title of object.
Definition: TNamed.h:52
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
Definition: TDatime.h:39
virtual ~TProofBenchRunDataRead()
Destructor.
const char * Data() const
Definition: TString.h:349