GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4Sniffer Class Reference

#include <TGo4Sniffer.h>

Inheritance diagram for TGo4Sniffer:

Public Member Functions

 TGo4Sniffer (const char *name)
virtual ~TGo4Sniffer ()
Bool_t AddAnalysisObject (TObject *obj)
 ClassDefOverride (TGo4Sniffer, 1)
Bool_t CmdClear ()
Bool_t CmdClearObject (const char *objname)
Bool_t CmdClose ()
Bool_t CmdCloseFiles ()
Bool_t CmdDeleteObject (const char *objname)
Bool_t CmdExecute (const char *exeline)
Bool_t CmdExit ()
Bool_t CmdOpenFile (const char *fname)
Bool_t CmdRestart ()
Bool_t CmdStart ()
Bool_t CmdStop ()
TObject * CreateItemStatus (const char *itemname)
void * FindInHierarchy (const char *path, TClass **cl=nullptr, TDataMember **member=nullptr, Int_t *chld=nullptr) override
void ProcessSnifferEvents () override
 Method called in go4 analysis thread, used to executed server commands.
void RatemeterUpdate (TGo4Ratemeter *) override
 Method from analysis sniffer.
Bool_t RemoteTreeDraw (const char *histoname, const char *treename, const char *varexpr, const char *cutexpr)
void ScanRoot (TRootSnifferScanRec &rec) override
void SetTitle (const char *title="") override
 Method called by logger with every string, going to output.
void StatusMessage (int level, Bool_t printout, const TString &) override
 Method from analysis sniffer.
Public Member Functions inherited from TGo4AnalysisSniffer
 TGo4AnalysisSniffer ()
 TGo4AnalysisSniffer ()
virtual ~TGo4AnalysisSniffer ()
virtual ~TGo4AnalysisSniffer ()
 ClassDef (TGo4AnalysisSniffer, 1)
 ClassDef (TGo4AnalysisSniffer, 1)

Static Public Member Functions

static Bool_t CreateEngine (const char *name)
static THttpServer * GetHttpServer ()

Protected Member Functions

Bool_t HasAutoLoadMethod ()
 Indicate if SetAutoLoad method exists.
Bool_t HasProduceMultiMethod ()
 Indicate that sniffer has MultiProcess method implemented, can be used from GUI.
Bool_t HasRestrictMethod ()
 Indicate that Restrict method implemented, also commands with arguments are exists.
void RestrictGo4 (const char *path, const char *options)
 Wrapper for new method in TRootSniffer.
void ScanObjectProperties (TRootSnifferScanRec &rec, TObject *obj) override
virtual void SendStatusMessage (Int_t level, Bool_t printout, const TString &text)
 Send message to gui - need to be implemented.
Bool_t SetAutoLoadGo4 (const char *script)
 Wrapper for new method in TRootSniffer.

Protected Attributes

TGo4AnalysisWebStatusfAnalysisStatus {nullptr}
TString fAutoLoadArg
Bool_t fbPythonBound {kFALSE}
 if true, python binding of go4 has already been done.
TGo4MsgList fDebugOutput
TGraph * fEventRate {nullptr}
TGo4RatemeterfRatemeter {nullptr}
TGo4MsgList fStatusMessages

Static Protected Attributes

static THttpServer * gHttpServer = nullptr

Detailed Description

Definition at line 26 of file TGo4Sniffer.h.

Constructor & Destructor Documentation

◆ TGo4Sniffer()

◆ ~TGo4Sniffer()

TGo4Sniffer::~TGo4Sniffer ( )
virtual

Member Function Documentation

◆ AddAnalysisObject()

Bool_t TGo4Sniffer::AddAnalysisObject ( TObject * obj)

Definition at line 633 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and SendStatusMessage().

◆ ClassDefOverride()

TGo4Sniffer::ClassDefOverride ( TGo4Sniffer ,
1  )

References TGo4Sniffer().

◆ CmdClear()

Bool_t TGo4Sniffer::CmdClear ( )

Definition at line 412 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance().

◆ CmdClearObject()

Bool_t TGo4Sniffer::CmdClearObject ( const char * objname)

Definition at line 487 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and SendStatusMessage().

◆ CmdClose()

Bool_t TGo4Sniffer::CmdClose ( )

◆ CmdCloseFiles()

Bool_t TGo4Sniffer::CmdCloseFiles ( )

◆ CmdDeleteObject()

Bool_t TGo4Sniffer::CmdDeleteObject ( const char * objname)

Definition at line 514 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and SendStatusMessage().

◆ CmdExecute()

Bool_t TGo4Sniffer::CmdExecute ( const char * exeline)

Definition at line 540 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and SendStatusMessage().

◆ CmdExit()

Bool_t TGo4Sniffer::CmdExit ( )

◆ CmdOpenFile()

Bool_t TGo4Sniffer::CmdOpenFile ( const char * fname)

◆ CmdRestart()

Bool_t TGo4Sniffer::CmdRestart ( )

◆ CmdStart()

Bool_t TGo4Sniffer::CmdStart ( )

Definition at line 346 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and StatusMessage().

◆ CmdStop()

Bool_t TGo4Sniffer::CmdStop ( )

Definition at line 357 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and StatusMessage().

◆ CreateEngine()

Bool_t TGo4Sniffer::CreateEngine ( const char * name)
static

Definition at line 52 of file TGo4Sniffer.cxx.

References TGo4Sniffer(), gHttpServer, and TGo4Log::GO4SYS().

◆ CreateItemStatus()

TObject * TGo4Sniffer::CreateItemStatus ( const char * itemname)

Definition at line 677 of file TGo4Sniffer.cxx.

◆ FindInHierarchy()

