#include <TGo4ExampleApplication.h>
Public Member Functions | |
TGo4ExampleApplication (TGo4BufferQueue *datq=0) | |
virtual | ~TGo4ExampleApplication () |
void | CommandAction1 () |
void | CommandAction2 () |
void | FillHistograms () |
TH1 * | GetHistogram () |
void | SendData (TNamed *data) |
Private Attributes | |
TGo4BufferQueue * | fxDataQ |
TH1D * | fxDemoHistogram |
Example application class; this class may also run as standalone application without the threaded client-server mechanism (e.g. as later analysis class)
Definition at line 27 of file TGo4ExampleApplication.h.
TGo4ExampleApplication::TGo4ExampleApplication | ( | TGo4BufferQueue * | datq = 0 |
) |
Definition at line 23 of file TGo4ExampleApplication.cxx.
References fxDataQ, fxDemoHistogram, GO4TRACE, TGo4CommandInvoker::Instance(), and TGo4CommandInvoker::Register().
TGo4ExampleApplication::~TGo4ExampleApplication | ( | ) | [virtual] |
Definition at line 34 of file TGo4ExampleApplication.cxx.
References fxDemoHistogram, GO4TRACE, and TGo4CommandInvoker::UnRegister().
void TGo4ExampleApplication::CommandAction1 | ( | ) |
Definition at line 82 of file TGo4ExampleApplication.cxx.
References GetHistogram(), GO4TRACE, and SendData().
void TGo4ExampleApplication::CommandAction2 | ( | ) |
Definition at line 76 of file TGo4ExampleApplication.cxx.
References GO4TRACE.
void TGo4ExampleApplication::FillHistograms | ( | ) |
Definition at line 61 of file TGo4ExampleApplication.cxx.
References fxDemoHistogram, and GO4TRACE.
Referenced by TGo4MainRunnable::Run().
TH1 * TGo4ExampleApplication::GetHistogram | ( | ) |
Definition at line 56 of file TGo4ExampleApplication.cxx.
References fxDemoHistogram, and GO4TRACE.
Referenced by CommandAction1().
void TGo4ExampleApplication::SendData | ( | TNamed * | data | ) |
put named data object into the current data queue; will be sent to the gui server
Definition at line 41 of file TGo4ExampleApplication.cxx.
References TGo4BufferQueue::AddBufferFromObject(), fxDataQ, and GO4TRACE.
Referenced by CommandAction1().
TGo4BufferQueue* TGo4ExampleApplication::fxDataQ [private] |
Definition at line 51 of file TGo4ExampleApplication.h.
Referenced by SendData(), and TGo4ExampleApplication().
TH1D* TGo4ExampleApplication::fxDemoHistogram [private] |
Definition at line 53 of file TGo4ExampleApplication.h.
Referenced by FillHistograms(), GetHistogram(), TGo4ExampleApplication(), and ~TGo4ExampleApplication().