GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | Private Attributes | List of all members
TGo4AbstractInterface Class Referenceabstract

#include <TGo4AbstractInterface.h>

+ Inheritance diagram for TGo4AbstractInterface:

Public Member Functions

virtual ~TGo4AbstractInterface ()
 
TGo4ObjectManagerOM () const
 
TGo4BrowserProxyBrowser () const
 
TGo4AnalysisProxyAnalysis ()
 
TGo4ServerProxyServer ()
 
virtual void HotStart (const char *filename)=0
 
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=0)
 
virtual Bool_t ExportToFile (const char *itemname, const char *dirpath, const char *format, const char *filetitle=0)
 
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 TGo4ServerProxyConnectHttp (const char *servername, const char *account=0, const char *pass=0)
 
virtual void Wait (double tm_sec)
 
virtual void Message (const char *msg)
 
virtual void LaunchAnalysis ()
 
virtual 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)
 
virtual void ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t UserMode, const char *password=0)
 
virtual void WaitAnalysis (Int_t delay_sec)
 
virtual Bool_t IsAnalysisConnected ()
 
virtual void DisconnectAnalysis ()
 
virtual void ShutdownAnalysis ()
 
virtual void ExecuteLine (const char *remotecmd)
 
virtual void RequestAnalysisConfig ()
 
virtual void SubmitAnalysisConfig (int tmout=20)
 
virtual void StartAnalysis ()
 
virtual void StopAnalysis ()
 
virtual void RefreshNamesList (int tmout=10)
 
virtual void SetAnalysisTerminalMode (int mode)
 
virtual void SetAnalysisConfigMode (int mode)
 
virtual void MonitorItem (const char *itemname, Bool_t on=kTRUE)
 
virtual void StartMonitoring (Int_t period=10)
 
virtual void StopMonitoring ()
 
virtual void AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite)
 
virtual void AnalysisConfigName (const char *filename)
 
virtual void ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore)
 
virtual void StepFileSource (const char *stepname, const char *sourcename, int timeout)
 
virtual void StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start=0, int stop=0, int interval=0)
 
virtual void StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0)
 
virtual void StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0)
 
virtual void StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0)
 
virtual void StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port=0, int start=0, int stop=0, int interval=0)
 
virtual void StepMbsSelection (const char *stepname, int start, int stop, int interval)
 
virtual void StepRandomSource (const char *stepname, const char *sourcename, int timeout)
 
virtual void StepMbsPort (const char *stepname, int port)
 
virtual void StepMbsRetryCnt (const char *stepname, int cnt)
 
virtual void StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr)
 
virtual void StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression, int autosaveperiod=0)
 
virtual void StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel)
 
virtual void SetMainWindowState (int qtversion, const char *val)
 
virtual void SetMainWindowGeometry (int qtversion, const char *val)
 
virtual ViewPanelHandle StartViewPanel ()
 
virtual ViewPanelHandle StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=0)
 
virtual TString GetViewPanelName (ViewPanelHandle panel)
 
virtual ViewPanelHandle FindViewPanel (const char *name)
 
virtual Bool_t SetViewPanelName (ViewPanelHandle panel, const char *newname)
 
virtual ViewPanelHandle GetActiveViewPanel ()
 
virtual void RedrawPanel (ViewPanelHandle panel)
 
virtual void DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY)
 
virtual TPad * SelectPad (ViewPanelHandle panel, Int_t number=0)
 
virtual TGo4PictureGetPadOptions (ViewPanelHandle panel, Int_t padnumber=0)
 
virtual void SetSuperimpose (ViewPanelHandle panel, Bool_t on=kTRUE)
 
virtual void SetApplyToAll (ViewPanelHandle panel, Bool_t on=kTRUE)
 
virtual Bool_t DrawItem (const char *itemname, ViewPanelHandle panel=0, const char *drawopt=0)
 
virtual void RedrawItem (const char *itemname)
 
virtual const char * GetDrawnItemName (ViewPanelHandle panel, int cnt=0)
 
 ClassDef (TGo4AbstractInterface, 1)
 

Static Public Member Functions

static void SetInitSharedLibs (const char *libs=0)
 
static TGo4AbstractInterfaceInstance ()
 
static void DeleteInstance ()
 
static const char * FileExtension ()
 
static Int_t DelayMillisec ()
 

Protected Member Functions

 TGo4AbstractInterface ()
 
void Initialize (TGo4ObjectManager *om, TGo4BrowserProxy *br)
 list of shared libraries when application is started More...
 
