12 #ifndef ROOT_TProofBenchRunCPU
13 #define ROOT_TProofBenchRunCPU
37 class TProofBenchMode;
41 class TProofBenchRunCPU :
public TProofBenchRun {
45 TPBHistType *fHistType;
58 TDirectory* fDirProofBench;
62 TList* fListPerfPlots;
65 TProfile *fProfile_perfstat_event;
66 TH2 *fHist_perfstat_event;
67 TProfile *fProfile_perfstat_evtmax;
68 TProfile *fNorm_perfstat_evtmax;
69 TProfile *fProfile_queryresult_event;
70 TProfile *fNorm_queryresult_event;
71 TProfile *fProfile_cpu_eff;
78 void BuildHistos(Int_t start, Int_t stop, Int_t step, Bool_t nx);
82 void FillPerfStatPerfPlots(TTree* t, Int_t nactive);
84 Int_t SetParameters();
85 Int_t DeleteParameters();
89 TProofBenchRunCPU(TPBHistType *histtype = 0,
90 Int_t nhists=16, TDirectory* dirproofbench=0,
91 TProof* proof=0, TProofNodes* nodes=0,
92 Long64_t nevents=1000000, Int_t ntries=2, Int_t start=1,
93 Int_t stop=-1, Int_t step=1, Int_t draw=0, Int_t debug=0);
95 virtual ~TProofBenchRunCPU();
97 void Run(Long64_t nevents, Int_t start, Int_t stop, Int_t step, Int_t ntries,
98 Int_t debug, Int_t draw);
99 void Run(
const char *, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t) { }
101 void DrawPerfPlots();
103 void Print(Option_t* option=
"")
const;
105 void SetHistType(TPBHistType *histtype);
106 void SetNHists(Int_t nhists) { fNHists = nhists; }
107 void SetNEvents(Long64_t nevents) { fNEvents = nevents; }
108 void SetNTries(Int_t ntries) { fNTries = ntries; }
109 void SetStart(Int_t start) { fStart = start; }
110 void SetStop(Int_t stop) { fStop = stop; }
111 void SetStep(Int_t step) { fStep = step; }
112 void SetDraw(Int_t draw) { fDraw = draw; }
113 void SetDebug(Int_t debug) { fDebug = debug; }
115 void SetDirProofBench(TDirectory* dir) { fDirProofBench = dir; }
117 TPBHistType *GetHistType()
const {
return fHistType; }
118 Int_t GetNHists()
const {
return fNHists; }
119 Long64_t GetNEvents()
const {
return fNEvents; }
120 Int_t GetNTries()
const {
return fNTries; }
121 Int_t GetStart()
const {
return fStart; }
122 Int_t GetStop()
const {
return fStop; }
123 Int_t GetStep()
const {
return fStep; }
124 Int_t GetDraw()
const {
return fDraw; }
125 Int_t GetDebug()
const {
return fDebug; }
126 TDirectory* GetDirProofBench()
const {
return fDirProofBench; }
127 TList* GetListPerfPlots()
const {
return fListPerfPlots; }
128 TCanvas* GetCanvas()
const {
return fCanvas; }
129 const char* GetName()
const {
return fName; }
131 TString GetNameStem()
const;
133 ClassDef(TProofBenchRunCPU,0)