void * TGo4Sniffer::FindInHierarchy ( const char * path,
TClass ** cl = nullptr,
TDataMember ** member = nullptr,
Int_t * chld = nullptr )
override

◆ GetHttpServer()

THttpServer * TGo4Sniffer::GetHttpServer ( )
static

Definition at line 45 of file TGo4Sniffer.cxx.

References gHttpServer.

◆ HasAutoLoadMethod()

Bool_t TGo4Sniffer::HasAutoLoadMethod ( )
protected

Indicate if SetAutoLoad method exists.

Definition at line 713 of file TGo4Sniffer.cxx.

Referenced by TGo4Sniffer(), ScanObjectProperties(), and SetAutoLoadGo4().

◆ HasProduceMultiMethod()

Bool_t TGo4Sniffer::HasProduceMultiMethod ( )
protected

Indicate that sniffer has MultiProcess method implemented, can be used from GUI.

Definition at line 695 of file TGo4Sniffer.cxx.

Referenced by TGo4Sniffer().

◆ HasRestrictMethod()

Bool_t TGo4Sniffer::HasRestrictMethod ( )
protected

Indicate that Restrict method implemented, also commands with arguments are exists.

Definition at line 690 of file TGo4Sniffer.cxx.

Referenced by TGo4Sniffer(), and RestrictGo4().

◆ ProcessSnifferEvents()

void TGo4Sniffer::ProcessSnifferEvents ( )
overridevirtual

Method called in go4 analysis thread, used to executed server commands.

Reimplemented from TGo4AnalysisSniffer.

Definition at line 618 of file TGo4Sniffer.cxx.

References gHttpServer.

◆ RatemeterUpdate()

void TGo4Sniffer::RatemeterUpdate ( TGo4Ratemeter * r)
overridevirtual

Method from analysis sniffer.

Reimplemented from TGo4AnalysisSniffer.

Definition at line 582 of file TGo4Sniffer.cxx.

References fEventRate, fRatemeter, and TGo4Ratemeter::GetRate().

◆ RemoteTreeDraw()

Bool_t TGo4Sniffer::RemoteTreeDraw ( const char * histoname,
const char * treename,
const char * varexpr,
const char * cutexpr )

Definition at line 656 of file TGo4Sniffer.cxx.

References TGo4Analysis::Instance(), and SendStatusMessage().

◆ RestrictGo4()

void TGo4Sniffer::RestrictGo4 ( const char * path,
const char * options )
protected

Wrapper for new method in TRootSniffer.

Definition at line 700 of file TGo4Sniffer.cxx.

References HasRestrictMethod().

Referenced by TGo4Sniffer().

◆ ScanObjectProperties()

void TGo4Sniffer::ScanObjectProperties ( TRootSnifferScanRec & rec,
TObject * obj )
overrideprotected

◆ ScanRoot()

◆ SendStatusMessage()

void TGo4Sniffer::SendStatusMessage ( Int_t level,
Bool_t printout,
const TString & text )
protectedvirtual

Send message to gui - need to be implemented.

Definition at line 625 of file TGo4Sniffer.cxx.

References TGo4Log::Message().

Referenced by AddAnalysisObject(), CmdClearObject(), CmdDeleteObject(), CmdExecute(), and RemoteTreeDraw().

◆ SetAutoLoadGo4()

Bool_t TGo4Sniffer::SetAutoLoadGo4 ( const char * script)
protected

Wrapper for new method in TRootSniffer.

Definition at line 718 of file TGo4Sniffer.cxx.

References HasAutoLoadMethod().

Referenced by TGo4Sniffer().

◆ SetTitle()

void TGo4Sniffer::SetTitle ( const char * title = "")
override

Method called by logger with every string, going to output.

Definition at line 556 of file TGo4Sniffer.cxx.

References fDebugOutput.

◆ StatusMessage()

void TGo4Sniffer::StatusMessage ( int level,
Bool_t printout,
const TString & msg )
overridevirtual

Method from analysis sniffer.

Reimplemented from TGo4AnalysisSniffer.

Definition at line 601 of file TGo4Sniffer.cxx.

References fStatusMessages.

Referenced by CmdClose(), CmdExit(), CmdRestart(), CmdStart(), and CmdStop().

Field Documentation

◆ fAnalysisStatus

TGo4AnalysisWebStatus* TGo4Sniffer::fAnalysisStatus {nullptr}
protected

Definition at line 31 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer(), and FindInHierarchy().

◆ fAutoLoadArg

TString TGo4Sniffer::fAutoLoadArg
protected

Definition at line 44 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer(), and ScanObjectProperties().

◆ fbPythonBound

Bool_t TGo4Sniffer::fbPythonBound {kFALSE}
protected

if true, python binding of go4 has already been done.

Definition at line 42 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer().

◆ fDebugOutput

TGo4MsgList TGo4Sniffer::fDebugOutput
protected

Definition at line 37 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer(), and SetTitle().

◆ fEventRate

TGraph* TGo4Sniffer::fEventRate {nullptr}
protected

Definition at line 33 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer(), and RatemeterUpdate().

◆ fRatemeter

TGo4Ratemeter* TGo4Sniffer::fRatemeter {nullptr}
protected

Definition at line 35 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer(), and RatemeterUpdate().

◆ fStatusMessages

TGo4MsgList TGo4Sniffer::fStatusMessages
protected

Definition at line 39 of file TGo4Sniffer.h.

Referenced by TGo4Sniffer(), and StatusMessage().

◆ gHttpServer

THttpServer * TGo4Sniffer::gHttpServer = nullptr
staticprotected

Definition at line 66 of file TGo4Sniffer.h.

Referenced by CreateEngine(), GetHttpServer(), and ProcessSnifferEvents().


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