GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
38void TGo4ExampleClientStatus::SetNames(const char *main, const char *watch)
39{
40 GO4TRACE((12,"TGo4ClientStatus::SetNames(const char *, const char *)",__LINE__, __FILE__));
42 fxWatchName = watch;
43}
44
45void 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
int main(int argc, char **argv)
#define GO4TRACE(X)
Definition TGo4Log.h:25
void Print(Option_t *opt="") const override
basic method to printout status information on stdout; to be overridden by specific subclass
void SetHistoStatus(TH1 *histogram)
Set histogram status.
void SetNames(const char *main, const char *watch)
Set names of the work runnables of example.
void Print(Option_t *opt="") const override
TString fxMainName
Remember name of main thread.
TString fxHistogramName
Remember name of histogram.
TString fxWatchName
Remember name of watch thread.
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.