Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TProofProgressDialog.h
Go to the documentation of this file.
1// @(#)root/sessionviewer:$Id$
2// Author: Fons Rademakers 21/03/03
3
4/*************************************************************************
5 * Copyright (C) 1995-2003, 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_TProofProgressDialog
13#define ROOT_TProofProgressDialog
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TProofProgressDialog //
19// //
20// This class provides a query progress bar. //
21// //
22//////////////////////////////////////////////////////////////////////////
23
24#include "TTime.h"
25#include "TString.h"
26
28class TGProgressBar;
29class TGTextButton;
30class TGCheckButton;
31class TGLabel;
32class TGTextBuffer;
33class TGTextEntry;
34class TProof;
37class TNtuple;
38class TGraph;
39class TGSpeedo;
40
42
43 friend class TProofProgressLog;
45
46private:
48
49 TGTransientFrame *fDialog; // transient frame, main dialog window
50 TGProgressBar *fBar; // progress bar
72 Bool_t fSpeedoEnabled; // whether to enable the speedometer
73 TGSpeedo *fSpeedo; // speedometer
74 TGCheckButton *fSmoothSpeedo; // use smooth speedometer update
75 TProofProgressLog *fLogWindow; // transient frame for logs
76 TProofProgressMemoryPlot *fMemWindow; // transient frame for memory plots
99
101
103
107
108public:
109 TProofProgressDialog(TProof *proof, const char *selector,
110 Int_t files, Long64_t first, Long64_t entries);
111 virtual ~TProofProgressDialog();
112
113 void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent);
114 void Progress(Long64_t total, Long64_t processed);
115 void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
116 Float_t initTime, Float_t procTime,
117 Float_t evtrti, Float_t mbrti) {
118 Progress(total, processed, bytesread, initTime, procTime,
119 evtrti, mbrti, -1, -1, -1.); }
120 void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
121 Float_t initTime, Float_t procTime,
122 Float_t evtrti, Float_t mbrti, Int_t actw, Int_t tses, Float_t eses);
123 void DisableAsyn();
124 void IndicateStop(Bool_t aborted);
125 void LogMessage(const char *msg, Bool_t all);
126
127 void CloseWindow();
128 void DoClose();
129 void DoLog();
130 void DoKeep(Bool_t on);
131 void DoSetLogQuery(Bool_t on);
132 void DoStop();
133 void DoAbort();
134 void DoAsyn();
135 void DoPlotRateGraph();
136 void DoMemoryPlot();
137 void DoEnableSpeedo();
138 void ToggleOdometerInfos();
139 void ToggleThreshold();
140
141 ClassDef(TProofProgressDialog,0) //PROOF progress dialog
142};
143
144#endif
int Int_t
Definition RtypesCore.h:45
bool Bool_t
Definition RtypesCore.h:63
double Double_t
Definition RtypesCore.h:59
long long Long64_t
Definition RtypesCore.h:73
float Float_t
Definition RtypesCore.h:57
#define ClassDef(name, id)
Definition Rtypes.h:325
static unsigned int total
A TGraph is an object made of two arrays X and Y with npoints each.
Definition TGraph.h:41
A simple TTree restricted to a list of float variables only.
Definition TNtuple.h:28
Float_t AdjustBytes(Float_t mbs, TString &sf)
Transform MBs to GBs ot TBs and get the correct suffix.
TProofProgressLog * fLogWindow
virtual ~TProofProgressDialog()
Cleanup dialog.
void DoEnableSpeedo()
Enable/Disable speedometer.
void DisableAsyn()
Disable the asyn switch when an external request for going asynchronous is issued.
void DoKeep(Bool_t on)
Handle keep toggle button.
static TString fgTextQueryDefault
void DoLog()
Ask proof session for logs.
void Progress(Long64_t total, Long64_t processed, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti)
void Progress(Long64_t total, Long64_t processed)
Update progress bar and status labels.
void DoStop()
Handle Stop button.
void LogMessage(const char *msg, Bool_t all)
Load/append a log msg in the log frame, if open.
TGTransientFrame * fDialog
void DoMemoryPlot()
Do a memory plot.
void DoPlotRateGraph()
Handle Plot Rate Graph.
void DoAsyn()
Handle Asyn button.
TProofProgressMemoryPlot * fMemWindow
void CloseWindow()
Called when dialog is closed.
TGCheckButton * fSmoothSpeedo
void DoSetLogQuery(Bool_t on)
Handle log-current-query-only toggle button.
TGCheckButton * fLogQueryToggle
void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent)
Reset dialog box preparing for new query.
void DoAbort()
Handle Cancel button.
void IndicateStop(Bool_t aborted)
Indicate that Cancel or Stop was clicked.
void ToggleOdometerInfos()
Toggle information displayed in Analog Meter.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316
Basic string class.
Definition TString.h:136
Basic time type with millisecond precision.
Definition TTime.h:27
Definition first.py:1