GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4AnalysisClientStatus.h
Go to the documentation of this file.
1 // $Id: TGo4AnalysisClientStatus.h 1461 2015-05-29 11:12:14Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4ANALYSISCLIENTSTATUS_H
15 #define TGO4ANALYSISCLIENTSTATUS_H
16 
17 #include "TGo4ClientStatus.h"
18 
19 #include "TString.h"
20 
22 
23  friend class TGo4AnalysisClient;
24 
25  public:
26 
28 
29  TGo4AnalysisClientStatus(const char* name);
30 
31  virtual ~TGo4AnalysisClientStatus() ;
32 
33  Double_t GetRate() const { return fdRate; }
34 
35  Double_t GetAvRate() const { return fdAveRate; }
36 
37  Double_t GetTime() const { return fdTime; }
38 
39  ULong64_t GetCurrentCount() const { return fuCurrentCount; }
40 
41  const char* GetDateTime() const { return fxDateString.Data(); }
42 
43  const char* GetCurrentSource() const { return fxEventSource.Data(); }
44 
45  Bool_t IsAnalysisRunning() { return fbAnalysisRunning; }
46 
49  virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0);
50 
51  private:
52  void SetRates(Double_t rate, Double_t average, ULong64_t counts, Double_t time);
53 
54  void SetCurrentSource(const char* name) { fxEventSource = name; }
55 
56  void SetRunning(Bool_t on) { fbAnalysisRunning = on; }
57 
59  ULong64_t fuCurrentCount;
60 
62  Double_t fdRate;
63 
65  Double_t fdAveRate;
66 
68  Double_t fdTime;
69 
71  TString fxDateString;
72 
74  TString fxEventSource;
75 
78 
79  ClassDef(TGo4AnalysisClientStatus,2)
80 };
81 
82 #endif //TGO4ANALYSISCLIENTSTATUS_H
void SetRates(Double_t rate, Double_t average, ULong64_t counts, Double_t time)
void SetCurrentSource(const char *name)
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
const char * GetDateTime() const
const char * GetCurrentSource() const