#include <TGo4Interface.h>
Inheritance diagram for TGo4Interface:
Public Member Functions | |
TGo4Interface () | |
TGo4Interface (const TGo4Interface &) | |
virtual | ~TGo4Interface () |
void | Wait (double tm_sec) |
Wait specified number of seconds. | |
void | HotStart (const char *filename) |
Executes hotstart file, generated in go4 GUI. | |
void | Message (const char *msg) |
Dsiplay message in GUI status line. | |
void | LaunchAnalysis () |
Launch analysis in client mode, using default configuration. | |
void | LaunchAnalysis (const char *ClientName, const char *ClientDir, const char *ClientExec, const char *ClientNode, Int_t ShellMode=2, Int_t TermMode=1) |
Launch analysis in client mode. | |
void | ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t ControllerMode, const char *password=0) |
Connect to running analysis server. | |
void | WaitAnalysis (Int_t delay_sec) |
Waits, until connection to analysis is established. | |
void | DisconnectAnalysis () |
Disconnects from running analysis. | |
void | ShutdownAnalysis () |
Shutdown running analysis. | |
void | SubmitAnalysisConfig () |
Submit configuration to analysis. | |
void | StartAnalysis () |
Starts (resume) analysis execution. | |
void | StopAnalysis () |
Stop (suspend) analysis execution. | |
void | AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite) |
Configure autosave properties of analysis. | |
void | AnalysisConfigName (const char *filename) |
Configure name of file, where analysis configuration will be saved. | |
void | ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore) |
Set basic step property. | |
void | StepFileSource (const char *stepname, const char *sourcename, int timeout) |
Set file source as step data source. | |
void | StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start, int stop, int interval) |
Set MBS file source as step data source. | |
void | StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout) |
Set MBS stream server as step data source. | |
void | StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout) |
Set MBS transport server as step data source. | |
void | StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout) |
Set MBS event server as step data source. | |
void | StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port) |
Set MBS remote event server as step data source. | |
void | StepRandomSource (const char *stepname, const char *sourcename, int timeout) |
Set random generator as step data source. | |
void | StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr) |
Set user data source as step data source. | |
void | StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression) |
Set file as step data storage. | |
void | StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel) |
Set back store ss step data storage. | |
ViewPanelHandle | StartViewPanel () |
Create new view panel. | |
ViewPanelHandle | StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=0) |
Create new viewpanel with specified parameters. | |
TString | GetViewPanelName (ViewPanelHandle handle) |
Return name of viewpanel. | |
ViewPanelHandle | FindViewPanel (const char *name) |
Return handle on viewpanel with specified name. | |
Bool_t | SetViewPanelName (ViewPanelHandle handle, const char *newname) |
Change name of viewpanel. | |
ViewPanelHandle | GetActiveViewPanel () |
Return handle of last active viewpanel. | |
void | RedrawPanel (ViewPanelHandle panel) |
Forces of panel redraw. | |
void | DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY) |
Divide viewpanel on subpads. | |
TPad * | SelectPad (ViewPanelHandle panel, Int_t number=0) |
Set active pad on viewpanel. | |
Bool_t | DrawItem (const char *itemname, ViewPanelHandle panel=0, const char *drawopt=0) |
Draw browser item on specified viewpanel. | |
void | RedrawItem (const char *itemname) |
Redraw item of given name on all viewpanels/editors. | |
void | ProcessHotStart () |
virtual Bool_t | HandleTimer (TTimer *timer) |
Protected Member Functions | |
void | ProcessEvents (Int_t timeout=-1) |
TGo4AnalysisProxy * | AddAnalysisProxy (Bool_t isserver) |
TGo4AnalysisStatus * | GetAnalStatus () |
TGo4AnalysisStepStatus * | GetStepStatus (const char *stepname) |
Protected Attributes | |
TGo4RootBrowserProxy * | fRootBrowser |
TString | fOMDataPath |
TString | fOMBrowserPath |
TString | fOMEditorsPath |
Bool_t | fCmdFinished |
TTimer * | fCmdTimer |
Int_t | fWaitCounter |
|
|
Definition at line 33 of file TGo4Interface.h. |
|
Definition at line 80 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), DisconnectAnalysis(), fCmdTimer, and TGo4AbstractInterface::OM(). |
|
Implements TGo4AbstractInterface. Definition at line 97 of file TGo4Interface.cxx. References Wait(). Referenced by ConnectAnalysis(), DisconnectAnalysis(), and LaunchAnalysis(). |
|
Wait specified number of seconds. Suppress macro execution, but keeps GUI functional, therefore it is different from gSystem->Sleep() call. Reimplemented from TGo4AbstractInterface. Definition at line 102 of file TGo4Interface.cxx. Referenced by ProcessEvents(). |
|
Executes hotstart file, generated in go4 GUI. Hot start files can not be executed as normal CINT scripts, therefore one should use this method to activate them Implements TGo4AbstractInterface. Definition at line 626 of file TGo4Interface.cxx. References fCmdFinished, fCmdTimer, TGo4AbstractInterface::FreeHotStartCmds(), and TGo4AbstractInterface::LoadHotStart(). |
|
Dsiplay message in GUI status line.
Reimplemented from TGo4AbstractInterface. Definition at line 119 of file TGo4Interface.cxx. References fRootBrowser, and TGo4RootBrowserProxy::Message(). Referenced by SetViewPanelName(). |
|
Launch analysis in client mode, using default configuration. Can only work in standard GUI mode Reimplemented from TGo4AbstractInterface. Definition at line 125 of file TGo4Interface.cxx. |
|
Launch analysis in client mode. Parameters: ClientName - arbitrary name of analysis, used for diaplay ClientDir - directory, where analysis should be started ClientExec - main analysis executable ClientNode - node name, where analysis should be started ShellMode - shell, used to launch analysis: 1 - rsh, 2 - ssh [default] TermMode - terminal program: 1 - internal Qt window, 2 - xterm, 3 - KDE konsole Reimplemented from TGo4AbstractInterface. Definition at line 158 of file TGo4Interface.cxx. References AddAnalysisProxy(), TGo4AnalysisProxy::LaunchAsClient(), and ProcessEvents(). |
|
Connect to running analysis server. Parameters: ServerNode - node to connect to, ServerPort - connection port number, UserMode - mode of user operation : 0 - observer, 1 - controller, 2 - administrator password - access password, which should correspond to specified UserMode Reimplemented from TGo4AbstractInterface. Definition at line 183 of file TGo4Interface.cxx. References AddAnalysisProxy(), TGo4AbstractInterface::Analysis(), TGo4AnalysisProxy::ConnectToServer(), ProcessEvents(), and TGo4AnalysisProxy::RequestAnalysisSettings(). |
|
Waits, until connection to analysis is established. Method must be called before any other action like configuration, start/stop can be done. If analysis is connected, IsAnalysisConnected() return kTRUE. delay_sec specifies, how long one should wait until analysis is connected Reimplemented from TGo4AbstractInterface. Definition at line 205 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), fWaitCounter, TGo4AnalysisProxy::IsAnalysisReady(), and TGo4AbstractInterface::IsHotStart(). |
|
Disconnects from running analysis. If analysis is running in client mode, analysis will be shutdown. Reimplemented from TGo4AbstractInterface. Definition at line 229 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), TGo4AbstractInterface::Browser(), TGo4AnalysisProxy::DisconnectAnalysis(), and ProcessEvents(). Referenced by ~TGo4Interface(). |
|
Shutdown running analysis. If analysis is running in server mode, only user with administrator privilegies can do this Reimplemented from TGo4AbstractInterface. Definition at line 241 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), TGo4AbstractInterface::Browser(), TGo4AnalysisProxy::DisconnectAnalysis(), TGo4AnalysisProxy::IsAdministrator(), TGo4AnalysisProxy::IsAnalysisServer(), and TGo4AnalysisProxy::IsConnected(). |
|
Submit configuration to analysis. Configurations can be changed with following methods:
To understand more how these methods can be used together, one should launch analysis, configure it and then generate hotstart file. In this file one can find correct sequence and parameters for all these methods. Reimplemented from TGo4AbstractInterface. Definition at line 255 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), TGo4AnalysisProxy::IsAnalysisSettingsReady(), TGo4AnalysisProxy::NamesListReceived(), TGo4AnalysisProxy::RefreshNamesList(), and TGo4AnalysisProxy::SubmitAnalysisSettings(). |
|
Starts (resume) analysis execution.
Reimplemented from TGo4AbstractInterface. Definition at line 273 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), TGo4AnalysisProxy::DelayedRefreshNamesList(), TGo4AnalysisProxy::RefreshNamesList(), and TGo4AnalysisProxy::StartAnalysis(). |
|
Stop (suspend) analysis execution.
Reimplemented from TGo4AbstractInterface. Definition at line 287 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), and TGo4AnalysisProxy::StopAnalysis(). |
|
Configure autosave properties of analysis.
Reimplemented from TGo4AbstractInterface. Definition at line 309 of file TGo4Interface.cxx. References GetAnalStatus(), TGo4AnalysisStatus::SetAutoFileName(), TGo4AnalysisStatus::SetAutoSaveCompression(), TGo4AnalysisStatus::SetAutoSaveInterval(), TGo4AnalysisStatus::SetAutoSaveOn(), and TGo4AnalysisStatus::SetAutoSaveOverwrite(). |
|
Configure name of file, where analysis configuration will be saved.
Reimplemented from TGo4AbstractInterface. Definition at line 325 of file TGo4Interface.cxx. References GetAnalStatus(), and TGo4AnalysisStatus::SetConfigFileName(). |
|
Set basic step property.
Reimplemented from TGo4AbstractInterface. Definition at line 338 of file TGo4Interface.cxx. References GetStepStatus(), TGo4AnalysisStepStatus::SetProcessEnabled(), TGo4AnalysisStepStatus::SetSourceEnabled(), and TGo4AnalysisStepStatus::SetStoreEnabled(). |
|
Set file source as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 351 of file TGo4Interface.cxx. References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set MBS file source as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 363 of file TGo4Interface.cxx. References GetStepStatus(), TGo4MbsFileParameter::SetEventInterval(), TGo4AnalysisStepStatus::SetSourcePar(), TGo4MbsFileParameter::SetStartEvent(), TGo4MbsFileParameter::SetStopEvent(), TGo4MbsFileParameter::SetTagName(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set MBS stream server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 385 of file TGo4Interface.cxx. References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set MBS transport server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 397 of file TGo4Interface.cxx. References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set MBS event server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 409 of file TGo4Interface.cxx. References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set MBS remote event server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 421 of file TGo4Interface.cxx. References GetStepStatus(), TGo4RevServParameter::SetPort(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set random generator as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 435 of file TGo4Interface.cxx. References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set user data source as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 447 of file TGo4Interface.cxx. References GetStepStatus(), TGo4UserSourceParameter::SetExpression(), TGo4UserSourceParameter::SetPort(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout(). |
|
Set file as step data storage.
Reimplemented from TGo4AbstractInterface. Definition at line 463 of file TGo4Interface.cxx. References GetStepStatus(), TGo4FileStoreParameter::SetBufsize(), TGo4FileStoreParameter::SetCompression(), TGo4FileStoreParameter::SetOverwriteMode(), TGo4FileStoreParameter::SetSplitlevel(), and TGo4AnalysisStepStatus::SetStorePar(). |
|
Set back store ss step data storage.
Reimplemented from TGo4AbstractInterface. Definition at line 481 of file TGo4Interface.cxx. References GetStepStatus(), TGo4BackStoreParameter::SetBufsize(), TGo4BackStoreParameter::SetSplitlevel(), and TGo4AnalysisStepStatus::SetStorePar(). |
|
Create new view panel. Handle, returned by this method, must be used for other operation, like DivideViewPanel() or SelectPad() Reimplemented from TGo4AbstractInterface. Definition at line 495 of file TGo4Interface.cxx. Referenced by DrawItem(). |
|
Create new viewpanel with specified parameters. Returns handle of newly created viewpanel. Parameters: x,y - left top corner coordinate of view panel; width, height - panel size; mode - diplay view panel 0 - minimized, 1 - normal, 2 - maximized; pic - TGo4Picture object, which includes configuration of viewpanel. To understand usage of this method together with TGo4Picture class, one can create and configure viewpanel and then create hotstart file. This file will include complete TGo4Picture configuration, which contains attributes like colors, ranges, pad divisions and so on. Reimplemented from TGo4AbstractInterface. Definition at line 500 of file TGo4Interface.cxx. References TGo4RootBrowserProxy::DrawPicture(), and fRootBrowser. |
|
Return name of viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 516 of file TGo4Interface.cxx. |
|
Return handle on viewpanel with specified name.
Reimplemented from TGo4AbstractInterface. Definition at line 522 of file TGo4Interface.cxx. |
|
Change name of viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 527 of file TGo4Interface.cxx. References Message(). |
|
Return handle of last active viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 544 of file TGo4Interface.cxx. |
|
Forces of panel redraw.
Reimplemented from TGo4AbstractInterface. Definition at line 550 of file TGo4Interface.cxx. |
|
Divide viewpanel on subpads.
Reimplemented from TGo4AbstractInterface. Definition at line 559 of file TGo4Interface.cxx. |
|
Set active pad on viewpanel. If number==0, main pad (canvas) will be set as active, otherwise one of subpads will be activated. Most of methods, working with viewpanel, acting with active pad of this panel. Reimplemented from TGo4AbstractInterface. Definition at line 565 of file TGo4Interface.cxx. |
|
Draw browser item on specified viewpanel. Parameters: itemname - browser item name, panel - viewpanel, if panel==0, new viewpanel will be created. drawopt - draw options, used in obj->Draw() operation Reimplemented from TGo4AbstractInterface. Definition at line 572 of file TGo4Interface.cxx. References TGo4AbstractInterface::GetObject(), and StartViewPanel(). |
|
Redraw item of given name on all viewpanels/editors. Useful for the case, when content of object (histogram, for example) changed directly in script and after that should be updated in viewpanel. Reimplemented from TGo4AbstractInterface. Definition at line 583 of file TGo4Interface.cxx. References TGo4AbstractInterface::RedrawItem(). |
|
Definition at line 642 of file TGo4Interface.cxx. References fCmdFinished, TGo4AbstractInterface::IsHotStart(), and TGo4AbstractInterface::NextHotStartCmd(). Referenced by HandleTimer(). |
|
Definition at line 601 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), fCmdTimer, TGo4AbstractInterface::FreeHotStartCmds(), fWaitCounter, TGo4AnalysisProxy::IsAnalysisReady(), TGo4AbstractInterface::IsHotStart(), and ProcessHotStart(). |
|
Definition at line 131 of file TGo4Interface.cxx. References TGo4AbstractInterface::Browser(), fOMDataPath, fOMEditorsPath, fRootBrowser, TGo4Slot::GetProxy(), TGo4AnalysisProxy::LoginfoSlot(), TGo4AbstractInterface::OM(), TGo4AnalysisProxy::RatemeterSlot(), and TGo4AnalysisProxy::SetAnalysisReady(). Referenced by ConnectAnalysis(), and LaunchAnalysis(). |
|
Definition at line 299 of file TGo4Interface.cxx. References TGo4AbstractInterface::Analysis(), and TGo4AnalysisProxy::SettingsSlot(). Referenced by AnalysisAutoSave(), AnalysisConfigName(), and GetStepStatus(). |
|
Definition at line 332 of file TGo4Interface.cxx. References GetAnalStatus(), and TGo4AnalysisStatus::GetStepStatus(). Referenced by ConfigStep(), StepBackStore(), StepFileSource(), StepFileStore(), StepMbsEventServerSource(), StepMbsFileSource(), StepMbsRevServSource(), StepMbsStreamSource(), StepMbsTransportSource(), StepRandomSource(), and StepUserSource(). |
|
Definition at line 150 of file TGo4Interface.h. Referenced by AddAnalysisProxy(), Message(), StartViewPanel(), and TGo4Interface(). |
|
Definition at line 151 of file TGo4Interface.h. Referenced by AddAnalysisProxy(), and TGo4Interface(). |
|
Definition at line 152 of file TGo4Interface.h. Referenced by TGo4Interface(). |
|
Definition at line 153 of file TGo4Interface.h. Referenced by AddAnalysisProxy(), and TGo4Interface(). |
|
Definition at line 154 of file TGo4Interface.h. Referenced by HotStart(), and ProcessHotStart(). |
|
Definition at line 155 of file TGo4Interface.h. Referenced by HandleTimer(), HotStart(), and ~TGo4Interface(). |
|
Definition at line 156 of file TGo4Interface.h. Referenced by HandleTimer(), and WaitAnalysis(). |