14 #ifndef TGO4RATEMETER_H
15 #define TGO4RATEMETER_H
19 #include "TTimeStamp.h"
56 Double_t
GetAvRate()
const {
return (fdTime > 0) ? fuCurrentCount/fdTime : 0.; }
58 const char*
GetDateTime()
const {
return fxDateString.Data(); }
67 Bool_t
Update(Int_t increment = 1);
87 #endif //TGO4RATEMETER_H
static const Double_t fgdUPDATEINTERVAL
Configured interval in seconds before two updates.
void UpdateFrom(const TGo4Ratemeter *r)
ULong64_t fuCheckInterval
Next counter value when time will be checked.
void SetDateTime(const char *str)
const char * GetCurrentSource() const
void SetCurrentSource(const char *str)
const char * GetDateTime() const
Double_t GetAvRate() const
void SetUpdateInterval(double v)
ULong64_t fuNextCheckCnt
True if update has been performed since last TestZero call.
void SetRunning(Bool_t on=kTRUE)
Double_t fdUpdateInterval
How often time should be checked.
Bool_t fbUpdateDone
Time when last rate measurement was done.
Bool_t Update(Int_t increment=1)
ULong64_t GetCurrentCount() const
TTimeStamp fLastTm
Number of events processed at last ratemeter update.