GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4AnalysisClientStatus.cxx
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 
15 
16 #include "TDatime.h"
17 
20 {
21 }
22 
24  TGo4ClientStatus(name)
25 {
26 }
27 
29 {
30 }
31 
32 void TGo4AnalysisClientStatus::Print(Option_t *) const
33 {
34  PrintLine("G-OOOO-> Analysis Client Status Class %s Printout: <-OOOO-G", GetName());
35  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
36  PrintLine("G-OOOO-> Analysis Running State: %d",IsAnalysisRunning());
37  PrintLine("G-OOOO-> Current event rate: %f",GetRate());
38  PrintLine("G-OOOO-> Average event rate: %f",GetAvRate());
39  PrintLine("G-OOOO-> Total event counts: %llu", (long long unsigned) GetCurrentCount());
40  PrintLine("G-OOOO-> Total time: %f", GetTime());
41  PrintLine("G-OOOO-> Current Event source: %s", GetCurrentSource());
42  PrintLine("G-OOOO-> Creation date: %s", GetDateTime());
43  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
45  PrintLine("G-OOOO-> END Analysis Client Status Class Printout END <-OOOO-G");
46 }
47 
48 void TGo4AnalysisClientStatus::SetRates(Double_t rate, Double_t average, ULong64_t counts, Double_t time)
49 {
50  fdRate = rate;
51  fdAveRate = average;
52  fuCurrentCount = counts;
53  fdTime = time;
54  TDatime now;
55  fxDateString=now.AsSQLString();
56 }
const char * GetCurrentSource() const
void SetRates(Double_t rate, Double_t average, ULong64_t counts, Double_t time)
void Print(Option_t *opt="") const override
void Print(Option_t *opt="") const override
const char * GetDateTime() const
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101