GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4TaskHandlerExample
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
14
#include "
TGo4ExampleClientStatus.h
"
15
16
#include "TH1.h"
17
18
#include "
TGo4Log.h
"
19
20
TGo4ExampleClientStatus::TGo4ExampleClientStatus
(
const
char
*name) :
TGo4ClientStatus
(name)
21
{
22
GO4TRACE
((12,
"TGo4ExampleClientStatus::TGo4ExampleClientStatus(const char *)"
,__LINE__, __FILE__));
23
}
24
25
TGo4ExampleClientStatus::~TGo4ExampleClientStatus
()
26
{
27
GO4TRACE
((12,
"TGo4ExampleClientStatus::~TGo4ExampleClientStatus()"
,__LINE__, __FILE__));
28
}
29
30
void
TGo4ExampleClientStatus::SetHistoStatus
(TH1 *histogram)
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 *, 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
main
int main(int argc, char **argv)
Definition
MainUserAnalysis.cxx:606
TGo4ExampleClientStatus.h
TGo4Log.h
GO4TRACE
#define GO4TRACE(X)
Definition
TGo4Log.h:25
TGo4ClientStatus::TGo4ClientStatus
TGo4ClientStatus()
Definition
TGo4ClientStatus.cxx:17
TGo4ClientStatus::Print
void Print(Option_t *opt="") const override
basic method to printout status information on stdout; to be overridden by specific subclass
Definition
TGo4ClientStatus.cxx:31
TGo4ExampleClientStatus::~TGo4ExampleClientStatus
virtual ~TGo4ExampleClientStatus()
Definition
TGo4ExampleClientStatus.cxx:25
TGo4ExampleClientStatus::SetHistoStatus
void SetHistoStatus(TH1 *histogram)
Set histogram status.
Definition
TGo4ExampleClientStatus.cxx:30
TGo4ExampleClientStatus::SetNames
void SetNames(const char *main, const char *watch)
Set names of the work runnables of example.
Definition
TGo4ExampleClientStatus.cxx:38
TGo4ExampleClientStatus::TGo4ExampleClientStatus
TGo4ExampleClientStatus()
Definition
TGo4ExampleClientStatus.h:29
TGo4ExampleClientStatus::Print
void Print(Option_t *opt="") const override
Definition
TGo4ExampleClientStatus.cxx:45
TGo4ExampleClientStatus::fxMainName
TString fxMainName
Remember name of main thread.
Definition
TGo4ExampleClientStatus.h:38
TGo4ExampleClientStatus::fxHistogramName
TString fxHistogramName
Remember name of histogram.
Definition
TGo4ExampleClientStatus.h:44
TGo4ExampleClientStatus::fxWatchName
TString fxWatchName
Remember name of watch thread.
Definition
TGo4ExampleClientStatus.h:41
TGo4Status::PrintLine
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.
Definition
TGo4Status.cxx:101
Generated by
1.13.2