Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4Ratemeter.h

Go to the documentation of this file.
00001 //-------------------------------------------------------------
00002 //        Go4 Release Package v3.04-01 (build 30401)
00003 //                      28-November-2008
00004 //---------------------------------------------------------------
00005 //   The GSI Online Offline Object Oriented (Go4) Project
00006 //   Experiment Data Processing at EE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4RATEMETER_H
00017 #define TGO4RATEMETER_H
00018 
00019 #include "TObject.h"
00020 
00021 class TStopwatch;
00022 
00026 class TGo4Ratemeter : public TObject {
00027    public:
00028       static const Double_t fgdUPDATEINTERVAL;
00029       TGo4Ratemeter() ;
00030 
00031       virtual ~TGo4Ratemeter() ;
00032 
00033       Double_t GetRate() const { return fdRate; }
00034 
00035       Double_t GetAvRate() const { return fdAveRate; }
00036 
00037       Double_t GetTime() const { return fdTime; }
00038 
00039       UInt_t GetCurrentCount() const { return fuCurrentCount; }
00040 
00043       void Update(Int_t increment=1);
00044 
00047       void Reset();
00048 
00052       Bool_t TestUpdate();
00053 
00054    private:
00055 
00057       UInt_t fuCurrentCount;
00058 
00060       UInt_t fuLastCount;
00061 
00063       Double_t fdRate;
00064 
00066       Double_t fdAveRate;
00067 
00069       Double_t fdTime;
00070 
00072       Double_t fdLastTime;
00073 
00075       Double_t fdDeltaTime;
00076 
00077       TStopwatch* fxClock; 
00078 
00080       Bool_t fbUpdateDone;
00081 };
00082 
00083 #endif //TGO4RATEMETER_H
00084 
00085 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Fri Nov 28 12:59:04 2008 for Go4-v3.04-1 by  doxygen 1.4.2