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

#include <TGo4AnalysisImp.h>

+ Inheritance diagram for TGo4Analysis:

Public Member Functions

virtual ~TGo4Analysis ()
 
const char * GetName () const override
 
void SetAnalysisName (const char *name)
 
Int_t MainCycle ()
 
Int_t PreLoop ()
 
Int_t PostLoop ()
 
Int_t Process ()
 
virtual Int_t UserEventFunc ()
 
virtual Int_t UserPreLoop ()
 
virtual Int_t UserPostLoop ()
 
Int_t RunImplicitLoop (Int_t times, Bool_t showrate=kFALSE, Double_t process_event_interval=-1., Bool_t iswebserver=kFALSE)
 
virtual void CloseAnalysis ()
 
virtual Bool_t InitEventClasses ()
 
TGo4AnalysisObjectManagerObjectManager () const
 
Bool_t AddDynamicHistogram (const char *name, const char *histo, const char *hevx, const char *hmemx, const char *hevy=nullptr, const char *hmemy=nullptr, const char *hevz=nullptr, const char *hmemz=nullptr, const char *condition=nullptr, const char *cevx=nullptr, const char *cmemx=nullptr, const char *cevy=nullptr, const char *cmemy=nullptr)
 
Bool_t AddDynamicEntry (TGo4DynamicEntry *entry)
 
Bool_t RemoveDynamicEntry (const char *entryname, const char *listname=nullptr)
 
Bool_t AddObject (TNamed *anything, const char *subfolder=nullptr, Bool_t replace=kTRUE)
 
TNamed * GetObject (const char *name, const char *folder=nullptr)
 
Bool_t RemoveObject (const char *name, Bool_t del=kTRUE)
 
Bool_t DeleteObjects (const char *name)
 
Bool_t ClearObjects (const char *name)
 
Bool_t ProtectObjects (const char *name, const Option_t *flags)
 
Bool_t ResetBackStores (Bool_t clearflag=kFALSE)
 
TObject * NextMatchingObject (const char *expr=nullptr, const char *folder=nullptr, Bool_t reset=kFALSE)
 
TGo4TreeStructureCreateTreeStructure (const char *treename)
 
Bool_t AddHistogram (TH1 *his, const char *subfolder=nullptr, Bool_t replace=kTRUE)
 
Bool_t AddTree (TTree *tree, const char *subfolder=nullptr)
 
Bool_t RemoveTree (TTree *tree, const char *stepname=nullptr)
 
Bool_t AddTreeHistogram (const char *hisname, const char *treename, const char *varexp, const char *cutexp)
 
TH1 * GetHistogram (const char *name)
 
TTree * GetTree (const char *name)
 
Bool_t RemoveHistogram (const char *name, Bool_t del=kTRUE)
 
Bool_t AddAnalysisCondition (TGo4Condition *con, const char *subfolder=nullptr)
 
Bool_t SetAnalysisCondition (const char *name, TGo4Condition *con, Bool_t counter=kTRUE)
 
TGo4ConditionGetAnalysisCondition (const char *name, const char *cond_cl=nullptr)
 
Bool_t RemoveAnalysisCondition (const char *name)
 
Bool_t AddParameter (TGo4Parameter *par, const char *subfolder=nullptr)
 
Bool_t SetParameter (const char *name, TGo4Parameter *par)
 
Bool_t SetParameterStatus (const char *name, TGo4ParameterStatus *par)
 
TGo4ParameterGetParameter (const char *name, const char *parameter_class=nullptr)
 
Bool_t RemoveParameter (const char *name)
 
Bool_t AddPicture (TGo4Picture *pic, const char *subfolder=nullptr)
 
Bool_t SetPicture (const char *name, TGo4Picture *pic)
 
TGo4PictureGetPicture (const char *name)
 
Bool_t RemovePicture (const char *name)
 
Bool_t AddCanvas (TCanvas *can, const char *subfolder=nullptr)
 
TCanvas * GetCanvas (const char *name)
 
Bool_t RemoveCanvas (const char *name)
 
TGo4AnalysisStatusCreateStatus ()
 
TGo4AnalysisWebStatusCreateWebStatus ()
 
TGo4ObjectStatusCreateObjectStatus (const char *name, const char *folder=nullptr)
 
TGo4AnalysisObjectNamesCreateNamesList ()
 
TFolder * GetObjectFolder ()
 
void UpdateStatus (TGo4AnalysisStatus *state)
 
void SetStatus (TGo4AnalysisStatus *state)
 
Bool_t LoadStatus (const char *filename=nullptr)
 
Bool_t LoadObjects (const char *filename=nullptr)
 
Bool_t SaveStatus (const char *filename=nullptr)
 
void SetStepChecking (Bool_t on=kTRUE)
 
Bool_t SetFirstStep (const char *name)
 
Bool_t SetLastStep (const char *name)
 
Bool_t SetStepStorage (const char *name, Bool_t on)
 
Bool_t NewStepStore (const char *name, TGo4EventStoreParameter *par)
 
Bool_t NewStepSource (const char *name, TGo4EventSourceParameter *par)
 
Bool_t NewStepProcessor (const char *name, TGo4EventProcessorParameter *par)
 
void SetAutoSaveInterval (Int_t interval=0)
 
void SetAutoSaveFile (const char *filename=nullptr, Bool_t overwrite=kFALSE, Int_t compression=5)
 
Bool_t IsAutoSaveFileName () const
 
Int_t LockAutoSave ()
 
Int_t UnLockAutoSave ()
 
void SetAutoSave (Bool_t on=kTRUE)
 
Bool_t IsAutoSaveOn () const
 
void SetAutoSaveFileChange (Bool_t on=kTRUE)
 
Bool_t IsAutoSaveFileChange () const
 
Bool_t IsInitDone () const
 
Bool_t IsRunning () const
 
void SetRunning (Bool_t on=kTRUE)
 
Int_t WaitForStart ()
 
Int_t IsErrorStopEnabled () const
 
void SetNewInputFile (Bool_t on=kTRUE)
 
Bool_t IsNewInputFile () const
 
void SetInputFileName (const char *fname)
 
const char * GetInputFileName () const
 
const char * GetDefaultTestFileName () const
 
void SetDynListInterval (Int_t val)
 
Int_t GetDynListInterval () const
 
TGo4EventElementGetInputEvent (const char *stepname) const
 
TGo4EventElementGetInputEvent (Int_t stepindex) const
 
TGo4EventElementGetOutputEvent (const char *stepname) const
 
TGo4EventElementGetOutputEvent (Int_t stepindex) const
 
TGo4EventElementGetOutputEvent () const
 
TGo4EventElementGetEventStructure (const char *name) const
 
void Message (Int_t prio, const char *text,...)
 
void SendObjectToGUI (TObject *ob)
 
void StartObjectServer (const char *basename, const char *passwd)
 
void StopObjectServer ()
 
void SetAdministratorPassword (const char *passwd)
 
void SetControllerPassword (const char *passwd)
 
void SetObserverPassword (const char *passwd)
 
void Print (Option_t *opt="") const override
 
void PrintHistograms (const char *expression=nullptr)
 
void PrintConditions (const char *expression=nullptr)
 
void PrintParameters (const char *expression=nullptr)
 
void PrintDynamicList ()
 
void ShowEvent (const char *stepname, Bool_t isoutput=kTRUE)
 
Int_t StoreParameter (const char *name, TGo4Parameter *par)
 
Int_t StoreCondition (const char *name, TGo4Condition *con)
 
Int_t StoreFitter (const char *name, TGo4Fitter *fit)
 
Int_t StoreFolder (const char *stepname, TFolder *folder)
 
Int_t StoreFolder (const char *stepname, const char *foldername)
 
void AutoSave ()
 
Bool_t AddAnalysisStep (TGo4AnalysisStep *next)
 
TGo4AnalysisStepGetAnalysisStep (const char *name)
 
TGo4AnalysisStepGetAnalysisStepNum (Int_t number)
 
void DefineServerPasswords (const char *admin, const char *controller, const char *observer)
 
void SetBatchLoopCount (Int_t cnt=-1)
 
void SetMakeWithAutosave (Bool_t on=kTRUE)
 
Bool_t IsObjMade () const
 
TH1 * MakeTH1 (char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=nullptr, const char *ytitle=nullptr)
 
TH2 * MakeTH2 (char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup, const char *xtitle=nullptr, const char *ytitle=nullptr, const char *ztitle=nullptr)
 
TGo4WinCondMakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=nullptr)
 
TGo4WinCondMakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, const char *HistoName=nullptr)
 
TGo4PolyCondMakePolyCond (const char *fullname, Int_t npoints, Double_t(*points) [2], const char *HistoName=nullptr, Bool_t shapedcond=kFALSE)
 
TGo4ShapedCondMakeEllipseCond (const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0., const char *HistoName=nullptr)
 
TGo4ShapedCondMakeCircleCond (const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=nullptr)
 
TGo4ShapedCondMakeBoxCond (const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=nullptr)
 
TGo4ShapedCondMakeFreeShapeCond (const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=nullptr)
 
TGo4ListCondMakeListCond (const char *fullname, const Int_t num, const Int_t *values, const char *HistoName=nullptr)
 
TGo4ListCondMakeListCond (const char *fullname, const Int_t start, const Int_t stop, const Int_t step=1, const char *HistoName=nullptr)
 
TGo4ListCondMakeListCond (const char *fullname, const char *title, const char *HistoName=nullptr)
 
TGraph * MakeGraph (const char *fullname, const char *title, Int_t points=0, Double_t *xvalues=nullptr, Double_t *yvalues=nullptr)
 
TGraph * MakeGraph (const char *fullname, const char *title, TF1 *function)
 
TGo4RollingGraphMakeRollingGraph (const char *fullname, const char *title, Int_t points=0, Int_t average=1)
 
TGo4ParameterMakeParameter (const char *fullname, const char *classname, const char *cmd=nullptr)
 
void SetSortedOrder (Bool_t on=kTRUE)
 
Bool_t IsSortedOrder () const
 
Long64_t ExecuteScript (const char *script_name)
 
Long64_t ExecutePython (const char *script_name, Int_t *errcode=nullptr)
 
Long64_t ExecuteLine (const char *command, Int_t *errcode=nullptr)
 
void ProcessCrtlCSignal ()
 
void SetSniffer (TGo4AnalysisSniffer *sniff)
 
TGo4AnalysisSnifferGetSniffer () const
 
TGo4AnalysisClientGetAnalysisClient () const
 
void StopAnalysis ()
 
void StartAnalysis ()
 
void ProcessEvents ()
 
- Public Member Functions inherited from TGo4CommandReceiver
 TGo4CommandReceiver ()
 
virtual ~TGo4CommandReceiver ()
 

Static Public Member Functions

static TGo4AnalysisInstance ()
 
static Bool_t Exists ()
 
static Bool_t IsBatchMode ()
 
static Bool_t IsClientMode ()
 
static Bool_t IsServerMode ()
 
static void SetRunningMode (int mode)
 

Static Public Attributes

static const Int_t fgiAUTOSAVECOUNTS = 500
 
static const Int_t fgiDYNLISTINTERVAL = 1000
 
static const Int_t fgiMACROSTARTPOLL = 1000
 
static const char * fgcDEFAULTFILENAME = "Go4AutoSave.root"
 
static const char * fgcDEFAULTSTATUSFILENAME = "Go4AnalysisPrefs.root"
 
static const char * fgcDEFAULTFILESUF = ".root"
 
static const char fgcPYPROMPT = '$'
 
static const char * fgcPYINIT = "python/go4init.py"
 

Protected Member Functions

 TGo4Analysis (const char *name=nullptr)
 
 TGo4Analysis (int argc, char **argv)
 
void Constructor ()
 
Int_t ProcessAnalysisSteps ()
 

Protected Attributes

Bool_t fbInitIsDone {kFALSE}
 
Bool_t fbAutoSaveOn {kFALSE}
 

Private Types

enum  {
  flagInit, flagRunning, flagPause, flagClosed,
  flagStop
}
 

Private Member Functions

Bool_t EvaluateFolderpath (const char *fullname, TString &object, TString &folder)
 
TTree * CreateSingleEventTree (const char *name, Bool_t isoutput=kTRUE)
 
TTree * CreateSingleEventTree (TGo4EventElement *event)
 
void UpdateNamesList ()
 
TGo4AnalysisObjectNamesGetNamesList () const
 
void SetOutputEvent (TGo4EventElement *event)
 
Bool_t AddEventStore (TGo4EventStore *store)
 
Bool_t RemoveEventStore (TGo4EventStore *store)
 
Bool_t AddEventSource (TGo4EventSource *source)
 
Bool_t RemoveEventSource (TGo4EventSource *source)
 
Bool_t AddEventProcessor (TGo4EventProcessor *pro)
 
Bool_t RemoveEventProcessor (TGo4EventProcessor *pro)
 
Bool_t AddEventStructure (TGo4EventElement *ev)
 
Bool_t RemoveEventStructure (TGo4EventElement *ev)
 
void SetAnalysisClient (TGo4AnalysisClient *cli)
 
void SendMessageToGUI (Int_t level, Bool_t printout, const char *text)
 
void OpenAutoSaveFile (bool for_writing=false)
 
void CloseAutoSaveFile ()
 
void StopWorking ()
 
Bool_t IsStopWorking () const
 
void ShutdownServer ()
 

Private Attributes

TGo4AnalysisClientfxAnalysisSlave {nullptr}
 
TGo4AnalysisStepManagerfxStepManager {nullptr}
 
TGo4AnalysisObjectManagerfxObjectManager {nullptr}
 
Int_t fiAutoSaveCount {0}
 
TStopwatch * fxAutoSaveClock {nullptr}
 
Int_t fiAutoSaveInterval {0}
 
Int_t fiAutoSaveCompression {0}
 
TMutex * fxAutoSaveMutex {nullptr}
 
