GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4AnalysisClientStatus.h
Go to the documentation of this file.
1// $Id$
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 fuer 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
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() const { return fbAnalysisRunning; }
46
47 void Print(Option_t *opt = "") const override;
48
49 private:
50 void SetRates(Double_t rate, Double_t average, ULong64_t counts, Double_t time);
51
52 void SetCurrentSource(const char *name) { fxEventSource = name; }
53
54 void SetRunning(Bool_t on) { fbAnalysisRunning = on; }
55
57 ULong64_t fuCurrentCount{0};
58
60 Double_t fdRate{0};
61
63 Double_t fdAveRate{0};
64
66 Double_t fdTime{0};
67
69 TString fxDateString;
70
73
75 Bool_t fbAnalysisRunning{kFALSE};
76
77 ClassDefOverride(TGo4AnalysisClientStatus,2)
78};
79
80#endif //TGO4ANALYSISCLIENTSTATUS_H
void Print(Option_t *opt="") const override
Double_t fdAveRate
Average eventrate since last reset (events/sec).
Double_t fdTime
Time sum since last reset.
Bool_t fbAnalysisRunning
True running state of analysis, independent of event rate.
TString fxEventSource
Name of eventsource of first step / current filelist name.
void SetCurrentSource(const char *name)
void SetRates(Double_t rate, Double_t average, ULong64_t counts, Double_t time)
TString fxDateString
Time and date of the last update of this status as sql string.
const char * GetCurrentSource() const
Double_t fdRate
Current eventrate (events/sec).
ULong64_t fuCurrentCount
Number of events processed since last start.