GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4ObjConnectorRunnable.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 <iostream>
17
18#include "TGo4Thread.h"
19#include "TGo4Task.h"
20#include "TGo4HistogramServer.h"
22
24 : TGo4Runnable(name, hserv->GetAnalysisClient()->GetTask())
25{
26 fxHistogramServer = hserv;
27}
28
30
32
34{
35 if (!fxHistogramServer) {
36 std::cerr << "error, no histogram server!!" << std::endl;
37 fxGo4Thread->Stop();
38 return -1;
39 }
40 Int_t rev = fxHistogramServer->ServeObjectClient();
41 if (rev < -1) {
42 fxGo4Thread->Stop(); // stop runnable for termination
43 }
44 return 0;
45}
Handles a histogram server (mbs histogram protocol) for the histograms registered in the analysis.
TGo4HistogramServer * fxHistogramServer
1 1
Int_t Run(void *) override
The working function which runs in the thread.
TGo4Runnable(const TGo4Runnable &right)
TGo4Thread * fxGo4Thread
Backlink to thread which runs this.