16 #include "Riostream.h"
20 #include "TGo4LockGuard.h"
34 :
TGo4Runnable(name, hserv->GetAnalysisClient()->GetTask())
53 Bool_t histofromgraph=kFALSE;
79 if(ob && ob->InheritsFrom(TH1::Class()))
81 his=
dynamic_cast<TH1*
>(ob);
83 else if (ob && ob->InheritsFrom(TGraph::Class()))
85 TGraph* gr=
dynamic_cast<TGraph*
>(ob);
86 his=gr->GetHistogram();
91 Int_t maxpoints=gr->GetN();
92 for(Int_t point=0; point<maxpoints; ++point)
96 gr->GetPoint(point,xg,yg);
97 Int_t xbin=his->FindBin(xg);
98 his->SetBinContent(xbin,yg);
109 if(his && histofromgraph) his->Reset();
114 hisname=his->GetName();
116 "Histogram server is sending histogram %s",
122 hisname=
"No such histogram";
153 ana->
Message(0,
"Histogram server: got unknown command");
160 std::cout <<
"Histogram Server: Error on connect request: "<< result << std::endl;
INTS4 f_his_senddir(s_his_head *ps_head, INTS4 l_histos)
TGo4HisConnectorRunnable()
INTS4 f_his_sendhis(s_his_head *ps_head, INTS4 l_histos, CHARS *pc_histo, INTS4 *pl_data)
virtual ~TGo4HisConnectorRunnable()
TGo4Analysis * GetAnalysis() const
INTS4 f_his_wait(INTS4 *pl_action, CHARS *pc_histo)
TH1 * GetHistogram(const char *name)
TGo4HistogramServer * fxHistogramServer
static const char * fgcSHUTDOWNNAME
virtual Int_t Run(void *)
void Message(Int_t prio, const char *text,...)
TNamed * GetObject(const char *name, const char *folder=0)
TFolder * GetObjectFolder()