Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4HistogramServer/TGo4ObjConnectorRunnable.cxx

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #include "TGo4ObjConnectorRunnable.h"
00017 
00018 #include <iostream.h>
00019 
00020 #include "TGo4HistogramServer.h"
00021 #include "Go4AnalysisClient/TGo4AnalysisClientImp.h"
00022 
00023 TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable(const char* name, TGo4HistogramServer* hserv)
00024 : TGo4Runnable(name, hserv->GetAnalysisClient()->GetTask())
00025 {
00026   fxHistogramServer=hserv;
00027 }
00028 
00029 TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable() : TGo4Runnable(0,0)
00030 {
00031 }
00032 
00033 TGo4ObjConnectorRunnable::~TGo4ObjConnectorRunnable()
00034 {
00035 }
00036 
00037 Int_t TGo4ObjConnectorRunnable::Run(void*)
00038 {
00039 if(!fxHistogramServer)
00040    {
00041       cout <<"error, no histogram server!!" << endl;
00042       fxGo4Thread->Stop();
00043       return -1;
00044    }
00045 Int_t rev=fxHistogramServer->ServeObjectClient();
00046 if(rev< -1)
00047       {
00048          fxGo4Thread->Stop(); // stop runnable for termination
00049       }
00050 else{}
00051 return 0;
00052 }
00053 
00054 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:56:04 2005 for Go4-v2.10-5 by doxygen1.2.15