TFile * fxAutoFile {nullptr}
 
TString fxAutoFileName
 
Bool_t fbAutoSaveOverwrite {kFALSE}
 
TString fxConfigFilename
 
Bool_t fbNewInputFile {kFALSE}
 
TString fxCurrentInputFileName
 
Bool_t fbAutoSaveFileChange {kFALSE}
 
TGo4EventElementfxSampleEvent {nullptr}
 
TGo4AnalysisObjectNamesfxObjectNames {nullptr}
 
enum TGo4Analysis:: { ... }  fxDoWorkingFlag
 
TGo4InterruptHandlerfxInterruptHandler {nullptr}
 
TString fAnalysisName
 
Int_t fBatchLoopCount {0}
 
TString fServerAdminPass
 
TString fServerCtrlPass
 
TString fServerObserverPass
 
Bool_t fbMakeWithAutosave {kFALSE}
 
Bool_t fbObjMade {kFALSE}
 
Bool_t fbPythonBound {kFALSE}
 
Int_t fNumCtrlC {0}
 
TGo4AnalysisSnifferfSniffer {nullptr}
 
TGo4RatemeterfxRate {nullptr}
 
TString fxDefaultTestFileName
 

Static Private Attributes

static TGo4AnalysisfxInstance = nullptr
 
static Bool_t fbExists = kFALSE
 
static Int_t fiRunningMode = 0
 

Friends

class TGo4AnalysisStep
 
class TGo4AnalysisClient
 
class TGo4ComGetCurrentEvent
 
class TGo4ComGetNamesList
 
class TGo4ComGetEnvelope
 
class TGo4ComSetObject
 
class TGo4HisConnectorRunnable
 
class TGo4HistogramServer
 
class TGo4AnalysisWebStatus
 
class TGo4Sniffer
 

Detailed Description

The mother of all go4 analysis. Provides services to organize events, histogram data, and everything. May run standalone in batch mode, or may be aggregated by analysis client for threaded online control. User has to derive his/her own analysis from this base class and override the virtual user event function and set event factory methods.

Author
J. Adamczewski
Since
19-jan-2001

Definition at line 77 of file TGo4AnalysisImp.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Indicates analysis runstate

Enumerator
flagInit 
flagRunning 
flagPause 
flagClosed 
flagStop 

Definition at line 1094 of file TGo4AnalysisImp.h.

Constructor & Destructor Documentation

◆ ~TGo4Analysis()

TGo4Analysis::~TGo4Analysis ( )
virtual

◆ TGo4Analysis() [1/2]

TGo4Analysis::TGo4Analysis ( const char *  name = nullptr)
protected

Protected constructor for singleton instance.

Definition at line 147 of file TGo4AnalysisImp.cxx.

References Constructor(), GO4TRACE, and SetAnalysisName().

◆ TGo4Analysis() [2/2]

TGo4Analysis::TGo4Analysis ( int  argc,
char **  argv 
)
protected

Another variant for analysis constructor.

Definition at line 186 of file TGo4AnalysisImp.cxx.

References Constructor(), GO4TRACE, and SetAnalysisName().

Member Function Documentation

◆ AddAnalysisCondition()

Bool_t TGo4Analysis::AddAnalysisCondition ( TGo4Condition con,
const char *  subfolder = nullptr 
)

Puts a new analysis condition object in corresponding list. Object is owned by list afterwards. Returns false if object of that name already exists in list.

Definition at line 1387 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddAnalysisCondition(), and fxObjectManager.

Referenced by TGo4EventProcessor::AddAnalysisCondition(), TGo4Sniffer::AddAnalysisObject(), MakeEllipseCond(), MakeListCond(), MakePolyCond(), MakeWinCond(), and ObjectManager().

◆ AddAnalysisStep()

Bool_t TGo4Analysis::AddAnalysisStep ( TGo4AnalysisStep next)

Method for user analysis constructor to setup the list of analysis steps. Each call of this method will add a new analysis step at the end of the list. Caution: user has to take care that output and input event types of subsequent steps are matching! Analysis steps cannot be removed, since the steplist is not intended to be dynamic. This is a pure creation method. Analysis steps are owned by the steplist once they have been added.

Definition at line 1665 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisStepManager::AddAnalysisStep(), and fxStepManager.

Referenced by GetDefaultTestFileName(), TMeshAnalysis::TMeshAnalysis(), TXXXAnalysis::TXXXAnalysis(), and TYYYAnalysis::TYYYAnalysis().

◆ AddCanvas()

Bool_t TGo4Analysis::AddCanvas ( TCanvas *  can,
const char *  subfolder = nullptr 
)

Puts a new TCanvas in corresponding folder. Object is owned by folder afterwards. Returns false if object of that name already exist.

Definition at line 1376 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddCanvas(), and fxObjectManager.

Referenced by TGo4EventProcessor::AddCanvas(), ObjectManager(), and TYYYAnalysis::TYYYAnalysis().

◆ AddDynamicEntry()

Bool_t TGo4Analysis::AddDynamicEntry ( TGo4DynamicEntry entry)

Set dynamic entry of name "name" to the values specified by external dynamic entry status "state". If no dynamic entry of that name exists, a new entry is created with the properties of the state, and added to the current dynamic list.

Definition at line 1635 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddDynamicEntry(), and fxObjectManager.

Referenced by TGo4Sniffer::AddAnalysisObject(), TGo4ComSetObject::ExeSetDyn(), and ObjectManager().

◆ AddDynamicHistogram()

Bool_t TGo4Analysis::AddDynamicHistogram ( const char *  name,
const char *  histo,
const char *  hevx,
const char *  hmemx,
const char *  hevy = nullptr,
const char *  hmemy = nullptr,
const char *  hevz = nullptr,
const char *  hmemz = nullptr,
const char *  condition = nullptr,
const char *  cevx = nullptr,
const char *  cmemx = nullptr,
const char *  cevy = nullptr,
const char *  cmemy = nullptr 
)

Add (create) new dynamic histogram entry which connects an existing histogram with existing condition and data. Dynamic entry is specified by name. Histogram histo will be searched in registered histograms folder, condition in conditions folder. If condition is true or not existing (condition == nullptr), histogram will be filled from the values that are found in registered eventstructure classes of names evx, evy, evz at the data members of names memx, memy, memz, for the three coordinate axes, respectively. Histogram dimension is checked against given values.

Definition at line 1315 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddDynamicHistogram(), and fxObjectManager.

Referenced by ObjectManager().

◆ AddEventProcessor()

Bool_t TGo4Analysis::AddEventProcessor ( TGo4EventProcessor pro)
private

Add reference to event processor object to Go4 Folder structure. To be used by framework only!

Definition at line 1336 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddEventProcessor(), and fxObjectManager.

Referenced by GetNamesList(), and TGo4AnalysisStep::NewEventProcessor().

◆ AddEventSource()

Bool_t TGo4Analysis::AddEventSource ( TGo4EventSource source)
private

Add reference to event source object to Go4 Folder structure. To be used by framework only!

Definition at line 1341 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddEventSource(), and fxObjectManager.

Referenced by GetNamesList(), and TGo4AnalysisStep::NewEventSource().

◆ AddEventStore()

Bool_t TGo4Analysis::AddEventStore ( TGo4EventStore store)
private

Add reference to event store object to Go4 Folder structure. To be used by framework only!

Definition at line 1346 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddEventStore(), and fxObjectManager.

Referenced by GetNamesList(), and TGo4AnalysisStep::NewEventStore().

◆ AddEventStructure()

Bool_t TGo4Analysis::AddEventStructure ( TGo4EventElement ev)
private

Add reference to event structure object to Go4 Folder structure. To be used by framework only!

Definition at line 1351 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddEventStructure(), and fxObjectManager.

Referenced by GetNamesList(), TGo4AnalysisStep::NewInputEvent(), and TGo4AnalysisStep::NewOutputEvent().

◆ AddHistogram()

Bool_t TGo4Analysis::AddHistogram ( TH1 *  his,
const char *  subfolder = nullptr,
Bool_t  replace = kTRUE 
)

Add external histogram to go4 histogram directory. Histogram will be owned and streamed by go4 histogram list afterwards.

Definition at line 1356 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddHistogram(), and fxObjectManager.

Referenced by TGo4Sniffer::AddAnalysisObject(), TGo4EventProcessor::AddHistogram(), TGo4ComSetObject::ExeSetHis(), MakeTH1(), MakeTH2(), ObjectManager(), TGo4DynamicList::ProcessTEntry(), TMeshAnalysis::UserPreLoop(), and TYYYAnalysis::UserPreLoop().

◆ AddObject()

Bool_t TGo4Analysis::AddObject ( TNamed *  anything,
const char *  subfolder = nullptr,
Bool_t  replace = kTRUE 
)

Add any external object to the user object folder. Object is owned by go4 afterwards and will be saved automatically. Object is accessible by name from the go4 display and from the analysis itself. Subfolder of UserObjects may be specified. If replace is true, old object of same name will be deleted and replaced by the added one.

Definition at line 1361 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddObject(), and fxObjectManager.

Referenced by TGo4EventProcessor::AddObject(), TGo4ComSetObject::ExeSetObj(), MakeGraph(), MakeRollingGraph(), and ObjectManager().

◆ AddParameter()

Bool_t TGo4Analysis::AddParameter ( TGo4Parameter par,
const char *  subfolder = nullptr 
)

Puts a new parameter object in corresponding folder. Object is owned by folder afterwards. Returns false if object of that name already exists in list.

Definition at line 1366 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddParameter(), and fxObjectManager.

Referenced by TGo4EventProcessor::AddParameter(), MakeParameter(), ObjectManager(), TMeshAnalysis::TMeshAnalysis(), TXXXAnalysis::TXXXAnalysis(), and TYYYAnalysis::TYYYAnalysis().

◆ AddPicture()

Bool_t TGo4Analysis::AddPicture ( TGo4Picture pic,
const char *  subfolder = nullptr 
)

Puts a new picture object in corresponding folder. Object is owned by folder afterwards. Returns false if object of that name already exists in list.

Definition at line 1371 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddPicture(), and fxObjectManager.

Referenced by TGo4EventProcessor::AddPicture(), and ObjectManager().

◆ AddTree()

Bool_t TGo4Analysis::AddTree ( TTree *  tree,
const char *  subfolder = nullptr 
)

Add reference to a tree in the go4 folder structure. If name of subfolder is given, tree will be assigned to subfolder (e.g. subfolder with analysis step name). If subfolder name is zero, the tree will be put into general tree folder.

Definition at line 1381 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddTree(), fxObjectManager, and TGo4Status::kGo4BackStoreReset.

Referenced by TGo4AnalysisStep::NewEventStore(), and ObjectManager().

◆ AddTreeHistogram()

Bool_t TGo4Analysis::AddTreeHistogram ( const char *  hisname,
const char *  treename,
const char *  varexp,
const char *  cutexp 
)

Add Histogram into the dynamic list which is linked to a tree. If Histogram of hisname already exists, this histogram will taken. if not, the histogram will be created on first TTree::Draw. Strings varexp and selection are used for applying cuts and variables to plot.

Definition at line 1329 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::AddTreeHistogram(), fxObjectManager, and UpdateNamesList().

Referenced by TGo4ComAddTreeHistogram::ExeCom(), ObjectManager(), and TGo4Sniffer::RemoteTreeDraw().

◆ AutoSave()

void TGo4Analysis::AutoSave ( )

◆ ClearObjects()

Bool_t TGo4Analysis::ClearObjects ( const char *  name)

Clear (reset) the specified objects. Method will first clear all objects in any folder if it is matching the name string. If no such folder exists, object of name is searched and cleared. Returns kFALSE in case of not found objects.

Definition at line 1527 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::ClearObjects(), and fxObjectManager.

Referenced by TGo4Sniffer::CmdClear(), TGo4Sniffer::CmdClearObject(), TGo4ComClearObject::ExeCom(), TGo4MbsFile::NewFileAction(), ObjectManager(), and TYYYAnalysis::UserPreLoop().

◆ CloseAnalysis()

void TGo4Analysis::CloseAnalysis ( )
virtual

◆ CloseAutoSaveFile()

void TGo4Analysis::CloseAutoSaveFile ( )
private

Close the autosave file if existing.

Definition at line 1132 of file TGo4AnalysisImp.cxx.

References fxAutoFile, fxAutoFileName, fxAutoSaveMutex, and Message().

Referenced by AutoSave(), LoadObjects(), ProcessCrtlCSignal(), SetAnalysisClient(), and ~TGo4Analysis().

◆ Constructor()

void TGo4Analysis::Constructor ( )
protected

◆ CreateNamesList()

TGo4AnalysisObjectNames * TGo4Analysis::CreateNamesList ( )

Creates a list of names (keys) of all objects in analysis directories.

Definition at line 1447 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::CreateNamesList(), and fxObjectManager.

Referenced by ObjectManager(), and UpdateNamesList().

◆ CreateObjectStatus()

TGo4ObjectStatus * TGo4Analysis::CreateObjectStatus ( const char *  name,
const char *  folder = nullptr 
)

Find Object of name in the folder structure and create a complete status object of it. Used by GUI command to get updated information on certain object.

Definition at line 1457 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::CreateObjectStatus(), and fxObjectManager.

Referenced by TGo4ComGetObjectStatus::ExeCom(), and ObjectManager().

◆ CreateSingleEventTree() [1/2]

TTree * TGo4Analysis::CreateSingleEventTree ( const char *  name,
Bool_t  isoutput = kTRUE 
)
private

Create a tree that is filled with one single event sample. Event is taken from analysis step of name. If isoutput is kTRUE, the output event is used, otherwise the input event. If no analysis step of that name exists, the event is searched by object name in the eventstructure folder of the object manager.

Definition at line 964 of file TGo4AnalysisImp.cxx.

