#include <TGo4Script.h>
Public Member Functions | |
TGo4Script (TGo4MainWindow *mainwin) | |
virtual | ~TGo4Script () |
void | Wait (double tm_sec) |
void | HotStart (const char *filename) |
void | Message (const char *msg) |
void | LaunchAnalysis () |
void | LaunchAnalysis (const char *ClientName, const char *ClientDir, const char *ClientExec, const char *ClientNode, Int_t ShellMode=2, Int_t TermMode=1, Int_t ExeMode=0, const char *UserArgs=0) |
void | ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t ControllerMode, const char *password=0) |
void | WaitAnalysis (Int_t delay_sec) |
void | DisconnectAnalysis () |
void | ShutdownAnalysis () |
void | SubmitAnalysisConfig (int tmout=20) |
void | StartAnalysis () |
void | StopAnalysis () |
void | RefreshNamesList (int tmout=10) |
void | SetAnalysisTerminalMode (int mode) |
void | SetAnalysisConfigMode (int mode) |
void | AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite) |
void | AnalysisConfigName (const char *filename) |
void | ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore) |
void | StepFileSource (const char *stepname, const char *sourcename, int timeout) |
void | StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start=0, int stop=0, int interval=0) |
void | StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) |
void | StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) |
void | StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) |
void | StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port=0, int start=0, int stop=0, int interval=0) |
void | StepMbsSelection (const char *stepname, int start, int stop, int interval) |
void | StepRandomSource (const char *stepname, const char *sourcename, int timeout) |
void | StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr) |
void | StepMbsPort (const char *stepname, int port) |
void | StepMbsRetryCnt (const char *stepname, int cnt) |
void | StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression) |
void | StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel) |
void | SetMainWindowState (int qtversion, const char *val) |
void | SetMainWindowGeometry (int qtversion, const char *val) |
ViewPanelHandle | StartViewPanel () |
ViewPanelHandle | StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=0) |
TString | GetViewPanelName (ViewPanelHandle panel) |
ViewPanelHandle | FindViewPanel (const char *name) |
Bool_t | SetViewPanelName (ViewPanelHandle panel, const char *newname) |
ViewPanelHandle | GetActiveViewPanel () |
void | RedrawPanel (ViewPanelHandle handle) |
void | DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY) |
TPad * | SelectPad (ViewPanelHandle panel, Int_t number=0) |
TGo4Picture * | GetPadOptions (ViewPanelHandle panel, Int_t padnumber=0) |
void | SetSuperimpose (ViewPanelHandle panel, Bool_t on=kTRUE) |
Bool_t | DrawItem (const char *itemname, ViewPanelHandle panel=0, const char *drawopt=0) |
const char * | GetDrawnItemName (ViewPanelHandle panel, int cnt=0) |
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 void | ProduceScript (const char *filename, TGo4MainWindow *main) |
Protected Attributes | |
Int_t | fiWaitForGUIReaction |
Int_t | fiWaitCounter |
TString | fStrBuf |
TGo4MainWindow * | fMainWin |
Bool_t | fErrorFlag |
Friends | |
class | TGo4MainWindow |
Definition at line 24 of file TGo4Script.h.
TGo4Script::TGo4Script | ( | TGo4MainWindow * | mainwin | ) |
Definition at line 52 of file TGo4Script.cxx.
References TGo4MainWindow::Browser(), TGo4AbstractInterface::Initialize(), and TGo4MainWindow::OM().
TGo4Script::~TGo4Script | ( | ) | [virtual] |
Definition at line 64 of file TGo4Script.cxx.
void TGo4Script::AnalysisAutoSave | ( | const char * | filename, | |
Int_t | interval, | |||
Int_t | compression, | |||
Bool_t | enabled, | |||
Bool_t | overwrite | |||
) | [virtual] |
Configure autosave properties of analysis
Reimplemented from TGo4AbstractInterface.
Definition at line 436 of file TGo4Script.cxx.
References TGo4MainWindow::FindAnalysisConfiguration(), fMainWin, and TGo4AnalysisConfiguration::SetAutoSaveConfig().
void TGo4Script::AnalysisConfigName | ( | const char * | filename | ) | [virtual] |
Configure name of file, where analysis configuration will be saved
Reimplemented from TGo4AbstractInterface.
Definition at line 447 of file TGo4Script.cxx.
References TGo4MainWindow::FindAnalysisConfiguration(), fMainWin, and TGo4AnalysisConfiguration::SetAnalysisConfigFile().
void TGo4Script::ConfigStep | ( | const char * | stepname, | |
Bool_t | enableprocess, | |||
Bool_t | enablesource, | |||
Bool_t | enablestore | |||
) | [virtual] |
Set basic step property
Reimplemented from TGo4AbstractInterface.
Definition at line 461 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetStepControl().
void TGo4Script::ConnectAnalysis | ( | const char * | ServerNode, | |
Int_t | ServerPort, | |||
Int_t | UserMode, | |||
const char * | password = 0 | |||
) | [virtual] |
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 336 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fStrBuf, getCounts(), go4sett, TGo4QSettings::setClientControllerMode(), TGo4QSettings::setClientDefaultPass(), TGo4QSettings::setClientNode(), and TGo4QSettings::setClientPort().
Bool_t TGo4Script::ContinueExecution | ( | ) | [protected] |
Definition at line 96 of file TGo4Script.cxx.
References doOutput(), execGUICommands(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, TGo4AbstractInterface::IsHotStart(), and TGo4AbstractInterface::NextHotStartCmd().
Referenced by TGo4MainWindow::ProcessHotStart().
void TGo4Script::DisconnectAnalysis | ( | ) | [virtual] |
Disconnects from running analysis. If analysis is running in client mode, analysis will be shutdown.
Reimplemented from TGo4AbstractInterface.
Definition at line 360 of file TGo4Script.cxx.
References TGo4MainWindow::DisconnectAnalysisSlot(), DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, and getCounts().
void TGo4Script::DivideViewPanel | ( | ViewPanelHandle | panel, | |
Int_t | numX, | |||
Int_t | numY | |||
) | [virtual] |
Divide viewpanel on subpads.
Reimplemented from TGo4AbstractInterface.
Definition at line 709 of file TGo4Script.cxx.
References TGo4ViewPanel::Divide().
void TGo4Script::doOutput | ( | const char * | str | ) | [protected] |
Definition at line 90 of file TGo4Script.cxx.
References fMainWin, and TGo4MainWindow::StatusMessage().
Referenced by ContinueExecution(), execGUICommands(), and StartScriptExecution().
void TGo4Script::DoPostProcessing | ( | ) | [protected] |
Definition at line 139 of file TGo4Script.cxx.
References TGo4AbstractInterface::DelayMillisec(), execGUICommands(), fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, fMainWin, TGo4AbstractInterface::IsHotStart(), and TGo4MainWindow::ProcessQtEvents().
Referenced by ConnectAnalysis(), DisconnectAnalysis(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
Bool_t TGo4Script::DrawItem | ( | const char * | itemname, | |
ViewPanelHandle | panel = 0 , |
|||
const char * | drawopt = 0 | |||
) | [virtual] |
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 744 of file TGo4Script.cxx.
References TGo4MainWindow::DisplayBrowserItem(), fMainWin, and ProcessEvents().
Int_t TGo4Script::execGUICommands | ( | ) | [protected] |
Definition at line 187 of file TGo4Script.cxx.
References TGo4AbstractInterface::Analysis(), TGo4MainWindow::ConnectServerSlot(), TGo4MainWindow::DisconnectAnalysisSlot(), doOutput(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, fStrBuf, getCounts(), TGo4AnalysisProxy::IsAnalysisReady(), TGo4AnalysisProxy::IsAnalysisSettingsReady(), TGo4MainWindow::LaunchClientSlot(), and TGo4AnalysisProxy::NamesListReceived().
Referenced by ContinueExecution(), and DoPostProcessing().
ViewPanelHandle TGo4Script::FindViewPanel | ( | const char * | name | ) | [virtual] |
Return handle on viewpanel with specified name.
Reimplemented from TGo4AbstractInterface.
Definition at line 676 of file TGo4Script.cxx.
References TGo4MainWindow::FindViewPanel(), and fMainWin.
void TGo4Script::FinishExecution | ( | ) | [protected] |
Definition at line 126 of file TGo4Script.cxx.
References fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, and TGo4AbstractInterface::FreeHotStartCmds().
Referenced by TGo4MainWindow::ProcessHotStart(), StartScriptExecution(), and TGo4MainWindow::StopGUIScriptSlot().
ViewPanelHandle TGo4Script::GetActiveViewPanel | ( | ) | [virtual] |
Return handle of last active viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 698 of file TGo4Script.cxx.
References TGo4AbstractInterface::Instance().
Int_t TGo4Script::getCounts | ( | Double_t | time | ) | [protected] |
Definition at line 85 of file TGo4Script.cxx.
References TGo4AbstractInterface::DelayMillisec().
Referenced by ConnectAnalysis(), DisconnectAnalysis(), execGUICommands(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
const char * TGo4Script::GetDrawnItemName | ( | ViewPanelHandle | panel, | |
int | cnt = 0 | |||
) | [virtual] |
Provide item name, drawn in the view panel. Optional cnt parameter could specify sequence number in panel, including all subpads
Reimplemented from TGo4AbstractInterface.
Definition at line 755 of file TGo4Script.cxx.
References TGo4ViewPanel::GetDrawItemName().
TGo4Picture * TGo4Script::GetPadOptions | ( | ViewPanelHandle | panel, | |
Int_t | padnumber = 0 | |||
) | [virtual] |
Returns pad options for pad with specified number
Reimplemented from TGo4AbstractInterface.
Definition at line 728 of file TGo4Script.cxx.
References TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::GetPadOptions(), and TGo4ViewPanel::GetSubPad().
TGo4ConfigStep * TGo4Script::GetStepGUI | ( | const char * | stepname | ) | [protected] |
Definition at line 454 of file TGo4Script.cxx.
References TGo4MainWindow::FindAnalysisConfiguration(), TGo4AnalysisConfiguration::FindStepConfig(), and fMainWin.
Referenced by ConfigStep(), StepBackStore(), StepFileSource(), StepFileStore(), StepMbsEventServerSource(), StepMbsFileSource(), StepMbsPort(), StepMbsRetryCnt(), StepMbsRevServSource(), StepMbsSelection(), StepMbsStreamSource(), StepMbsTransportSource(), StepRandomSource(), and StepUserSource().
TString TGo4Script::GetViewPanelName | ( | ViewPanelHandle | panel | ) | [virtual] |
Return name of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 669 of file TGo4Script.cxx.
void TGo4Script::HotStart | ( | const char * | filename | ) | [virtual] |
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 303 of file TGo4Script.cxx.
References fMainWin, and TGo4MainWindow::HotStart().
Bool_t TGo4Script::IsWaitSomething | ( | ) | [protected] |
Definition at line 134 of file TGo4Script.cxx.
References fiWaitCounter.
Referenced by TGo4MainWindow::ProcessHotStart().
void TGo4Script::LaunchAnalysis | ( | ) | [virtual] |
Launch analysis in client mode, using default configuration. Can only work in standard GUI mode
Reimplemented from TGo4AbstractInterface.
Definition at line 308 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts().
Referenced by LaunchAnalysis().
void TGo4Script::LaunchAnalysis | ( | const char * | ClientName, | |
const char * | ClientDir, | |||
const char * | ClientExec, | |||
const char * | ClientNode, | |||
Int_t | ShellMode = 2 , |
|||
Int_t | TermMode = 1 , |
|||
Int_t | ExeMode = 0 , |
|||
const char * | UserArgs = 0 | |||
) | [virtual] |
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 316 of file TGo4Script.cxx.
References go4sett, LaunchAnalysis(), TGo4QSettings::setClientArgs(), TGo4QSettings::setClientDir(), TGo4QSettings::setClientExec(), TGo4QSettings::setClientExeMode(), TGo4QSettings::setClientName(), TGo4QSettings::setClientNode(), TGo4QSettings::setClientShellMode(), and TGo4QSettings::setClientTermMode().
void TGo4Script::Message | ( | const char * | msg | ) | [virtual] |
Display message in GUI status line
Reimplemented from TGo4AbstractInterface.
Definition at line 296 of file TGo4Script.cxx.
References fMainWin, and TGo4MainWindow::StatusMessage().
Referenced by SetViewPanelName().
void TGo4Script::ProcessEvents | ( | Int_t | timeout = -1 |
) | [protected, virtual] |
Implements TGo4AbstractInterface.
Definition at line 182 of file TGo4Script.cxx.
References Wait().
Referenced by DrawItem(), and SelectPad().
void TGo4Script::ProduceScript | ( | const char * | filename, | |
TGo4MainWindow * | main | |||
) | [static, protected] |
Definition at line 766 of file TGo4Script.cxx.
References TGo4MainWindow::Browser(), TGo4BrowserProxy::BrowserItemName(), TGo4BrowserProxy::BrowserTopSlot(), TGo4AbstractInterface::DefaultPicTitle(), TGo4BrowserProxy::FindAnalysis(), TGo4MainWindow::FindAnalysisConfiguration(), TGo4MainWindow::FindAnalysisWindow(), TGo4AnalysisConfiguration::GetAnalysisConfigFile(), TGo4AnalysisConfiguration::GetAutoSaveConfig(), TGo4ConfigStep::GetBackStore(), TGo4HServProxy::GetBaseName(), TGo4ViewPanel::GetCanvas(), TGo4QSettings::getClientArgs(), TGo4QSettings::getClientControllerMode(), TGo4QSettings::getClientDefaultPass(), TGo4QSettings::getClientDir(), TGo4QSettings::getClientExec(), TGo4QSettings::getClientExeMode(), TGo4QSettings::getClientName(), TGo4QSettings::getClientNode(), TGo4QSettings::getClientPort(), TGo4QSettings::getClientShellMode(), TGo4QSettings::getClientTermMode(), TGo4DirProxy::GetFileName(), TGo4ConfigStep::GetFileStore(), TGo4HServProxy::GetFilter(), TGo4ConfigStep::GetMbsFileSource(), TGo4AnalysisConfiguration::GetNumSteps(), TGo4HServProxy::GetPortNumber(), TGo4DabcProxy::GetServerName(), TGo4HServProxy::GetServerName(), TGo4Iter::getslot(), TGo4ConfigStep::GetSourceSetup(), TGo4AnalysisConfiguration::GetStepConfig(), TGo4ConfigStep::GetStepControl(), TGo4ConfigStep::GetStepName(), TGo4ConfigStep::GetStoreSetup(), TGo4HServProxy::GetUserPass(), TGo4ConfigStep::GetUserSource(), go4sett, TGo4AbstractInterface::Instance(), TGo4AnalysisProxy::IsAnalysisReady(), TGo4AnalysisProxy::IsAnalysisRunning(), TGo4AnalysisProxy::IsAnalysisServer(), TGo4AnalysisProxy::IsAnalysisSettingsReady(), TGo4BrowserProxy::IsItemMonitored(), TGo4BrowserProxy::ItemKind(), TGo4MainWindow::LastTypedPassword(), TGo4BrowserProxy::MakeDabcList(), TGo4BrowserProxy::MakeFilesList(), TGo4BrowserProxy::MakeHServerList(), TGo4ViewPanel::MakePictureForPad(), TGo4BrowserProxy::MonitoringPeriod(), TGo4Iter::next(), and TGo4AbstractInterface::ProduceLoadLibs().
Referenced by TGo4MainWindow::CreateGUIScriptSlot().
void TGo4Script::RedrawPanel | ( | ViewPanelHandle | panel | ) | [virtual] |
Forces of panel redraw.
Reimplemented from TGo4AbstractInterface.
Definition at line 703 of file TGo4Script.cxx.
References TGo4ViewPanel::GetCanvas(), and TGo4ViewPanel::RedrawPanel().
void TGo4Script::RefreshNamesList | ( | int | tmout = 10 |
) | [virtual] |
Sends new request to the analysis and waits for new names list
Reimplemented from TGo4AbstractInterface.
Definition at line 402 of file TGo4Script.cxx.
References TGo4AbstractInterface::Analysis(), DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, getCounts(), and TGo4AnalysisProxy::RefreshNamesList().
TGo4Script * TGo4Script::ScriptInstance | ( | ) | [static, protected] |
Definition at line 47 of file TGo4Script.cxx.
References TGo4AbstractInterface::Instance().
Referenced by TGo4MainWindow::HotStart(), TGo4MainWindow::ProcessHotStart(), and TGo4MainWindow::StopGUIScriptSlot().
TPad * TGo4Script::SelectPad | ( | ViewPanelHandle | panel, | |
Int_t | number = 0 | |||
) | [virtual] |
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 715 of file TGo4Script.cxx.
References TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::GetSubPad(), ProcessEvents(), and TGo4ViewPanel::SetActivePad().
void TGo4Script::SetAnalysisConfigMode | ( | int | mode | ) | [virtual] |
Set analysis configuration window mode. Parameters mode indicate that configuration window: -1 - closed, 0 - minimized, 1 - normal state
Reimplemented from TGo4AbstractInterface.
Definition at line 425 of file TGo4Script.cxx.
References TGo4MainWindow::FindAnalysisConfiguration(), and fMainWin.
void TGo4Script::SetAnalysisTerminalMode | ( | int | mode | ) | [virtual] |
Set analysis terminal window mode. Parameters mode indicate that terminal window: -1 - closed, 0 - minimized, 1 - normal state
Reimplemented from TGo4AbstractInterface.
Definition at line 414 of file TGo4Script.cxx.
References TGo4MainWindow::FindAnalysisWindow(), and fMainWin.
void TGo4Script::SetMainWindowGeometry | ( | int | qtversion, | |
const char * | val | |||
) | [virtual] |
Set geometry of main window
Reimplemented from TGo4AbstractInterface.
Definition at line 635 of file TGo4Script.cxx.
References fMainWin.
void TGo4Script::SetMainWindowState | ( | int | qtversion, | |
const char * | val | |||
) | [virtual] |
Set state of all tool boxes in main window
Reimplemented from TGo4AbstractInterface.
Definition at line 629 of file TGo4Script.cxx.
References fMainWin.
void TGo4Script::SetSuperimpose | ( | ViewPanelHandle | panel, | |
Bool_t | on = kTRUE | |||
) | [virtual] |
Set superimpose flag for active pad of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 738 of file TGo4Script.cxx.
References TGo4ViewPanel::GetActivePad(), and TGo4ViewPanel::SetPadSuperImpose().
Bool_t TGo4Script::SetViewPanelName | ( | ViewPanelHandle | panel, | |
const char * | newname | |||
) | [virtual] |
Change name of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 681 of file TGo4Script.cxx.
References TGo4MainWindow::FindViewPanel(), fMainWin, Message(), TGo4ViewPanel::SetPanelName(), and TGo4ViewPanel::UpdatePanelCaption().
void TGo4Script::ShutdownAnalysis | ( | ) | [virtual] |
Shutdown running analysis. If analysis is running in server mode, only user with administrator privileges can do this
Reimplemented from TGo4AbstractInterface.
Definition at line 370 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, getCounts(), and TGo4MainWindow::ShutdownAnalysisSlot().
void TGo4Script::StartAnalysis | ( | ) | [virtual] |
Starts (resume) analysis execution
Reimplemented from TGo4AbstractInterface.
Definition at line 390 of file TGo4Script.cxx.
References fMainWin, TGo4MainWindow::StartAnalysisSlot(), and Wait().
Bool_t TGo4Script::StartScriptExecution | ( | const char * | fname | ) | [protected] |
Definition at line 69 of file TGo4Script.cxx.
References doOutput(), FinishExecution(), fiWaitCounter, fiWaitForGUIReaction, getCounts(), and TGo4AbstractInterface::LoadHotStart().
Referenced by TGo4MainWindow::HotStart().
ViewPanelHandle TGo4Script::StartViewPanel | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height, | |||
int | mode = 1 , |
|||
TGo4Picture * | pic = 0 | |||
) | [virtual] |
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 646 of file TGo4Script.cxx.
References TGo4AbstractInterface::DefaultPicTitle(), fMainWin, TGo4ViewPanel::GetCanvas(), TGo4MainWindow::MakeNewPanel(), TGo4ViewPanel::ProcessPictureRedraw(), TGo4ViewPanel::SetFreezedTitle(), and TGo4ViewPanel::ShootRepaintTimer().
ViewPanelHandle TGo4Script::StartViewPanel | ( | ) | [virtual] |
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 641 of file TGo4Script.cxx.
References fMainWin, and TGo4MainWindow::MakeNewPanel().
void TGo4Script::StepBackStore | ( | const char * | stepname, | |
const char * | storename, | |||
int | bufsize, | |||
int | splitlevel | |||
) | [virtual] |
Set back store ss step data storage
Reimplemented from TGo4AbstractInterface.
Definition at line 619 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetBackStore().
void TGo4Script::StepFileSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout | |||
) | [virtual] |
Set file source as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 471 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetFileSource(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepFileStore | ( | const char * | stepname, | |
const char * | storename, | |||
bool | overwrite, | |||
int | bufsize, | |||
int | splitlevel, | |||
int | compression | |||
) | [virtual] |
Set file as step data storage
Reimplemented from TGo4AbstractInterface.
Definition at line 607 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetFileStore().
void TGo4Script::StepMbsEventServerSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout, | |||
int | start = 0 , |
|||
int | stop = 0 , |
|||
int | interval = 0 | |||
) | [virtual] |
Set MBS event server as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 528 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsEventServerSource(), TGo4ConfigStep::SetMbsSourceWidgets(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepMbsFileSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout, | |||
const char * | TagFile, | |||
int | start = 0 , |
|||
int | stop = 0 , |
|||
int | interval = 0 | |||
) | [virtual] |
Set MBS file source as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 482 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsFileSource(), TGo4ConfigStep::SetMbsSourceWidgets(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepMbsPort | ( | const char * | stepname, | |
int | port | |||
) | [virtual] |
Set custom port number for MBS source like stream or transport server
Reimplemented from TGo4AbstractInterface.
Definition at line 580 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetMbsPort().
void TGo4Script::StepMbsRetryCnt | ( | const char * | stepname, | |
int | cnt | |||
) | [virtual] |
Set retry number for MBS source like stream or transport server
Reimplemented from TGo4AbstractInterface.
Definition at line 587 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetMbsRetryCnt().
void TGo4Script::StepMbsRevServSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout, | |||
int | port = 0 , |
|||
int | start = 0 , |
|||
int | stop = 0 , |
|||
int | interval = 0 | |||
) | [virtual] |
Set MBS remote event server as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 543 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsRevServSource(), TGo4ConfigStep::SetMbsSourceWidgets(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepMbsSelection | ( | const char * | stepname, | |
int | start, | |||
int | stop, | |||
int | interval | |||
) | [virtual] |
Set event selection for MBS source
Reimplemented from TGo4AbstractInterface.
Definition at line 559 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetMbsSourceWidgets().
void TGo4Script::StepMbsStreamSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout, | |||
int | start = 0 , |
|||
int | stop = 0 , |
|||
int | interval = 0 | |||
) | [virtual] |
Set MBS stream server as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 498 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsSourceWidgets(), TGo4ConfigStep::SetMbsStreamSource(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepMbsTransportSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout, | |||
int | start = 0 , |
|||
int | stop = 0 , |
|||
int | interval = 0 | |||
) | [virtual] |
Set MBS transport server as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 513 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsSourceWidgets(), TGo4ConfigStep::SetMbsTransportSource(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepRandomSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout | |||
) | [virtual] |
Set random generator as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 569 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetRandomSource(), and TGo4ConfigStep::SetSourceWidgets().
void TGo4Script::StepUserSource | ( | const char * | stepname, | |
const char * | sourcename, | |||
int | timeout, | |||
int | port, | |||
const char * | expr | |||
) | [virtual] |
Set user data source as step data source
Reimplemented from TGo4AbstractInterface.
Definition at line 594 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetSourceWidgets(), and TGo4ConfigStep::SetUserSource().
void TGo4Script::StopAnalysis | ( | ) | [virtual] |
Stop (suspend) analysis execution
Reimplemented from TGo4AbstractInterface.
Definition at line 396 of file TGo4Script.cxx.
References fMainWin, TGo4MainWindow::StopAnalysisSlot(), and Wait().
void TGo4Script::SubmitAnalysisConfig | ( | int | tmout = 20 |
) | [virtual] |
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. Timeout defines total time which will be required to get response from analysis that operation was completed.
Reimplemented from TGo4AbstractInterface.
Definition at line 380 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, getCounts(), and TGo4MainWindow::SubmitAnalysisSettings().
void TGo4Script::Wait | ( | double | tm_sec | ) | [virtual] |
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 286 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts().
Referenced by ProcessEvents(), StartAnalysis(), and StopAnalysis().
void TGo4Script::WaitAnalysis | ( | Int_t | delay_sec | ) | [virtual] |
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 352 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts().
friend class TGo4MainWindow [friend] |
Definition at line 26 of file TGo4Script.h.
Bool_t TGo4Script::fErrorFlag [protected] |
Definition at line 207 of file TGo4Script.h.
Referenced by DoPostProcessing(), and FinishExecution().
Int_t TGo4Script::fiWaitCounter [protected] |
Definition at line 204 of file TGo4Script.h.
Referenced by ConnectAnalysis(), ContinueExecution(), DisconnectAnalysis(), DoPostProcessing(), execGUICommands(), FinishExecution(), IsWaitSomething(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
Int_t TGo4Script::fiWaitForGUIReaction [protected] |
Definition at line 203 of file TGo4Script.h.
Referenced by ConnectAnalysis(), ContinueExecution(), DisconnectAnalysis(), DoPostProcessing(), execGUICommands(), FinishExecution(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
TGo4MainWindow* TGo4Script::fMainWin [protected] |
Definition at line 206 of file TGo4Script.h.
Referenced by AnalysisAutoSave(), AnalysisConfigName(), ContinueExecution(), DisconnectAnalysis(), doOutput(), DoPostProcessing(), DrawItem(), execGUICommands(), FindViewPanel(), GetStepGUI(), HotStart(), Message(), SetAnalysisConfigMode(), SetAnalysisTerminalMode(), SetMainWindowGeometry(), SetMainWindowState(), SetViewPanelName(), ShutdownAnalysis(), StartAnalysis(), StartViewPanel(), StopAnalysis(), and SubmitAnalysisConfig().
TString TGo4Script::fStrBuf [protected] |
Definition at line 205 of file TGo4Script.h.
Referenced by ConnectAnalysis(), and execGUICommands().