GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
#include <TGo4Script.h>
Public Member Functions | |
TGo4Script (TGo4MainWindow *mainwin) | |
virtual | ~TGo4Script () |
void | AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite) override |
Configure autosave properties of analysis. | |
void | AnalysisConfigName (const char *filename) override |
Configure name of file, where analysis configuration will be saved. | |
void | ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore) override |
Set basic step properties. | |
void | ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t ControllerMode, const char *password=nullptr) override |
Connect to running analysis server. | |
TGo4ServerProxy * | ConnectHttp (const char *servername, const char *account=nullptr, const char *pass=nullptr) override |
Connect to HTTP server. | |
void | DisconnectAnalysis () override |
Disconnects from running analysis. | |
void | DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY) override |
Divide viewpanel on subpads. | |
Bool_t | DrawItem (const char *itemname, ViewPanelHandle panel=nullptr, const char *drawopt=nullptr) override |
Draw browser item on specified viewpanel. | |
ViewPanelHandle | FindViewPanel (const char *name) override |
Return handle on viewpanel with specified name. | |
ViewPanelHandle | GetActiveViewPanel () override |
Return handle of last active viewpanel. | |
const char * | GetDrawnItemName (ViewPanelHandle panel, int cnt=0) override |
Provide item name, drawn in the view panel. | |
TGo4Picture * | GetPadOptions (ViewPanelHandle panel, Int_t padnumber=0) override |
Returns pad options for pad with specified number. | |
TString | GetViewPanelName (ViewPanelHandle panel) override |
Return name of viewpanel. | |
void | HotStart (const char *filename) override |
Executes hotstart file, generated in go4 GUI. | |
void | LaunchAnalysis () override |
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, Int_t ExeMode=0, const char *UserArgs=nullptr) override |
Launch analysis in client mode. | |
void | Message (const char *msg) override |
Display message in GUI status line. | |
void | RedrawPanel (ViewPanelHandle handle) override |
Forces of panel redraw. | |
void | RefreshNamesList (int tmout=10) override |
Sends new request to the analysis and waits for new names list. | |
TPad * | SelectPad (ViewPanelHandle panel, Int_t number=0) override |
Set active pad on viewpanel. | |
void | SetAnalysisConfigMode (int mode) override |
Set analysis configuration window mode. | |
void | SetAnalysisTerminalMode (int mode) override |
Set analysis terminal window mode. | |
void | SetApplyToAll (ViewPanelHandle panel, Bool_t on=kTRUE) override |
Set apply to all flag for active pad of viewpanel. | |
void | SetMainWindowGeometry (int qtversion, const char *val) override |
Set geometry of main window. | |
void | SetMainWindowState (int qtversion, const char *val) override |
Set state of all tool boxes in main window. | |
void | SetSuperimpose (ViewPanelHandle panel, Bool_t on=kTRUE) override |
Set superimpose flag for active pad of viewpanel. | |
Bool_t | SetViewPanelName (ViewPanelHandle panel, const char *newname) override |
Change name of viewpanel. | |
void | ShutdownAnalysis () override |
Shutdown running analysis. | |
void | StartAnalysis () override |
Starts (resume) analysis execution. | |
void | StartFitPanel () override |
Starts fit panel. | |
ViewPanelHandle | StartViewPanel () override |
Create new view panel. | |
ViewPanelHandle | StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=nullptr) override |
Create new viewpanel with specified parameters. | |
void | StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel) override |
Set back store as step data storage. | |
void | StepFileSource (const char *stepname, const char *sourcename, int timeout) override |
Set file source as step data source. | |
void | StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression, int autosaveperiod=10000) override |
Set file as step data storage. | |
void | StepHDF5Source (const char *stepname, const char *sourcename, int timeout) override |
Set hdf5 data source as step data source. | |
void | StepHDF5Store (const char *stepname, const char *storename, int flags) override |
Set hdf5 data source as step data storage. | |
void | StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) override |
Set MBS event server as step data source. | |
void | StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start=0, int stop=0, int interval=0) override |
Set MBS file source as step data source. | |
void | StepMbsPort (const char *stepname, int port) override |
Set custom port number for MBS source like stream or transport server. | |
void | StepMbsRetryCnt (const char *stepname, int cnt) override |
Set retry number for MBS source like stream or transport server. | |
void | StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port=0, int start=0, int stop=0, int interval=0) override |
Set MBS remote event server as step data source. | |
void | StepMbsSelection (const char *stepname, int start, int stop, int interval) override |
Set event selection for MBS source. | |
void | StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) override |
Set MBS stream server as step data source. | |
void | StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) override |
Set MBS transport server as step data source. | |
void | StepRandomSource (const char *stepname, const char *sourcename, int timeout) override |
Set random generator as step data source. | |
void | StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr) override |
Set user data source as step data source. | |
void | StepUserStore (const char *stepname, const char *storename) override |
Set user store as step data storage. | |
void | StopAnalysis () override |
Stop (suspend) analysis execution. | |
void | SubmitAnalysisConfig (int tmout=20) override |
Submit configuration to analysis. | |
void | Wait (double tm_sec) override |
Wait specified number of seconds. | |
void | WaitAnalysis (Int_t delay_sec) override |
Waits, until connection to analysis is established. | |
![]() | |
virtual | ~TGo4AbstractInterface () |
destructor | |
TGo4AnalysisProxy * | Analysis () |
Returns pointer on analysis proxy. | |
TGo4BrowserProxy * | Browser () const |
Returns pointer on browser proxy. | |
ClassDefOverride (TGo4AbstractInterface, 0) | |
virtual void | ConnectDabc (const char *servername) |
Connect to DABC server. | |
virtual void | ConnectHServer (const char *servername, Int_t portnumber, const char *basename, const char *userpass, const char *filter) |
Connect to GSI histogram server. | |
virtual Bool_t | CopyItem (const char *itemname) |
Copy item to workspace. | |
virtual Bool_t | DeleteItem (const char *itemname) |
Delete item (if allowed). | |
virtual void | ExecuteLine (const char *remotecmd) |
Execute one macro line on analysis side. | |
virtual Bool_t | ExportToFile (const char *itemname, const char *dirpath, const char *format, const char *filetitle=nullptr) |
Export browser item to different file formats. | |
virtual void | FetchItem (const char *itemname, Int_t wait_time=2000) |
Fetch item from data source. | |
virtual TString | FindItem (const char *objname) |
Find item with given object name. | |
virtual TObject * | GetObject (const char *itemname, Int_t updatelevel=1) |
Returns object, assigned to specified browser item. | |
virtual Bool_t | IsAnalysisConnected () |
Indicate, if analysis was successfully connected. | |
virtual void | LoadLibrary (const char *fname) |
Load specified ROOT library. | |
virtual void | MonitorItem (const char *itemname, Bool_t on=kTRUE) |
Enable/disable monitoring of browser item. | |
TGo4ObjectManager * | OM () const |
Returns pointer on object manager. | |
virtual void | OpenFile (const char *fname) |
Open specified file in read-only mode. | |
virtual void | RedrawItem (const char *itemname) |
Redraw item of given name on all viewpanels/editors. | |
virtual void | RequestAnalysisConfig () |
Requests current analysis configuration. | |
virtual Bool_t | SaveToFile (const char *itemname, const char *filename, const char *filetitle=nullptr) |
Save specified browser item to file. | |
virtual TString | SaveToMemory (const char *path, TObject *obj, Bool_t ownership=kFALSE) |
Save object in browser workspace. | |
TGo4ServerProxy * | Server () |
Returns pointer on more generic server proxy. | |
virtual void | StartMonitoring (Int_t period=10) |
Start monitoring mode. | |
virtual void | StopMonitoring () |
Stop monitoring mode. | |
Protected Member Functions | |
Bool_t | CanConfigureAnalysis () |
Bool_t | ContinueExecution () |
void | doOutput (const char *str) |
void | DoPostProcessing () |
Int_t | execGUICommands () |
void | FinishExecution () |
Int_t | getCounts (Double_t time) |
TGo4ConfigStep * | GetStepGUI (const char *stepname) |
Bool_t | IsWaitSomething () const |
void | ProcessEvents (Int_t timeout=-1) override |
Bool_t | StartScriptExecution (const char *fname) |
![]() | |
TGo4AbstractInterface () | |
Constructor. | |
void | FreeHotStartCmds () |
void | Initialize (TGo4ObjectManager *om, TGo4BrowserProxy *br) |
list of shared libraries when application is started | |
Bool_t | IsHotStart () const |
Bool_t | LoadHotStart (const char *filename) |
const char * | NextHotStartCmd () |
Static Protected Member Functions | |
static void | ProduceScript (const char *filename, TGo4MainWindow *main) |
static TGo4Script * | ScriptInstance () |
![]() | |
static const char * | DefaultPicTitle () |
Returns default hotstart file extension. | |
static void | ProduceLoadLibs (std::ostream &fs) |
Protected Attributes | |
Int_t | fBlockConfigFlag {0} |
Bool_t | fErrorFlag {kFALSE} |
Int_t | fiWaitCounter {0} |
Int_t | fiWaitForGUIReaction {0} |
TGo4MainWindow * | fMainWin {nullptr} |
TString | fStrBuf |
Friends | |
class | TGo4MainWindow |
Additional Inherited Members | |
![]() | |
static Int_t | DelayMillisec () |
Default delay during hotstart file extension. | |
static void | DeleteInstance () |
Delete instance of interface class. | |
static const char * | FileExtension () |
Returns default hotstart file extension. | |
static TGo4AbstractInterface * | Instance () |
Return pointer on instance of implementation of TGo4AbstractInterface class. | |
static void | SetInitSharedLibs (const char *libs=nullptr) |
method to set initial list of shared libraries, which than will not be included in hotstart file | |
![]() | |
static TGo4AbstractInterface * | fgInstance = nullptr |
static TString | fInitSharedLibs = "" |
Definition at line 24 of file TGo4Script.h.
TGo4Script::TGo4Script | ( | TGo4MainWindow * | mainwin | ) |
Definition at line 49 of file TGo4Script.cxx.
References TGo4AbstractInterface::TGo4AbstractInterface(), TGo4MainWindow::Browser(), fBlockConfigFlag, fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, fMainWin, fStrBuf, TGo4AbstractInterface::Initialize(), TGo4MainWindow::OM(), and TGo4MainWindow.
Referenced by ScriptInstance(), and TGo4MainWindow.
|
virtual |
Definition at line 62 of file TGo4Script.cxx.
|
overridevirtual |
Configure autosave properties of analysis.
Reimplemented from TGo4AbstractInterface.
Definition at line 477 of file TGo4Script.cxx.
References CanConfigureAnalysis(), fMainWin, and TGo4AnalysisConfiguration::SetAutoSaveConfig().
|
overridevirtual |
Configure name of file, where analysis configuration will be saved.
Reimplemented from TGo4AbstractInterface.
Definition at line 488 of file TGo4Script.cxx.
References CanConfigureAnalysis(), fMainWin, and TGo4AnalysisConfiguration::SetAnalysisConfigFile().
|
protected |
Definition at line 437 of file TGo4Script.cxx.
References fBlockConfigFlag, TGo4ServerProxy::IsAnalysisLaunched(), and TGo4AbstractInterface::Server().
Referenced by AnalysisAutoSave(), AnalysisConfigName(), GetStepGUI(), StartAnalysis(), StopAnalysis(), and SubmitAnalysisConfig().
|
overridevirtual |
Set basic step properties.
Reimplemented from TGo4AbstractInterface.
Definition at line 505 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetStepControl().
|
overridevirtual |
Connect to running analysis server.
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 344 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fStrBuf, getCounts(), and go4sett.
|
overridevirtual |
Connect to HTTP server.
Address like http://host:port/subfolder/ authentication may be specified by username account and password pass
Reimplemented from TGo4AbstractInterface.
Definition at line 850 of file TGo4Script.cxx.
References TGo4BrowserProxy::AddServerProxy(), TGo4AbstractInterface::Browser(), TGo4HttpProxy::Connect(), and TGo4HttpProxy::SetAccount().
Referenced by TGo4MainWindow::ConnectHttpServer().
|
protected |
Definition at line 94 of file TGo4Script.cxx.
References doOutput(), execGUICommands(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, TGo4AbstractInterface::IsHotStart(), and TGo4AbstractInterface::NextHotStartCmd().
Referenced by TGo4MainWindow::ProcessHotStart().
|
overridevirtual |
Disconnects from running analysis.
If analysis is running in client mode, analysis will be shutdown.
Reimplemented from TGo4AbstractInterface.
Definition at line 368 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, and getCounts().
|
overridevirtual |
Divide viewpanel on subpads.
Reimplemented from TGo4AbstractInterface.
Definition at line 786 of file TGo4Script.cxx.
References TGo4ViewPanel::Divide().
|
protected |
Definition at line 88 of file TGo4Script.cxx.
References fMainWin.
Referenced by ContinueExecution(), execGUICommands(), and StartScriptExecution().
|
protected |
Definition at line 137 of file TGo4Script.cxx.
References TGo4AbstractInterface::DelayMillisec(), execGUICommands(), fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, fMainWin, and TGo4AbstractInterface::IsHotStart().
Referenced by ConnectAnalysis(), DisconnectAnalysis(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
|
overridevirtual |
Draw browser item on specified viewpanel.
itemname | - browser item name, |
panel | - viewpanel, if panel == nullptr, new viewpanel will be created. |
drawopt | - draw options, used in obj->Draw() operation |
Reimplemented from TGo4AbstractInterface.
Definition at line 827 of file TGo4Script.cxx.
References fMainWin, and ProcessEvents().
|
protected |
Definition at line 185 of file TGo4Script.cxx.
References doOutput(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, fStrBuf, getCounts(), TGo4ServerProxy::IsAnalysisReady(), TGo4ServerProxy::IsAnalysisSettingsReady(), TGo4ServerProxy::NamesListReceived(), and TGo4AbstractInterface::Server().
Referenced by ContinueExecution(), and DoPostProcessing().
|
overridevirtual |
Return handle on viewpanel with specified name.
Reimplemented from TGo4AbstractInterface.
Definition at line 753 of file TGo4Script.cxx.
References fMainWin.
|
protected |
Definition at line 124 of file TGo4Script.cxx.
References fErrorFlag, fiWaitCounter, fiWaitForGUIReaction, and TGo4AbstractInterface::FreeHotStartCmds().
Referenced by TGo4MainWindow::ProcessHotStart(), StartScriptExecution(), and TGo4MainWindow::StopGUIScriptSlot().
|
overridevirtual |
Return handle of last active viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 775 of file TGo4Script.cxx.
References TGo4MdiArea::GetActivePanel(), and TGo4MdiArea::Instance().
|
protected |
Definition at line 83 of file TGo4Script.cxx.
References TGo4AbstractInterface::DelayMillisec().
Referenced by ConnectAnalysis(), DisconnectAnalysis(), execGUICommands(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
|
overridevirtual |
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 838 of file TGo4Script.cxx.
References TGo4ViewPanel::GetDrawItemName().
|
overridevirtual |
Returns pad options for pad with specified number.
Reimplemented from TGo4AbstractInterface.
Definition at line 805 of file TGo4Script.cxx.
References TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::GetPadOptions(), and TGo4ViewPanel::GetSubPad().
|
protected |
Definition at line 495 of file TGo4Script.cxx.
References CanConfigureAnalysis(), TGo4AnalysisConfiguration::FindStepConfig(), and fMainWin.
Referenced by ConfigStep(), StepBackStore(), StepFileSource(), StepFileStore(), StepHDF5Source(), StepHDF5Store(), StepMbsEventServerSource(), StepMbsFileSource(), StepMbsPort(), StepMbsRetryCnt(), StepMbsRevServSource(), StepMbsSelection(), StepMbsStreamSource(), StepMbsTransportSource(), StepRandomSource(), StepUserSource(), and StepUserStore().
|
overridevirtual |
Return name of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 746 of file TGo4Script.cxx.
|
overridevirtual |
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 300 of file TGo4Script.cxx.
References fMainWin.
|
protected |
Definition at line 132 of file TGo4Script.cxx.
References fiWaitCounter.
Referenced by TGo4MainWindow::ProcessHotStart().
|
overridevirtual |
Launch analysis in client mode, using default configuration.
Can only work in standard GUI mode
Reimplemented from TGo4AbstractInterface.
Definition at line 305 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts().
Referenced by LaunchAnalysis().
|
overridevirtual |
Launch analysis in client mode.
ClientName | - arbitrary name of analysis, used for display |
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 |
ExeMode | - execution mode: 0 - exe, 1 - library |
UserArgs | - extra arguments for user analysis |
Reimplemented from TGo4AbstractInterface.
Definition at line 313 of file TGo4Script.cxx.
References go4sett, and LaunchAnalysis().
|
overridevirtual |
Display message in GUI status line.
Reimplemented from TGo4AbstractInterface.
Definition at line 294 of file TGo4Script.cxx.
References fMainWin.
Referenced by SetViewPanelName().
|
overrideprotectedvirtual |
Implements TGo4AbstractInterface.
Definition at line 180 of file TGo4Script.cxx.
References Wait().
Referenced by DrawItem(), and SelectPad().
|
staticprotected |
Definition at line 877 of file TGo4Script.cxx.
References TGo4BrowserProxy::BrowserItemName(), TGo4BrowserProxy::BrowserTopSlot(), TGo4AbstractInterface::DefaultPicTitle(), TGo4BrowserProxy::FindAnalysis(), TGo4BrowserProxy::FindServer(), TGo4AnalysisConfiguration::GetAnalysisConfigFile(), TGo4AnalysisConfiguration::GetAutoSaveConfig(), TGo4ConfigStep::GetBackStore(), TGo4HServProxy::GetBaseName(), TGo4ViewPanel::GetCanvas(), TGo4DirProxy::GetFileName(), TGo4ConfigStep::GetFileStore(), TGo4HServProxy::GetFilter(), TGo4ConfigStep::GetHDF5Store(), TGo4ConfigStep::GetMbsFileSource(), TGo4AnalysisConfiguration::GetNumSteps(), TGo4HServProxy::GetPortNumber(), TGo4DabcProxy::GetServerName(), TGo4HServProxy::GetServerName(), TGo4ServerProxy::GetServerName(), TGo4Iter::getslot(), TGo4ConfigStep::GetSourceSetup(), TGo4AnalysisConfiguration::GetStepConfig(), TGo4ConfigStep::GetStepControl(), TGo4ConfigStep::GetStepName(), TGo4ConfigStep::GetStoreSetup(), TGo4HServProxy::GetUserPass(), TGo4ConfigStep::GetUserSource(), Go4_konsole, Go4_lib, Go4_rsh, Go4_ssh, Go4_xterm, go4sett, TGo4MdiArea::Instance(), TGo4ServerProxy::IsAnalysisLaunched(), TGo4ServerProxy::IsAnalysisReady(), TGo4AnalysisProxy::IsAnalysisRunning(), TGo4ServerProxy::IsAnalysisRunning(), TGo4AnalysisProxy::IsAnalysisServer(), TGo4ServerProxy::IsAnalysisSettingsReady(), TGo4BrowserProxy::IsItemMonitored(), TGo4BrowserProxy::ItemKind(), TGo4Access::kndFolder, TGo4Access::kndObject, main(), TGo4BrowserProxy::MakeDabcList(), TGo4BrowserProxy::MakeFilesList(), TGo4BrowserProxy::MakeHServerList(), TGo4BrowserProxy::MakeHttpList(), TGo4ViewPanel::MakePictureForPad(), TGo4BrowserProxy::MonitoringPeriod(), TGo4Iter::next(), TGo4AbstractInterface::ProduceLoadLibs(), TGo4Picture::SavePrimitive(), and TGo4MainWindow.
Referenced by TGo4MainWindow::CreateGUIScriptSlot().
|
overridevirtual |
Forces of panel redraw.
Reimplemented from TGo4AbstractInterface.
Definition at line 780 of file TGo4Script.cxx.
References TGo4ViewPanel::GetCanvas(), and TGo4ViewPanel::RedrawPanel().
|
overridevirtual |
Sends new request to the analysis and waits for new names list.
Reimplemented from TGo4AbstractInterface.
Definition at line 425 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, getCounts(), TGo4ServerProxy::RefreshNamesList(), and TGo4AbstractInterface::Server().
|
staticprotected |
Definition at line 44 of file TGo4Script.cxx.
References TGo4Script(), and TGo4AbstractInterface::Instance().
Referenced by TGo4MainWindow::ConnectHttpServer(), TGo4MainWindow::HotStart(), TGo4MainWindow::ProcessHotStart(), and TGo4MainWindow::StopGUIScriptSlot().
|
overridevirtual |
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 792 of file TGo4Script.cxx.
References TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::GetSubPad(), ProcessEvents(), and TGo4ViewPanel::SetActivePad().
|
overridevirtual |
Set analysis configuration window mode.
mode | indicate that configuration window:
|
Reimplemented from TGo4AbstractInterface.
Definition at line 463 of file TGo4Script.cxx.
References fMainWin.
|
overridevirtual |
Set analysis terminal window mode.
mode | indicate that terminal window:
|
Reimplemented from TGo4AbstractInterface.
Definition at line 449 of file TGo4Script.cxx.
References fMainWin.
|
overridevirtual |
Set apply to all flag for active pad of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 821 of file TGo4Script.cxx.
References TGo4ViewPanel::SetApplyToAllFlag().
|
overridevirtual |
Set geometry of main window.
Reimplemented from TGo4AbstractInterface.
Definition at line 709 of file TGo4Script.cxx.
References fMainWin.
|
overridevirtual |
Set state of all tool boxes in main window.
Reimplemented from TGo4AbstractInterface.
Definition at line 703 of file TGo4Script.cxx.
References fMainWin.
|
overridevirtual |
Set superimpose flag for active pad of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 815 of file TGo4Script.cxx.
References TGo4ViewPanel::GetActivePad(), and TGo4ViewPanel::SetPadSuperImpose().
|
overridevirtual |
Change name of viewpanel.
Reimplemented from TGo4AbstractInterface.
Definition at line 758 of file TGo4Script.cxx.
References fMainWin, Message(), TGo4ViewPanel::SetPanelName(), and TGo4ViewPanel::UpdatePanelCaption().
|
overridevirtual |
Shutdown running analysis.
If analysis is running in server mode, only user with administrator privileges can do this
Reimplemented from TGo4AbstractInterface.
Definition at line 378 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, and getCounts().
|
overridevirtual |
Starts (resume) analysis execution.
Reimplemented from TGo4AbstractInterface.
Definition at line 399 of file TGo4Script.cxx.
References CanConfigureAnalysis(), fBlockConfigFlag, fMainWin, TGo4AbstractInterface::Server(), and Wait().
|
overridevirtual |
Starts fit panel.
Reimplemented from TGo4AbstractInterface.
Definition at line 845 of file TGo4Script.cxx.
References fMainWin.
|
protected |
Definition at line 67 of file TGo4Script.cxx.
References doOutput(), FinishExecution(), fiWaitCounter, fiWaitForGUIReaction, getCounts(), and TGo4AbstractInterface::LoadHotStart().
Referenced by TGo4MainWindow::HotStart().
|
overridevirtual |
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 715 of file TGo4Script.cxx.
References fMainWin.
|
overridevirtual |
Create new viewpanel with specified parameters.
Returns handle of newly created 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.
x | - X coordinate of view panel; |
y | - Y coordinate of view panel; |
width | - panel width; |
height | - panel height; |
mode | - display mode for view panel (0 - minimized, 1 - normal, 2 - maximized); |
pic | - TGo4Picture object, which includes configuration of viewpanel. |
Reimplemented from TGo4AbstractInterface.
Definition at line 720 of file TGo4Script.cxx.
References TGo4AbstractInterface::DefaultPicTitle(), fMainWin, TGo4ViewPanel::GetCanvas(), TGo4ViewPanel::ProcessPictureRedraw(), TGo4ViewPanel::SetFreezedTitle(), and TGo4ViewPanel::ShootRepaintTimer().
|
overridevirtual |
Set back store as step data storage.
Reimplemented from TGo4AbstractInterface.
Definition at line 676 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetBackStore().
|
overridevirtual |
Set file source as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 515 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetFileSource(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set file as step data storage.
Reimplemented from TGo4AbstractInterface.
Definition at line 663 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetFileStore().
|
overridevirtual |
Set hdf5 data source as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 652 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetHDF5Source(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set hdf5 data source as step data storage.
Reimplemented from TGo4AbstractInterface.
Definition at line 694 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetHDF5Store().
|
overridevirtual |
Set MBS event server as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 572 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsEventServerSource(), TGo4ConfigStep::SetMbsSourceWidgets(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set MBS file source as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 526 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsFileSource(), TGo4ConfigStep::SetMbsSourceWidgets(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set custom port number for MBS source like stream or transport server.
Reimplemented from TGo4AbstractInterface.
Definition at line 624 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetMbsPort().
|
overridevirtual |
Set retry number for MBS source like stream or transport server.
Reimplemented from TGo4AbstractInterface.
Definition at line 631 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetMbsRetryCnt().
|
overridevirtual |
Set MBS remote event server as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 587 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsRevServSource(), TGo4ConfigStep::SetMbsSourceWidgets(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set event selection for MBS source.
Reimplemented from TGo4AbstractInterface.
Definition at line 603 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetMbsSourceWidgets().
|
overridevirtual |
Set MBS stream server as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 542 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsSourceWidgets(), TGo4ConfigStep::SetMbsStreamSource(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set MBS transport server as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 557 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetMbsSourceWidgets(), TGo4ConfigStep::SetMbsTransportSource(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set random generator as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 613 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetRandomSource(), and TGo4ConfigStep::SetSourceWidgets().
|
overridevirtual |
Set user data source as step data source.
Reimplemented from TGo4AbstractInterface.
Definition at line 638 of file TGo4Script.cxx.
References GetStepGUI(), TGo4ConfigStep::SetSourceWidgets(), and TGo4ConfigStep::SetUserSource().
|
overridevirtual |
Set user store as step data storage.
Reimplemented from TGo4AbstractInterface.
Definition at line 686 of file TGo4Script.cxx.
References GetStepGUI(), and TGo4ConfigStep::SetUserStore().
|
overridevirtual |
Stop (suspend) analysis execution.
Reimplemented from TGo4AbstractInterface.
Definition at line 412 of file TGo4Script.cxx.
References CanConfigureAnalysis(), fBlockConfigFlag, fMainWin, TGo4AbstractInterface::Server(), and Wait().
|
overridevirtual |
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 388 of file TGo4Script.cxx.
References CanConfigureAnalysis(), DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, and getCounts().
|
overridevirtual |
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 284 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts().
Referenced by ProcessEvents(), StartAnalysis(), and StopAnalysis().
|
overridevirtual |
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 360 of file TGo4Script.cxx.
References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, and getCounts().
|
friend |
Definition at line 26 of file TGo4Script.h.
References TGo4Script(), main(), and TGo4MainWindow.
Referenced by TGo4Script(), ProduceScript(), and TGo4MainWindow.
|
protected |
Definition at line 226 of file TGo4Script.h.
Referenced by TGo4Script(), CanConfigureAnalysis(), StartAnalysis(), and StopAnalysis().
|
protected |
Definition at line 225 of file TGo4Script.h.
Referenced by TGo4Script(), DoPostProcessing(), and FinishExecution().
|
protected |
Definition at line 222 of file TGo4Script.h.
Referenced by TGo4Script(), ConnectAnalysis(), ContinueExecution(), DisconnectAnalysis(), DoPostProcessing(), execGUICommands(), FinishExecution(), IsWaitSomething(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
|
protected |
Definition at line 221 of file TGo4Script.h.
Referenced by TGo4Script(), ConnectAnalysis(), ContinueExecution(), DisconnectAnalysis(), DoPostProcessing(), execGUICommands(), FinishExecution(), LaunchAnalysis(), RefreshNamesList(), ShutdownAnalysis(), StartScriptExecution(), SubmitAnalysisConfig(), Wait(), and WaitAnalysis().
|
protected |
Definition at line 224 of file TGo4Script.h.
Referenced by TGo4Script(), AnalysisAutoSave(), AnalysisConfigName(), ContinueExecution(), DisconnectAnalysis(), doOutput(), DoPostProcessing(), DrawItem(), execGUICommands(), FindViewPanel(), GetStepGUI(), HotStart(), Message(), SetAnalysisConfigMode(), SetAnalysisTerminalMode(), SetMainWindowGeometry(), SetMainWindowState(), SetViewPanelName(), ShutdownAnalysis(), StartAnalysis(), StartFitPanel(), StartViewPanel(), StartViewPanel(), StopAnalysis(), and SubmitAnalysisConfig().
|
protected |
Definition at line 223 of file TGo4Script.h.
Referenced by TGo4Script(), ConnectAnalysis(), and execGUICommands().