References GetEventStructure(), GetInputEvent(), GetOutputEvent(), and GO4TRACE.

Referenced by TGo4ComGetCurrentEvent::ExeCom(), and ShowEvent().

◆ CreateSingleEventTree() [2/2]

TTree * TGo4Analysis::CreateSingleEventTree ( TGo4EventElement event)
private

Create a tree that is filled with one single event sample. To be sent to the gui.

Definition at line 957 of file TGo4AnalysisImp.cxx.

References fxSampleEvent, and GO4TRACE.

◆ CreateStatus()

TGo4AnalysisStatus * TGo4Analysis::CreateStatus ( )

Create a copy of the analysis internal state. To be sent to the Display.

Definition at line 927 of file TGo4AnalysisImp.cxx.

References GetName(), GO4TRACE, and UpdateStatus().

Referenced by TGo4AnalysisWebStatus::CreateStatus(), TGo4ComGetAnalysisStatus::ExeCom(), ObjectManager(), Print(), SaveStatus(), and TGo4AnalysisClient::SendAnalysisStatus().

◆ CreateTreeStructure()

TGo4TreeStructure * TGo4Analysis::CreateTreeStructure ( const char *  treename)

Create a tree structure for a certain tree by name

Definition at line 1462 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::CreateTreeStructure(), and fxObjectManager.

Referenced by ObjectManager().

◆ CreateWebStatus()

TGo4AnalysisWebStatus * TGo4Analysis::CreateWebStatus ( )

Create a copy of the analysis internal state. To be sent to the Web interface.

Definition at line 938 of file TGo4AnalysisImp.cxx.

References GetName(), GO4TRACE, TGo4AnalysisWebStatus, and UpdateStatus().

Referenced by ObjectManager(), and TGo4Sniffer::TGo4Sniffer().

◆ DefineServerPasswords()

void TGo4Analysis::DefineServerPasswords ( const char *  admin,
const char *  controller,
const char *  observer 
)

Define passwords, which should be used for analysis access when analysis runs in server mode

Definition at line 1706 of file TGo4AnalysisImp.cxx.

References fServerAdminPass, fServerCtrlPass, and fServerObserverPass.

Referenced by GetDefaultTestFileName().

◆ DeleteObjects()

Bool_t TGo4Analysis::DeleteObjects ( const char *  name)

Delete object of name, or all objects in folder name, respectively. Objects are only deleted if delete protection is false. Usually, Objects registered from user code are delete protected by default. Objects created dynamically from gui are not delete protected.

Definition at line 1522 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::DeleteObjects(), and fxObjectManager.

Referenced by TGo4Sniffer::CmdDeleteObject(), TGo4ComDeleteObject::ExeCom(), and ObjectManager().

◆ EvaluateFolderpath()

Bool_t TGo4Analysis::EvaluateFolderpath ( const char *  fullname,
TString &  object,
TString &  folder 
)
private

Helper function to figure out object name and folder path from full path. Returns false if something is wrong with given fullname

Definition at line 1728 of file TGo4AnalysisImp.cxx.

Referenced by MakeEllipseCond(), MakeGraph(), MakeListCond(), MakePolyCond(), MakeRollingGraph(), MakeTH1(), MakeTH2(), and MakeWinCond().

◆ ExecuteLine()

Long64_t TGo4Analysis::ExecuteLine ( const char *  command,
Int_t *  errcode = nullptr 
)

Process ROOT command line. Optionally provide pyroot binding: a leading '$' will try to load and execute python script. Errcode may be used to check ROOT interpreter error code. Return value is result of command execution

Definition at line 2418 of file TGo4AnalysisImp.cxx.

References TGo4Log::Debug(), fbPythonBound, fgcPYINIT, fgcPYPROMPT, and TGo4Log::GO4SYS().

Referenced by TGo4Sniffer::CmdExecute(), TGo4AnalysisWebStatus::ExecuteLine(), TGo4EventProcessor::ExecuteLine(), ExecutePython(), TGo4AnalysisClient::ExecuteString(), and IsObjMade().

◆ ExecutePython()

Long64_t TGo4Analysis::ExecutePython ( const char *  script_name,
Int_t *  errcode = nullptr 
)

Executes Python script in ROOT interpreter. Will bind TGo4Analysis object to python go4 Symbol Errcode may be used to check ROOT interpreter error code.

Definition at line 2409 of file TGo4AnalysisImp.cxx.

References ExecuteLine(), and fgcPYPROMPT.

Referenced by TGo4EventProcessor::ExecutePython(), and IsObjMade().

◆ ExecuteScript()

Long64_t TGo4Analysis::ExecuteScript ( const char *  script_name)

Executes ROOT script. Returns -1 when script was not found, or result of script execution

Definition at line 2300 of file TGo4AnalysisImp.cxx.

References TGo4Log::Error(), and TGo4Log::Info().

Referenced by TGo4EventProcessor::ExecuteScript(), IsObjMade(), and MakeParameter().

◆ Exists()

Bool_t TGo4Analysis::Exists ( )
static

Definition at line 122 of file TGo4AnalysisImp.cxx.

Referenced by main(), TGo4InterruptHandler::Notify(), and StartAnalysis().

◆ GetAnalysisClient()

TGo4AnalysisClient* TGo4Analysis::GetAnalysisClient ( ) const
inline

◆ GetAnalysisCondition()

TGo4Condition * TGo4Analysis::GetAnalysisCondition ( const char *  name,
const char *  cond_cl = nullptr 
)

Retrieves an analysis condition from list by name. Optionally, condition could be checked if it inherits from specified class. Returns 0 if no such condition found.

Definition at line 1392 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetAnalysisCondition().

Referenced by TGo4EventProcessor::GetAnalysisCondition(), MakeEllipseCond(), MakeListCond(), MakePolyCond(), MakeWinCond(), ObjectManager(), and TGo4DynamicList::ProcessHEntry().

◆ GetAnalysisStep()

TGo4AnalysisStep * TGo4Analysis::GetAnalysisStep ( const char *  name)

Access to certain analysis step by name. If name == nullptr, this will return the first active step.

Definition at line 1397 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetAnalysisStep().

Referenced by GetDefaultTestFileName(), main(), RunImplicitLoop(), TMeshParameter::UpdateFrom(), and TGo4AnalysisClient::UpdateStatus().

◆ GetAnalysisStepNum()

TGo4AnalysisStep * TGo4Analysis::GetAnalysisStepNum ( Int_t  number)

Access to certain analysis step by number.

Definition at line 1402 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetAnalysisStepNum().

Referenced by GetDefaultTestFileName(), and main().

◆ GetCanvas()

TCanvas * TGo4Analysis::GetCanvas ( const char *  name)

Retrieves a TCanvas by name from the Canvases folder. Returns 0 if no such object.

Definition at line 1437 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetCanvas().

Referenced by TGo4EventProcessor::GetCanvas(), ObjectManager(), TYYYAnalysis::TYYYAnalysis(), and TYYYAnalysis::UserPostLoop().

◆ GetDefaultTestFileName()

const char* TGo4Analysis::GetDefaultTestFileName ( ) const
inline

◆ GetDynListInterval()

Int_t TGo4Analysis::GetDynListInterval ( ) const

◆ GetEventStructure()

TGo4EventElement * TGo4Analysis::GetEventStructure ( const char *  name) const

◆ GetHistogram()

TH1 * TGo4Analysis::GetHistogram ( const char *  name)

◆ GetInputEvent() [1/2]

TGo4EventElement * TGo4Analysis::GetInputEvent ( const char *  stepname) const

Returns the input event structure of analysis step. Argument indicates the step by name. For internal usage in the user defined event function UserEventFunc, and is used by analysis steps to get result of previous steps.

Definition at line 1600 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetInputEvent().

Referenced by CreateSingleEventTree(), TGo4ComGetCurrentEvent::ExeCom(), GetDefaultTestFileName(), TGo4EventProcessor::GetInputEvent(), TXXXAnalysis::UserPreLoop(), TMeshAnalysis::UserPreLoop(), and TYYYAnalysis::UserPreLoop().

◆ GetInputEvent() [2/2]

TGo4EventElement * TGo4Analysis::GetInputEvent ( Int_t  stepindex) const

Returns the input event structure of analysis step. Argument number indicates the step from 0 (first) to n (last) in subsequent order. For internal usage in the user defined event function UserEventFunc, and is used by analysis steps to access event sources of previous steps.

Definition at line 1595 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetInputEvent().

◆ GetInputFileName()

const char* TGo4Analysis::GetInputFileName ( ) const
inline

Returns current input file name

Definition at line 539 of file TGo4AnalysisImp.h.

References fxCurrentInputFileName.

◆ GetName()

const char* TGo4Analysis::GetName ( ) const
inlineoverride

◆ GetNamesList()

TGo4AnalysisObjectNames* TGo4Analysis::GetNamesList ( ) const
inlineprivate

Returns the nameslist of the go4 object directory structure. Is used by analysis client to send the current object names to the gui.

Definition at line 961 of file TGo4AnalysisImp.h.

References AddEventProcessor(), AddEventSource(), AddEventStore(), AddEventStructure(), fxObjectNames, RemoveEventProcessor(), RemoveEventSource(), RemoveEventStore(), RemoveEventStructure(), and SetOutputEvent().

Referenced by TGo4ComGetNamesList::ExeCom(), TGo4ComSetObject::ExeCom(), TGo4HistogramServer::HandleObjectRequest(), and TGo4AnalysisClient::SendNamesList().

◆ GetObject()

TNamed * TGo4Analysis::GetObject ( const char *  name,
const char *  folder = nullptr 
)

Searches for object by name in all directories. Returns pointer to object. If object of that name does not exist, null is returned. Optionally, folder may be specified to search in.

Definition at line 1422 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetObject().

Referenced by TGo4EventProcessor::GetObject(), TGo4HistogramServer::HandleObjectRequest(), MakeGraph(), MakeRollingGraph(), ObjectManager(), TGo4HisConnectorRunnable::Run(), TGo4AnalysisClient::SendAnalysisObject(), and TXXXCalibPar::UpdateFrom().

◆ GetObjectFolder()

TFolder * TGo4Analysis::GetObjectFolder ( )

Access to top level go4 folder. For histogram server.

Definition at line 1452 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetObjectFolder().

Referenced by TGo4ComSetObject::ExeCom(), ObjectManager(), TGo4HisConnectorRunnable::Run(), and StoreFolder().

◆ GetOutputEvent() [1/3]

TGo4EventElement * TGo4Analysis::GetOutputEvent ( const char *  stepname) const

Returns the output event (detector) structure of analysis step. Argument indicates the step by name. For internal usage in the user defined event function UserEventFunc, and is used by analysis steps to get result of previous steps.

Definition at line 1615 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetOutputEvent().

Referenced by TGo4ComGetCurrentEvent::ExeCom(), TGo4EventProcessor::GetOutputEvent(), and TGo4AnalysisStep::Process().

◆ GetOutputEvent() [2/3]

TGo4EventElement * TGo4Analysis::GetOutputEvent ( Int_t  stepindex) const

Returns the output event (detector) structure of analysis step. Argument number indicates the step from 0 (first) to n (last) in subsequent order. Default is the output event of the currently processed step, which is set by SetEvent method. For internal usage in the user defined event function UserEventFunc, and is used by analysis steps to get result of previous steps.

Definition at line 1610 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetOutputEvent().

◆ GetOutputEvent() [3/3]

TGo4EventElement * TGo4Analysis::GetOutputEvent ( ) const

Returns the output event (detector) structure of analysis step. Is set by SetOutputEvent method. For internal usage in the user defined event function UserEventFunc, and is used by analysis steps to get result of previous steps.

Definition at line 1605 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::GetOutputEvent().

Referenced by CreateSingleEventTree(), GetDefaultTestFileName(), and TYYYAnalysis::UserPreLoop().

◆ GetParameter()

TGo4Parameter * TGo4Analysis::GetParameter ( const char *  name,
const char *  parameter_class = nullptr 
)

Retrieves a parameter object by name from the object folder. Optionally expected class of parameter object could be specified. Returns 0 if no such parameter found (or class not match).

Definition at line 1427 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetParameter().

Referenced by TGo4EventProcessor::GetParameter(), MakeParameter(), and ObjectManager().

◆ GetPicture()

TGo4Picture * TGo4Analysis::GetPicture ( const char *  name)

Retrieves a picture object by name from the object folder. Returns 0 if no such picture.

Definition at line 1432 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetPicture().

Referenced by TGo4EventProcessor::GetPicture(), and ObjectManager().

◆ GetSniffer()

TGo4AnalysisSniffer* TGo4Analysis::GetSniffer ( ) const
inline

Returns pointer on current sniffer

Definition at line 899 of file TGo4AnalysisImp.h.

References fSniffer.

Referenced by TGo4AnalysisClient::SendStatusMessage(), and TGo4AnalysisClient::UpdateRate().

◆ GetTree()

TTree * TGo4Analysis::GetTree ( const char *  name)

Search tree in tree folder.

Definition at line 1442 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::GetTree().

Referenced by ObjectManager(), and TGo4DynamicList::ProcessTEntry().

◆ InitEventClasses()

Bool_t TGo4Analysis::InitEventClasses ( )
virtual

◆ Instance()

TGo4Analysis * TGo4Analysis::Instance ( )
static

Definition at line 112 of file TGo4AnalysisImp.cxx.

References GO4TRACE.

