v2.10-0 (21000JUN2005)

Go4AnalysisClient
Class TGo4Ratemeter


class TGo4Ratemeter
derived from TObject

Class containing event counter and ratemeter services.


Field Summary
 private Bool_tfbUpdateDone
          True if update has been performed since last TestZero call.
 private Double_tfdAveRate
          Average eventrate since last reset (events/sec).
 private Double_tfdDeltaTime
          Time interval since last Rate Calculation.
 private Double_tfdLastTime
          Time sum at last ratemeter update. in s.
 private Double_tfdRate
          Current eventrate (events/sec).
 private Double_tfdTime
          Time sum since last ratemeter reset. in s.
 const static const Double_tfgdUPDATEINTERVAL
           
 private UInt_tfuCurrentCount
          Number of events processed since last start.
 private UInt_tfuLastCount
          Number of events processed at last ratemeter update.
 private TStopwatch*fxClock
           

Constructor Summary
TGo4Ratemeter()
           

Destructor Summary
 virtual synchronized ~TGo4Ratemeter()
           

Method Summary
 Double_tGetAvRate()
           
 UInt_tGetCurrentCount()
           
 Double_tGetRate()
           
 Double_tGetTime()
           
 voidReset()
          Update counter and rate values.
 Bool_tTestUpdate()
          Test if update has been called since last test..
 voidUpdate(Int_t increment)
          Update counter and rate values.

Field Detail

fbUpdateDone

private Bool_t fbUpdateDone
True if update has been performed since last TestZero call.

fdAveRate

private Double_t fdAveRate
Average eventrate since last reset (events/sec).

fdDeltaTime

private Double_t fdDeltaTime
Time interval since last Rate Calculation. In s.

fdLastTime

private Double_t fdLastTime
Time sum at last ratemeter update. in s.

fdRate

private Double_t fdRate
Current eventrate (events/sec).

fdTime

private Double_t fdTime
Time sum since last ratemeter reset. in s.

fgdUPDATEINTERVAL

public const static const Double_t fgdUPDATEINTERVAL

fuCurrentCount

private UInt_t fuCurrentCount
Number of events processed since last start.

fuLastCount

private UInt_t fuLastCount
Number of events processed at last ratemeter update.

fxClock

private TStopwatch* fxClock
Constructor Detail

TGo4Ratemeter

public TGo4Ratemeter()
Method Detail

~TGo4Ratemeter

public virtual synchronized ~TGo4Ratemeter()
Method Detail

GetAvRate

public Double_t GetAvRate()

GetCurrentCount

public UInt_t GetCurrentCount()

GetRate

public Double_t GetRate()

GetTime

public Double_t GetTime()

Reset

public void Reset()
Update counter and rate values. Parameter increment may specify the
number of counts to add before the new rate is calculated.

TestUpdate

public Bool_t TestUpdate()
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.

Update

public void Update(Int_t increment)
Update counter and rate values. Parameter increment may specify the
number of counts to add before the new rate is calculated.

Association Links

to Class TStopwatch


J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005