Public Member Functions | Protected Member Functions | Protected Attributes

TGo4Interface Class Reference

#include <TGo4Interface.h>

Inheritance diagram for TGo4Interface:
TGo4AbstractInterface

List of all members.

Public Member Functions

 TGo4Interface ()
 TGo4Interface (const TGo4Interface &)
virtual ~TGo4Interface ()
void Wait (double tm_sec)
void HotStart (const char *filename)
void Message (const char *msg)
void LaunchAnalysis ()
void LaunchAnalysis (const char *ClientName, const char *ClientDir, const char *ClientExec, const char *ClientNode, Int_t ShellMode=2, Int_t TermMode=1, Int_t ExeMode=0, const char *UserArgs=0)
void ConnectAnalysis (const char *ServerNode, Int_t ServerPort, Int_t ControllerMode, const char *password=0)
void WaitAnalysis (Int_t delay_sec)
void DisconnectAnalysis ()
void ShutdownAnalysis ()
void SubmitAnalysisConfig (int tmout=20)
void StartAnalysis ()
void StopAnalysis ()
void RefreshNamesList (int tmout=10)
void AnalysisAutoSave (const char *filename, Int_t interval, Int_t compression, Bool_t enabled, Bool_t overwrite)
void AnalysisConfigName (const char *filename)
void ConfigStep (const char *stepname, Bool_t enableprocess, Bool_t enablesource, Bool_t enablestore)
void StepFileSource (const char *stepname, const char *sourcename, int timeout)
void StepMbsFileSource (const char *stepname, const char *sourcename, int timeout, const char *TagFile, int start=0, int stop=0, int interval=0)
void StepMbsStreamSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0)
void StepMbsTransportSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0)
void StepMbsEventServerSource (const char *stepname, const char *sourcename, int timeout, int start=0, int stop=0, int interval=0)
void StepMbsRevServSource (const char *stepname, const char *sourcename, int timeout, int port, int start=0, int stop=0, int interval=0)
void StepRandomSource (const char *stepname, const char *sourcename, int timeout)
void StepUserSource (const char *stepname, const char *sourcename, int timeout, int port, const char *expr)
void StepFileStore (const char *stepname, const char *storename, bool overwrite, int bufsize, int splitlevel, int compression)
void StepBackStore (const char *stepname, const char *storename, int bufsize, int splitlevel)
ViewPanelHandle StartViewPanel ()
ViewPanelHandle StartViewPanel (int x, int y, int width, int height, int mode=1, TGo4Picture *pic=0)
TString GetViewPanelName (ViewPanelHandle handle)
ViewPanelHandle FindViewPanel (const char *name)
Bool_t SetViewPanelName (ViewPanelHandle handle, const char *newname)
ViewPanelHandle GetActiveViewPanel ()
void RedrawPanel (ViewPanelHandle panel)
void DivideViewPanel (ViewPanelHandle panel, Int_t numX, Int_t numY)
TPad * SelectPad (ViewPanelHandle panel, Int_t number=0)
Bool_t DrawItem (const char *itemname, ViewPanelHandle panel=0, const char *drawopt=0)
void RedrawItem (const char *itemname)
void ProcessHotStart ()
virtual Bool_t HandleTimer (TTimer *timer)

Protected Member Functions

void ProcessEvents (Int_t timeout=-1)
TGo4AnalysisProxyAddAnalysisProxy (Bool_t isserver)
TGo4AnalysisStatusGetAnalStatus ()
TGo4AnalysisStepStatusGetStepStatus (const char *stepname)
 ClassDef (TGo4Interface, 1)

Protected Attributes

TGo4RootBrowserProxyfRootBrowser
TString fOMDataPath
TString fOMBrowserPath
TString fOMEditorsPath
Bool_t fCmdFinished
TTimer * fCmdTimer
Int_t fWaitCounter

Detailed Description

Definition at line 25 of file TGo4Interface.h.


Constructor & Destructor Documentation

TGo4Interface::TGo4Interface ( const TGo4Interface  )  [inline]

Definition at line 31 of file TGo4Interface.h.

TGo4Interface::~TGo4Interface (  )  [virtual]

Member Function Documentation

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

Configure name of file, where analysis configuration will be saved

Reimplemented from TGo4AbstractInterface.

Definition at line 345 of file TGo4Interface.cxx.

References GetAnalStatus(), and TGo4AnalysisStatus::SetConfigFileName().