Referenced by TGo4EventProcessor::AddAnalysisCondition(), TGo4Sniffer::AddAnalysisObject(), TGo4AnalysisStepManager::AddAnalysisStep(), TGo4EventProcessor::AddCanvas(), TGo4EventProcessor::AddHistogram(), TGo4EventProcessor::AddObject(), TGo4EventProcessor::AddParameter(), TGo4EventProcessor::AddPicture(), TGo4AnalysisObjectManager::AddTreeHistogram(), TGo4AnalysisWebStatus::ApplyStatus(), TGo4AnalysisStepManager::AutoSave(), TGo4AnalysisObjectManager::CloseAnalysis(), TGo4Sniffer::CmdClear(), TGo4Sniffer::CmdClearObject(), TGo4Sniffer::CmdClose(), TGo4Sniffer::CmdCloseFiles(), TGo4Sniffer::CmdDeleteObject(), TGo4Sniffer::CmdExecute(), TGo4Sniffer::CmdExit(), TGo4Sniffer::CmdOpenFile(), TGo4Sniffer::CmdRestart(), TGo4Sniffer::CmdStart(), TGo4Sniffer::CmdStop(), TGo4HistogramServer::ConnectObjectClient(), CreateDefaultAnalysis(), TGo4AnalysisObjectManager::CreateNamesList(), TGo4AnalysisWebStatus::CreateStatus(), TGo4AnalysisObjectManager::CreateTreeStructure(), TGo4ComCloseAnalysis::ExeCom(), TGo4ComInitAnalysis::ExeCom(), TGo4ComAutosave::ExeCom(), TGo4ComPrintDynList::ExeCom(), TGo4ComPrintConditions::ExeCom(), TGo4ComPrintHistograms::ExeCom(), TGo4ComGetAnalysisStatus::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4ComLoadAnalysisStatus::ExeCom(), TGo4ComSaveAnalysisStatus::ExeCom(), TGo4ComDeleteObject::ExeCom(), TGo4ComGetObjectStatus::ExeCom(), TGo4ComSetProtections::ExeCom(), TGo4ComClearObject::ExeCom(), TGo4ComGetEnvelope::ExeCom(), TGo4ComSetPrintEvent::ExeCom(), TGo4ComSetAnalysisStatus::ExeCom(), TGo4ComGetCurrentEvent::ExeCom(), TGo4ComAddTreeHistogram::ExeCom(), TGo4ComSetObject::ExeCom(), TGo4AnalysisWebStatus::ExecuteLine(), TGo4EventProcessor::ExecuteLine(), TGo4EventProcessor::ExecutePython(), TGo4EventProcessor::ExecuteScript(), TGo4Sniffer::FindInHierarchy(), TGo4EventProcessor::GetAnalysisCondition(), TGo4AnalysisObjectManager::GetAsTObject(), TGo4EventProcessor::GetCanvas(), TGo4EventProcessor::GetHistogram(), TGo4EventProcessor::GetInputEvent(), TGo4EventProcessor::GetObject(), TGo4EventProcessor::GetOutputEvent(), TGo4EventProcessor::GetParameter(), TGo4EventProcessor::GetPicture(), HandleAnlysisEvents(), TGo4AnalysisStepManager::InitEventClasses(), TGo4EventProcessor::IsObjMade(), TGo4AnalysisObjectManager::LoadFolder(), TGo4AnalysisWebStatus::LoadStatus(), TGo4EventProcessor::MakeBoxCond(), TGo4EventProcessor::MakeCircleCond(), TGo4EventProcessor::MakeEllipseCond(), TGo4EventProcessor::MakeFreeShapeCond(), TGo4EventProcessor::MakeGraph(), TGo4EventProcessor::MakeListCond(), TGo4EventProcessor::MakeParameter(), TGo4EventProcessor::MakePolyCond(), TGo4EventProcessor::MakeRollingGraph(), TGo4EventProcessor::MakeTH1(), TGo4EventProcessor::MakeTH2(), TGo4EventProcessor::MakeWinCond(), TGo4EventProcessor::Message(), TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::NewEventSource(), TGo4AnalysisStep::NewEventStore(), TGo4MbsFile::NewFileAction(), TGo4AnalysisStep::NewInputEvent(), TGo4AnalysisStep::NewOutputEvent(), TGo4MbsFile::NextFile(), TGo4InterruptHandler::Notify(), TGo4DynamicList::ProcessHEntry(), TGo4DynamicList::ProcessTEntry(), TGo4AnalysisObjectManager::PutToFolder(), TGo4Sniffer::RemoteTreeDraw(), TGo4EventProcessor::RemoveAnalysisCondition(), TGo4EventProcessor::RemoveCanvas(), TGo4EventProcessor::RemoveHistogram(), TGo4AnalysisObjectManager::RemoveObjectFromFolder(), TGo4EventProcessor::RemoveParameter(), TGo4EventProcessor::RemovePicture(), TGo4AnalysisObjectManager::SaveFolder(), TGo4AnalysisObjectManager::SaveObjects(), TGo4AnalysisWebStatus::SaveStatus(), TGo4Sniffer::ScanRoot(), TGo4EventProcessor::SendObjectToGUI(), TGo4AnalysisStepManager::SetFirstStep(), TGo4AnalysisStepManager::SetLastStep(), TGo4EventProcessor::SetMakeWithAutosave(), TMeshProviderProc::SetRealInput(), StartAnalysis(), TGo4AnalysisClient::TGo4AnalysisClient(), TGo4AnalysisStep::TGo4AnalysisStep(), TGo4HistogramServer::TGo4HistogramServer(), TGo4Sniffer::TGo4Sniffer(), TMeshParameter::UpdateFrom(), TXXXCalibPar::UpdateFrom(), TGo4AnalysisWebStatus::UpdateFromUrl(), TGo4AnalysisClient::UpdateRate(), TGo4AnalysisWebStatus::WriteAutoSave(), and TGo4Sniffer::~TGo4Sniffer().

◆ IsAutoSaveFileChange()

Bool_t TGo4Analysis::IsAutoSaveFileChange ( ) const
inline

True if autosave file is changed according to the current input file of lmd file list.

Definition at line 505 of file TGo4AnalysisImp.h.

References fbAutoSaveFileChange.

Referenced by TGo4MbsFile::NewFileAction().

◆ IsAutoSaveFileName()

Bool_t TGo4Analysis::IsAutoSaveFileName ( ) const

Return kTRUE, if autosave file name set.

Definition at line 1062 of file TGo4AnalysisImp.cxx.

References fxAutoFileName.

Referenced by SetAutoSaveInterval().

◆ IsAutoSaveOn()

Bool_t TGo4Analysis::IsAutoSaveOn ( ) const
inline

True if autosaving is enabled

Definition at line 498 of file TGo4AnalysisImp.h.

References fbAutoSaveOn.

Referenced by TGo4ComAutosave::ExeCom(), and TGo4AnalysisClient::Initialization().

◆ IsBatchMode()

Bool_t TGo4Analysis::IsBatchMode ( )
static

Return kTRUE if analysis will run in batch (without connection to GUI)

Definition at line 127 of file TGo4AnalysisImp.cxx.

◆ IsClientMode()

Bool_t TGo4Analysis::IsClientMode ( )
static

Return kTRUE if analysis will run in gui mode, connected to gui as client

Definition at line 132 of file TGo4AnalysisImp.cxx.

◆ IsErrorStopEnabled()

Int_t TGo4Analysis::IsErrorStopEnabled ( ) const

True if current analysis step allows stop on error

Definition at line 1660 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::IsErrorStopEnabled().

Referenced by IsInitDone(), Process(), and TGo4AnalysisMainRunnable::Run().

◆ IsInitDone()

Bool_t TGo4Analysis::IsInitDone ( ) const
inline

True if the analysis steps are initialized

Definition at line 508 of file TGo4AnalysisImp.h.

References fbInitIsDone, IsErrorStopEnabled(), IsRunning(), SetRunning(), and WaitForStart().

Referenced by TGo4AnalysisWatchRunnable::Run(), and TGo4AnalysisClient::Start().

◆ IsNewInputFile()

Bool_t TGo4Analysis::IsNewInputFile ( ) const
inline

True if input filelist has changed to a new lmd file.

Definition at line 533 of file TGo4AnalysisImp.h.

References fbNewInputFile.

Referenced by TXXXAnalysis::UserEventFunc(), and TMeshAnalysis::UserEventFunc().

◆ IsObjMade()

Bool_t TGo4Analysis::IsObjMade ( ) const
inline

◆ IsRunning()

Bool_t TGo4Analysis::IsRunning ( ) const

True if the analysis as controlled by slave process is running. if no slave task (analysis client) is available, always true (plain batch mode never stops) Test: read by reference than copy value, faster?

Definition at line 1230 of file TGo4AnalysisImp.cxx.

References fbExists, fxAnalysisSlave, and TGo4Slave::MainIsRunning().

Referenced by IsInitDone(), Process(), TGo4AnalysisClient::UpdateRate(), TGo4AnalysisClient::UpdateStatus(), and WaitForStart().

◆ IsServerMode()

Bool_t TGo4Analysis::IsServerMode ( )
static

Return kTRUE if analysis will run in server mode and gui can connect to the analysis

Definition at line 137 of file TGo4AnalysisImp.cxx.

◆ IsSortedOrder()

Bool_t TGo4Analysis::IsSortedOrder ( ) const

Returns true if sub-folders will be created in sorted order

Definition at line 2294 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::IsSortedOrder().

Referenced by IsObjMade().

◆ IsStopWorking()

Bool_t TGo4Analysis::IsStopWorking ( ) const
inlineprivate

Returns true when event loop execution was stopped, only in batch mode

Definition at line 1015 of file TGo4AnalysisImp.h.

References flagStop, fxDoWorkingFlag, and ShutdownServer().

Referenced by TGo4AnalysisWebStatus::ApplyStatus().

◆ LoadObjects()

Bool_t TGo4Analysis::LoadObjects ( const char *  filename = nullptr)

Load analysis objects from file. File is the autosave file by default, but may be specified by name.

Definition at line 1153 of file TGo4AnalysisImp.cxx.

References CloseAutoSaveFile(), fbAutoSaveOn, fbAutoSaveOverwrite, fxAutoFile, fxAutoFileName, fxAutoSaveMutex, fxObjectManager, TGo4Log::Info(), TGo4AnalysisObjectManager::LoadObjects(), and OpenAutoSaveFile().

Referenced by InitEventClasses(), TGo4AnalysisClient::Initialization(), and ObjectManager().

◆ LoadStatus()

Bool_t TGo4Analysis::LoadStatus ( const char *  filename = nullptr)

◆ LockAutoSave()

Int_t TGo4Analysis::LockAutoSave ( )

Lock the autosave mutex. For usage in analysis client

Definition at line 1067 of file TGo4AnalysisImp.cxx.

References fxAutoSaveMutex, and GO4TRACE.

Referenced by SetAutoSaveInterval(), and TGo4AnalysisClient::~TGo4AnalysisClient().

◆ MainCycle()

Int_t TGo4Analysis::MainCycle ( )

◆ MakeBoxCond()

TGo4ShapedCond * TGo4Analysis::MakeBoxCond ( const char *  fullname,
Double_t  cx,
Double_t  cy,
Double_t  a1,
Double_t  a2,
Double_t  theta,
const char *  HistoName = nullptr 
)

Create tilted rectangular box shaped polygon condition. fullname specifies name of condition (optionally with subfolder name) cx,cy - center coordinates of box a1,a2 - width of box half axes theta - tilt angle HistoName - name of histogram, to which condition is assigned

Definition at line 2084 of file TGo4AnalysisImp.cxx.

References MakeEllipseCond(), and TGo4ShapedCond::SetBox().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeBoxCond().

◆ MakeCircleCond()

TGo4ShapedCond * TGo4Analysis::MakeCircleCond ( const char *  fullname,
Int_t  npoints,
Double_t  cx,
Double_t  cy,
Double_t  r,
const char *  HistoName = nullptr 
)

Create circular shaped polygon condition. fullname specifies name of condition (optionally with subfolder name) npoints - number of points in shaped condition, 0 for default resolution cx,cy - circle center coordinates r - circle radius HistoName - name of histogram, to which condition is assigned

Definition at line 2075 of file TGo4AnalysisImp.cxx.

References MakeEllipseCond(), and TGo4ShapedCond::SetCircle().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeCircleCond().

◆ MakeEllipseCond()

TGo4ShapedCond * TGo4Analysis::MakeEllipseCond ( const char *  fullname,
Int_t  npoints,
Double_t  cx,
Double_t  cy,
Double_t  a1,
Double_t  a2,
Double_t  theta = 0.,
const char *  HistoName = nullptr 
)

Create ellipse shaped polygon condition. fullname specifies name of condition (optionally with subfolder name) npoints - number of points in ellipse condition, 0 for default resolution cx,cy - center coordinates of ellipse a1,a2 - width of ellipse half axes theta - ellipse tilt angle HistoName - name of histogram, to which condition is assigned

Definition at line 2038 of file TGo4AnalysisImp.cxx.

References AddAnalysisCondition(), TGo4Condition::Enable(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), TGo4Condition::ResetCounts(), TGo4ShapedCond::SetEllipse(), and TGo4Condition::SetHistogram().

Referenced by IsObjMade(), MakeBoxCond(), MakeCircleCond(), and TGo4EventProcessor::MakeEllipseCond().

◆ MakeFreeShapeCond()

TGo4ShapedCond * TGo4Analysis::MakeFreeShapeCond ( const char *  fullname,
Int_t  npoints,
Double_t(*)  points[2],
const char *  HistoName = nullptr 
)

Create free shaped (polygon) condition. in contrast to plain TGo4PolyCond, this one can be converted later to different dedicated shape types (ellipse, box, etc.) fullname specifies name of condition (optionally with subfolder name) npoints - number of points in polygon condition points - (X,Y) points HistoName - name of histogram, to which condition is assigned To use method, array should be declared as following: Double_t points[4][2] = { {10, 0}, {10, 10}, {5, 15}, {5, 5} }; cond = MakePolyCond("Folder/CondName", 4, points);

Definition at line 2092 of file TGo4AnalysisImp.cxx.

References MakePolyCond(), and TGo4ShapedCond::SetFreeShape().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeFreeShapeCond().

