#include <TGo4Script.h>
Inheritance diagram for TGo4Script:
Public Member Functions | |
TGo4Script (TGo4MainWindow *mainwin) | |
virtual | ~TGo4Script () |
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 | SetAnalysisTerminalMode (int mode) |
Set analysis terminal window mode. | |
void | SetAnalysisConfigMode (int mode) |
Set analysis configuration window mode. | |
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 panel) |
Return name of viewpanel. | |
ViewPanelHandle | FindViewPanel (const char *name) |
Return handle on viewpanel with specified name. | |
Bool_t | SetViewPanelName (ViewPanelHandle panel, const char *newname) |
Change name of viewpanel. | |
ViewPanelHandle | GetActiveViewPanel () |
Return handle of last active viewpanel. | |
void | RedrawPanel (ViewPanelHandle handle) |
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. | |
void | SetSuperimpose (ViewPanelHandle panel, Bool_t on=kTRUE) |
Set superimpose flag for active pad of viewpanel. | |
Bool_t | DrawItem (const char *itemname, ViewPanelHandle panel=0, const char *drawopt=0) |
Draw browser item on specified viewpanel. | |
Static Public Member Functions | |
static const char * | FileExtension () |
Protected Member Functions | |
void | ProcessEvents (Int_t timeout=-1) |
Bool_t | StartScriptExecution (const char *fname) |
Bool_t | ContinueExecution () |
void | FinishExecution () |
Bool_t | IsWaitSomething () |
TGo4ConfigStep * | GetStepGUI (const char *stepname) |
Int_t | getCounts (Double_t time) |
void | doOutput (const char *str) |
Int_t | execGUICommands () |
void | DoPostProcessing () |
Static Protected Member Functions | |
static TGo4Script * | ScriptInstance () |
static Int_t | DelayMillisec () |
static void | ProduceScript (const char *filename, TGo4MainWindow *main) |
Protected Attributes | |
Int_t | fiWaitForGUIReaction |
Int_t | fiWaitCounter |
TString | fStrBuf |
TGo4MainWindow * | fMainWin |
Bool_t | fErrorFlag |
Static Protected Attributes | |
static const char * | fgFileExtension = ".hotstart" |
static Int_t | fgDellayMillisec = 20 |
Friends | |
class | TGo4MainWindow |
|
Definition at line 67 of file TGo4Script.cxx. References TGo4MainWindow::Browser(), TGo4AbstractInterface::Initialize(), and TGo4MainWindow::OM(). |
|
Definition at line 79 of file TGo4Script.cxx. |
|
Implements TGo4AbstractInterface. Definition at line 197 of file TGo4Script.cxx. References Wait(). Referenced by DrawItem(), and SelectPad(). |
|
Definition at line 56 of file TGo4Script.cxx. References fgFileExtension. Referenced by TGo4MainWindow::CreateGUIScriptSlot(). |
|
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 301 of file TGo4Script.cxx. References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts(). Referenced by ProcessEvents(), StartAnalysis(), and StopAnalysis(). |
|
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 318 of file TGo4Script.cxx. References fMainWin, and TGo4MainWindow::HotStart(). |
|
Dsiplay message in GUI status line.
Reimplemented from TGo4AbstractInterface. Definition at line 311 of file TGo4Script.cxx. References fMainWin, and TGo4MainWindow::StatusMessage(). Referenced by SetViewPanelName(). |
|
Launch analysis in client mode, using default configuration. Can only work in standard GUI mode Reimplemented from TGo4AbstractInterface. Definition at line 323 of file TGo4Script.cxx. References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts(). Referenced by LaunchAnalysis(). |
|
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 331 of file TGo4Script.cxx. References go4sett, LaunchAnalysis(), TGo4QSettings::setClientDir(), TGo4QSettings::setClientExec(), TGo4QSettings::setClientName(), TGo4QSettings::setClientNode(), TGo4QSettings::setClientShellMode(), and TGo4QSettings::setClientTermMode(). |
|
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 347 of file TGo4Script.cxx. References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fStrBuf, getCounts(), go4sett, TGo4QSettings::setClientControllerMode(), TGo4QSettings::setClientDefaultPass(), TGo4QSettings::setClientNode(), and TGo4QSettings::setClientPort(). |
|
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 363 of file TGo4Script.cxx. References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts(). |
|
Disconnects from running analysis. If analysis is running in client mode, analysis will be shutdown. Reimplemented from TGo4AbstractInterface. Definition at line 371 of file TGo4Script.cxx. References TGo4MainWindow::DisconnectAnalysisSlot(), DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, and getCounts(). |
|
Shutdown running analysis. If analysis is running in server mode, only user with administrator privilegies can do this Reimplemented from TGo4AbstractInterface. Definition at line 381 of file TGo4Script.cxx. References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, getCounts(), and TGo4MainWindow::ShutdownAnalysisSlot(). |
|
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 391 of file TGo4Script.cxx. References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, getCounts(), and TGo4MainWindow::SubmitAnalysisSettings(). |
|
Starts (resume) analysis execution.
Reimplemented from TGo4AbstractInterface. Definition at line 401 of file TGo4Script.cxx. References fMainWin, TGo4MainWindow::StartAnalysisSlot(), and Wait(). |
|
Stop (suspend) analysis execution.
Reimplemented from TGo4AbstractInterface. Definition at line 407 of file TGo4Script.cxx. References fMainWin, TGo4MainWindow::StopAnalysisSlot(), and Wait(). |
|
Set analysis terminal window mode. Parameters mode indicate that terminal window: -1 - closed, 0 - minimized, 1 - normal state Reimplemented from TGo4AbstractInterface. Definition at line 413 of file TGo4Script.cxx. References TGo4MainWindow::FindAnalysisWindow(), and fMainWin. |
|
Set analysis configuration window mode. Parameters mode indicate that configuration window: -1 - closed, 0 - minimized, 1 - normal state Reimplemented from TGo4AbstractInterface. Definition at line 423 of file TGo4Script.cxx. References TGo4MainWindow::FindAnalysisConfiguration(), and fMainWin. |
|
Configure autosave properties of analysis.
Reimplemented from TGo4AbstractInterface. Definition at line 433 of file TGo4Script.cxx. References TGo4MainWindow::FindAnalysisConfiguration(), and fMainWin. |
|
Configure name of file, where analysis configuration will be saved.
Reimplemented from TGo4AbstractInterface. Definition at line 444 of file TGo4Script.cxx. References TGo4MainWindow::FindAnalysisConfiguration(), and fMainWin. |
|
Set basic step property.
Reimplemented from TGo4AbstractInterface. Definition at line 458 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set file source as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 468 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set MBS file source as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 479 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set MBS stream server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 494 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set MBS transport server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 505 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set MBS event server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 516 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set MBS remote event server as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 527 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set random generator as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 539 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set user data source as step data source.
Reimplemented from TGo4AbstractInterface. Definition at line 550 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set file as step data storage.
Reimplemented from TGo4AbstractInterface. Definition at line 563 of file TGo4Script.cxx. References GetStepGUI(). |
|
Set back store ss step data storage.
Reimplemented from TGo4AbstractInterface. Definition at line 575 of file TGo4Script.cxx. References GetStepGUI(). |
|
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 585 of file TGo4Script.cxx. References fMainWin, and TGo4MainWindow::MakeNewPanel(). |
|
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 590 of file TGo4Script.cxx. References fMainWin, and TGo4MainWindow::MakeNewPanel(). |
|
Return name of viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 610 of file TGo4Script.cxx. |
|
Return handle on viewpanel with specified name.
Reimplemented from TGo4AbstractInterface. Definition at line 617 of file TGo4Script.cxx. References TGo4MainWindow::FindViewPanel(), and fMainWin. |
|
Change name of viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 622 of file TGo4Script.cxx. References TGo4MainWindow::FindViewPanel(), fMainWin, and Message(). |
|
Return handle of last active viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 639 of file TGo4Script.cxx. References TGo4WorkSpace::Instance(). |
|
Forces of panel redraw.
Reimplemented from TGo4AbstractInterface. Definition at line 644 of file TGo4Script.cxx. |
|
Divide viewpanel on subpads.
Reimplemented from TGo4AbstractInterface. Definition at line 650 of file TGo4Script.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 656 of file TGo4Script.cxx. References ProcessEvents(). |
|
Set superimpose flag for active pad of viewpanel.
Reimplemented from TGo4AbstractInterface. Definition at line 669 of file TGo4Script.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 675 of file TGo4Script.cxx. References TGo4MainWindow::DisplayBrowserItem(), fMainWin, and ProcessEvents(). |
|
Definition at line 51 of file TGo4Script.cxx. References TGo4AbstractInterface::Instance(). Referenced by TGo4MainWindow::HotStart(), TGo4MainWindow::ProcessHotStart(), and TGo4MainWindow::StopGUIScriptSlot(). |
|
Definition at line 61 of file TGo4Script.cxx. References fgDellayMillisec. Referenced by DoPostProcessing(), getCounts(), TGo4MainWindow::HotStart(), TGo4MainWindow::ProcessHotStart(), and TGo4MainWindow::ProcessQtEvents(). |
|
Definition at line 84 of file TGo4Script.cxx. References doOutput(), FinishExecution(), fiWaitCounter, fiWaitForGUIReaction, getCounts(), and TGo4AbstractInterface::LoadHotStart(). Referenced by TGo4MainWindow::HotStart(). |
|
Definition at line 111 of file TGo4Script.cxx. References doOutput(), execGUICommands(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, TGo4AbstractInterface::IsHotStart(), and TGo4AbstractInterface::NextHotStartCmd(). Referenced by TGo4MainWindow::ProcessHotStart(). |
|
Definition at line 141 of file TGo4Script.cxx. References fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, and TGo4AbstractInterface::FreeHotStartCmds(). Referenced by TGo4MainWindow::ProcessHotStart(), StartScriptExecution(), and TGo4MainWindow::StopGUIScriptSlot(). |
|
Definition at line 149 of file TGo4Script.cxx. References fiWaitCounter. Referenced by TGo4MainWindow::ProcessHotStart(). |
|
Definition at line 451 of file TGo4Script.cxx. References TGo4MainWindow::FindAnalysisConfiguration(), and fMainWin. Referenced by ConfigStep(), StepBackStore(), StepFileSource(), StepFileStore(), StepMbsEventServerSource(), StepMbsFileSource(), StepMbsRevServSource(), StepMbsStreamSource(), StepMbsTransportSource(), StepRandomSource(), and StepUserSource(). |
|
|
Definition at line 100 of file TGo4Script.cxx. References DelayMillisec(). Referenced by ConnectAnalysis(), DisconnectAnalysis(), execGUICommands(), LaunchAnalysis(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis(). |
|
Definition at line 105 of file TGo4Script.cxx. References fMainWin, and TGo4MainWindow::StatusMessage(). Referenced by ContinueExecution(), execGUICommands(), and StartScriptExecution(). |
|
|
Definition at line 154 of file TGo4Script.cxx. References DelayMillisec(), execGUICommands(), fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, fMainWin, TGo4AbstractInterface::IsHotStart(), and TGo4MainWindow::ProcessQtEvents(). Referenced by ConnectAnalysis(), DisconnectAnalysis(), LaunchAnalysis(), ShutdownAnalysis(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis(). |
|
Definition at line 29 of file TGo4Script.h. |
|
Definition at line 175 of file TGo4Script.h. Referenced by ConnectAnalysis(), ContinueExecution(), DisconnectAnalysis(), DoPostProcessing(), execGUICommands(), FinishExecution(), LaunchAnalysis(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis(). |
|
Definition at line 176 of file TGo4Script.h. Referenced by ConnectAnalysis(), ContinueExecution(), DisconnectAnalysis(), DoPostProcessing(), execGUICommands(), FinishExecution(), IsWaitSomething(), LaunchAnalysis(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis(). |
|
Definition at line 177 of file TGo4Script.h. Referenced by ConnectAnalysis(), and execGUICommands(). |
|
Definition at line 178 of file TGo4Script.h. Referenced by AnalysisAutoSave(), AnalysisConfigName(), ContinueExecution(), DisconnectAnalysis(), doOutput(), DoPostProcessing(), DrawItem(), execGUICommands(), FindViewPanel(), GetStepGUI(), HotStart(), Message(), SetAnalysisConfigMode(), SetAnalysisTerminalMode(), SetViewPanelName(), ShutdownAnalysis(), StartAnalysis(), StartViewPanel(), StopAnalysis(), and SubmitAnalysisConfig(). |
|
Definition at line 179 of file TGo4Script.h. Referenced by DoPostProcessing(), and FinishExecution(). |
|
Definition at line 47 of file TGo4Script.cxx. Referenced by FileExtension(). |
|
Definition at line 48 of file TGo4Script.cxx. Referenced by DelayMillisec(). |