TGo4Interface::ClassDef ( TGo4Interface  ,
 
) [protected]
void TGo4Interface::ConfigStep ( const char *  stepname,
Bool_t  enableprocess,
Bool_t  enablesource,
Bool_t  enablestore 
) [virtual]
void TGo4Interface::ConnectAnalysis ( const char *  ServerNode,
Int_t  ServerPort,
Int_t  UserMode,
const char *  password = 0 
) [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 186 of file TGo4Interface.cxx.

References AddAnalysisProxy(), TGo4AbstractInterface::Analysis(), TGo4AnalysisProxy::ConnectToServer(), ProcessEvents(), and TGo4AnalysisProxy::RequestAnalysisSettings().

void TGo4Interface::DisconnectAnalysis (  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 232 of file TGo4Interface.cxx.

References TGo4AbstractInterface::Analysis(), TGo4AbstractInterface::Browser(), TGo4AnalysisProxy::DisconnectAnalysis(), ProcessEvents(), and TGo4BrowserProxy::ToggleMonitoring().

Referenced by ~TGo4Interface().

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

Divide viewpanel on subpads.

Reimplemented from TGo4AbstractInterface.

Definition at line 603 of file TGo4Interface.cxx.

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

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

Reimplemented from TGo4AbstractInterface.

Definition at line 616 of file TGo4Interface.cxx.

References TGo4AbstractInterface::GetObject(), and StartViewPanel().

ViewPanelHandle TGo4Interface::FindViewPanel ( const char *  name  )  [virtual]

Return handle on viewpanel with specified name.

Reimplemented from TGo4AbstractInterface.

Definition at line 566 of file TGo4Interface.cxx.

ViewPanelHandle TGo4Interface::GetActiveViewPanel (  )  [virtual]

Return handle of last active viewpanel.

Reimplemented from TGo4AbstractInterface.

Definition at line 588 of file TGo4Interface.cxx.

TGo4AnalysisStatus * TGo4Interface::GetAnalStatus (  )  [protected]
TString TGo4Interface::GetViewPanelName ( ViewPanelHandle  panel  )  [virtual]

Return name of viewpanel.

Reimplemented from TGo4AbstractInterface.

Definition at line 560 of file TGo4Interface.cxx.

void TGo4Interface::HotStart ( const char *  filename  )  [virtual]

Executes hotstart file, generated in go4 GUI. Hot start files can not be executed as normal CINT scripts, therefore one should use this method to activate them

Implements TGo4AbstractInterface.

Definition at line 670 of file TGo4Interface.cxx.

References fCmdFinished, fCmdTimer, TGo4AbstractInterface::FreeHotStartCmds(), and TGo4AbstractInterface::LoadHotStart().

void TGo4Interface::LaunchAnalysis (  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 123 of file TGo4Interface.cxx.

void TGo4Interface::LaunchAnalysis ( const char *  ClientName,
const char *  ClientDir,
const char *  ClientExec,
const char *  ClientNode,
Int_t  ShellMode = 2,
Int_t  TermMode = 1,
Int_t  ExeMode = 0,
const char *  UserArgs = 0 
) [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 157 of file TGo4Interface.cxx.

References AddAnalysisProxy(), TGo4AnalysisProxy::LaunchAsClient(), and ProcessEvents().

void TGo4Interface::Message ( const char *  msg  )  [virtual]

Display message in GUI status line

Reimplemented from TGo4AbstractInterface.

Definition at line 117 of file TGo4Interface.cxx.

References fRootBrowser, and TGo4RootBrowserProxy::Message().

Referenced by SetViewPanelName().

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

Implements TGo4AbstractInterface.

Definition at line 95 of file TGo4Interface.cxx.

References Wait().

Referenced by ConnectAnalysis(), DisconnectAnalysis(), and LaunchAnalysis().

void TGo4Interface::ProcessHotStart (  ) 
void TGo4Interface::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 from TGo4AbstractInterface.

Definition at line 627 of file TGo4Interface.cxx.

void TGo4Interface::RedrawPanel ( ViewPanelHandle  panel  )  [virtual]

Forces of panel redraw.

Reimplemented from TGo4AbstractInterface.

Definition at line 594 of file TGo4Interface.cxx.

void TGo4Interface::RefreshNamesList ( int  tmout = 10  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 302 of file TGo4Interface.cxx.

References TGo4AbstractInterface::Analysis(), TGo4AnalysisProxy::NamesListReceived(), and TGo4AnalysisProxy::RefreshNamesList().

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

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

Reimplemented from TGo4AbstractInterface.

Definition at line 609 of file TGo4Interface.cxx.

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

Change name of viewpanel.

Reimplemented from TGo4AbstractInterface.

Definition at line 571 of file TGo4Interface.cxx.

References Message().

void TGo4Interface::ShutdownAnalysis (  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 244 of file TGo4Interface.cxx.

References TGo4AbstractInterface::Analysis(), TGo4AbstractInterface::Browser(), TGo4AnalysisProxy::DisconnectAnalysis(), TGo4AnalysisProxy::IsAdministrator(), TGo4AnalysisProxy::IsAnalysisServer(), TGo4AnalysisProxy::IsConnected(), and TGo4BrowserProxy::ToggleMonitoring().

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

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

Reimplemented from TGo4AbstractInterface.

Definition at line 544 of file TGo4Interface.cxx.

References TGo4RootBrowserProxy::DrawPicture(), and fRootBrowser.

ViewPanelHandle TGo4Interface::StartViewPanel (  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 539 of file TGo4Interface.cxx.

Referenced by DrawItem().

void TGo4Interface::StepBackStore ( const char *  stepname,
const char *  storename,
int  bufsize,
int  splitlevel 
) [virtual]
void TGo4Interface::StepFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
) [virtual]

Set file source as step data source

Reimplemented from TGo4AbstractInterface.

Definition at line 371 of file TGo4Interface.cxx.

References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout().

void TGo4Interface::StepFileStore ( const char *  stepname,
const char *  storename,
bool  overwrite,
int  bufsize,
int  splitlevel,
int  compression 
) [virtual]
void TGo4Interface::StepMbsEventServerSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
) [virtual]
void TGo4Interface::StepMbsFileSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
const char *  TagFile,
int  start = 0,
int  stop = 0,
int  interval = 0 
) [virtual]
void TGo4Interface::StepMbsRevServSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  port,
int  start = 0,
int  stop = 0,
int  interval = 0 
) [virtual]
void TGo4Interface::StepMbsStreamSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
) [virtual]
void TGo4Interface::StepMbsTransportSource ( const char *  stepname,
const char *  sourcename,
int  timeout,
int  start = 0,
int  stop = 0,
int  interval = 0 
) [virtual]
void TGo4Interface::StepRandomSource ( const char *  stepname,
const char *  sourcename,
int  timeout 
) [virtual]

Set random generator as step data source

Reimplemented from TGo4AbstractInterface.

Definition at line 479 of file TGo4Interface.cxx.

References GetStepStatus(), TGo4AnalysisStepStatus::SetSourcePar(), and TGo4EventSourceParameter::SetTimeout().

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

Stop (suspend) analysis execution

Reimplemented from TGo4AbstractInterface.

Definition at line 290 of file TGo4Interface.cxx.

References TGo4AbstractInterface::Analysis(), and TGo4AnalysisProxy::StopAnalysis().

void TGo4Interface::SubmitAnalysisConfig ( int  tmout = 20  )  [virtual]

Submit configuration to analysis.

Configurations can be changed with following methods:

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

Reimplemented from TGo4AbstractInterface.

Definition at line 258 of file TGo4Interface.cxx.

References TGo4AbstractInterface::Analysis(), TGo4AnalysisProxy::IsAnalysisSettingsReady(), TGo4AnalysisProxy::NamesListReceived(), TGo4AnalysisProxy::RefreshNamesList(), and TGo4AnalysisProxy::SubmitAnalysisSettings().

void TGo4Interface::Wait ( double  tm_sec  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 100 of file TGo4Interface.cxx.

Referenced by ProcessEvents().

void TGo4Interface::WaitAnalysis ( Int_t  delay_sec  )  [virtual]

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

Reimplemented from TGo4AbstractInterface.

Definition at line 208 of file TGo4Interface.cxx.

References TGo4AbstractInterface::Analysis(), fWaitCounter, TGo4AnalysisProxy::IsAnalysisReady(), and TGo4AbstractInterface::IsHotStart().


Member Data Documentation

Bool_t TGo4Interface::fCmdFinished [protected]

Definition at line 168 of file TGo4Interface.h.

Referenced by HotStart(), and ProcessHotStart().

TTimer* TGo4Interface::fCmdTimer [protected]

Definition at line 169 of file TGo4Interface.h.

Referenced by HandleTimer(), HotStart(), and ~TGo4Interface().

TString TGo4Interface::fOMBrowserPath [protected]

Definition at line 166 of file TGo4Interface.h.

Referenced by TGo4Interface().

TString TGo4Interface::fOMDataPath [protected]

Definition at line 165 of file TGo4Interface.h.

Referenced by AddAnalysisProxy(), and TGo4Interface().

TString TGo4Interface::fOMEditorsPath [protected]

Definition at line 167 of file TGo4Interface.h.

Referenced by AddAnalysisProxy(), and TGo4Interface().

Int_t TGo4Interface::fWaitCounter [protected]

Definition at line 170 of file TGo4Interface.h.

Referenced by HandleTimer(), and WaitAnalysis().


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