#include "TGo4ObjConnectorRunnable.h" #include "Riostream.h" #include "TGo4Thread.h" #include "TGo4Task.h" #include "TGo4HistogramServer.h" #include "TGo4AnalysisClientImp.h" TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable(const char* name, TGo4HistogramServer* hserv) : TGo4Runnable(name, hserv->GetAnalysisClient()->GetTask()) { fxHistogramServer=hserv; } TGo4ObjConnectorRunnable::TGo4ObjConnectorRunnable() : TGo4Runnable(0,0) { } TGo4ObjConnectorRunnable::~TGo4ObjConnectorRunnable() { } Int_t TGo4ObjConnectorRunnable::Run(void*) { if(!fxHistogramServer) { cout <<"error, no histogram server!!" << endl; fxGo4Thread->Stop(); return -1; } Int_t rev=fxHistogramServer->ServeObjectClient(); if(rev< -1) { fxGo4Thread->Stop(); // stop runnable for termination } else{} return 0; }