Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TProofBenchRunDataRead.h
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#ifndef ROOT_TProofBenchRunDataRead
13#define ROOT_TProofBenchRunDataRead
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TProofBenchRunDataRead //
18// //
19// I/O-intensive PROOF benchmark test reads in event files distributed //
20// on the cluster. Number of events processed per second and size of //
21// events processed per second are plotted against number of active //
22// workers. Performance rate for unit packets and performance rate //
23// for query are plotted. //
24// //
25//////////////////////////////////////////////////////////////////////////
26
27#include "TString.h"
28
29#include "TProofBenchRun.h"
30
31class TProof;
32class TCanvas;
33class TH2;
34class TProfile;
35class TLegend;
36class TTree;
37class TFileCollection;
38
39class TProofBenchMode;
41class TProofNodes;
42class TPBReadType;
43
45
46private:
47 TProof* fProof; //pointer to proof
48
49 TPBReadType *fReadType; //read type
50 TProofBenchDataSet *fDS; //dataset operations handler
51
52 Long64_t fNEvents; //number of events per file
53 Int_t fNTries; //number of tries
54 Int_t fStart; //start number of workers
55 Int_t fStop; //stop number of workers
56 Int_t fStep; //test to be performed every fStep workers
57 Int_t fDebug; //debug switch
58 Int_t fFilesPerWrk; //# of files to be processed per worker
59 Bool_t fReleaseCache; // Release cache for data reads between runs
60
61 TDirectory *fDirProofBench; //directory for proof outputs
62
63 TProofNodes *fNodes; //list of nodes information
64
65 TList *fListPerfPlots; //list of performance plots
79
80 TLegend *fProfLegend_evt; // Legend for profiles evts
81 TLegend *fNormLegend_evt; // Legend for norms evts
82 TLegend *fProfLegend_mb; // Legend for profiles mbs
83 TLegend *fNormLegend_mb; // Legend for norms mbs
84
85 TCanvas *fCPerfProfiles; //canvas for performance profile histograms
86
87 TString fName; //name of this run
88
89 void BuildHistos(Int_t start, Int_t stop, Int_t step, Bool_t nx);
90
91protected:
92
93 void FillPerfStatProfiles(TTree* t, Int_t nactive);
94
97
98public:
99
101 TDirectory* dirproofbench=0, TProof* proof=0, TProofNodes* nodes=0,
102 Long64_t nevents=-1, Int_t ntries=2, Int_t start=1, Int_t stop=-1,
103 Int_t step=1, Int_t debug=0);
104
105 ~TProofBenchRunDataRead() override;
106
107 void Run(Long64_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t) override { }
108 void Run(const char *dset, Int_t start, Int_t stop, Int_t step, Int_t ntries,
109 Int_t debug, Int_t) override;
110
111 TFileCollection *GetDataSet(const char *dset, Int_t nact, Bool_t nx);
112
113 void DrawPerfProfiles();
114
115 void Print(Option_t* option="") const override;
116
117 void SetReadType(TPBReadType *readtype) { fReadType = readtype; }
118 void SetNEvents(Long64_t nevents) { fNEvents = nevents; }
119 void SetNTries(Int_t ntries) { fNTries = ntries; }
120 void SetStart(Int_t start) { fStart = start; }
121 void SetStop(Int_t stop) { fStop = stop; }
122 void SetStep(Int_t step) { fStep = step; }
123 void SetDebug(Int_t debug) { fDebug = debug; }
125 void SetFilesPerWrk(Int_t fpw) { fFilesPerWrk = fpw; }
127
128 TPBReadType *GetReadType() const { return fReadType; }
129 Long64_t GetNEvents() const { return fNEvents; }
130 Int_t GetNTries() const { return fNTries; }
131 Int_t GetStart() const { return fStart; }
132 Int_t GetStop() const { return fStop; }
133 Int_t GetStep() const { return fStep; }
134 Int_t GetDebug() const { return fDebug; }
137 const char* GetName() const override { return fName; }
138
139 TString GetNameStem() const;
140
141 ClassDefOverride(TProofBenchRunDataRead,0) //IO-intensive PROOF benchmark
142};
143
144#endif
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
long long Long64_t
Definition RtypesCore.h:80
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
The Canvas class.
Definition TCanvas.h:23
Describe directory structure in memory.
Definition TDirectory.h:45
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Service class for 2-D histogram classes.
Definition TH2.h:30
This class displays a legend box (TPaveText) containing several legend entries.
Definition TLegend.h:23
A doubly linked list.
Definition TList.h:38
Profile Histogram.
Definition TProfile.h:32
Handle operations on datasets used by ProofBench.
I/O-intensive PROOF benchmark test reads in event files distributed on the cluster.
void SetReleaseCache(Bool_t on=kTRUE)
TFileCollection * GetDataSet(const char *dset, Int_t nact, Bool_t nx)
Get a subsample of dsname suited to run with 'nact' and option 'nx'.
TPBReadType * GetReadType() const
void FillPerfStatProfiles(TTree *t, Int_t nactive)
Int_t SetParameters()
Set parameters.
TString GetNameStem() const
Get name for this run.
Int_t DeleteParameters()
Delete parameters set for this run.
~TProofBenchRunDataRead() override
Destructor.
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 override
Returns name of object.
void Run(Long64_t, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t) override
void SetDirProofBench(TDirectory *dir)
TDirectory * GetDirProofBench() const
void SetNEvents(Long64_t nevents)
void SetReadType(TPBReadType *readtype)
void Print(Option_t *option="") const override
Print the content of this object.
Abstract base class for PROOF benchmark runs.
PROOF worker node information
Definition TProofNodes.h:28
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316
Basic string class.
Definition TString.h:139
A TTree represents a columnar dataset.
Definition TTree.h:79