virtual void ProcessEvents (Int_t timeout=-1)=0
 
Bool_t LoadHotStart (const char *filename)
 
Bool_t IsHotStart ()
 
const char * NextHotStartCmd ()
 
void FreeHotStartCmds ()
 

Static Protected Member Functions

static void ProduceLoadLibs (std::ostream &fs)
 
static const char * DefaultPicTitle ()
 

Static Protected Attributes

static TGo4AbstractInterfacefgInstance = 0
 
static TString fInitSharedLibs = ""
 

Private Attributes

TGo4ObjectManagerfOM
 
TGo4BrowserProxyfBrowser
 
TList fxCommands
 

Detailed Description

Definition at line 79 of file TGo4AbstractInterface.h.

Constructor & Destructor Documentation

TGo4AbstractInterface::TGo4AbstractInterface ( )
protected

Constructor

Definition at line 66 of file TGo4AbstractInterface.cxx.

References fgInstance.

TGo4AbstractInterface::~TGo4AbstractInterface ( )
virtual

destructor

Definition at line 87 of file TGo4AbstractInterface.cxx.

References fBrowser, fgInstance, fOM, FreeHotStartCmds(), and TGo4Log::subGO4SYS().

Member Function Documentation

TGo4AnalysisProxy * TGo4AbstractInterface::Analysis ( )

Returns pointer on analysis proxy. TGo4AnalysisProxy class provide access to analysis controlling instance in program. Normally should not be used in GUI script.

Definition at line 101 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::FindAnalysis().

Referenced by TGo4Interface::ConnectAnalysis(), TGo4Interface::DisconnectAnalysis(), TGo4Interface::HandleTimer(), TGo4Interface::ShutdownAnalysis(), TGo4Interface::WaitAnalysis(), and TGo4Interface::~TGo4Interface().

virtual void TGo4AbstractInterface::AnalysisAutoSave ( const char *  filename,
Int_t  interval,
Int_t  compression,
Bool_t  enabled,
Bool_t  overwrite 
)
inlinevirtual

Configure autosave properties of analysis

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 386 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::AnalysisConfigName ( const char *  filename)
inlinevirtual

Configure name of file, where analysis configuration will be saved

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 393 of file TGo4AbstractInterface.h.

TGo4BrowserProxy* TGo4AbstractInterface::Browser ( ) const
inline

Returns pointer on browser proxy. TGo4BrowserProxy class provides complete interface to Go4 browser functionality. Should only be used when interface does not provide required functionality. Can be accessed directly via "br" variable.

Definition at line 138 of file TGo4AbstractInterface.h.

References fBrowser.

Referenced by TGo4Interface::AddAnalysisProxy(), Analysis(), ConnectDabc(), ConnectHServer(), TGo4Script::ConnectHttp(), CopyItem(), DeleteItem(), TGo4Interface::DisconnectAnalysis(), ExportToFile(), FetchItem(), FindItem(), GetObject(), MonitorItem(), OpenFile(), RedrawItem(), SaveToFile(), SaveToMemory(), Server(), TGo4Interface::ShutdownAnalysis(), StartMonitoring(), and StopMonitoring().

TGo4AbstractInterface::ClassDef ( TGo4AbstractInterface  ,
 
)
virtual void TGo4AbstractInterface::ConfigStep ( const char *  stepname,
Bool_t  enableprocess,
Bool_t  enablesource,
Bool_t  enablestore 
)
inlinevirtual

Set basic step property

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 398 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::ConnectAnalysis ( const char *  ServerNode,
Int_t  ServerPort,
Int_t  UserMode,
const char *  password = 0 
)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 296 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::ConnectDabc ( const char *  servername)
virtual

Connect to DABC server. Address like dabc://host:port

Definition at line 182 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::ConnectDabc().

void TGo4AbstractInterface::ConnectHServer ( const char *  servername,
Int_t  portnumber,
const char *  basename,
const char *  userpass,
const char *  filter 
)
virtual

Connect to GSI histogram server. Creates appropriate entry in browser and provides access to histogram. Parameters: servername - IP server name portnumber - socket port number basename - histogram server base name userpass - password to access histogram server filter - filter for historgams names Several connections to different histogram servers are allowed

Definition at line 168 of file TGo4AbstractInterface.cxx.

References Browser(), TGo4BrowserProxy::ConnectHServer(), and ProcessEvents().

virtual TGo4ServerProxy* TGo4AbstractInterface::ConnectHttp ( const char *  servername,
const char *  account = 0,
const char *  pass = 0 
)
inlinevirtual

