00001 // $Id: TGo4AnalysisClientStatus.h 664 2010-09-27 09:22:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4ANALYSISCLIENTSTATUS_H 00015 #define TGO4ANALYSISCLIENTSTATUS_H 00016 00017 #include "TGo4ClientStatus.h" 00018 00019 #include "TString.h" 00020 00021 class TGo4AnalysisClientStatus : public TGo4ClientStatus { 00022 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 ULong64_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, ULong64_t counts, Double_t time); 00053 00054 void SetCurrentSource(const char* name) { fxEventSource = name; } 00055 00056 void SetRunning(Bool_t on) { fbAnalysisRunning = on; } 00057 00059 ULong64_t fuCurrentCount; 00060 00062 Double_t fdRate; 00063 00065 Double_t fdAveRate; 00066 00068 Double_t fdTime; 00069 00071 TString fxDateString; 00072 00074 TString fxEventSource; 00075 00077 Bool_t fbAnalysisRunning; 00078 00079 ClassDef(TGo4AnalysisClientStatus,2) 00080 }; 00081 00082 #endif //TGO4ANALYSISCLIENTSTATUS_H