GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
TGo4Script Class Reference

#include <TGo4Script.h>

+ Inheritance diagram for TGo4Script:

Public Member Functions

 TGo4Script (TGo4MainWindow *mainwin)
 
virtual ~TGo4Script ()
 
void Wait (double tm_sec) override
 
void HotStart (const char *filename) override
 
void Message (const char *msg) override
 
void LaunchAnalysis () override
 
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
 
void ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t ControllerMode, const char *password=nullptr) override
 
void WaitAnalysis (Int_t delay_sec) override
 
void DisconnectAnalysis () override
 
void ShutdownAnalysis () override
 
void SubmitAnalysisConfig (int tmout=20) override
 
void StartAnalysis () override
 
void StopAnalysis () override
 
void RefreshNamesList (int tmout=10) override
 
void SetAnalysisTerminalMode (int mode) override
 
void SetAnalysisConfigMode (int mode) override
 
void AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite) override
 
void AnalysisConfigName (const char *filename) override
 
void ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore) override
 
void StepFileSource (const char *stepname, const char *sourcename, int timeout) override
 
void StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start=0, int stop=0, int interval=0) override
 
void StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) override
 
void StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) override
 
void StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0) override
 
void StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port=0, int start=0, int stop=0, int interval=0) override
 
void StepMbsSelection (const char *stepname, int start, int stop, int interval) override
 
void StepRandomSource (const char *stepname, const char *sourcename, int timeout) override
 
void StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr) override
 
void StepHDF5Source (const char *stepname, const char *sourcename, int timeout) override
 
void StepMbsPort (const char *stepname, int port) override
 
void StepMbsRetryCnt (const char *stepname, int cnt) override
 
void StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression, int autosaveperiod=10000) override
 
void StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel) override
 
void StepUserStore (const char *stepname, const char *storename) override
 
void StepHDF5Store (const char *stepname, const char *storename, int flags) override
 
void SetMainWindowState (int qtversion, const char *val) override
 
void SetMainWindowGeometry (int qtversion, const char *val) override
 
ViewPanelHandle StartViewPanel () override
 
ViewPanelHandle StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=nullptr) override
 
TString GetViewPanelName (ViewPanelHandle panel) override
 
ViewPanelHandle FindViewPanel (const char *name) override
 
Bool_t SetViewPanelName (ViewPanelHandle panel, const char *newname) override
 
ViewPanelHandle GetActiveViewPanel () override
 
void RedrawPanel (ViewPanelHandle handle) override
 
void DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY) override
 
TPad * SelectPad (ViewPanelHandle panel, Int_t number=0) override
 
TGo4PictureGetPadOptions (ViewPanelHandle panel, Int_t padnumber=0) override
 
void SetSuperimpose (ViewPanelHandle panel, Bool_t on=kTRUE) override
 
void SetApplyToAll (ViewPanelHandle panel, Bool_t on=kTRUE) override
 
void StartFitPanel () override
 
Bool_t DrawItem (const char *itemname, ViewPanelHandle panel=nullptr, const char *drawopt=nullptr) override
 
const char * GetDrawnItemName (ViewPanelHandle panel, int cnt=0) override
 
TGo4ServerProxyConnectHttp (const char *servername, const char *account=nullptr, const char *pass=nullptr) override
 
- Public Member Functions inherited from TGo4AbstractInterface
virtual ~TGo4AbstractInterface ()
 
TGo4ObjectManagerOM () const
 
TGo4BrowserProxyBrowser () const
 
TGo4AnalysisProxyAnalysis ()
 
TGo4ServerProxyServer ()
 
virtual void LoadLibrary (const char *fname)
 
virtual void OpenFile (const char *fname)
 
virtual TString FindItem (const char *objname)
 
virtual Bool_t CopyItem (const char *itemname)
 
virtual Bool_t DeleteItem (const char *itemname)
 
virtual void FetchItem (const char *itemname, Int_t wait_time=2000)
 
virtual TObject * GetObject (const char *itemname, Int_t updatelevel=1)
 
virtual TString SaveToMemory (const char *path, TObject *obj, Bool_t ownership=kFALSE)
 
virtual Bool_t SaveToFile (const char *itemname, const char *filename, const char *filetitle=nullptr)
 
virtual Bool_t ExportToFile (const char *itemname, const char *dirpath, const char *format, const char *filetitle=nullptr)
 
virtual void ConnectHServer (const char *servername, Int_t portnumber, const char *basename, const char *userpass, const char *filter)
 
virtual void ConnectDabc (const char *servername)
 
virtual Bool_t IsAnalysisConnected ()
 
virtual void ExecuteLine (const char *remotecmd)
 
virtual void RequestAnalysisConfig ()
 
virtual void MonitorItem (const char *itemname, Bool_t on=kTRUE)
 
virtual void StartMonitoring (Int_t period=10)
 
virtual void StopMonitoring ()
 
virtual void RedrawItem (const char *itemname)
 
 ClassDefOverride (TGo4AbstractInterface, 1)
 

Protected Member Functions

void ProcessEvents (Int_t timeout=-1) override
 
Bool_t CanConfigureAnalysis ()
 
Bool_t StartScriptExecution (const char *fname)
 
Bool_t ContinueExecution ()
 
void FinishExecution ()
 
Bool_t IsWaitSomething () const
 
TGo4ConfigStepGetStepGUI (const char *stepname)
 
Int_t getCounts (Double_t time)
 
void doOutput (const char *str)
 
Int_t execGUICommands ()
 
void DoPostProcessing ()
 
- Protected Member Functions inherited from TGo4AbstractInterface
 TGo4AbstractInterface ()
 
void Initialize (TGo4ObjectManager *om, TGo4BrowserProxy *br)
 list of shared libraries when application is started More...
 
Bool_t LoadHotStart (const char *filename)
 
Bool_t IsHotStart () const
 
const char * NextHotStartCmd ()
 
void FreeHotStartCmds ()
 

Static Protected Member Functions

static TGo4ScriptScriptInstance ()
 
static void ProduceScript (const char *filename, TGo4MainWindow *main)
 
- Static Protected Member Functions inherited from TGo4AbstractInterface
static void ProduceLoadLibs (std::ostream &fs)
 
static const char * DefaultPicTitle ()
 

Protected Attributes

Int_t fiWaitForGUIReaction {0}
 
Int_t fiWaitCounter {0}
 
TString fStrBuf
 
TGo4MainWindowfMainWin {nullptr}
 
Bool_t fErrorFlag {kFALSE}
 
Int_t fBlockConfigFlag {0}
 

Friends

class TGo4MainWindow
 

Additional Inherited Members

- Static Public Member Functions inherited from TGo4AbstractInterface
static void SetInitSharedLibs (const char *libs=nullptr)
 
static TGo4AbstractInterfaceInstance ()
 
static void DeleteInstance ()
 
static const char * FileExtension ()
 
static Int_t DelayMillisec ()
 
- Static Protected Attributes inherited from TGo4AbstractInterface
static TGo4AbstractInterfacefgInstance = nullptr
 
static TString fInitSharedLibs = ""
 

Detailed Description

Definition at line 24 of file TGo4Script.h.

Constructor & Destructor Documentation

◆ TGo4Script()

TGo4Script::TGo4Script ( TGo4MainWindow mainwin)

◆ ~TGo4Script()

TGo4Script::~TGo4Script ( )
virtual

Definition at line 62 of file TGo4Script.cxx.

Member Function Documentation

◆ AnalysisAutoSave()

void TGo4Script::AnalysisAutoSave ( const char *  filename,
Int_t  interval,
Int_t  compression,
Bool_t  enabled,
Bool_t  overwrite 
)
overridevirtual