Connect to HTTP server. Address like http://host:port/subfolder/ authentication may be specified by username account and password pass

Reimplemented in TGo4Script.

Definition at line 257 of file TGo4AbstractInterface.h.

Bool_t TGo4AbstractInterface::CopyItem ( const char *  itemname)
virtual

Copy item to workspace. If there is subfolders with items, they also will be copied.

Definition at line 233 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::ProduceExplicitCopy().

const char * TGo4AbstractInterface::DefaultPicTitle ( )
staticprotected

Returns default hotstart file extension

Definition at line 51 of file TGo4AbstractInterface.cxx.

Referenced by TGo4Script::ProduceScript(), and TGo4Script::StartViewPanel().

Int_t TGo4AbstractInterface::DelayMillisec ( )
static
void TGo4AbstractInterface::DeleteInstance ( )
static

Delete instance of interface class

Definition at line 41 of file TGo4AbstractInterface.cxx.

References fgInstance.

Referenced by TGo4BrowserItem::DeleteItem(), and TGo4MainWindow::~TGo4MainWindow().

Bool_t TGo4AbstractInterface::DeleteItem ( const char *  itemname)
virtual

Delete item (if allowed). Can be used to close file, delete memory object, close histogram server connection.

Definition at line 238 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::DeleteDataSource().

virtual void TGo4AbstractInterface::DisconnectAnalysis ( )
inlinevirtual

Disconnects from running analysis. If analysis is running in client mode, analysis will be shutdown.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 313 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::DivideViewPanel ( ViewPanelHandle  panel,
Int_t  numX,
Int_t  numY 
)
inlinevirtual

Divide viewpanel on subpads.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 532 of file TGo4AbstractInterface.h.

virtual Bool_t TGo4AbstractInterface::DrawItem ( const char *  itemname,
ViewPanelHandle  panel = 0,
const char *  drawopt = 0 
)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 554 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::ExecuteLine ( const char *  remotecmd)
virtual

Execute one macro line on analysis side. This allows to call any action on analysis, including execution scripts with ".x userscript.C". One should not mix scripts, written for analysis and scripts, written for GUI.

Definition at line 192 of file TGo4AbstractInterface.cxx.

References TGo4ServerProxy::ExecuteLine(), TGo4Log::Message(), and Server().

Bool_t TGo4AbstractInterface::ExportToFile ( const char *  itemname,
const char *  dirpath,
const char *  format,
const char *  filetitle = 0 
)
virtual

Export browser item to different file formats. One, probably, should use FetchItem() before calling this method. If item is folder and contains sub-items, they also will be exported. Parameters: itemname - name of browser, which should be exported, dirpath - directory on disk, where files should be created. format - export file format, can be "ASCII" - text format "Radware" - Radware format (Origin) "ROOT" - binary ROOT format "ROOT XML" - xml ROOT format filetitle - title of create file (only for ROOT formats)

Definition at line 142 of file TGo4AbstractInterface.cxx.

References Browser(), TGo4BrowserProxy::BrowserItemName(), TGo4BrowserProxy::ExportItemsTo(), TGo4Iter::getslot(), TGo4BrowserProxy::ItemSlot(), and TGo4Iter::next().

void TGo4AbstractInterface::FetchItem ( const char *  itemname,
Int_t  wait_time = 2000 
)
virtual

Fetch item from data source. Request item from data source, to which item corresponds to. If this is file or histogram server, object will be returned immediately. If this is an item from analysis, first request will be send and then interface will wait "wait_time" milliseconds that object is arrived. If wait_time==0, no waiting will be done and most probably, new object will be assigned to that item several seconds after method is return

Definition at line 243 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::FetchItem().

const char * TGo4AbstractInterface::FileExtension ( )
static

Returns default hotstart file extension

Definition at line 46 of file TGo4AbstractInterface.cxx.

Referenced by TGo4MainWindow::CreateGUIScriptSlot().

TString TGo4AbstractInterface::FindItem ( const char *  objname)
virtual

Find item with given object name. Item name includes object name and name of all parent folders. For instance histogram of name "His1" in analysis will have item name "Analysis/Histograms/His1".

Definition at line 225 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::FindItem().

virtual ViewPanelHandle TGo4AbstractInterface::FindViewPanel ( const char *  name)
inlinevirtual

Return handle on viewpanel with specified name.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 520 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::FreeHotStartCmds ( )
protected
virtual ViewPanelHandle TGo4AbstractInterface::GetActiveViewPanel ( )
inlinevirtual

Return handle of last active viewpanel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 526 of file TGo4AbstractInterface.h.

virtual const char* TGo4AbstractInterface::GetDrawnItemName ( ViewPanelHandle  panel,
int  cnt = 0 
)
inlinevirtual

Provide item name, drawn in the view panel. Optional cnt parameter could specify sequence number in panel, including all subpads

Reimplemented in TGo4Script.

Definition at line 563 of file TGo4AbstractInterface.h.

TObject * TGo4AbstractInterface::GetObject ( const char *  itemname,
Int_t  updatelevel = 1 
)
virtual

Returns object, assigned to specified browser item. Parameter updatelevel specifies, how object will be requested from data source, to which item correspond to. Possible values for updatelevel parameter: 0 - no request will be done, return last requested object 1 - request to data source only first time, no waiting 2 - request to data source in any case, no waiting >9 - request to data source and wait as many milliseconds as specified by updatelevel Wating required, when object requested from the analysis

Definition at line 253 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::GetBrowserObject().

Referenced by TGo4Interface::DrawItem().

virtual TGo4Picture* TGo4AbstractInterface::GetPadOptions ( ViewPanelHandle  panel,
Int_t  padnumber = 0 
)
inlinevirtual

Returns pad options for pad with specified number

Reimplemented in TGo4Script.

Definition at line 541 of file TGo4AbstractInterface.h.

virtual TString TGo4AbstractInterface::GetViewPanelName ( ViewPanelHandle  panel)
inlinevirtual

Return name of viewpanel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 517 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::HotStart ( const char *  filename)
pure 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

Implemented in TGo4Script, and TGo4Interface.

void TGo4AbstractInterface::Initialize ( TGo4ObjectManager om,
TGo4BrowserProxy br 
)
protected

list of shared libraries when application is started

Definition at line 75 of file TGo4AbstractInterface.cxx.

References fBrowser, fOM, and TGo4Log::subGO4SYS().

Referenced by TGo4Interface::TGo4Interface(), and TGo4Script::TGo4Script().

TGo4AbstractInterface * TGo4AbstractInterface::Instance ( )
static

Return pointer on instance of implementation of TGo4AbstractInterface class Normally, inside CINT script one should use "go4" variable, which contains TGo4AbstractInterface::Instance() value.

Definition at line 36 of file TGo4AbstractInterface.cxx.

References fgInstance.

Referenced by TGo4Script::ScriptInstance().

Bool_t TGo4AbstractInterface::IsAnalysisConnected ( )
virtual

Indicate, if analysis was successfully connected

Definition at line 187 of file TGo4AbstractInterface.cxx.

References TGo4ServerProxy::IsConnected(), and Server().

Bool_t TGo4AbstractInterface::IsHotStart ( )
protected
virtual void TGo4AbstractInterface::LaunchAnalysis ( )
inlinevirtual

Launch analysis in client mode, using default configuration. Can only work in standard GUI mode

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 271 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::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 
)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 281 of file TGo4AbstractInterface.h.

Bool_t TGo4AbstractInterface::LoadHotStart ( const char *  filename)
protected
void TGo4AbstractInterface::LoadLibrary ( const char *  fname)
virtual

Load specified ROOT library

Definition at line 111 of file TGo4AbstractInterface.cxx.

virtual void TGo4AbstractInterface::Message ( const char *  msg)
inlinevirtual

Display message in GUI status line

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 265 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::MonitorItem ( const char *  itemname,
Bool_t  on = kTRUE 
)
virtual

Enable/disable monitoring of browser item. In monitoring mode item regularly will be requested from analysis and viewpanels, where item is drawn, will be updated

Definition at line 208 of file TGo4AbstractInterface.cxx.

References Browser(), TGo4BrowserProxy::BrowserSlot(), and TGo4BrowserProxy::SetItemMonitored().

const char * TGo4AbstractInterface::NextHotStartCmd ( )
protected
TGo4ObjectManager* TGo4AbstractInterface::OM ( ) const
inline

Returns pointer on object manager. TGo4ObjectManager class should only be used when standard interface does not provide required functionality. Can be accessed directly via "om" variable.

Definition at line 132 of file TGo4AbstractInterface.h.

References fOM.

Referenced by TGo4Interface::AddAnalysisProxy(), and TGo4Interface::~TGo4Interface().

void TGo4AbstractInterface::OpenFile ( const char *  fname)
virtual

