Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | Private Attributes

TGo4AbstractInterface Class Reference

#include <TGo4AbstractInterface.h>

Inheritance diagram for TGo4AbstractInterface:
TGo4Interface TGo4Script

List of all members.

Public Member Functions

virtual ~TGo4AbstractInterface ()
TGo4ObjectManagerOM () const
TGo4BrowserProxyBrowser () const
TGo4AnalysisProxyAnalysis ()
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 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)
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 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
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 78 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

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

Configure autosave properties of analysis

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 376 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::AnalysisConfigName ( const char *  filename  )  [inline, virtual]

Configure name of file, where analysis configuration will be saved

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 383 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 137 of file TGo4AbstractInterface.h.

References fBrowser.

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

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

Set basic step property

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 388 of file TGo4AbstractInterface.h.

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

Connect to running analysis server. Parameters: ServerNode - node to connect to, ServerPort - connection port number, UserMode - mode of user operation : 0 - observer, 1 - controller, 2 - administrator password - access password, which should correspond to specified UserMode

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 286 of file TGo4AbstractInterface.h.

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

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

Definition at line 178 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 163 of file TGo4AbstractInterface.cxx.

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

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 231 of file TGo4AbstractInterface.cxx.

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

const char * TGo4AbstractInterface::DefaultPicTitle (  )  [static, protected]

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 hiostogram server connection.

Definition at line 236 of file TGo4AbstractInterface.cxx.

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

virtual void TGo4AbstractInterface::DisconnectAnalysis (  )  [inline, virtual]

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

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 303 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::DivideViewPanel ( ViewPanelHandle  panel,
Int_t  numX,
Int_t  numY 
) [inline, virtual]

Divide viewpanel on subpads.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 521 of file TGo4AbstractInterface.h.

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

Draw browser item on specified viewpanel. Parameters: itemname - browser item name, panel - viewpanel, if panel==0, new viewpanel will be created. drawopt - draw options, used in obj->Draw() operation

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 540 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 190 of file TGo4AbstractInterface.cxx.

References Analysis(), TGo4AnalysisProxy::ExecuteLine(), and Message().

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 137 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 immdediately. 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 241 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 223 of file TGo4AbstractInterface.cxx.

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

virtual ViewPanelHandle TGo4AbstractInterface::FindViewPanel ( const char *  name  )  [inline, virtual]

Return handle on viewpanel with specified name.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 509 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::FreeHotStartCmds (  )  [protected]
virtual ViewPanelHandle TGo4AbstractInterface::GetActiveViewPanel (  )  [inline, virtual]

Return handle of last active viewpanel.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 515 of file TGo4AbstractInterface.h.

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

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 549 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 251 of file TGo4AbstractInterface.cxx.

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

Referenced by TGo4Interface::DrawItem().

virtual TGo4Picture* TGo4AbstractInterface::GetPadOptions ( ViewPanelHandle  panel,
Int_t  padnumber = 0 
) [inline, virtual]

Returns pad options for pad with specified number

Reimplemented in TGo4Script.

Definition at line 530 of file TGo4AbstractInterface.h.

virtual TString TGo4AbstractInterface::GetViewPanelName ( ViewPanelHandle  panel  )  [inline, virtual]

Return name of viewpanel.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 506 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 TGo4Interface, and TGo4Script.

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 addhistos(), divhistos(), fft(), TGo4Script::GetActiveViewPanel(), TGo4Script::ProduceScript(), profileX(), profileY(), projectionX(), projectionY(), rebin(), scalex(), and TGo4Script::ScriptInstance().

Bool_t TGo4AbstractInterface::IsAnalysisConnected (  )  [virtual]

Indicate, if analysis was successfully connected

Definition at line 184 of file TGo4AbstractInterface.cxx.

References Analysis(), and TGo4AnalysisProxy::IsConnected().

Bool_t TGo4AbstractInterface::IsHotStart (  )  [protected]
virtual void TGo4AbstractInterface::LaunchAnalysis (  )  [inline, virtual]

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

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 261 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 
) [inline, virtual]

Launch analysis in client mode. Parameters: ClientName - arbitrary name of analysis, used for diaplay ClientDir - directory, where analysis should be started ClientExec - main analysis executable ClientNode - node name, where analysis should be started ShellMode - shell, used to launch analysis: 1 - rsh, 2 - ssh [default] TermMode - terminal program: 1 - internal Qt window, 2 - xterm, 3 - KDE konsole

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 271 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 106 of file TGo4AbstractInterface.cxx.

virtual void TGo4AbstractInterface::Message ( const char *  msg  )  [inline, virtual]

Display message in GUI status line

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 255 of file TGo4AbstractInterface.h.

Referenced by ExecuteLine().

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 206 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 131 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 122 of file TGo4AbstractInterface.cxx.

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

virtual void TGo4AbstractInterface::ProcessEvents ( Int_t  timeout = -1  )  [protected, pure virtual]

Implemented in TGo4Interface, and TGo4Script.

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

void TGo4AbstractInterface::ProduceLoadLibs ( std::ostream &  fs  )  [static, protected]

Definition at line 320 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 246 of file TGo4AbstractInterface.cxx.

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

virtual void TGo4AbstractInterface::RedrawPanel ( ViewPanelHandle  panel  )  [inline, virtual]

Forces of panel redraw.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 518 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::RefreshNamesList ( int  tmout = 10  )  [inline, virtual]

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

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 350 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::RequestAnalysisConfig (  )  [virtual]

