#include <TGo4Ratemeter.h>
Public Methods | |
TGo4Ratemeter () | |
virtual | ~TGo4Ratemeter () |
Double_t | GetRate () |
Double_t | GetAvRate () |
Double_t | GetTime () |
UInt_t | GetCurrentCount () |
void | Update (Int_t increment=1) |
Update counter and rate values. More... | |
void | Reset () |
Update counter and rate values. More... | |
Bool_t | TestUpdate () |
Test if update has been called since last test.. More... | |
Static Public Attributes | |
const Double_t | fgdUPDATEINTERVAL = 1.0 |
Private Attributes | |
UInt_t | fuCurrentCount |
Number of events processed since last start. More... | |
UInt_t | fuLastCount |
Number of events processed at last ratemeter update. More... | |
Double_t | fdRate |
Current eventrate (events/sec). More... | |
Double_t | fdAveRate |
Average eventrate since last reset (events/sec). More... | |
Double_t | fdTime |
Time sum since last ratemeter reset. More... | |
Double_t | fdLastTime |
Time sum at last ratemeter update. More... | |
Double_t | fdDeltaTime |
Time interval since last Rate Calculation. More... | |
TStopwatch * | fxClock |
Bool_t | fbUpdateDone |
True if update has been performed since last TestZero call. More... |
Definition at line 26 of file TGo4Ratemeter.h.
|
Definition at line 23 of file TGo4Ratemeter.cxx. References fxClock. |
|
Definition at line 30 of file TGo4Ratemeter.cxx. References fxClock. |
|
Definition at line 33 of file TGo4Ratemeter.h. References fdRate. Referenced by TGo4AnalysisClient::UpdateStatus(). |
|
Definition at line 35 of file TGo4Ratemeter.h. References fdAveRate. Referenced by TGo4AnalysisClient::UpdateStatus(). |
|
Definition at line 37 of file TGo4Ratemeter.h. References fdTime. Referenced by TGo4AnalysisClient::UpdateStatus(). |
|
Definition at line 39 of file TGo4Ratemeter.h. References fuCurrentCount. Referenced by TGo4AnalysisClient::GetCurrentCount(), and TGo4AnalysisClient::UpdateStatus(). |
|
Update counter and rate values. Parameter increment may specify the number of counts to add before the new rate is calculated. Definition at line 48 of file TGo4Ratemeter.cxx. References fbUpdateDone, fdAveRate, fdDeltaTime, fdLastTime, fdRate, fdTime, fgdUPDATEINTERVAL, fuCurrentCount, fuLastCount, and fxClock. Referenced by TGo4AnalysisClient::UpdateRate(). |
|
Update counter and rate values. Parameter increment may specify the number of counts to add before the new rate is calculated. Definition at line 35 of file TGo4Ratemeter.cxx. References fdAveRate, fdDeltaTime, fdLastTime, fdRate, fdTime, fuCurrentCount, fuLastCount, and fxClock. Referenced by TGo4AnalysisClient::RestartMain(), and TGo4AnalysisClient::Start(). |
|
Test if update has been called since last test.. To be called from watch thread to check if main thread is still active. If not, watch thread has to update status and rate itself. Definition at line 88 of file TGo4Ratemeter.cxx. References fbUpdateDone. Referenced by TGo4AnalysisClient::TestRatemeter(). |
|
Definition at line 20 of file TGo4Ratemeter.cxx. Referenced by Update(). |
|
Number of events processed since last start.
Definition at line 57 of file TGo4Ratemeter.h. Referenced by GetCurrentCount(), Reset(), and Update(). |
|
Number of events processed at last ratemeter update.
Definition at line 60 of file TGo4Ratemeter.h. |
|
Current eventrate (events/sec).
Definition at line 63 of file TGo4Ratemeter.h. |
|
Average eventrate since last reset (events/sec).
Definition at line 66 of file TGo4Ratemeter.h. |
|
Time sum since last ratemeter reset. in s. Definition at line 69 of file TGo4Ratemeter.h. |
|
Time sum at last ratemeter update. in s. Definition at line 72 of file TGo4Ratemeter.h. |
|
Time interval since last Rate Calculation. In s. Definition at line 75 of file TGo4Ratemeter.h. |
|
Definition at line 77 of file TGo4Ratemeter.h. Referenced by Reset(), TGo4Ratemeter(), Update(), and ~TGo4Ratemeter(). |
|
True if update has been performed since last TestZero call.
Definition at line 80 of file TGo4Ratemeter.h. Referenced by TestUpdate(), and Update(). |