Open specified file in read-only mode* File and its structure should appear in browser.

Definition at line 127 of file TGo4AbstractInterface.cxx.

References Browser(), TGo4BrowserProxy::OpenFile(), and ProcessEvents().

virtual void TGo4AbstractInterface::ProcessEvents ( Int_t  timeout = -1)
protectedpure virtual

Implemented in TGo4Script, and TGo4Interface.

Referenced by ConnectHServer(), OpenFile(), and SaveToMemory().

void TGo4AbstractInterface::ProduceLoadLibs ( std::ostream &  fs)
staticprotected

Definition at line 322 of file TGo4AbstractInterface.cxx.

References fInitSharedLibs, and TGo4Log::GO4SYS().

Referenced by TGo4Script::ProduceScript().

void TGo4AbstractInterface::RedrawItem ( const char *  itemname)
virtual

Redraw item of given name on all viewpanels/editors. Useful for the case, when content of object (histogram, for example) changed directly in script and after that should be updated in viewpanel.

Reimplemented in TGo4Interface.

Definition at line 248 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::RedrawItem().

Referenced by TGo4Interface::RedrawItem().

virtual void TGo4AbstractInterface::RedrawPanel ( ViewPanelHandle  panel)
inlinevirtual

Forces of panel redraw.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 529 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::RefreshNamesList ( int  tmout = 10)
inlinevirtual

Sends new request to the analysis and waits for new names list

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 360 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::RequestAnalysisConfig ( )
virtual

Requests current analysis configuration

Definition at line 201 of file TGo4AbstractInterface.cxx.

References TGo4ServerProxy::RequestAnalysisSettings(), and Server().

Bool_t TGo4AbstractInterface::SaveToFile ( const char *  itemname,
const char *  filename,
const char *  filetitle = 0 
)
virtual

Save specified browser item to file. Only object, which are already fetched from the data source, will be saved. Therefore, before one call this method, one probably should use FetchItem() method to get objects from file/analysis/histogram server before save them. If item is folder and contains sub-items, they also will be saved. Only binary ROOT files (extension .root) and XML file (extension .xml) are supported.

Definition at line 135 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::SaveBrowserToFile().

TString TGo4AbstractInterface::SaveToMemory ( const char *  path,
TObject *  obj,
Bool_t  ownership = kFALSE 
)
virtual

Save object in browser workspace. Object of any type can be saved in browser. It will appear in browser folder "Workspace", where local memory objects are placed. Parameters: path - subpath in "Workspace" folder, where object should be placed obj - pointer ob object ownership - is browser becomes owner of that object If item of that name exists in browser, it will be overwritten by new object Returns path to stored object in browser workspace

Definition at line 260 of file TGo4AbstractInterface.cxx.

References Browser(), ProcessEvents(), and TGo4BrowserProxy::SaveToMemory().

virtual TPad* TGo4AbstractInterface::SelectPad ( ViewPanelHandle  panel,
Int_t  number = 0 
)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 538 of file TGo4AbstractInterface.h.

TGo4ServerProxy * TGo4AbstractInterface::Server ( )
virtual void TGo4AbstractInterface::SetAnalysisConfigMode ( int  mode)
inlinevirtual

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

Reimplemented in TGo4Script.

Definition at line 370 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetAnalysisTerminalMode ( int  mode)
inlinevirtual

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

Reimplemented in TGo4Script.

Definition at line 365 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetApplyToAll ( ViewPanelHandle  panel,
Bool_t  on = kTRUE 
)
inlinevirtual

Set apply to all flag for active pad of viewpanel.

Reimplemented in TGo4Script.

Definition at line 547 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::SetInitSharedLibs ( const char *  libs = 0)
static

method to set initial list of shared libraries, which than will not be included in hostart file

Definition at line 61 of file TGo4AbstractInterface.cxx.

References fInitSharedLibs.

Referenced by main().

virtual void TGo4AbstractInterface::SetMainWindowGeometry ( int  qtversion,
const char *  val 
)
inlinevirtual

Set geometry of main window

Reimplemented in TGo4Script.

Definition at line 497 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetMainWindowState ( int  qtversion,
const char *  val 
)
inlinevirtual

Set state of all tool boxes in main window

Reimplemented in TGo4Script.

Definition at line 494 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetSuperimpose ( ViewPanelHandle  panel,
Bool_t  on = kTRUE 
)
inlinevirtual

Set superimpose flag for active pad of viewpanel.

Reimplemented in TGo4Script.