◆ MakeGraph() [1/2]

TGraph * TGo4Analysis::MakeGraph ( const char *  fullname,
const char *  title,
Int_t  points = 0,
Double_t *  xvalues = nullptr,
Double_t *  yvalues = nullptr 
)

Create a TGraph with initial values as specified by points, xvalues and yvalues. If theses parameters are missing, an empty graph is created to be specified by the user. If a graph of this name already exists in the autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 2152 of file TGo4AnalysisImp.cxx.

References AddObject(), TGo4Log::Error(), EvaluateFolderpath(), fbObjMade, and GetObject().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeGraph().

◆ MakeGraph() [2/2]

TGraph * TGo4Analysis::MakeGraph ( const char *  fullname,
const char *  title,
TF1 *  function 
)

Create a TGraph with values initialized by a function object TF1l. If a graph of this name already exists in the autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 2180 of file TGo4AnalysisImp.cxx.

References AddObject(), TGo4Log::Error(), EvaluateFolderpath(), fbObjMade, and GetObject().

◆ MakeListCond() [1/3]

TGo4ListCond * TGo4Analysis::MakeListCond ( const char *  fullname,
const Int_t  num,
const Int_t *  values,
const char *  HistoName = nullptr 
)

Create "whitlelist" condition with separate values to test against condition is true if any of the values matches fullname specifies name of condition (optionally with subfolder name) num - number of values in array values - 1d array with values HistoName - name of histogram, to which condition is assigned

Definition at line 2136 of file TGo4AnalysisImp.cxx.

References fbObjMade, and TGo4ListCond::SetValues().

Referenced by IsObjMade(), TGo4EventProcessor::MakeListCond(), and MakeListCond().

◆ MakeListCond() [2/3]

TGo4ListCond * TGo4Analysis::MakeListCond ( const char *  fullname,
const Int_t  start,
const Int_t  stop,
const Int_t  step = 1,
const char *  HistoName = nullptr 
)

Create "whitlelist" condition with separate values to test against condition is true if any of the values matches fullname specifies name of condition (optionally with subfolder name) start - first value in list stop - last value in list step - distance between list entries HistoName - name of histogram, to which condition is assigned

Definition at line 2144 of file TGo4AnalysisImp.cxx.

References fbObjMade, MakeListCond(), and TGo4ListCond::SetValues().

◆ MakeListCond() [3/3]

TGo4ListCond * TGo4Analysis::MakeListCond ( const char *  fullname,
const char *  title,
const char *  HistoName = nullptr 
)

Create "whitlelist" condition with separate values to tes against condition is true if any of the values matches This method creates empty list condition of specified name and title to be set by the user, or already defined condition from previous autosave

Definition at line 2102 of file TGo4AnalysisImp.cxx.

References AddAnalysisCondition(), TGo4Condition::Enable(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), TGo4Condition::ResetCounts(), and TGo4Condition::SetHistogram().

◆ MakeParameter()

TGo4Parameter * TGo4Analysis::MakeParameter ( const char *  fullname,
const char *  classname,
const char *  cmd = nullptr 
)

Create parameter of specified class, fullname specifies name of condition (optionally with subfolder name) classname - name of required parameter class, it should be known to ROOT. cmd - optional argument, can be used for two purposes: 1) as new command to create parameter like "new UserParameter(%s, 1000, 2000)", where s is place for parameter name. Should be specified, if parameter constructor contains more parameters as only parameter name. Such argument should be always started with 'new ' command. 2) macro name to set parameter value. Macro executed immediately after parameter creation (or loading from auto-save file) and thus overwrites parameters value. Macro name should be always starting with "set_"

Definition at line 2225 of file TGo4AnalysisImp.cxx.

References AddParameter(), TGo4Log::Error(), ExecuteScript(), fbObjMade, GetParameter(), TGo4Log::Info(), and RemoveParameter().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeParameter().

◆ MakePolyCond()

TGo4PolyCond * TGo4Analysis::MakePolyCond ( const char *  fullname,
Int_t  npoints,
Double_t(*)  points[2],
const char *  HistoName = nullptr,
Bool_t  shapedcond = kFALSE 
)

Create polygon condition. fullname specifies name of condition (optionally with subfolder name) npoints - number of points in polygon condition points - (X,Y) points HistoName - name of histogram, to which condition is assigned shapedcond - create a freestyle TGo4ShapedCond To use method, array should be declared as following: Double_t points[4][2] = { {10, 0}, {10, 10}, {5, 15}, {5, 5} }; cond = MakePolyCond("Folder/CondName", 4, points);

Definition at line 1978 of file TGo4AnalysisImp.cxx.

References AddAnalysisCondition(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), and TGo4Condition::ResetCounts().

Referenced by IsObjMade(), MakeFreeShapeCond(), and TGo4EventProcessor::MakePolyCond().

◆ MakeRollingGraph()

TGo4RollingGraph * TGo4Analysis::MakeRollingGraph ( const char *  fullname,
const char *  title,
Int_t  points = 0,
Int_t  average = 1 
)

Create a go4 rolling graph (generic trending plot) with properties points and average. If theses parameters are missing, an empty graph is created to be specified by the user. If a rolling graph of this name already exists in the autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 2203 of file TGo4AnalysisImp.cxx.

References AddObject(), TGo4Log::Error(), EvaluateFolderpath(), fbObjMade, and GetObject().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeRollingGraph().

◆ MakeTH1()

TH1 * TGo4Analysis::MakeTH1 ( char  type,
const char *  fullname,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup,
const char *  xtitle = nullptr,
const char *  ytitle = nullptr 
)

Create one dimensional histogram of specified type. Type can be: 'I', 'i' for TH1I - Int_t as bin content (default) 'F', 'f' for TH1F - Float_t as bin content 'D', 'd' for TH1D - Double_t as bin content 'S', 's' for TH1S - Short_t as bin content 'C', 'c' for TH1C - Char_t as bin content fullname specifies name of histogram (optionally with subfolder name) title - histogram title nbinsx, xlow, xup - range arguments for X axis xtitle, ytitle - title for X and Y axis of histogram If histogram exactly with same name and type already exists in autosave file, it will be return. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 1741 of file TGo4AnalysisImp.cxx.

References AddHistogram(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetHistogram(), TGo4Log::Info(), and RemoveHistogram().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeTH1().

◆ MakeTH2()

TH2 * TGo4Analysis::MakeTH2 ( char  type,
const char *  fullname,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup,
Int_t  nbinsy,
Double_t  ylow,
Double_t  yup,
const char *  xtitle = nullptr,
const char *  ytitle = nullptr,
const char *  ztitle = nullptr 
)

Create two dimensional histogram of specified type. Type can be: 'I', 'i' for TH2I - Int_t as bin content (default) 'F', 'f' for TH2F - Float_t as bin content 'D', 'd' for TH2D - Double_t as bin content 'S', 's' for TH2S - Short_t as bin content 'C', 'c' for TH1C - Char_t as bin content fullname specifies name of histogram (optionally with subfolder name) title - histogram title nbinsx, xlow, xup - range arguments for X axis nbinsy, ylow, yup - range arguments for Y axis xtitle, ytitle, ztitle - title for X, Y and Z axis of histogram If histogram exactly with same name and type already exists in autosave file, it will be return. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 1821 of file TGo4AnalysisImp.cxx.

References AddHistogram(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetHistogram(), TGo4Log::Info(), and RemoveHistogram().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeTH2().

◆ MakeWinCond() [1/2]

TGo4WinCond * TGo4Analysis::MakeWinCond ( const char *  fullname,
Double_t  xmin,
Double_t  xmax,
const char *  HistoName = nullptr 
)

Create 1D window condition. fullname specifies name of condition (optionally with subfolder name) xmin, xmax - condition range HistoName - name of histogram, to which condition is assigned

Definition at line 1905 of file TGo4AnalysisImp.cxx.

References AddAnalysisCondition(), TGo4Condition::Enable(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), TGo4Condition::ResetCounts(), TGo4Condition::SetHistogram(), and TGo4WinCond::SetValues().

Referenced by IsObjMade(), and TGo4EventProcessor::MakeWinCond().

◆ MakeWinCond() [2/2]

TGo4WinCond * TGo4Analysis::MakeWinCond ( const char *  fullname,
Double_t  xmin,
Double_t  xmax,
Double_t  ymin,
Double_t  ymax,
const char *  HistoName = nullptr 
)

Create 2D window condition. fullname specifies name of condition (optionally with subfolder name) xmin, xmax - X condition range ymin, ymax - Y condition range HistoName - name of histogram, to which condition is assigned

Definition at line 1941 of file TGo4AnalysisImp.cxx.

References AddAnalysisCondition(), TGo4Condition::Enable(), TGo4Log::Error(), EvaluateFolderpath(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), TGo4Condition::ResetCounts(), TGo4Condition::SetHistogram(), and TGo4WinCond::SetValues().

◆ Message()

void TGo4Analysis::Message ( Int_t  prio,
const char *  text,
  ... 
)

Display a user message. Argument pri defines message priority: <0: display text as info on local terminal and in logfile anyway, independent of ignorelevel 0: local terminal only; if debug level is enabled (TGo4Log::SetIgnorelevel(0)) 1: local terminal and info message in gui log panel (if gui mode) 2: local terminal and warning message in gui log panel (if gui mode) 3: local terminal and error message in gui log panel (if gui mode)

Definition at line 1182 of file TGo4AnalysisImp.cxx.

References go4init::args, TGo4Log::fguMESLEN, and SendMessageToGUI().

Referenced by TGo4AnalysisStepManager::AddAnalysisStep(), TGo4AnalysisObjectManager::AddTreeHistogram(), TGo4AnalysisStepManager::AutoSave(), AutoSave(), TGo4AnalysisObjectManager::CloseAnalysis(), CloseAutoSaveFile(), TGo4HistogramServer::ConnectObjectClient(), Constructor(), TGo4AnalysisObjectManager::CreateTreeStructure(), TGo4AnalysisObjectManager::GetAsTObject(), GetDefaultTestFileName(), TGo4AnalysisStepManager::InitEventClasses(), InitEventClasses(), TGo4AnalysisObjectManager::LoadFolder(), LoadStatus(), MainCycle(), TGo4EventProcessor::Message(), TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::NewEventSource(), TGo4AnalysisStep::NewEventStore(), TGo4MbsFile::NewFileAction(), TGo4AnalysisStep::NewInputEvent(), TGo4AnalysisStep::NewOutputEvent(), TGo4MbsFile::NextFile(), OpenAutoSaveFile(), Process(), TGo4AnalysisObjectManager::PutToFolder(), TGo4AnalysisObjectManager::RemoveObjectFromFolder(), TGo4HisConnectorRunnable::Run(), RunImplicitLoop(), TGo4AnalysisObjectManager::SaveFolder(), TGo4AnalysisObjectManager::SaveObjects(), SaveStatus(), SendObjectToGUI(), TGo4AnalysisStepManager::SetFirstStep(), TGo4AnalysisStepManager::SetLastStep(), ShowEvent(), StartAnalysis(), StartObjectServer(), StopObjectServer(), TGo4HistogramServer::TGo4HistogramServer(), UpdateNamesList(), UserPostLoop(), and UserPreLoop().

◆ NewStepProcessor()

Bool_t TGo4Analysis::NewStepProcessor ( const char *  name,
TGo4EventProcessorParameter par 
)

Shuts down the old analysis step processor and creates a new one specified by parameter par. To be used in online mode to switch event processing.

Definition at line 1620 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::NewStepProcessor().

Referenced by ObjectManager().

◆ NewStepSource()

Bool_t TGo4Analysis::NewStepSource ( const char *  name,
TGo4EventSourceParameter par 
)

Shuts down the old analysis step event source and creates a new one specified by parameter par. To be used in online mode to switch input.

Definition at line 1625 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::NewStepSource().

Referenced by ObjectManager().

◆ NewStepStore()

Bool_t TGo4Analysis::NewStepStore ( const char *  name,
TGo4EventStoreParameter par 
)

Shuts down the old analysis step storage and creates a new one specified by parameter par. To be used in online mode to switch output files.

Definition at line 1630 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::NewStepStore().

Referenced by ObjectManager().

◆ NextMatchingObject()

TObject * TGo4Analysis::NextMatchingObject ( const char *  expr = nullptr,
const char *  folder = nullptr,
Bool_t  reset = kFALSE 
)

Delivers pointer to next object of the Go4 folder structure with a name matching the expression expr. If reset is true, The list of matching objects will be created anew by comparing all names with expr. If reset is false, the next object of a previously created matching list is returned. Optionally the search can be limited to a given folder.

Definition at line 1587 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::NextMatchingObject().

Referenced by ObjectManager().

◆ ObjectManager()

TGo4AnalysisObjectManager* TGo4Analysis::ObjectManager ( ) const
inline

◆ OpenAutoSaveFile()

void TGo4Analysis::OpenAutoSaveFile ( bool  for_writing = false)
private

Open the autosave file with the current settings.

Definition at line 1101 of file TGo4AnalysisImp.cxx.

References fbAutoSaveOn, fiAutoSaveCompression, fxAutoFile, fxAutoFileName, fxAutoSaveMutex, and Message().

Referenced by AutoSave(), LoadObjects(), and SetAnalysisClient().

◆ PostLoop()

Int_t TGo4Analysis::PostLoop ( )

◆ PreLoop()

Int_t TGo4Analysis::PreLoop ( )

◆ Print()

void TGo4Analysis::Print ( Option_t *  opt = "") const
override

Printout the analysis (step-) setup.

Definition at line 949 of file TGo4AnalysisImp.cxx.

References CreateStatus(), and TGo4AnalysisStatus::Print().

Referenced by GetDefaultTestFileName().

◆ PrintConditions()

void TGo4Analysis::PrintConditions ( const char *  expression = nullptr)

Print all condition counters to the terminal.

Definition at line 1567 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::PrintConditions().

Referenced by TGo4ComPrintConditions::ExeCom(), and GetDefaultTestFileName().

◆ PrintDynamicList()

void TGo4Analysis::PrintDynamicList ( )

Print entries of current dynamic list.

Definition at line 1582 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::PrintDynamicList().

Referenced by TGo4ComPrintDynList::ExeCom(), and GetDefaultTestFileName().

◆ PrintHistograms()

void TGo4Analysis::PrintHistograms ( const char *  expression = nullptr)

Printout of all histogram statistic counters on the terminal.

Definition at line 1572 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::PrintHistograms().

Referenced by TGo4ComPrintHistograms::ExeCom(), and GetDefaultTestFileName().

◆ PrintParameters()

void TGo4Analysis::PrintParameters ( const char *  expression = nullptr)

Printout of all parameters on the terminal.

Definition at line 1577 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::PrintParameters().

Referenced by GetDefaultTestFileName().

◆ Process()

Int_t TGo4Analysis::Process ( )

◆ ProcessAnalysisSteps()

Int_t TGo4Analysis::ProcessAnalysisSteps ( )
protected

Uses the chain of analysis steps to process the first input event into an output event which then is accessible at the output event member. Returns number of steps run. For internal usage in the MainCycle and GetEvent methods; may also be called from UserEventFunc directly.

Definition at line 1670 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::ProcessAnalysisSteps().

Referenced by MainCycle().

◆ ProcessCrtlCSignal()

void TGo4Analysis::ProcessCrtlCSignal ( )

Method called from Ctrl-C handler

Definition at line 305 of file TGo4AnalysisImp.cxx.

References CloseAnalysis(), CloseAutoSaveFile(), TGo4Log::CloseLogfile(), fNumCtrlC, ShutdownServer(), and StopWorking().

Referenced by IsObjMade(), TGo4InterruptHandler::Notify(), and StartAnalysis().

◆ ProcessEvents()

void TGo4Analysis::ProcessEvents ( )

Method should be called to process extra events in the analysis thread context

Definition at line 410 of file TGo4AnalysisImp.cxx.

References fSniffer, and TGo4AnalysisSniffer::ProcessSnifferEvents().

Referenced by GetAnalysisClient(), HandleAnlysisEvents(), Process(), TGo4AnalysisMainRunnable::Run(), and RunImplicitLoop().

◆ ProtectObjects()

Bool_t TGo4Analysis::ProtectObjects ( const char *  name,
const Option_t *  flags 
)

Change protection properties of object name as specified. If object is a folder, change properties of all objects in this folder recursively. Flags may contain key letters like: "+C"/"-C" to enable/disable protection against Clear()(histogram zeroing etc). "+D"/"-D" to enable/disable protection against object deletion For example flags="+C-D", "+C+D", "-D-C", "-C" Properties not appearing in flags are not changed.

Definition at line 1532 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::ProtectObjects().

Referenced by TGo4ComSetProtections::ExeCom(), and ObjectManager().

◆ RemoveAnalysisCondition()

Bool_t TGo4Analysis::RemoveAnalysisCondition ( const char *  name)

Removes analysis condition from list by name. Returns 0 if no such condition. Condition object is deleted on heap.

Definition at line 1512 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveAnalysisCondition().

Referenced by MakeEllipseCond(), MakeListCond(), MakePolyCond(), MakeWinCond(), ObjectManager(), and TGo4EventProcessor::RemoveAnalysisCondition().

◆ RemoveCanvas()

Bool_t TGo4Analysis::RemoveCanvas ( const char *  name)

Removes TCanvas by name. Returns 0 if no such canvas. TCanvas object is deleted on heap.

Definition at line 1502 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveCanvas().

Referenced by ObjectManager(), and TGo4EventProcessor::RemoveCanvas().

◆ RemoveDynamicEntry()

Bool_t TGo4Analysis::RemoveDynamicEntry ( const char *  entryname,
const char *  listname = nullptr 
)

Remove entry of that name from dynamic list of listname. The referred objects (histograms, conditions..) are still on heap, since they are owned by their special folders.

Definition at line 805 of file TGo4AnalysisImp.cxx.

References fxObjectManager, GO4TRACE, TGo4AnalysisObjectManager::RemoveDynamicEntry(), and UpdateNamesList().

Referenced by ObjectManager().

◆ RemoveEventProcessor()

Bool_t TGo4Analysis::RemoveEventProcessor ( TGo4EventProcessor pro)
private

Remove reference to event processor from go4 folder structure.

Definition at line 1517 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventProcessor().

Referenced by TGo4AnalysisStep::CloseEventProcessor(), and GetNamesList().

◆ RemoveEventSource()

Bool_t TGo4Analysis::RemoveEventSource ( TGo4EventSource source)
private

Remove reference to event source from go4 folder structure.

Definition at line 1467 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventSource().

Referenced by TGo4AnalysisStep::CloseEventSource(), and GetNamesList().

◆ RemoveEventStore()

Bool_t TGo4Analysis::RemoveEventStore ( TGo4EventStore store)
private

Remove reference to event store from go4 folder structure.

Definition at line 1472 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventStore().

Referenced by TGo4AnalysisStep::CloseEventStore(), and GetNamesList().

◆ RemoveEventStructure()

Bool_t TGo4Analysis::RemoveEventStructure ( TGo4EventElement ev)
private

Remove reference to event structure from go4 folder structure.

Definition at line 1477 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventStructure().

Referenced by TGo4AnalysisStep::DeleteInputEvent(), TGo4AnalysisStep::DeleteOutputEvent(), and GetNamesList().

◆ RemoveHistogram()

Bool_t TGo4Analysis::RemoveHistogram ( const char *  name,
Bool_t  del = kTRUE 
)

Removes histogram from histogram dir by name. Returns kFALSE if no such index. Histogram object is deleted on heap. Dynamic list entry for that histogram object is also removed.

Definition at line 1482 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveHistogram().

Referenced by MakeTH1(), MakeTH2(), ObjectManager(), and TGo4EventProcessor::RemoveHistogram().

◆ RemoveObject()

Bool_t TGo4Analysis::RemoveObject ( const char *  name,
Bool_t  del = kTRUE 
)

Removes object from user object folder by name. Returns kFALSE if no such histogram. Object is deleted on heap only if del is true. Otherwise, user owns the object afterwards.

Definition at line 1487 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveObject().

Referenced by ObjectManager().

◆ RemoveParameter()

Bool_t TGo4Analysis::RemoveParameter ( const char *  name)

Removes parameter by name. Returns 0 if no such parameter. Parameter object is deleted on heap.

Definition at line 1492 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveParameter().

Referenced by MakeParameter(), ObjectManager(), and TGo4EventProcessor::RemoveParameter().

◆ RemovePicture()

Bool_t TGo4Analysis::RemovePicture ( const char *  name)

Removes picture by name. Returns 0 if no such picture. Picture object is deleted on heap.

Definition at line 1497 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemovePicture().

Referenced by ObjectManager(), and TGo4EventProcessor::RemovePicture().

◆ RemoveTree()

Bool_t TGo4Analysis::RemoveTree ( TTree *  tree,
const char *  stepname = nullptr 
)

Remove reference to a tree in the go4 folder structure. If name of analysis step is given, tree will be assigned to folder dedicated to that step. In stepname is zero, the tree will be put into general tree folder.

Definition at line 1507 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::RemoveTree().

Referenced by TGo4AnalysisStep::CloseEventStore(), and ObjectManager().

◆ ResetBackStores()

Bool_t TGo4Analysis::ResetBackStores ( Bool_t  clearflag = kFALSE)

Clear previous events of backstore tree. For reset of dynamic tree histogram If called with clearflag=true, do not reset tree, but only clear the backstore reset bit (done after processing of complete dynamic list)

Definition at line 1537 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::ResetBackStores().

Referenced by ObjectManager().

◆ RunImplicitLoop()

Int_t TGo4Analysis::RunImplicitLoop ( Int_t  times,
Bool_t  showrate = kFALSE,
Double_t  process_event_interval = -1.,
Bool_t  iswebserver = kFALSE 
)

◆ SaveStatus()

Bool_t TGo4Analysis::SaveStatus ( const char *  filename = nullptr)

Save current analysis settings into file of given name.

Definition at line 892 of file TGo4AnalysisImp.cxx.

References CreateStatus(), fgcDEFAULTFILESUF, fgcDEFAULTSTATUSFILENAME, fxConfigFilename, GO4TRACE, and Message().

Referenced by TGo4ComSaveAnalysisStatus::ExeCom(), ObjectManager(), and TGo4AnalysisWebStatus::SaveStatus().

◆ SendMessageToGUI()

void TGo4Analysis::SendMessageToGUI ( Int_t  level,
Bool_t  printout,
const char *  text 
)
private

Send message string in a status object to the gui. Will be displayed in status window. Level indicates info (1), warning (2) or error(3), if printout is true, message will also be printed on terminal. In non-GUI mode, this method is equivalent to TGo4Log::Message

Definition at line 1192 of file TGo4AnalysisImp.cxx.

References fSniffer, fxAnalysisSlave, TGo4Log::IsOutputEnabled(), TGo4Log::Message(), TGo4Log::OutputEnable(), TGo4AnalysisClient::SendStatusMessage(), and TGo4AnalysisSniffer::StatusMessage().

Referenced by TGo4Sniffer::CmdClear(), Message(), and SetAnalysisClient().

◆ SendObjectToGUI()

void TGo4Analysis::SendObjectToGUI ( TObject *  ob)

User May send any named object via data channel to the gui. In batch mode, this method is disabled.

Definition at line 1209 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::FindObjectPathName(), fxAnalysisSlave, Message(), ObjectManager(), and TGo4Slave::SendObject().

Referenced by GetDefaultTestFileName(), and TGo4EventProcessor::SendObjectToGUI().

◆ SetAdministratorPassword()

void TGo4Analysis::SetAdministratorPassword ( const char *  passwd)

Specify password for administrator account. For login from remote gui into analysis server

Definition at line 1723 of file TGo4AnalysisImp.cxx.

References fServerAdminPass.

Referenced by GetDefaultTestFileName().

◆ SetAnalysisClient()

void TGo4Analysis::SetAnalysisClient ( TGo4AnalysisClient cli)
inlineprivate

Register analysis client if running in gui mode.

Definition at line 997 of file TGo4AnalysisImp.h.

References CloseAutoSaveFile(), fxAnalysisSlave, OpenAutoSaveFile(), and SendMessageToGUI().

Referenced by TGo4AnalysisClient::TGo4AnalysisClient().

◆ SetAnalysisCondition()

Bool_t TGo4Analysis::SetAnalysisCondition ( const char *  name,
TGo4Condition con,
Bool_t  counter = kTRUE 
)

Set existing analysis condition of name to the values of external condition object con. Used to set condition by command from gui, or to update the precompiled condition from the values that were saved to the autosave file.

Definition at line 1542 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::SetAnalysisCondition().

Referenced by TGo4ComSetObject::ExeSetCon(), and ObjectManager().

◆ SetAnalysisName()

void TGo4Analysis::SetAnalysisName ( const char *  name)
inline

◆ SetAutoSave()

void TGo4Analysis::SetAutoSave ( Bool_t  on = kTRUE)
inline

enable/disable functionality of AutoSave method

Definition at line 495 of file TGo4AnalysisImp.h.

References fbAutoSaveOn.

Referenced by TGo4ComAutosave::ExeCom(), main(), TGo4AnalysisClient::SetCintMode(), and SetStatus().

◆ SetAutoSaveFile()

void TGo4Analysis::SetAutoSaveFile ( const char *  filename = nullptr,
Bool_t  overwrite = kFALSE,
Int_t  compression = 5 
)

◆ SetAutoSaveFileChange()

void TGo4Analysis::SetAutoSaveFileChange ( Bool_t  on = kTRUE)
inline

Set analysis in mode where autosave file switches for each new input file

Definition at line 501 of file TGo4AnalysisImp.h.

References fbAutoSaveFileChange.

◆ SetAutoSaveInterval()

void TGo4Analysis::SetAutoSaveInterval ( Int_t  interval = 0)
inline

Set time interval (in s) for autosave action.

Definition at line 478 of file TGo4AnalysisImp.h.

References fiAutoSaveInterval, IsAutoSaveFileName(), LockAutoSave(), SetAutoSaveFile(), and UnLockAutoSave().

Referenced by main(), and SetStatus().

◆ SetBatchLoopCount()

void TGo4Analysis::SetBatchLoopCount ( Int_t  cnt = -1)
inline

Set number of event loop count, executed in batch mode

Definition at line 691 of file TGo4AnalysisImp.h.

References fBatchLoopCount.

◆ SetControllerPassword()

void TGo4Analysis::SetControllerPassword ( const char *  passwd)

Specify password for controller account. For login from remote gui into analysis server

Definition at line 1718 of file TGo4AnalysisImp.cxx.

References fServerCtrlPass.

Referenced by GetDefaultTestFileName().

◆ SetDynListInterval()

void TGo4Analysis::SetDynListInterval ( Int_t  val)

◆ SetFirstStep()

Bool_t TGo4Analysis::SetFirstStep ( const char *  name)

Sets analysis step name as first one to be processed in the chain of steps. First step will read input event from its event source. If name is nullptr, takes first step in steplist.

Definition at line 1645 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::SetFirstStep().

Referenced by ObjectManager().

◆ SetInputFileName()

void TGo4Analysis::SetInputFileName ( const char *  fname)
inline

Set current input file name

Definition at line 536 of file TGo4AnalysisImp.h.

References fxCurrentInputFileName.

Referenced by TGo4MbsFile::NewFileAction().

◆ SetLastStep()

Bool_t TGo4Analysis::SetLastStep ( const char *  name)

Sets analysis step name as last one to be processed in the chain of steps. Last step will write output event into its event store by default, its output event is accessible in the user analysis. If name is nullptr, takes last step in steplist.

Definition at line 1650 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::SetLastStep().

Referenced by ObjectManager().

◆ SetMakeWithAutosave()

void TGo4Analysis::SetMakeWithAutosave ( Bool_t  on = kTRUE)
inline

Set flag to use data from autosave file in Make... methods (default true)

Definition at line 694 of file TGo4AnalysisImp.h.

References fbMakeWithAutosave.

Referenced by TGo4EventProcessor::SetMakeWithAutosave().

◆ SetNewInputFile()

void TGo4Analysis::SetNewInputFile ( Bool_t  on = kTRUE)
inline

Set flag that input file has changed

Definition at line 530 of file TGo4AnalysisImp.h.

References fbNewInputFile.

Referenced by MainCycle(), and TGo4MbsFile::NewFileAction().

◆ SetObserverPassword()

void TGo4Analysis::SetObserverPassword ( const char *  passwd)

Specify password for observer account. For login from remote gui into analysis server

Definition at line 1713 of file TGo4AnalysisImp.cxx.

References fServerObserverPass.

Referenced by GetDefaultTestFileName().

◆ SetOutputEvent()

void TGo4Analysis::SetOutputEvent ( TGo4EventElement event)
private

Sets the current output event (detector) structure. For internal usage by the chain of analysis steps, since TGo4AnalysisStep is friend.

Definition at line 1675 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::SetOutputEvent().

Referenced by GetNamesList(), and TGo4AnalysisStep::Process().

◆ SetParameter()

Bool_t TGo4Analysis::SetParameter ( const char *  name,
TGo4Parameter par 
)

Set existing parameter of name to the values of external parameter object par. Used to set parameter by command from gui, or to update the precompiled parameter from the values that were saved to the autosave file.

Definition at line 1547 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::SetParameter().

Referenced by TGo4ComSetObject::ExeSetPar(), and ObjectManager().

◆ SetParameterStatus()

Bool_t TGo4Analysis::SetParameterStatus ( const char *  name,
TGo4ParameterStatus par 
)

Set existing parameter of name to the values of external parameter status object. Used to set parameter by command from gui, or to update the precompiled parameter from the values that were saved to the autosave file.

Definition at line 1552 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::SetParameterStatus().

Referenced by TGo4ComSetObject::ExeSetParStatus(), and ObjectManager().

◆ SetPicture()

Bool_t TGo4Analysis::SetPicture ( const char *  name,
TGo4Picture pic 
)

Set existing picture of name to the values of external picture object pic. Used to set picture by command from gui, or to update the precompiled picture from the values that were saved to the autosave file.

Definition at line 1557 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::SetPicture().

Referenced by TGo4ComSetObject::ExeSetPic(), and ObjectManager().

◆ SetRunning()

void TGo4Analysis::SetRunning ( Bool_t  on = kTRUE)

Switch slave process into running state. To be used from analysis macro to start/stop the go4 loop on certain conditions.

Definition at line 1238 of file TGo4AnalysisImp.cxx.

References fxAnalysisSlave, TGo4AnalysisClient::Start(), and TGo4AnalysisClient::Stop().

Referenced by IsInitDone().

◆ SetRunningMode()

void TGo4Analysis::SetRunningMode ( int  mode)
static

Definition at line 142 of file TGo4AnalysisImp.cxx.

Referenced by main().

◆ SetSniffer()

void TGo4Analysis::SetSniffer ( TGo4AnalysisSniffer sniff)
inline

Set pointer on sniffer object

Definition at line 896 of file TGo4AnalysisImp.h.

References fSniffer.

Referenced by TGo4Sniffer::TGo4Sniffer(), and TGo4Sniffer::~TGo4Sniffer().

◆ SetSortedOrder()

void TGo4Analysis::SetSortedOrder ( Bool_t  on = kTRUE)

Configure sorting order for newly created sub-folders

Definition at line 2289 of file TGo4AnalysisImp.cxx.

References fxObjectManager, and TGo4AnalysisObjectManager::SetSortedOrder().

Referenced by IsObjMade().

◆ SetStatus()

void TGo4Analysis::SetStatus ( TGo4AnalysisStatus state)

Set all analysis parameters to that of given status object. Analysis will be stopped, all steps are closed (deleted). Then analysis steps are created due to list of analysis step status objects encapsulated in the analysis status object. This method does not initialize the analysis due to the new parameters; this is left to InitEventClasses.

Definition at line 830 of file TGo4AnalysisImp.cxx.

References CloseAnalysis(), fxStepManager, TGo4AnalysisStatus::GetAutoFileName(), TGo4AnalysisStatus::GetAutoSaveCompression(), TGo4AnalysisStatus::GetAutoSaveInterval(), GO4TRACE, TGo4AnalysisStatus::IsAutoSaveOn(), TGo4AnalysisStatus::IsAutoSaveOverwrite(), SetAutoSave(), SetAutoSaveFile(), SetAutoSaveInterval(), and TGo4AnalysisStepManager::SetStatus().

Referenced by TGo4AnalysisWebStatus::ApplyStatus(), TGo4ComSetAnalysisStatus::ExeCom(), LoadStatus(), ObjectManager(), and TGo4AnalysisWebStatus::UpdateFromUrl().

◆ SetStepChecking()

void TGo4Analysis::SetStepChecking ( Bool_t  on = kTRUE)

Enable or disable check of subsequent analysis step for io consistency. Default is on, disable for non serial type analyses.

Definition at line 1640 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::SetStepChecking().

Referenced by ObjectManager(), and TMeshAnalysis::TMeshAnalysis().

◆ SetStepStorage()

Bool_t TGo4Analysis::SetStepStorage ( const char *  name,
Bool_t  on 
)

Enables analysis step of name to write its output event into its event store. By default only the last analysis step will keep the output event in the store, the intermediate steps will only pass the output to the subsequent step. This method lets also any intermediate step write the result to its store, which can later be used to process from this point of the analysis chain. However, you may also switch off the storage of the last analysis step output if you only want to use the histograms produced by the final user event function.

Definition at line 1655 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::SetStepStorage().

Referenced by ObjectManager().

◆ ShowEvent()

void TGo4Analysis::ShowEvent ( const char *  stepname,
Bool_t  isoutput = kTRUE 
)

Printout event content of single current event to analysis terminal (using ROOT TTree::Show method). Event is searched by name of analysis step. If isoutput true, then output event of that step is used, otherwise input event. If analysis step not found, event of stepname is searched in registered folders.

Definition at line 1298 of file TGo4AnalysisImp.cxx.

References CreateSingleEventTree(), and Message().

Referenced by TGo4ComGetCurrentEvent::ExeCom(), and GetDefaultTestFileName().

◆ ShutdownServer()

void TGo4Analysis::ShutdownServer ( )
private

◆ StartAnalysis()

void TGo4Analysis::StartAnalysis ( )

◆ StartObjectServer()

void TGo4Analysis::StartObjectServer ( const char *  basename,
const char *  passwd 
)

Start the object (histogram) server. Existing server will be stopped and replaced by new server with different basename and password.

Definition at line 1265 of file TGo4AnalysisImp.cxx.

References fxAnalysisSlave, and Message().

Referenced by GetDefaultTestFileName().

◆ StopAnalysis()

void TGo4Analysis::StopAnalysis ( )

◆ StopObjectServer()

void TGo4Analysis::StopObjectServer ( )

Stop the object (histogram) server.

Definition at line 1275 of file TGo4AnalysisImp.cxx.

References fxAnalysisSlave, and Message().

Referenced by GetDefaultTestFileName().

◆ StopWorking()

void TGo4Analysis::StopWorking ( )
inlineprivate

Called by interrupt routine for normal exit from program (in batch mode)

Definition at line 1012 of file TGo4AnalysisImp.h.

References flagStop, and fxDoWorkingFlag.

Referenced by TGo4Sniffer::CmdExit(), and ProcessCrtlCSignal().

◆ StoreCondition()

Int_t TGo4Analysis::StoreCondition ( const char *  name,
TGo4Condition con 
)

Write condition con into eventstore of the step specified by name. Current event number will be added to parameter name in the file. Returns -1 in case of not active eventstore. Returns +1 in case of unknown step.

Definition at line 1685 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::Store().

Referenced by GetDefaultTestFileName().

◆ StoreFitter()

Int_t TGo4Analysis::StoreFitter ( const char *  name,
TGo4Fitter fit 
)

Write fitter fit into eventstore of the step specified by name. Current event number will be added to parameter name in the file. Returns -1 in case of not active eventstore. Returns +1 in case of unknown step.

Definition at line 1690 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::Store().

Referenced by GetDefaultTestFileName().

◆ StoreFolder() [1/2]

Int_t TGo4Analysis::StoreFolder ( const char *  stepname,
TFolder *  folder 
)

Write folder into eventstore of the step specified by name. Current event number will be added to parameter name in the file. Returns -1 in case of not active eventstore. Returns +1 in case of unknown step.

Definition at line 1695 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::Store().

Referenced by GetDefaultTestFileName().

◆ StoreFolder() [2/2]

Int_t TGo4Analysis::StoreFolder ( const char *  stepname,
const char *  foldername 
)

Write registered folder of foldername to the step store of stepname. Returns -1 in case of not active eventstore. Returns +1 in case of unknown step, +2 in case of unknown folder

Definition at line 1700 of file TGo4AnalysisImp.cxx.

References TGo4AnalysisObjectManager::FindSubFolder(), fxObjectManager, fxStepManager, GetObjectFolder(), and TGo4AnalysisStepManager::Store().

◆ StoreParameter()

Int_t TGo4Analysis::StoreParameter ( const char *  name,
TGo4Parameter par 
)

Write object obj into eventstore of the step specified by name. Current event number will be added to object name in the file. Returns -1 in case of not active eventstore. Returns +1 in case of unknown step.

Definition at line 1680 of file TGo4AnalysisImp.cxx.

References fxStepManager, and TGo4AnalysisStepManager::Store().

Referenced by GetDefaultTestFileName().

◆ UnLockAutoSave()

Int_t TGo4Analysis::UnLockAutoSave ( )

UnLock the autosave mutex. For usage in analysis client

Definition at line 1076 of file TGo4AnalysisImp.cxx.

References fxAutoSaveMutex, and GO4TRACE.

Referenced by SetAutoSaveInterval(), and TGo4AnalysisClient::~TGo4AnalysisClient().

◆ UpdateNamesList()

void TGo4Analysis::UpdateNamesList ( )
private

Update the internal list of object names. To be used internally and by analysis client.

Definition at line 1143 of file TGo4AnalysisImp.cxx.

References CreateNamesList(), fxObjectNames, GO4TRACE, and Message().

Referenced by AddTreeHistogram(), TGo4ComGetNamesList::ExeCom(), TGo4ComSetObject::ExeCom(), TGo4HistogramServer::HandleObjectRequest(), InitEventClasses(), RemoveDynamicEntry(), and TGo4AnalysisClient::SendNamesList().

◆ UpdateStatus()

void TGo4Analysis::UpdateStatus ( TGo4AnalysisStatus state)

◆ UserEventFunc()

Int_t TGo4Analysis::UserEventFunc ( )
virtual

User defined function which processes the actual analysis. May be called explicitly from analysis client thread, or may run in an implicit loop provided by method RunImplicit, if analysis works in a non threaded standalone mode. To be overridden in the user analysis class.

Reimplemented in TXXXAnalysis, TXXXAnalysis, TYYYAnalysis, TMeshAnalysis, TXXXAnalysis, and TXXXAnalysis.

Definition at line 404 of file TGo4AnalysisImp.cxx.

References GO4TRACE.

Referenced by MainCycle(), and SetAnalysisName().

◆ UserPostLoop()

Int_t TGo4Analysis::UserPostLoop ( )
virtual

User defined function called once after processing the main event loop. Optionally.

Reimplemented in TXXXAnalysis, TXXXAnalysis, TYYYAnalysis, TMeshAnalysis, TXXXAnalysis, and TXXXAnalysis.

Definition at line 1039 of file TGo4AnalysisImp.cxx.

References GO4TRACE, and Message().

Referenced by PostLoop(), and SetAnalysisName().

◆ UserPreLoop()

Int_t TGo4Analysis::UserPreLoop ( )
virtual

User defined function called once before processing the main event loop. Optionally.

Reimplemented in TXXXAnalysis, TXXXAnalysis, TYYYAnalysis, TMeshAnalysis, TXXXAnalysis, and TXXXAnalysis.

Definition at line 1031 of file TGo4AnalysisImp.cxx.

References GO4TRACE, and Message().

Referenced by PreLoop(), and SetAnalysisName().

◆ WaitForStart()

Int_t TGo4Analysis::WaitForStart ( )

Poll on the IsRunning state with sleep delay, returns number of wait cycles. For slave server controlled cint macros to start/stop execution of explicit user loop.

Definition at line 1247 of file TGo4AnalysisImp.cxx.

References fgiMACROSTARTPOLL, flagStop, fxDoWorkingFlag, and IsRunning().

Referenced by IsInitDone().

Friends And Related Function Documentation

◆ TGo4AnalysisClient

friend class TGo4AnalysisClient
friend

Definition at line 80 of file TGo4AnalysisImp.h.

◆ TGo4AnalysisStep

friend class TGo4AnalysisStep
friend

◆ TGo4AnalysisWebStatus

friend class TGo4AnalysisWebStatus
friend

Definition at line 87 of file TGo4AnalysisImp.h.

Referenced by CreateWebStatus().

◆ TGo4ComGetCurrentEvent

friend class TGo4ComGetCurrentEvent
friend

Definition at line 81 of file TGo4AnalysisImp.h.

◆ TGo4ComGetEnvelope

friend class TGo4ComGetEnvelope
friend

Definition at line 83 of file TGo4AnalysisImp.h.

◆ TGo4ComGetNamesList

friend class TGo4ComGetNamesList
friend

Definition at line 82 of file TGo4AnalysisImp.h.

◆ TGo4ComSetObject

friend class TGo4ComSetObject
friend

Definition at line 84 of file TGo4AnalysisImp.h.

◆ TGo4HisConnectorRunnable

friend class TGo4HisConnectorRunnable
friend

Definition at line 85 of file TGo4AnalysisImp.h.

◆ TGo4HistogramServer

friend class TGo4HistogramServer
friend

Definition at line 86 of file TGo4AnalysisImp.h.

◆ TGo4Sniffer

friend class TGo4Sniffer
friend

Definition at line 88 of file TGo4AnalysisImp.h.

Member Data Documentation

◆ fAnalysisName

TString TGo4Analysis::fAnalysisName
private

name of analysis object

Definition at line 1100 of file TGo4AnalysisImp.h.

Referenced by Constructor(), GetName(), and SetAnalysisName().

◆ fBatchLoopCount

Int_t TGo4Analysis::fBatchLoopCount {0}
private

exact number of loop counts in batch mode

Definition at line 1103 of file TGo4AnalysisImp.h.

Referenced by RunImplicitLoop(), and SetBatchLoopCount().

◆ fbAutoSaveFileChange

Bool_t TGo4Analysis::fbAutoSaveFileChange {kFALSE}
private

True if autosave name shall be changed when input file of multiple file input has changed. To be set in user analysis; will be evaluated in TGo4MbsFile

Definition at line 1083 of file TGo4AnalysisImp.h.

Referenced by IsAutoSaveFileChange(), and SetAutoSaveFileChange().

◆ fbAutoSaveOn

Bool_t TGo4Analysis::fbAutoSaveOn {kFALSE}
protected

True if Autosaving is enabled (default). If false, calling AutoSave() will have no effect.

Definition at line 921 of file TGo4AnalysisImp.h.

Referenced by AutoSave(), IsAutoSaveOn(), LoadObjects(), MainCycle(), OpenAutoSaveFile(), SetAutoSave(), and UpdateStatus().

◆ fbAutoSaveOverwrite

Bool_t TGo4Analysis::fbAutoSaveOverwrite {kFALSE}
private

True if autosave file is in overwrite mode

Definition at line 1069 of file TGo4AnalysisImp.h.

Referenced by LoadObjects(), SetAutoSaveFile(), and UpdateStatus().

◆ fbExists

Bool_t TGo4Analysis::fbExists = kFALSE
staticprivate

This is used to check from outside if an analysis is already there. Useful if one wants to prevent creating a complete analysis instance in the gui task...

Definition at line 1026 of file TGo4AnalysisImp.h.

Referenced by Constructor(), IsRunning(), and TGo4InterruptHandler::Notify().

◆ fbInitIsDone

Bool_t TGo4Analysis::fbInitIsDone {kFALSE}
protected

True if analysis framework has been initialized and the event classes are created.

Definition at line 917 of file TGo4AnalysisImp.h.

Referenced by CloseAnalysis(), InitEventClasses(), IsInitDone(), MainCycle(), PostLoop(), StartAnalysis(), and StopAnalysis().

◆ fbMakeWithAutosave

Bool_t TGo4Analysis::fbMakeWithAutosave {kFALSE}
private

If false, do not use data from autosave file in Make... methods

Definition at line 1115 of file TGo4AnalysisImp.h.

Referenced by MakeEllipseCond(), MakeListCond(), MakePolyCond(), MakeTH1(), MakeTH2(), MakeWinCond(), and SetMakeWithAutosave().

◆ fbNewInputFile

Bool_t TGo4Analysis::fbNewInputFile {kFALSE}
private

True if input file of multiple file input has changed. User analysis may check this and read mbs buffer infos then.

Definition at line 1076 of file TGo4AnalysisImp.h.

Referenced by IsNewInputFile(), and SetNewInputFile().

◆ fbObjMade

Bool_t TGo4Analysis::fbObjMade {kFALSE}
private

indicate if object was created by last Make... operation

Definition at line 1118 of file TGo4AnalysisImp.h.

Referenced by IsObjMade(), MakeEllipseCond(), MakeGraph(), MakeListCond(), MakeParameter(), MakePolyCond(), MakeRollingGraph(), MakeTH1(), MakeTH2(), and MakeWinCond().

◆ fbPythonBound

Bool_t TGo4Analysis::fbPythonBound {kFALSE}
private

If true, pyroot has already bound TGo4Anylsis object. For lazy initialization at first call of .py macro

Definition at line 1121 of file TGo4AnalysisImp.h.

Referenced by ExecuteLine().

◆ fgcDEFAULTFILENAME

const char * TGo4Analysis::fgcDEFAULTFILENAME = "Go4AutoSave.root"
static

standard file name

Definition at line 102 of file TGo4AnalysisImp.h.

Referenced by Constructor(), TGo4InterruptHandler::Notify(), and SetAutoSaveFile().

◆ fgcDEFAULTFILESUF

const char * TGo4Analysis::fgcDEFAULTFILESUF = ".root"
static

filename suffix for object file

Definition at line 108 of file TGo4AnalysisImp.h.

Referenced by LoadStatus(), TGo4InterruptHandler::Notify(), SaveStatus(), and SetAutoSaveFile().

◆ fgcDEFAULTSTATUSFILENAME

const char * TGo4Analysis::fgcDEFAULTSTATUSFILENAME = "Go4AnalysisPrefs.root"
static

◆ fgcPYINIT

const char * TGo4Analysis::fgcPYINIT = "python/go4init.py"
static

default name of go4 python init script

Definition at line 114 of file TGo4AnalysisImp.h.

Referenced by ExecuteLine(), and TGo4InterruptHandler::Notify().

◆ fgcPYPROMPT

const char TGo4Analysis::fgcPYPROMPT = '$'
static

leading character indicating python script execution

Definition at line 111 of file TGo4AnalysisImp.h.

Referenced by ExecuteLine(), ExecutePython(), and TGo4InterruptHandler::Notify().

◆ fgiAUTOSAVECOUNTS

const Int_t TGo4Analysis::fgiAUTOSAVECOUNTS = 500
static

Definition of default autosave interval.

Definition at line 93 of file TGo4AnalysisImp.h.

Referenced by TGo4InterruptHandler::Notify().

◆ fgiDYNLISTINTERVAL

const Int_t TGo4Analysis::fgiDYNLISTINTERVAL = 1000
static

This value is the number of events in between subsequent dynamic list processing

Definition at line 96 of file TGo4AnalysisImp.h.

Referenced by Constructor(), and TGo4InterruptHandler::Notify().

◆ fgiMACROSTARTPOLL

const Int_t TGo4Analysis::fgiMACROSTARTPOLL = 1000
static

Time in ms to sleep in the polling loop of the WaitForStart

Definition at line 99 of file TGo4AnalysisImp.h.

Referenced by TGo4InterruptHandler::Notify(), and WaitForStart().

◆ fiAutoSaveCompression

Int_t TGo4Analysis::fiAutoSaveCompression {0}
private

compression level for autosave file

Definition at line 1055 of file TGo4AnalysisImp.h.

Referenced by OpenAutoSaveFile(), SetAutoSaveFile(), and UpdateStatus().

◆ fiAutoSaveCount

Int_t TGo4Analysis::fiAutoSaveCount {0}
private

Event counter for autosave mechanism.

Definition at line 1044 of file TGo4AnalysisImp.h.

Referenced by MainCycle(), and PreLoop().

◆ fiAutoSaveInterval

Int_t TGo4Analysis::fiAutoSaveInterval {0}
private

Implicit Loop cycles in between two autosave actions. Autosave will write calibration objects of steps into event file and will save all histograms into an default root file.

Definition at line 1052 of file TGo4AnalysisImp.h.

Referenced by MainCycle(), SetAutoSaveInterval(), and UpdateStatus().

◆ fiRunningMode

Int_t TGo4Analysis::fiRunningMode = 0
staticprivate

This is used to identify running mode of analysis: 0 - batch, 1 - client, 2 - server

Definition at line 1030 of file TGo4AnalysisImp.h.

Referenced by TGo4InterruptHandler::Notify().

◆ fNumCtrlC

Int_t TGo4Analysis::fNumCtrlC {0}
private

number Ctrl-C handler called

Definition at line 1124 of file TGo4AnalysisImp.h.

Referenced by ProcessCrtlCSignal().

◆ fServerAdminPass

TString TGo4Analysis::fServerAdminPass
private

preconfigured password for administrator access

Definition at line 1106 of file TGo4AnalysisImp.h.

Referenced by TGo4AnalysisClient::Constructor(), DefineServerPasswords(), and SetAdministratorPassword().

◆ fServerCtrlPass

TString TGo4Analysis::fServerCtrlPass
private

preconfigured password for controller access

Definition at line 1109 of file TGo4AnalysisImp.h.

Referenced by TGo4AnalysisClient::Constructor(), DefineServerPasswords(), and SetControllerPassword().

◆ fServerObserverPass

TString TGo4Analysis::fServerObserverPass
private

preconfigured password for observer access

Definition at line 1112 of file TGo4AnalysisImp.h.

Referenced by TGo4AnalysisClient::Constructor(), DefineServerPasswords(), and SetObserverPassword().

◆ fSniffer

TGo4AnalysisSniffer* TGo4Analysis::fSniffer {nullptr}
private

Sniffer object

Definition at line 1127 of file TGo4AnalysisImp.h.

Referenced by GetSniffer(), ProcessEvents(), RunImplicitLoop(), SendMessageToGUI(), and SetSniffer().

◆ fxAnalysisSlave

TGo4AnalysisClient* TGo4Analysis::fxAnalysisSlave {nullptr}
private

◆ fxAutoFile

TFile* TGo4Analysis::fxAutoFile {nullptr}
private

Optional file for autosave of the important objects.

Definition at line 1063 of file TGo4AnalysisImp.h.

Referenced by AutoSave(), CloseAutoSaveFile(), LoadObjects(), and OpenAutoSaveFile().

◆ fxAutoFileName

TString TGo4Analysis::fxAutoFileName
private

Name of the autosave file.

Definition at line 1066 of file TGo4AnalysisImp.h.

Referenced by CloseAutoSaveFile(), Constructor(), IsAutoSaveFileName(), LoadObjects(), OpenAutoSaveFile(), SetAutoSaveFile(), and UpdateStatus().

◆ fxAutoSaveClock

TStopwatch* TGo4Analysis::fxAutoSaveClock {nullptr}
private

Clock for autosave by time mechanism.

Definition at line 1047 of file TGo4AnalysisImp.h.

Referenced by Constructor(), MainCycle(), PreLoop(), and ~TGo4Analysis().

◆ fxAutoSaveMutex

TMutex* TGo4Analysis::fxAutoSaveMutex {nullptr}
private

Mutex protecting the autosave file access. On Termination, both the main thread and the appcontrol timer might try to autosave or delete on the same file.

Definition at line 1060 of file TGo4AnalysisImp.h.

Referenced by AutoSave(), CloseAutoSaveFile(), Constructor(), LoadObjects(), LockAutoSave(), OpenAutoSaveFile(), PostLoop(), PreLoop(), and UnLockAutoSave().

◆ fxConfigFilename

TString TGo4Analysis::fxConfigFilename
private

name of configuration file used for this setup

Definition at line 1072 of file TGo4AnalysisImp.h.

Referenced by Constructor(), LoadStatus(), SaveStatus(), and UpdateStatus().

◆ fxCurrentInputFileName

TString TGo4Analysis::fxCurrentInputFileName
private

Contains current input file name

Definition at line 1079 of file TGo4AnalysisImp.h.

Referenced by GetInputFileName(), and SetInputFileName().

◆ fxDefaultTestFileName

TString TGo4Analysis::fxDefaultTestFileName
private

default file name for distributed test lmd file

Definition at line 1133 of file TGo4AnalysisImp.h.

Referenced by Constructor(), and GetDefaultTestFileName().

◆ fxDoWorkingFlag

enum { ... } TGo4Analysis::fxDoWorkingFlag

◆ fxInstance

TGo4Analysis * TGo4Analysis::fxInstance = nullptr
staticprivate

Static Pointer to the analysis singleton instance.

Definition at line 1021 of file TGo4AnalysisImp.h.

Referenced by Constructor(), TGo4InterruptHandler::Notify(), and ~TGo4Analysis().

◆ fxInterruptHandler

TGo4InterruptHandler* TGo4Analysis::fxInterruptHandler {nullptr}
private

use to treat Ctrl-C interrupts

Definition at line 1097 of file TGo4AnalysisImp.h.

Referenced by Constructor(), and ~TGo4Analysis().

◆ fxObjectManager

TGo4AnalysisObjectManager* TGo4Analysis::fxObjectManager {nullptr}
private

◆ fxObjectNames

TGo4AnalysisObjectNames* TGo4Analysis::fxObjectNames {nullptr}
private

1

Definition at line 1091 of file TGo4AnalysisImp.h.

Referenced by GetNamesList(), UpdateNamesList(), and ~TGo4Analysis().

◆ fxRate

TGo4Ratemeter* TGo4Analysis::fxRate {nullptr}
private

optional ratemeter object

Definition at line 1130 of file TGo4AnalysisImp.h.

Referenced by RunImplicitLoop(), and StartAnalysis().

◆ fxSampleEvent

TGo4EventElement* TGo4Analysis::fxSampleEvent {nullptr}
private

this holds event sample for the SingleEventTree. Must be clone of the event in use, since TTree::Show() will modify it!

Definition at line 1087 of file TGo4AnalysisImp.h.

Referenced by CreateSingleEventTree(), and ~TGo4Analysis().

◆ fxStepManager

TGo4AnalysisStepManager* TGo4Analysis::fxStepManager {nullptr}
private

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