Requests current analysis configuration

Definition at line 199 of file TGo4AbstractInterface.cxx.

References Analysis(), and TGo4AnalysisProxy::RequestAnalysisSettings().

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 130 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 258 of file TGo4AbstractInterface.cxx.

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

virtual TPad* TGo4AbstractInterface::SelectPad ( ViewPanelHandle  panel,
Int_t  number = 0 
) [inline, virtual]

Set active pad on viewpanel. If number==0, main pad (canvas) will be set as active, otherwise one of subpads will be activated. Most of methods, working with viewpanel, acting with active pad of this panel.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 527 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetAnalysisConfigMode ( int  mode  )  [inline, virtual]

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

Reimplemented in TGo4Script.

Definition at line 360 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetAnalysisTerminalMode ( int  mode  )  [inline, virtual]

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

Reimplemented in TGo4Script.

Definition at line 355 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 
) [inline, virtual]

Set geometry of main window

Reimplemented in TGo4Script.

Definition at line 486 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetMainWindowState ( int  qtversion,
const char *  val 
) [inline, virtual]

Set state of all tool boxes in main window

Reimplemented in TGo4Script.

Definition at line 483 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::SetSuperimpose ( ViewPanelHandle  panel,
Bool_t  on = kTRUE 
) [inline, virtual]

Set superimpose flag for active pad of viewpanel.

Reimplemented in TGo4Script.

Definition at line 533 of file TGo4AbstractInterface.h.

virtual Bool_t TGo4AbstractInterface::SetViewPanelName ( ViewPanelHandle  panel,
const char *  newname 
) [inline, virtual]

Change name of viewpanel.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 512 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::ShutdownAnalysis (  )  [inline, virtual]

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

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 308 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StartAnalysis (  )  [inline, virtual]

Starts (resume) analysis execution

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 344 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 213 of file TGo4AbstractInterface.cxx.

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

virtual ViewPanelHandle TGo4AbstractInterface::StartViewPanel (  )  [inline, virtual]

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

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 491 of file TGo4AbstractInterface.h.

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

Create new viewpanel with specified parameters. Returns handle of newly created viewpanel. Parameters: x,y - left top corner coordinate of view panel; width, height - panel size; mode - diplay view panel 0 - minimized, 1 - normal, 2 - maximized; pic - TGo4Picture object, which includes configuration of viewpanel. To understand usage of this method together with TGo4Picture class, one can create and configure viewpanel and then create hotstart file. This file will include complete TGo4Picture configuration, which contains attributes like colors, ranges, pad divisions and so on.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 503 of file TGo4AbstractInterface.h.

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

Set back store ss step data storage

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 475 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
) [inline, virtual]

Set file source as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 394 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepFileStore ( const char *  stepname,
const char *  storename,
bool  overwrite,
int  bufsize,
int  splitlevel,
int  compression 
) [inline, virtual]

Set file as step data storage

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 467 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 
) [inline, virtual]

Set MBS event server as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 424 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 
) [inline, virtual]

Set MBS file source as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 399 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsPort ( const char *  stepname,
int  port 
) [inline, virtual]

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

Reimplemented in TGo4Script.

Definition at line 452 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepMbsRetryCnt ( const char *  stepname,
int  cnt 
) [inline, virtual]

Set retry number for MBS source like stream or transport server

Reimplemented in TGo4Script.

Definition at line 456 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 
) [inline, virtual]

Set MBS remote event server as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 432 of file TGo4AbstractInterface.h.

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

Set event selection for MBS source

Reimplemented in TGo4Script.

Definition at line 441 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 
) [inline, virtual]

Set MBS stream server as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 408 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 
) [inline, virtual]

Set MBS transport server as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 416 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StepRandomSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
) [inline, virtual]

Set random generator as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 447 of file TGo4AbstractInterface.h.

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

Set user data source as step data source

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 460 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::StopAnalysis (  )  [inline, virtual]

Stop (suspend) analysis execution

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 347 of file TGo4AbstractInterface.h.

void TGo4AbstractInterface::StopMonitoring (  )  [virtual]

Stop monitoring mode.

Definition at line 218 of file TGo4AbstractInterface.cxx.

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

virtual void TGo4AbstractInterface::SubmitAnalysisConfig ( int  tmout = 20  )  [inline, virtual]

Submit configuration to analysis.

Configurations can be changed with following methods:

To understand more how these methods can be used together, one should launch analysis, configure it and then generate hotstart file. In this file one can find correct sequence and parameters for all these methods. Timeout defines total time which will be required to get response from analysis that operation was completed.

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 341 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::Wait ( double  tm_sec  )  [inline, virtual]

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

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 252 of file TGo4AbstractInterface.h.

virtual void TGo4AbstractInterface::WaitAnalysis ( Int_t  delay_sec  )  [inline, virtual]

Waits, until connection to analysis is established. Method must be called before any other action like configuration, start/stop can be done. If analysis is connected, IsAnalysisConnected() return kTRUE. delay_sec specifies, how long one should wait until analysis is connected

Reimplemented in TGo4Interface, and TGo4Script.

Definition at line 296 of file TGo4AbstractInterface.h.


Member Data Documentation

TString TGo4AbstractInterface::fInitSharedLibs = "" [static, protected]

Definition at line 89 of file TGo4AbstractInterface.h.

Referenced by ProduceLoadLibs(), and SetInitSharedLibs().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines