16 #include "Riostream.h"
19 #include "TGo4LockGuard.h"
24 : TNamed(
"My example application",
"Go4 Taskhandler example")
26 GO4TRACE((15,
"TGo4ExampleApplication::TGo4ExampleApplication() constructor",__LINE__, __FILE__));
28 fxDemoHistogram =
new TH1D(
"Test Histogram",
"Client Data", 2048, 0, 2047);
36 GO4TRACE((15,
"TGo4ExampleApplication::TGo4ExampleApplication() destructor",__LINE__, __FILE__));
43 GO4TRACE((12,
"TGo4ExampleApplication::SendData(TNamed*)",__LINE__, __FILE__));
46 std::cout <<
"Example Application: Sending data into queue..."<<std::endl;
51 std::cout <<
"Example Application: Sorry, no data queue present"<<std::endl;
58 GO4TRACE((12,
"TGo4ExampleApplication::GetHistogram",__LINE__, __FILE__));
63 GO4TRACE((12,
"TGo4ExampleApplication::FillHistograms",__LINE__, __FILE__));
65 static Int_t counter=0;
67 Double_t peak1= gRandom->Gaus(550,42);
68 Double_t peak2= gRandom->Gaus(1200,230);
73 std::cout <<
"Example Application filled histogram 100 times" <<std::endl;
78 GO4TRACE((14,
"TGo4ExampleApplication::CommandAction2",__LINE__, __FILE__));
79 std::cout <<
"Example Application: executing Action 2"<<std::endl;
84 GO4TRACE((14,
"TGo4ExampleApplication::CommandAction1",__LINE__, __FILE__));
85 std::cout <<
"Example Application: executing Action 1"<<std::endl;
static void UnRegister(TGo4CommandReceiver *p)
void SendData(TNamed *data)
static void Register(const char *name, TGo4CommandReceiver *p)
TGo4BufferQueue * fxDataQ
static TGo4CommandInvoker * Instance()
virtual ~TGo4ExampleApplication()
TGo4ExampleApplication(TGo4BufferQueue *datq=0)
void AddBufferFromObject(TObject *object)