GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Go4HistogramServer
TGo4ObjConnectorRunnable.cxx
Go to the documentation of this file.
1
// $Id: TGo4ObjConnectorRunnable.cxx 934 2013-01-29 15:59:24Z linev $
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 für 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 "
TGo4ObjConnectorRunnable.h
"
15
16
#include "Riostream.h"
17
18
#include "
TGo4Thread.h
"
19
#include "
TGo4Task.h
"
20
#include "
TGo4HistogramServer.h
"
21
#include "
TGo4AnalysisClientImp.h
"
22
23
TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable
(
const
char
* name,
TGo4HistogramServer
* hserv)
24
:
TGo4Runnable
(name, hserv->GetAnalysisClient()->GetTask())
25
{
26
fxHistogramServer
=hserv;
27
}
28
29
TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable
() :
TGo4Runnable
(0,0)
30
{
31
}
32
33
TGo4ObjConnectorRunnable::~TGo4ObjConnectorRunnable
()
34
{
35
}
36
37
Int_t
TGo4ObjConnectorRunnable::Run
(
void
*)
38
{
39
if
(!
fxHistogramServer
)
40
{
41
std::cerr <<
"error, no histogram server!!"
<< std::endl;
42
fxGo4Thread
->
Stop
();
43
return
-1;
44
}
45
Int_t rev=
fxHistogramServer
->
ServeObjectClient
();
46
if
(rev< -1)
47
{
48
fxGo4Thread
->
Stop
();
// stop runnable for termination
49
}
50
else
{}
51
return
0;
52
}
TGo4AnalysisClientImp.h
TGo4ObjConnectorRunnable::fxHistogramServer
TGo4HistogramServer * fxHistogramServer
Definition:
TGo4ObjConnectorRunnable.h:40
TGo4Runnable::fxGo4Thread
TGo4Thread * fxGo4Thread
Definition:
TGo4Runnable.h:76
TGo4ObjConnectorRunnable.h
TGo4Thread::Stop
Bool_t Stop()
Definition:
TGo4Thread.cxx:328
TGo4HistogramServer
Definition:
TGo4HistogramServer.h:35
TGo4HistogramServer::ServeObjectClient
Int_t ServeObjectClient()
Definition:
TGo4HistogramServer.cxx:192
TGo4ObjConnectorRunnable::~TGo4ObjConnectorRunnable
virtual ~TGo4ObjConnectorRunnable()
Definition:
TGo4ObjConnectorRunnable.cxx:33
TGo4Thread.h
TGo4Runnable
Definition:
TGo4Runnable.h:33
TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable
TGo4ObjConnectorRunnable()
Definition:
TGo4ObjConnectorRunnable.cxx:29
TGo4HistogramServer.h
TGo4ObjConnectorRunnable::Run
virtual Int_t Run(void *)
Definition:
TGo4ObjConnectorRunnable.cxx:37
TGo4Task.h
Generated on Fri Oct 26 2018 08:34:52 for GSI Object Oriented Online Offline (Go4) by
1.8.8