Definition at line 544 of file TGo4AbstractInterface.h.

virtual Bool_t TGo4AbstractInterface::SetViewPanelName ( ViewPanelHandle  panel,
const char *  newname 
)
inlinevirtual

Change name of viewpanel.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 523 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::ShutdownAnalysis ( )
inlinevirtual

Shutdown running analysis. If analysis is running in server mode, only user with administrator privileges can do this

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 318 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StartAnalysis ( )
inlinevirtual

Starts (resume) analysis execution

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 354 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::StartMonitoring ( Int_t  period = 10)
virtual

Start monitoring mode. Parameter "period" specifies how often (in seconds) each monitored item will be updated.

Definition at line 215 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::ToggleMonitoring().

virtual ViewPanelHandle TGo4AbstractInterface::StartViewPanel ( )
inlinevirtual

Create new view panel. Handle, returned by this method, must be used for other operation, like DivideViewPanel() or SelectPad()

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 502 of file TGo4AbstractInterface.h.

virtual ViewPanelHandle TGo4AbstractInterface::StartViewPanel ( int  x,
int  y,
int  width,
int  height,
int  mode = 1,
TGo4Picture pic = 0 
)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 514 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepBackStore ( const char *  stepname,
const char *  storename,
int  bufsize,
int  splitlevel 
)
inlinevirtual

Set back store as step data storage

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 486 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
)
inlinevirtual

Set file source as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 404 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepFileStore ( const char *  stepname,
const char *  storename,
bool  overwrite,
int  bufsize,
int  splitlevel,
int  compression,
int  autosaveperiod = 0 
)
inlinevirtual

Set file as step data storage

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 477 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsEventServerSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
inlinevirtual

Set MBS event server as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 434 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
const char *  TagFile,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
inlinevirtual

Set MBS file source as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 409 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsPort ( const char *  stepname,
int  port 
)
inlinevirtual

Set custom port number for MBS source like stream or transport server

Reimplemented in TGo4Script.

Definition at line 462 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsRetryCnt ( const char *  stepname,
int  cnt 
)
inlinevirtual

Set retry number for MBS source like stream or transport server

Reimplemented in TGo4Script.

Definition at line 466 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsRevServSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  port = 0,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
inlinevirtual

Set MBS remote event server as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 442 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsSelection ( const char *  stepname,
int  start,
int  stop,
int  interval 
)
inlinevirtual

Set event selection for MBS source

Reimplemented in TGo4Script.

Definition at line 451 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsStreamSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
inlinevirtual

Set MBS stream server as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 418 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsTransportSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
)
inlinevirtual

Set MBS transport server as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 426 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepRandomSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
)
inlinevirtual

Set random generator as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 457 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepUserSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  port,
const char *  expr 
)
inlinevirtual

Set user data source as step data source

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 470 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StopAnalysis ( )
inlinevirtual

Stop (suspend) analysis execution

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 357 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::StopMonitoring ( )
virtual

Stop monitoring mode.

Definition at line 220 of file TGo4AbstractInterface.cxx.

References Browser(), and TGo4BrowserProxy::ToggleMonitoring().

virtual void TGo4AbstractInterface::SubmitAnalysisConfig ( int  tmout = 20)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 351 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::Wait ( double  tm_sec)
inlinevirtual

Wait specified number of seconds. Suppress macro execution, but keeps GUI functional, therefore it is different from gSystem->Sleep() call.

Reimplemented in TGo4Script, and TGo4Interface.

Definition at line 262 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::WaitAnalysis ( Int_t  delay_sec)
inlinevirtual

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 in TGo4Script, and TGo4Interface.

Definition at line 306 of file TGo4AbstractInterface.h.

Member Data Documentation

TGo4BrowserProxy* TGo4AbstractInterface::fBrowser
private

Definition at line 82 of file TGo4AbstractInterface.h.

Referenced by Browser(), Initialize(), and ~TGo4AbstractInterface().

TGo4AbstractInterface * TGo4AbstractInterface::fgInstance = 0
staticprotected
TString TGo4AbstractInterface::fInitSharedLibs = ""
staticprotected

Definition at line 90 of file TGo4AbstractInterface.h.

Referenced by ProduceLoadLibs(), and SetInitSharedLibs().

TGo4ObjectManager* TGo4AbstractInterface::fOM
private

Definition at line 81 of file TGo4AbstractInterface.h.

Referenced by Initialize(), OM(), and ~TGo4AbstractInterface().

TList TGo4AbstractInterface::fxCommands
private

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