GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4ExampleClientStatus.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 "TH1.h"
17 
18 #include "TGo4Log.h"
19 
21 {
22  GO4TRACE((12,"TGo4ExampleClientStatus::TGo4ExampleClientStatus(const char *)",__LINE__, __FILE__));
23 }
24 
26 {
27  GO4TRACE((12,"TGo4ExampleClientStatus::~TGo4ExampleClientStatus()",__LINE__, __FILE__));
28 }
29 
31 {
32  GO4TRACE((12,"TGo4ClientStatus::SetHistoStatus(TH1 *)",__LINE__, __FILE__));
33  fxHistogramName = histogram->GetName();
34  // here the complete internal histogram information may be stored; we leave that
35  // as an exercise for the reader!
36 }
37 
38 void TGo4ExampleClientStatus::SetNames(const char *main, const char *watch)
39 {
40  GO4TRACE((12,"TGo4ClientStatus::SetNames(const char*,...)",__LINE__, __FILE__));
41  fxMainName = main;
42  fxWatchName = watch;
43 }
44 
45 void TGo4ExampleClientStatus::Print(Option_t *) const
46 {
47  PrintLine("G-OOOO-> ExampleClient Status Class %s Printout: <-OOOO-G", GetName());
48  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
49  PrintLine("G-OOOO-> Main Runnable Name: %s", fxMainName.Data());
50  PrintLine("G-OOOO-> Watch Runnable Name: %s", fxWatchName.Data());
51  PrintLine("G-OOOO-> Demo Histogram Name: %s", fxHistogramName.Data());
52  PrintLine("G-OOOO-> ---------------------------------------------- <-OOOO-G");
53  TGo4ClientStatus::Print(); // gives us the superclass data
54  PrintLine("G-OOOO-> END Example Client Status Class Printout END <-OOOO-G");
55 }
56 
void Print(Option_t *opt="") const override
int main(int argc, char **argv)
void SetHistoStatus(TH1 *histogram)
void SetNames(const char *main, const char *watch)
#define GO4TRACE(X)
Definition: TGo4Log.h:25
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
void Print(Option_t *opt="") const override