Configure autosave properties of analysis

Reimplemented from TGo4AbstractInterface.

Definition at line 477 of file TGo4Script.cxx.

References CanConfigureAnalysis(), TGo4MainWindow::FindAnalysisConfiguration(), fMainWin, and TGo4AnalysisConfiguration::SetAutoSaveConfig().

◆ AnalysisConfigName()

void TGo4Script::AnalysisConfigName ( const char *  filename)
overridevirtual

Configure name of file, where analysis configuration will be saved

Reimplemented from TGo4AbstractInterface.

Definition at line 488 of file TGo4Script.cxx.

References CanConfigureAnalysis(), TGo4MainWindow::FindAnalysisConfiguration(), fMainWin, and TGo4AnalysisConfiguration::SetAnalysisConfigFile().

◆ CanConfigureAnalysis()

Bool_t TGo4Script::CanConfigureAnalysis ( )
protected

◆ ConfigStep()

void TGo4Script::ConfigStep ( const char *  stepname,
Bool_t  enableprocess,
Bool_t  enablesource,
Bool_t  enablestore 
)
overridevirtual

Set basic step property

Reimplemented from TGo4AbstractInterface.

Definition at line 505 of file TGo4Script.cxx.

References GetStepGUI(), and TGo4ConfigStep::SetStepControl().

◆ ConnectAnalysis()

void TGo4Script::ConnectAnalysis ( const char *  ServerNode,
Int_t  ServerPort,
Int_t  UserMode,
const char *  password = nullptr 
)
overridevirtual

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 344 of file TGo4Script.cxx.

References DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fStrBuf, getCounts(), go4sett, TGo4QSettings::setClientControllerMode(), TGo4QSettings::setClientDefaultPass(), TGo4QSettings::setClientNode(), and TGo4QSettings::setClientPort().

◆ ConnectHttp()

TGo4ServerProxy * TGo4Script::ConnectHttp ( const char *  servername,
const char *  account = nullptr,
const char *  pass = nullptr 
)
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().

◆ ContinueExecution()

Bool_t TGo4Script::ContinueExecution ( )
protected

◆ DisconnectAnalysis()

void TGo4Script::DisconnectAnalysis ( )
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 TGo4MainWindow::DisconnectAnalysis(), DoPostProcessing(), fiWaitCounter, fiWaitForGUIReaction, fMainWin, and getCounts().

◆ DivideViewPanel()

void TGo4Script::DivideViewPanel ( ViewPanelHandle  panel,
Int_t  numX,
Int_t  numY 
)
overridevirtual

Divide viewpanel on subpads.

Reimplemented from TGo4AbstractInterface.

Definition at line 786 of file TGo4Script.cxx.

References TGo4ViewPanel::Divide().

◆ doOutput()

void TGo4Script::doOutput ( const char *  str)
protected

◆ DoPostProcessing()

void TGo4Script::DoPostProcessing ( )
protected

◆ DrawItem()

Bool_t TGo4Script::DrawItem ( const char *  itemname,
ViewPanelHandle  panel = nullptr,
const char *  drawopt = nullptr 
)
overridevirtual

Draw browser item on specified viewpanel. Parameters: 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 TGo4MainWindow::DisplayBrowserItem(), fMainWin, and ProcessEvents().

◆ execGUICommands()

Int_t TGo4Script::execGUICommands ( )
protected

◆ FindViewPanel()

ViewPanelHandle TGo4Script::FindViewPanel ( const char *  name)
overridevirtual

Return handle on viewpanel with specified name.

Reimplemented from TGo4AbstractInterface.

Definition at line 753 of file TGo4Script.cxx.

References TGo4MainWindow::FindViewPanel(), and fMainWin.

◆ FinishExecution()

void TGo4Script::FinishExecution ( )
protected

◆ GetActiveViewPanel()

ViewPanelHandle TGo4Script::GetActiveViewPanel ( )
overridevirtual

Return handle of last active viewpanel.

Reimplemented from TGo4AbstractInterface.

Definition at line 775 of file TGo4Script.cxx.

References TGo4MdiArea::GetActivePanel(), and TGo4MdiArea::Instance().

◆ getCounts()

Int_t TGo4Script::getCounts ( Double_t  time)
protected

◆ GetDrawnItemName()

const char * TGo4Script::GetDrawnItemName ( ViewPanelHandle  panel,
int  cnt = 0 
)
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().

◆ GetPadOptions()

TGo4Picture * TGo4Script::GetPadOptions ( ViewPanelHandle  panel,
Int_t  padnumber = 0 
)
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().

◆ GetStepGUI()

TGo4ConfigStep * TGo4Script::GetStepGUI ( const char *  stepname)
protected

◆ GetViewPanelName()

TString TGo4Script::GetViewPanelName ( ViewPanelHandle  panel)
overridevirtual

Return name of viewpanel.

Reimplemented from TGo4AbstractInterface.

Definition at line 746 of file TGo4Script.cxx.

◆ HotStart()

void TGo4Script::HotStart ( const char *  filename)
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, and TGo4MainWindow::HotStart().

◆ IsWaitSomething()

Bool_t TGo4Script::IsWaitSomething ( ) const
protected

Definition at line 132 of file TGo4Script.cxx.

References fiWaitCounter.

Referenced by TGo4MainWindow::ProcessHotStart().

◆ LaunchAnalysis() [1/2]

void TGo4Script::LaunchAnalysis ( )
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().

◆ LaunchAnalysis() [2/2]

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 = nullptr 
)
overridevirtual

Launch analysis in client mode. Parameters: 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

Reimplemented from TGo4AbstractInterface.

Definition at line 313 of file TGo4Script.cxx.

References go4sett, LaunchAnalysis(), TGo4QSettings::setClientArgs(), TGo4QSettings::setClientDir(), TGo4QSettings::setClientExec(), TGo4QSettings::setClientExeMode(), TGo4QSettings::setClientIsServer(), TGo4QSettings::setClientName(), TGo4QSettings::setClientNode(), TGo4QSettings::setClientPort(), TGo4QSettings::setClientShellMode(), and TGo4QSettings::setClientTermMode().

◆ Message()

void TGo4Script::Message ( const char *  msg)
overridevirtual

Display message in GUI status line

Reimplemented from TGo4AbstractInterface.

Definition at line 294 of file TGo4Script.cxx.

References fMainWin, and TGo4MainWindow::StatusMessage().

Referenced by SetViewPanelName().

◆ ProcessEvents()

void TGo4Script::ProcessEvents ( Int_t  timeout = -1)
overrideprotectedvirtual

Implements TGo4AbstractInterface.

Definition at line 180 of file TGo4Script.cxx.

References Wait().

Referenced by DrawItem(), and SelectPad().

◆ ProduceScript()

void TGo4Script::ProduceScript ( const char *  filename,
TGo4MainWindow main 
)
staticprotected

Definition at line 877 of file TGo4Script.cxx.

References TGo4MainWindow::Browser(), TGo4BrowserProxy::BrowserItemName(), TGo4BrowserProxy::BrowserTopSlot(), TGo4AbstractInterface::DefaultPicTitle(), TGo4BrowserProxy::FindAnalysis(), TGo4MainWindow::FindAnalysisConfiguration(), TGo4MainWindow::FindAnalysisWindow(), TGo4BrowserProxy::FindServer(), TGo4AnalysisConfiguration::GetAnalysisConfigFile(), TGo4AnalysisConfiguration::GetAutoSaveConfig(), TGo4ConfigStep::GetBackStore(), TGo4HServProxy::GetBaseName(), TGo4ViewPanel::GetCanvas(), TGo4QSettings::getClientArgs(), TGo4QSettings::getClientControllerMode(), TGo4QSettings::getClientDefaultPass(), TGo4QSettings::getClientDir(), TGo4QSettings::getClientExec(), TGo4QSettings::getClientExeMode(), TGo4QSettings::getClientIsServer(), TGo4QSettings::getClientName(), TGo4QSettings::getClientNode(), TGo4QSettings::getClientPort(), TGo4QSettings::getClientShellMode(), TGo4QSettings::getClientTermMode(), TGo4DirProxy::GetFileName(), TGo4ConfigStep::GetFileStore(), TGo4HServProxy::GetFilter(), TGo4ConfigStep::GetHDF5Store(), TGo4ConfigStep::GetMbsFileSource(), TGo4AnalysisConfiguration::GetNumSteps(), TGo4HServProxy::GetPortNumber(), TGo4DabcProxy::GetServerName(), TGo4ServerProxy::GetServerName(), TGo4HServProxy::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(), TGo4ServerProxy::IsAnalysisRunning(), TGo4AnalysisProxy::IsAnalysisRunning(), TGo4AnalysisProxy::IsAnalysisServer(), TGo4ServerProxy::IsAnalysisSettingsReady(), TGo4BrowserProxy::IsItemMonitored(), TGo4BrowserProxy::ItemKind(), TGo4Access::kndFolder, TGo4Access::kndObject, TGo4MainWindow::LastTypedPassword(), TGo4BrowserProxy::MakeDabcList(), TGo4BrowserProxy::MakeFilesList(), TGo4BrowserProxy::MakeHServerList(), TGo4BrowserProxy::MakeHttpList(), TGo4ViewPanel::MakePictureForPad(), TGo4BrowserProxy::MonitoringPeriod(), TGo4Iter::next(), and TGo4AbstractInterface::ProduceLoadLibs().

Referenced by TGo4MainWindow::CreateGUIScriptSlot().

◆ RedrawPanel()

void TGo4Script::RedrawPanel ( ViewPanelHandle  panel)
overridevirtual

Forces of panel redraw.

Reimplemented from TGo4AbstractInterface.

Definition at line 780 of file TGo4Script.cxx.

References TGo4ViewPanel::GetCanvas(), and TGo4ViewPanel::RedrawPanel().

◆ RefreshNamesList()

void TGo4Script::RefreshNamesList ( int  tmout = 10)
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().

◆ ScriptInstance()

TGo4Script * TGo4Script::ScriptInstance ( )
staticprotected

◆ SelectPad()

TPad * TGo4Script::SelectPad ( ViewPanelHandle  panel,
Int_t  number = 0 
)
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().

◆ SetAnalysisConfigMode()

void TGo4Script::SetAnalysisConfigMode ( int  mode)
overridevirtual

Set analysis configuration window mode. Parameters mode indicate that configuration window: -1 - closed, 0 - minimized, 1 - normal state

Reimplemented from TGo4AbstractInterface.

Definition at line 463 of file TGo4Script.cxx.

References TGo4MainWindow::FindAnalysisConfiguration(), and fMainWin.

◆ SetAnalysisTerminalMode()

void TGo4Script::SetAnalysisTerminalMode ( int  mode)
overridevirtual

Set analysis terminal window mode. Parameters mode indicate that terminal window: -1 - closed, 0 - minimized, 1 - normal state

Reimplemented from TGo4AbstractInterface.

Definition at line 449 of file TGo4Script.cxx.

References TGo4MainWindow::FindAnalysisWindow(), and fMainWin.

◆ SetApplyToAll()

void TGo4Script::SetApplyToAll ( ViewPanelHandle  panel,
Bool_t  on = kTRUE 
)
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().

◆ SetMainWindowGeometry()

void TGo4Script::SetMainWindowGeometry ( int  qtversion,
const char *  val 
)
overridevirtual

Set geometry of main window

Reimplemented from TGo4AbstractInterface.

Definition at line 709 of file TGo4Script.cxx.

References fMainWin.

◆ SetMainWindowState()

void TGo4Script::SetMainWindowState ( int  qtversion,
const char *  val 
)
overridevirtual

Set state of all tool boxes in main window

Reimplemented from TGo4AbstractInterface.

Definition at line 703 of file TGo4Script.cxx.

References fMainWin.

◆ SetSuperimpose()

void TGo4Script::SetSuperimpose ( ViewPanelHandle  panel,
Bool_t  on = kTRUE 
)
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().

◆ SetViewPanelName()

Bool_t TGo4Script::SetViewPanelName ( ViewPanelHandle  panel,
const char *  newname 
)
overridevirtual

Change name of viewpanel.

Reimplemented from TGo4AbstractInterface.

Definition at line 758 of file TGo4Script.cxx.

References TGo4MainWindow::FindViewPanel(), fMainWin, Message(), TGo4ViewPanel::SetPanelName(), and TGo4ViewPanel::UpdatePanelCaption().

◆ ShutdownAnalysis()

void TGo4Script::ShutdownAnalysis ( )
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, getCounts(), and TGo4MainWindow::ShutdownAnalysis().

◆ StartAnalysis()

void TGo4Script::StartAnalysis ( )
overridevirtual

Starts (resume) analysis execution

Reimplemented from TGo4AbstractInterface.

Definition at line 399 of file TGo4Script.cxx.

References CanConfigureAnalysis(), fBlockConfigFlag, fMainWin, TGo4AbstractInterface::Server(), TGo4MainWindow::StartAnalysisSlot(), and Wait().

◆ StartFitPanel()

void TGo4Script::StartFitPanel ( )
overridevirtual

Reimplemented from TGo4AbstractInterface.

Definition at line 845 of file TGo4Script.cxx.

References fMainWin, and TGo4MainWindow::StartFitPanel().

◆ StartScriptExecution()

Bool_t TGo4Script::StartScriptExecution ( const char *  fname)
protected

◆ StartViewPanel() [1/2]

ViewPanelHandle TGo4Script::StartViewPanel ( )
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, and TGo4MainWindow::MakeNewPanel().

◆ StartViewPanel() [2/2]

ViewPanelHandle TGo4Script::StartViewPanel ( int  x,
int  y,
int  width,
int  height,
int  mode = 1,
TGo4Picture pic = nullptr 
)
overridevirtual

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 - display mode for 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 720 of file TGo4Script.cxx.

References TGo4AbstractInterface::DefaultPicTitle(), fMainWin, TGo4ViewPanel::GetCanvas(), TGo4MainWindow::MakeNewPanel(), TGo4ViewPanel::ProcessPictureRedraw(), TGo4ViewPanel::SetFreezedTitle(), and TGo4ViewPanel::ShootRepaintTimer().

◆ StepBackStore()

void TGo4Script::StepBackStore ( const char *  stepname,
const char *  storename,
int  bufsize,
int  splitlevel 
)
overridevirtual

Set back store as step data storage

Reimplemented from TGo4AbstractInterface.

Definition at line 676 of file TGo4Script.cxx.

References GetStepGUI(), and TGo4ConfigStep::SetBackStore().

◆ StepFileSource()

void TGo4Script::StepFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
)
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().

◆ StepFileStore()

void TGo4Script::StepFileStore ( const char *  stepname,
const char *  storename,
bool  overwrite,
int  bufsize,
int  splitlevel,
int  compression,
int  autosaveperiod = 10000 
)
overridevirtual

Set file as step data storage

Reimplemented from TGo4AbstractInterface.

Definition at line 663 of file TGo4Script.cxx.

References GetStepGUI(), and TGo4ConfigStep::SetFileStore().

◆ StepHDF5Source()

void TGo4Script::StepHDF5Source ( const char *  stepname,
const char *  sourcename,
int  timeout 
)
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().

