ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
TProofProgressDialog Class Reference

Definition at line 45 of file TProofProgressDialog.h.

Public Member Functions

 TProofProgressDialog (TProof *proof, const char *selector, Int_t files, Long64_t first, Long64_t entries)
 
virtual ~TProofProgressDialog ()
 Cleanup dialog. More...
 
void ResetProgressDialog (const char *sel, Int_t sz, Long64_t fst, Long64_t ent)
 Reset dialog box preparing for new query. More...
 
void Progress (Long64_t total, Long64_t processed)
 Update progress bar and status labels. More...
 
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, Long64_t bytesread, Float_t initTime, Float_t procTime, Float_t evtrti, Float_t mbrti, Int_t actw, Int_t tses, Float_t eses)
 Update progress bar and status labels. More...
 
void DisableAsyn ()
 Disable the asyn switch when an external request for going asynchronous is issued. More...
 
void IndicateStop (Bool_t aborted)
 Indicate that Cancel or Stop was clicked. More...
 
void LogMessage (const char *msg, Bool_t all)
 Load/append a log msg in the log frame, if open. More...
 
void CloseWindow ()
 Called when dialog is closed. More...
 
void DoClose ()
 Close dialog. More...
 
void DoLog ()
 Ask proof session for logs. More...
 
void DoKeep (Bool_t on)
 Handle keep toggle button. More...
 
void DoSetLogQuery (Bool_t on)
 Handle log-current-query-only toggle button. More...
 
void DoStop ()
 Handle Stop button. More...
 
void DoAbort ()
 Handle Cancel button. More...
 
void DoAsyn ()
 Handle Asyn button. More...
 
void DoPlotRateGraph ()
 Handle Plot Rate Graph. More...
 
void DoMemoryPlot ()
 Do a memory plot. More...
 
void DoEnableSpeedo ()
 Enable/Disable speedometer. More...
 
void ToggleOdometerInfos ()
 Toggle information displayed in Analog Meter. More...
 
void ToggleThreshold ()
 

Private Types

enum  EQueryStatus {
  kRunning = 0, kDone, kStopped, kAborted,
  kIncomplete
}
 

Private Member Functions

Float_t AdjustBytes (Float_t mbs, TString &sf)
 Transform MBs to GBs ot TBs and get the correct suffix. More...
 

Private Attributes

TGTransientFramefDialog
 
TGProgressBarfBar
 
TGTextButtonfClose
 
TGTextButtonfStop
 
TGTextButtonfAbort
 
TGTextButtonfAsyn
 
TGTextButtonfLog
 
TGTextButtonfRatePlot
 
TGTextButtonfMemPlot
 
TGTextButtonfUpdtSpeedo
 
TGCheckButtonfKeepToggle
 
TGCheckButtonfLogQueryToggle
 
TGTextBufferfTextQuery
 
TGTextEntryfEntry
 
TGLabelfTitleLab
 
TGLabelfFilesEvents
 
TGLabelfTimeLab
 
TGLabelfProcessed
 
TGLabelfEstim
 
TGLabelfTotal
 
TGLabelfRate
 
TGLabelfInit
 
TGLabelfSelector
 
Bool_t fSpeedoEnabled
 
TGSpeedofSpeedo
 
TGCheckButtonfSmoothSpeedo
 
TProofProgressLogfLogWindow
 
TProofProgressMemoryPlotfMemWindow
 
TProoffProof
 
TTime fStartTime
 
TTime fEndTime
 
Long64_t fPrevProcessed
 
Long64_t fPrevTotal
 
Long64_t fFirst
 
Long64_t fEntries
 
Int_t fFiles
 
EQueryStatus fStatus
 
Bool_t fKeep
 
Bool_t fLogQuery
 
TNtuplefRatePoints
 
TGraphfRateGraph
 
TGraphfMBRtGraph
 
TGraphfActWGraph
 
TGraphfTotSGraph
 
TGraphfEffSGraph
 
Float_t fInitTime
 
Float_t fProcTime
 
Double_t fAvgRate
 
Double_t fAvgMBRate
 
Int_t fRightInfo
 
TString fSessionUrl
 

Static Private Attributes

static Bool_t fgKeepDefault = kTRUE
 
static Bool_t fgLogQueryDefault = kFALSE
 
static TString fgTextQueryDefault = "last"
 

Friends

class TProofProgressLog
 
class TProofProgressMemoryPlot
 

#include <TProofProgressDialog.h>

Member Enumeration Documentation

Enumerator
kRunning 
kDone 
kStopped 
kAborted 
kIncomplete 

Definition at line 51 of file TProofProgressDialog.h.

Constructor & Destructor Documentation

TProofProgressDialog::TProofProgressDialog ( TProof proof,
const char *  selector,
Int_t  files,
Long64_t  first,
Long64_t  entries 
)
TProofProgressDialog::~TProofProgressDialog ( )
virtual

Cleanup dialog.

Definition at line 909 of file TProofProgressDialog.cxx.

Member Function Documentation

Float_t TProofProgressDialog::AdjustBytes ( Float_t  mbs,
TString sf 
)
private

Transform MBs to GBs ot TBs and get the correct suffix.

Definition at line 890 of file TProofProgressDialog.cxx.

Referenced by Progress().

void TProofProgressDialog::CloseWindow ( )

Called when dialog is closed.

Definition at line 942 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DisableAsyn ( )

Disable the asyn switch when an external request for going asynchronous is issued.

Definition at line 950 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoAbort ( )

Handle Cancel button.

Definition at line 1081 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoAsyn ( )

Handle Asyn button.

Definition at line 1096 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoClose ( )

Close dialog.

Definition at line 1007 of file TProofProgressDialog.cxx.

Referenced by IndicateStop(), and Progress().

void TProofProgressDialog::DoEnableSpeedo ( )

Enable/Disable speedometer.

Definition at line 1330 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoKeep ( Bool_t  on)

Handle keep toggle button.

Definition at line 1036 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoLog ( )

Ask proof session for logs.

Definition at line 1016 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoMemoryPlot ( )

Do a memory plot.

Definition at line 1315 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoPlotRateGraph ( )

Handle Plot Rate Graph.

Definition at line 1107 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoSetLogQuery ( Bool_t  on)

Handle log-current-query-only toggle button.

Definition at line 1047 of file TProofProgressDialog.cxx.

void TProofProgressDialog::DoStop ( )

Handle Stop button.

Definition at line 1063 of file TProofProgressDialog.cxx.

void TProofProgressDialog::IndicateStop ( Bool_t  aborted)

Indicate that Cancel or Stop was clicked.

Definition at line 959 of file TProofProgressDialog.cxx.

void TProofProgressDialog::LogMessage ( const char *  msg,
Bool_t  all 
)

Load/append a log msg in the log frame, if open.

Definition at line 991 of file TProofProgressDialog.cxx.

void TProofProgressDialog::Progress ( Long64_t  total,
Long64_t  processed 
)

Update progress bar and status labels.

Use "processed == total" or "processed < 0" to indicate end of processing.

Definition at line 507 of file TProofProgressDialog.cxx.

Referenced by Progress().

void TProofProgressDialog::Progress ( Long64_t  total,
Long64_t  processed,
Long64_t  bytesread,
Float_t  initTime,
Float_t  procTime,
Float_t  evtrti,
Float_t  mbrti 
)
inline

Definition at line 119 of file TProofProgressDialog.h.

void TProofProgressDialog::Progress ( Long64_t  total,
Long64_t  processed,
Long64_t  bytesread,
Float_t  initTime,
Float_t  procTime,
Float_t  evtrti,
Float_t  mbrti,
Int_t  actw,
Int_t  tses,
Float_t  eses 
)

Update progress bar and status labels.

Use "processed == total" or "processed < 0" to indicate end of processing.

Definition at line 641 of file TProofProgressDialog.cxx.

void TProofProgressDialog::ResetProgressDialog ( const char *  sel,
Int_t  sz,
Long64_t  fst,
Long64_t  ent 
)

Reset dialog box preparing for new query.

Definition at line 421 of file TProofProgressDialog.cxx.

void TProofProgressDialog::ToggleOdometerInfos ( )

Toggle information displayed in Analog Meter.

Definition at line 390 of file TProofProgressDialog.cxx.

Referenced by Progress().

void TProofProgressDialog::ToggleThreshold ( )

Definition at line 408 of file TProofProgressDialog.cxx.

Friends And Related Function Documentation

friend class TProofProgressLog
friend

Definition at line 47 of file TProofProgressDialog.h.

Referenced by DoLog().

friend class TProofProgressMemoryPlot
friend

Definition at line 48 of file TProofProgressDialog.h.

Referenced by DoMemoryPlot().

Member Data Documentation

TGTextButton* TProofProgressDialog::fAbort
private

Definition at line 57 of file TProofProgressDialog.h.

Referenced by DoAbort(), DoStop(), IndicateStop(), Progress(), and ResetProgressDialog().

TGraph* TProofProgressDialog::fActWGraph
private

Definition at line 95 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), and ResetProgressDialog().

TGTextButton* TProofProgressDialog::fAsyn
private
Double_t TProofProgressDialog::fAvgMBRate
private

Definition at line 101 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

Double_t TProofProgressDialog::fAvgRate
private

Definition at line 100 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), Progress(), and ResetProgressDialog().

TGProgressBar* TProofProgressDialog::fBar
private

Definition at line 54 of file TProofProgressDialog.h.

Referenced by IndicateStop(), Progress(), and ResetProgressDialog().

TGTextButton* TProofProgressDialog::fClose
private
TGTransientFrame* TProofProgressDialog::fDialog
private

Definition at line 53 of file TProofProgressDialog.h.

Referenced by ~TProofProgressDialog().

TGraph* TProofProgressDialog::fEffSGraph
private

Definition at line 97 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), and ResetProgressDialog().

TTime TProofProgressDialog::fEndTime
private

Definition at line 83 of file TProofProgressDialog.h.

Referenced by Progress().

Long64_t TProofProgressDialog::fEntries
private

Definition at line 87 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

TGTextEntry* TProofProgressDialog::fEntry
private

Definition at line 66 of file TProofProgressDialog.h.

Referenced by DoSetLogQuery().

TGLabel* TProofProgressDialog::fEstim
private

Definition at line 71 of file TProofProgressDialog.h.

Referenced by Progress().

Int_t TProofProgressDialog::fFiles
private

Definition at line 88 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

TGLabel* TProofProgressDialog::fFilesEvents
private

Definition at line 68 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

Long64_t TProofProgressDialog::fFirst
private

Definition at line 86 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

Bool_t TProofProgressDialog::fgKeepDefault = kTRUE
staticprivate

Definition at line 108 of file TProofProgressDialog.h.

Referenced by DoKeep().

Bool_t TProofProgressDialog::fgLogQueryDefault = kFALSE
staticprivate

Definition at line 109 of file TProofProgressDialog.h.

Referenced by DoSetLogQuery().

TString TProofProgressDialog::fgTextQueryDefault = "last"
staticprivate

Definition at line 110 of file TProofProgressDialog.h.

TGLabel* TProofProgressDialog::fInit
private

Definition at line 74 of file TProofProgressDialog.h.

Referenced by Progress().

Float_t TProofProgressDialog::fInitTime
private

Definition at line 98 of file TProofProgressDialog.h.

Referenced by Progress(), and ToggleOdometerInfos().

Bool_t TProofProgressDialog::fKeep
private

Definition at line 90 of file TProofProgressDialog.h.

Referenced by DoKeep(), IndicateStop(), and Progress().

TGCheckButton* TProofProgressDialog::fKeepToggle
private

Definition at line 63 of file TProofProgressDialog.h.

TGTextButton* TProofProgressDialog::fLog
private

Definition at line 59 of file TProofProgressDialog.h.

Bool_t TProofProgressDialog::fLogQuery
private

Definition at line 91 of file TProofProgressDialog.h.

Referenced by DoSetLogQuery().

TGCheckButton* TProofProgressDialog::fLogQueryToggle
private

Definition at line 64 of file TProofProgressDialog.h.

TProofProgressLog* TProofProgressDialog::fLogWindow
private
TGraph* TProofProgressDialog::fMBRtGraph
private

Definition at line 94 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), and ResetProgressDialog().

TGTextButton* TProofProgressDialog::fMemPlot
private

Definition at line 61 of file TProofProgressDialog.h.

TProofProgressMemoryPlot* TProofProgressDialog::fMemWindow
private
Long64_t TProofProgressDialog::fPrevProcessed
private

Definition at line 84 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

Long64_t TProofProgressDialog::fPrevTotal
private

Definition at line 85 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

TGLabel* TProofProgressDialog::fProcessed
private

Definition at line 70 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

Float_t TProofProgressDialog::fProcTime
private

Definition at line 99 of file TProofProgressDialog.h.

Referenced by Progress(), and ToggleOdometerInfos().

TProof* TProofProgressDialog::fProof
private
TGLabel* TProofProgressDialog::fRate
private

Definition at line 73 of file TProofProgressDialog.h.

Referenced by Progress().

TGraph* TProofProgressDialog::fRateGraph
private

Definition at line 93 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), and ResetProgressDialog().

TGTextButton* TProofProgressDialog::fRatePlot
private

Definition at line 60 of file TProofProgressDialog.h.

Referenced by Progress().

TNtuple* TProofProgressDialog::fRatePoints
private

Definition at line 92 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), Progress(), and ResetProgressDialog().

Int_t TProofProgressDialog::fRightInfo
private

Definition at line 102 of file TProofProgressDialog.h.

Referenced by Progress(), and ToggleOdometerInfos().

TGLabel* TProofProgressDialog::fSelector
private

Definition at line 75 of file TProofProgressDialog.h.

Referenced by ResetProgressDialog().

TString TProofProgressDialog::fSessionUrl
private
TGCheckButton* TProofProgressDialog::fSmoothSpeedo
private

Definition at line 78 of file TProofProgressDialog.h.

Referenced by DoEnableSpeedo(), and Progress().

TGSpeedo* TProofProgressDialog::fSpeedo
private
Bool_t TProofProgressDialog::fSpeedoEnabled
private

Definition at line 76 of file TProofProgressDialog.h.

Referenced by DoEnableSpeedo(), and Progress().

TTime TProofProgressDialog::fStartTime
private

Definition at line 82 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

EQueryStatus TProofProgressDialog::fStatus
private
TGTextButton* TProofProgressDialog::fStop
private

Definition at line 56 of file TProofProgressDialog.h.

Referenced by DoAbort(), DoStop(), IndicateStop(), Progress(), and ResetProgressDialog().

TGTextBuffer* TProofProgressDialog::fTextQuery
private

Definition at line 65 of file TProofProgressDialog.h.

TGLabel* TProofProgressDialog::fTimeLab
private

Definition at line 69 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

TGLabel* TProofProgressDialog::fTitleLab
private

Definition at line 67 of file TProofProgressDialog.h.

Referenced by Progress(), and ResetProgressDialog().

TGLabel* TProofProgressDialog::fTotal
private

Definition at line 72 of file TProofProgressDialog.h.

Referenced by Progress().

TGraph* TProofProgressDialog::fTotSGraph
private

Definition at line 96 of file TProofProgressDialog.h.

Referenced by DoPlotRateGraph(), and ResetProgressDialog().

TGTextButton* TProofProgressDialog::fUpdtSpeedo
private

Definition at line 62 of file TProofProgressDialog.h.

Referenced by DoEnableSpeedo().

Collaboration diagram for TProofProgressDialog:
[legend]

The documentation for this class was generated from the following files: