Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4AnalysisClient/TGo4Ratemeter.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE 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(){ return fdRate;}
00034 
00035       Double_t GetAvRate(){ return fdAveRate;}
00036 
00037       Double_t GetTime(){ return fdTime;}
00038 
00039       UInt_t GetCurrentCount(){ 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 Tue Nov 8 10:55:50 2005 for Go4-v2.10-5 by doxygen1.2.15