◆ StepHDF5Store()

void TGo4Script::StepHDF5Store ( const char *  stepname,
const char *  storename,
int  flags 
)
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().

◆ StepMbsEventServerSource()

void TGo4Script::StepMbsEventServerSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
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().

◆ StepMbsFileSource()

void TGo4Script::StepMbsFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
const char *  TagFile,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
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().

◆ StepMbsPort()

void TGo4Script::StepMbsPort ( const char *  stepname,
int  port 
)
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().

◆ StepMbsRetryCnt()

void TGo4Script::StepMbsRetryCnt ( const char *  stepname,
int  cnt 
)
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().

◆ StepMbsRevServSource()

void TGo4Script::StepMbsRevServSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  port = 0,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
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().

◆ StepMbsSelection()

void TGo4Script::StepMbsSelection ( const char *  stepname,
int  start,
int  stop,
int  interval 
)
overridevirtual

Set event selection for MBS source

Reimplemented from TGo4AbstractInterface.

Definition at line 603 of file TGo4Script.cxx.

References GetStepGUI(), and TGo4ConfigStep::SetMbsSourceWidgets().

◆ StepMbsStreamSource()

void TGo4Script::StepMbsStreamSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
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().

◆ StepMbsTransportSource()

void TGo4Script::StepMbsTransportSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
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().

◆ StepRandomSource()

void TGo4Script::StepRandomSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
)
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().

◆ StepUserSource()

void TGo4Script::StepUserSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  port,
const char *  expr 
)
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().

◆ StepUserStore()

void TGo4Script::StepUserStore ( const char *  stepname,
const char *  storename 
)
overridevirtual

Set user store as step data storage

Reimplemented from TGo4AbstractInterface.

Definition at line 686 of file TGo4Script.cxx.

References GetStepGUI(), and TGo4ConfigStep::SetUserStore().

◆ StopAnalysis()

void TGo4Script::StopAnalysis ( )
overridevirtual

Stop (suspend) analysis execution

Reimplemented from TGo4AbstractInterface.

Definition at line 412 of file TGo4Script.cxx.

References CanConfigureAnalysis(), fBlockConfigFlag, fMainWin, TGo4AbstractInterface::Server(), TGo4MainWindow::StopAnalysisSlot(), and Wait().

◆ SubmitAnalysisConfig()

void TGo4Script::SubmitAnalysisConfig ( int  tmout = 20)
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, getCounts(), and TGo4MainWindow::SubmitAnalysisSettings().

◆ Wait()

void TGo4Script::Wait ( double  tm_sec)
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().

◆ WaitAnalysis()

void TGo4Script::WaitAnalysis ( Int_t  delay_sec)
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().

Friends And Related Function Documentation

◆ TGo4MainWindow

friend class TGo4MainWindow
friend

Definition at line 26 of file TGo4Script.h.

Member Data Documentation

◆ fBlockConfigFlag

Int_t TGo4Script::fBlockConfigFlag {0}
protected

Definition at line 226 of file TGo4Script.h.

Referenced by CanConfigureAnalysis(), StartAnalysis(), and StopAnalysis().

◆ fErrorFlag

Bool_t TGo4Script::fErrorFlag {kFALSE}
protected

Definition at line 225 of file TGo4Script.h.

Referenced by DoPostProcessing(), and FinishExecution().

◆ fiWaitCounter

Int_t TGo4Script::fiWaitCounter {0}
protected

◆ fiWaitForGUIReaction

Int_t TGo4Script::fiWaitForGUIReaction {0}
protected

◆ fMainWin

TGo4MainWindow* TGo4Script::fMainWin {nullptr}
protected

◆ fStrBuf

TString TGo4Script::fStrBuf
protected

Definition at line 223 of file TGo4Script.h.

Referenced by ConnectAnalysis(), and execGUICommands().


The documentation for this class was generated from the following files: