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

TGo4AnalysisClientStatus.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 TGO4ANALYSISCLIENTSTATUS_H
00017 #define TGO4ANALYSISCLIENTSTATUS_H
00018 
00019 #include "TGo4ClientStatus.h"
00020 #include "TString.h"
00021 
00022 class TGo4AnalysisClientStatus : public TGo4ClientStatus {
00023   friend class TGo4AnalysisClient;
00024 
00025   public:
00026 
00027     TGo4AnalysisClientStatus();
00028 
00029     TGo4AnalysisClientStatus(const char* name);
00030 
00031     virtual ~TGo4AnalysisClientStatus() ;
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 
00041     const char* GetDateTime() const { return fxDateString.Data(); }
00042 
00043     const char* GetCurrentSource() const { return fxEventSource.Data(); }
00044 
00045     Bool_t IsAnalysisRunning(){return fbAnalysisRunning;}
00046 
00049     virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0);
00050 
00051   private:
00052     void SetRates(Double_t rate, Double_t average, UInt_t counts, Double_t time);
00053 
00054     void SetCurrentSource(const char* name)
00055         {
00056             fxEventSource=name;
00057         }
00058 
00059     void SetRunning(Bool_t on)
00060         {
00061             fbAnalysisRunning=on;
00062         }
00063 
00065     UInt_t fuCurrentCount;
00066 
00068     Double_t fdRate;
00069 
00071     Double_t fdAveRate;
00072 
00074     Double_t fdTime;
00075 
00077     TString fxDateString;
00078 
00080     TString fxEventSource;
00081 
00083     Bool_t fbAnalysisRunning;
00084 
00085   ClassDef(TGo4AnalysisClientStatus,1)
00086 };
00087 
00088 #endif //TGO4ANALYSISCLIENTSTATUS_H
00089 
00090 //----------------------------END OF GO4 SOURCE FILE ---------------------

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