#include <TGo4AnalysisImp.h>
Public Member Functions | |
virtual | ~TGo4Analysis () |
virtual const char * | GetName () const |
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.) |
virtual void | CloseAnalysis () |
virtual Bool_t | InitEventClasses () |
TGo4AnalysisObjectManager * | ObjectManager () const |
Bool_t | AddDynamicHistogram (const char *name, const char *histo, const char *hevx, const char *hmemx, const char *hevy=0, const char *hmemy=0, const char *hevz=0, const char *hmemz=0, const char *condition=0, const char *cevx=0, const char *cmemx=0, const char *cevy=0, const char *cmemy=0) |
Bool_t | AddDynamicEntry (TGo4DynamicEntry *entry) |
Bool_t | RemoveDynamicEntry (const char *entryname, const char *listname=0) |
Bool_t | AddObject (TNamed *anything, const char *subfolder=0, Bool_t replace=kTRUE) |
TNamed * | GetObject (const char *name, const char *folder=0) |
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=0, const char *folder=0, Bool_t reset=kFALSE) |
TGo4TreeStructure * | CreateTreeStructure (const char *treename) |
Bool_t | AddHistogram (TH1 *his, const char *subfolder=0, Bool_t replace=kTRUE) |
Bool_t | AddTree (TTree *tree, const char *subfolder=0) |
Bool_t | RemoveTree (TTree *tree, const char *stepname=0) |
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=0) |
Bool_t | SetAnalysisCondition (const char *name, TGo4Condition *con, Bool_t counter=kTRUE) |
TGo4Condition * | GetAnalysisCondition (const char *name, const char *cond_cl=0) |
Bool_t | RemoveAnalysisCondition (const char *name) |
Bool_t | AddParameter (TGo4Parameter *par, const char *subfolder=0) |
Bool_t | SetParameter (const char *name, TGo4Parameter *par) |
Bool_t | SetParameterStatus (const char *name, TGo4ParameterStatus *par) |
TGo4Parameter * | GetParameter (const char *name, const char *parameter_class=0) |
Bool_t | RemoveParameter (const char *name) |
Bool_t | AddPicture (TGo4Picture *pic, const char *subfolder=0) |
Bool_t | SetPicture (const char *name, TGo4Picture *pic) |
TGo4Picture * | GetPicture (const char *name) |
Bool_t | RemovePicture (const char *name) |
Bool_t | AddCanvas (TCanvas *can, const char *subfolder=0) |
TCanvas * | GetCanvas (const char *name) |
Bool_t | RemoveCanvas (const char *name) |
TGo4AnalysisStatus * | CreateStatus () |
TGo4ObjectStatus * | CreateObjectStatus (const char *name, const char *folder=0) |
TGo4AnalysisObjectNames * | CreateNamesList () |
TFolder * | GetObjectFolder () |
void | UpdateStatus (TGo4AnalysisStatus *state) |
void | SetStatus (TGo4AnalysisStatus *state) |
Bool_t | LoadStatus (const char *filename=0) |
Bool_t | LoadObjects (const char *filename=0) |
Bool_t | SaveStatus (const char *filename=0) |
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=0, 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 () |
void | SetRunning (Bool_t on=kTRUE) |
Int_t | WaitForStart () |
Int_t | IsErrorStopEnabled () |
void | SetNewInputFile (Bool_t on=kTRUE) |
Bool_t | IsNewInputFile () const |
void | SetInputFileName (const char *fname) |
const char * | GetInputFileName () const |
void | SetDynListInterval (Int_t val) |
Int_t | GetDynListInterval () |
TGo4EventElement * | GetInputEvent (const char *stepname) |
TGo4EventElement * | GetInputEvent (Int_t stepindex) |
TGo4EventElement * | GetOutputEvent (const char *stepname) |
TGo4EventElement * | GetOutputEvent (Int_t stepindex) |
TGo4EventElement * | GetOutputEvent () |
TGo4EventElement * | GetEventStructure (const char *name) |
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) |
virtual void | Print (Option_t *opt="") const |
void | PrintHistograms (const char *expression=0) |
void | PrintConditions (const char *expression=0) |
void | PrintParameters (const char *expression=0) |
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) |
TGo4AnalysisStep * | GetAnalysisStep (const char *name) |
TGo4AnalysisStep * | GetAnalysisStepNum (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 () |
TH1 * | MakeTH1 (char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=0, const char *ytitle=0) |
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=0, const char *ytitle=0, const char *ztitle=0) |
TGo4WinCond * | MakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=0) |
TGo4WinCond * | MakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, const char *HistoName=0) |
TGo4PolyCond * | MakePolyCond (const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0) |
TGo4Parameter * | MakeParameter (const char *fullname, const char *classname, const char *cmd=0) |
Long_t | ExecuteScript (const char *script_name) |
void | ProcessCrtlCSignal () |
void | SetSniffer (TGo4AnalysisSniffer *sniff) |
TGo4AnalysisSniffer * | GetSniffer () const |
TGo4AnalysisClient * | GetAnalysisClient () const |
void | StopAnalysis () |
void | StartAnalysis () |
Static Public Member Functions | |
static TGo4Analysis * | Instance () |
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 * | fgcTOPDYNAMICLIST = "Go4DynamicList" |
Protected Member Functions | |
TGo4Analysis (const char *name=0) | |
TGo4Analysis (int argc, char **argv) | |
void | Constructor () |
Int_t | ProcessAnalysisSteps () |
Protected Attributes | |
Bool_t | fbInitIsDone |
Bool_t | fbAutoSaveOn |
Private Types | |
enum | { flagStop, flagPause, flagRunning } |
Private Member Functions | |
TTree * | CreateSingleEventTree (const char *name, Bool_t isoutput=kTRUE) |
TTree * | CreateSingleEventTree (TGo4EventElement *event) |
void | UpdateNamesList () |
TGo4AnalysisObjectNames * | GetNamesList () 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 | |
TGo4AnalysisClient * | fxAnalysisSlave |
TGo4AnalysisStepManager * | fxStepManager |
TGo4AnalysisObjectManager * | fxObjectManager |
Int_t | fiAutoSaveCount |
TStopwatch * | fxAutoSaveClock |
Int_t | fiAutoSaveInterval |
Int_t | fiAutoSaveCompression |
TMutex * | fxAutoSaveMutex |
TFile * | fxAutoFile |
TString | fxAutoFileName |
Bool_t | fbAutoSaveOverwrite |
TString | fxConfigFilename |
Bool_t | fbNewInputFile |
TString | fxCurrentInputFileName |
Bool_t | fbAutoSaveFileChange |
TGo4EventElement * | fxSampleEvent |
TGo4AnalysisObjectNames * | fxObjectNames |
enum TGo4Analysis:: { ... } | fxDoWorkingFlag |
TGo4InterruptHandler * | fxInterruptHandler |
TString | fAnalysisName |
Int_t | fBatchLoopCount |
TString | fServerAdminPass |
TString | fServerCtrlPass |
TString | fServerObserverPass |
Bool_t | fbMakeWithAutosave |
Bool_t | fbObjMade |
Int_t | fNumCtrlC |
TGo4AnalysisSniffer * | fSniffer |
Static Private Attributes | |
static TGo4Analysis * | fxInstance = 0 |
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 |
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.
Definition at line 68 of file TGo4AnalysisImp.h.
anonymous enum [private] |
Indicates analysis runstate
Definition at line 964 of file TGo4AnalysisImp.h.
TGo4Analysis::~TGo4Analysis | ( | ) | [virtual] |
Definition at line 293 of file TGo4AnalysisImp.cxx.
References CloseAnalysis(), CloseAutoSaveFile(), fxAutoSaveClock, fxInstance, fxInterruptHandler, fxObjectManager, fxObjectNames, fxSampleEvent, fxStepManager, GO4TRACE, TGo4Log::subGO4SYS(), and TGo4CommandInvoker::UnRegister().
TGo4Analysis::TGo4Analysis | ( | const char * | name = 0 |
) | [protected] |
Protected constructor for singleton instance.
Definition at line 167 of file TGo4AnalysisImp.cxx.
References Constructor(), GO4TRACE, and SetAnalysisName().
TGo4Analysis::TGo4Analysis | ( | int | argc, | |
char ** | argv | |||
) | [protected] |
Another variant for analysis constructor.
Definition at line 205 of file TGo4AnalysisImp.cxx.
References Constructor(), GO4TRACE, and SetAnalysisName().
Bool_t TGo4Analysis::AddAnalysisCondition | ( | TGo4Condition * | con, | |
const char * | subfolder = 0 | |||
) |
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 1330 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddAnalysisCondition(), and fxObjectManager.
Referenced by TGo4EventProcessor::AddAnalysisCondition(), MakePolyCond(), and MakeWinCond().
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 1609 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisStepManager::AddAnalysisStep(), and fxStepManager.
Referenced by TMeshAnalysis::TMeshAnalysis(), TXXXAnalysis::TXXXAnalysis(), and TYYYAnalysis::TYYYAnalysis().
Bool_t TGo4Analysis::AddCanvas | ( | TCanvas * | can, | |
const char * | subfolder = 0 | |||
) |
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 1319 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddCanvas(), and fxObjectManager.
Referenced by TGo4EventProcessor::AddCanvas(), and TYYYAnalysis::TYYYAnalysis().
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 1579 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddDynamicEntry(), and fxObjectManager.
Referenced by TGo4ComSetObject::ExeSetDyn().
Bool_t TGo4Analysis::AddDynamicHistogram | ( | const char * | name, | |
const char * | histo, | |||
const char * | hevx, | |||
const char * | hmemx, | |||
const char * | hevy = 0 , |
|||
const char * | hmemy = 0 , |
|||
const char * | hevz = 0 , |
|||
const char * | hmemz = 0 , |
|||
const char * | condition = 0 , |
|||
const char * | cevx = 0 , |
|||
const char * | cmemx = 0 , |
|||
const char * | cevy = 0 , |
|||
const char * | cmemy = 0 | |||
) |
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=0), 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 1258 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddDynamicHistogram(), and fxObjectManager.
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 1279 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddEventProcessor(), and fxObjectManager.
Referenced by TGo4AnalysisStep::NewEventProcessor().
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 1284 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddEventSource(), and fxObjectManager.
Referenced by TGo4AnalysisStep::NewEventSource().
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 1289 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddEventStore(), and fxObjectManager.
Referenced by TGo4AnalysisStep::NewEventStore().
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 1294 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddEventStructure(), and fxObjectManager.
Referenced by TGo4AnalysisStep::NewInputEvent(), and TGo4AnalysisStep::NewOutputEvent().
Bool_t TGo4Analysis::AddHistogram | ( | TH1 * | his, | |
const char * | subfolder = 0 , |
|||
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 1299 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddHistogram(), and fxObjectManager.
Referenced by TGo4EventProcessor::AddHistogram(), TGo4ComSetObject::ExeSetHis(), go4RegisterAll(), MakeTH1(), MakeTH2(), TGo4DynamicList::ProcessTEntry(), treedrawgo4(), TYYYAnalysis::UserPreLoop(), and TMeshAnalysis::UserPreLoop().
Bool_t TGo4Analysis::AddObject | ( | TNamed * | anything, | |
const char * | subfolder = 0 , |
|||
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 1304 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddObject(), and fxObjectManager.
Referenced by TGo4EventProcessor::AddObject(), and TGo4ComSetObject::ExeSetObj().
Bool_t TGo4Analysis::AddParameter | ( | TGo4Parameter * | par, | |
const char * | subfolder = 0 | |||
) |
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 1309 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddParameter(), and fxObjectManager.
Referenced by TGo4EventProcessor::AddParameter(), MakeParameter(), TMeshAnalysis::TMeshAnalysis(), TXXXAnalysis::TXXXAnalysis(), and TYYYAnalysis::TYYYAnalysis().
Bool_t TGo4Analysis::AddPicture | ( | TGo4Picture * | pic, | |
const char * | subfolder = 0 | |||
) |
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 1314 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddPicture(), and fxObjectManager.
Referenced by TGo4EventProcessor::AddPicture().
Bool_t TGo4Analysis::AddTree | ( | TTree * | tree, | |
const char * | subfolder = 0 | |||
) |
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 1324 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddTree(), fxObjectManager, and TGo4Status::kGo4BackStoreReset.
Referenced by TGo4AnalysisStep::NewEventStore(), and treedrawgo4().
Bool_t TGo4Analysis::AddTreeHistogram | ( | const char * | hisname, | |
const char * | treename, | |||
const char * | varexp, | |||
const char * | cutexp | |||
) |
Add Histogram into the dynamic list wich 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 1272 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::AddTreeHistogram(), fxObjectManager, and UpdateNamesList().
Referenced by TGo4ComAddTreeHistogram::ExeCom().
void TGo4Analysis::AutoSave | ( | ) |
Perform autosave of all active stores, save existing calibration objects, write known objects into user file.
Definition at line 1005 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisStepManager::AutoSave(), CloseAutoSaveFile(), fbAutoSaveOn, fxAutoFile, fxAutoSaveMutex, fxObjectManager, fxStepManager, GO4TRACE, Message(), OpenAutoSaveFile(), and TGo4AnalysisObjectManager::SaveObjects().
Referenced by CloseAnalysis(), TGo4ComAutosave::ExeCom(), MainCycle(), and TGo4MbsFile::NewFileAction().
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 namestring. If no such folder exists, object of name is searched and cleared. Returns kFALSE in case of not found objects.
Definition at line 1470 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::ClearObjects(), and fxObjectManager.
Referenced by TGo4ComClearObject::ExeCom(), TGo4MbsFile::NewFileAction(), TGo4DabcPlayer::ProcessHCommand(), and TYYYAnalysis::UserPreLoop().
void TGo4Analysis::CloseAnalysis | ( | ) | [virtual] |
Finish the analysis run and close all event sources/storages. The analysis instance and the setup of the analysis steps is not deleted.
Definition at line 893 of file TGo4AnalysisImp.cxx.
References AutoSave(), TGo4AnalysisObjectManager::CloseAnalysis(), TGo4AnalysisStepManager::CloseAnalysis(), fbInitIsDone, fxObjectManager, fxStepManager, and GO4TRACE.
Referenced by TGo4ComCloseAnalysis::ExeCom(), go4StartServer(), ProcessCrtlCSignal(), TGo4AnalysisClient::Quit(), SetStatus(), treedrawgo4(), and ~TGo4Analysis().
void TGo4Analysis::CloseAutoSaveFile | ( | ) | [private] |
Close the autosave file if existing.
Definition at line 1051 of file TGo4AnalysisImp.cxx.
References fxAutoFile, fxAutoFileName, fxAutoSaveMutex, and Message().
Referenced by AutoSave(), LoadObjects(), ProcessCrtlCSignal(), and ~TGo4Analysis().
void TGo4Analysis::Constructor | ( | ) | [protected] |
Method to create all necessary object in the real constructor
Definition at line 242 of file TGo4AnalysisImp.cxx.
References __GO4BUILDVERSION__, __GO4RELEASE__, TGo4Version::CheckVersion(), fAnalysisName, fbExists, fgcDEFAULTFILENAME, fgcDEFAULTSTATUSFILENAME, fgiDYNLISTINTERVAL, fxAutoFileName, fxAutoSaveClock, fxAutoSaveMutex, fxConfigFilename, fxInstance, fxInterruptHandler, fxObjectManager, fxStepManager, Instance(), TGo4Version::Instance(), Message(), TGo4CommandInvoker::Register(), TGo4CommandInvoker::SetCommandList(), SetDynListInterval(), and TGo4Log::subGO4SYS().
Referenced by TGo4Analysis().
TGo4AnalysisObjectNames * TGo4Analysis::CreateNamesList | ( | ) |
Creates a list of names (keys) of all objects in analysis directories.
Definition at line 1390 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::CreateNamesList(), and fxObjectManager.
Referenced by UpdateNamesList().
TGo4ObjectStatus * TGo4Analysis::CreateObjectStatus | ( | const char * | name, | |
const char * | folder = 0 | |||
) |
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 1400 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::CreateObjectStatus(), and fxObjectManager.
Referenced by TGo4ComGetObjectStatus::ExeCom().
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 880 of file TGo4AnalysisImp.cxx.
References GetEventStructure(), GetInputEvent(), GetOutputEvent(), and GO4TRACE.
Referenced by TGo4ComGetCurrentEvent::ExeCom(), and ShowEvent().
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 859 of file TGo4AnalysisImp.cxx.
References fxSampleEvent, GO4TRACE, and TGo4EventElement::makeBranch().
TGo4AnalysisStatus * TGo4Analysis::CreateStatus | ( | ) |
Create a copy of the analysis internal state. To be sent to the Display.
Definition at line 840 of file TGo4AnalysisImp.cxx.
References GetName(), GO4TRACE, and UpdateStatus().
Referenced by TGo4ComGetAnalysisStatus::ExeCom(), Print(), SaveStatus(), and TGo4AnalysisClient::SendAnalysisStatus().
TGo4TreeStructure * TGo4Analysis::CreateTreeStructure | ( | const char * | treename | ) |
Create a tree structure for a certain tree by name
Definition at line 1405 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::CreateTreeStructure(), and fxObjectManager.
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 1650 of file TGo4AnalysisImp.cxx.
References fServerAdminPass, fServerCtrlPass, and fServerObserverPass.
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 1465 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::DeleteObjects(), and fxObjectManager.
Referenced by TGo4ComDeleteObject::ExeCom().
Long_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 2050 of file TGo4AnalysisImp.cxx.
References TGo4Log::Error(), and TGo4Log::Info().
Referenced by TGo4EventProcessor::ExecuteScript(), and MakeParameter().
Bool_t TGo4Analysis::Exists | ( | ) | [static] |
Definition at line 140 of file TGo4AnalysisImp.cxx.
References fbExists.
Referenced by go4StartServer(), and main().
TGo4AnalysisClient* TGo4Analysis::GetAnalysisClient | ( | ) | const [inline] |
Returns pointer on analysis client
Definition at line 777 of file TGo4AnalysisImp.h.
References fxAnalysisSlave.
Referenced by TGo4DabcPlayer::ProcessGetBinary(), and TGo4Sniffer::ScanRoot().
TGo4Condition * TGo4Analysis::GetAnalysisCondition | ( | const char * | name, | |
const char * | cond_cl = 0 | |||
) |
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 1335 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetAnalysisCondition().
Referenced by TGo4EventProcessor::GetAnalysisCondition(), MakePolyCond(), MakeWinCond(), and TGo4DynamicList::ProcessHEntry().
TGo4AnalysisStep * TGo4Analysis::GetAnalysisStep | ( | const char * | name | ) |
Access to certain analysis step by name. If name=0, this will return the first active step.
Definition at line 1340 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetAnalysisStep().
Referenced by main(), TMeshParameter::UpdateFrom(), and TGo4AnalysisClient::UpdateStatus().
TGo4AnalysisStep * TGo4Analysis::GetAnalysisStepNum | ( | Int_t | number | ) |
Access to certain analysis step by number.
Definition at line 1345 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetAnalysisStepNum().
Referenced by main().
TCanvas * TGo4Analysis::GetCanvas | ( | const char * | name | ) |
Retrieves a TCanvas by name from the Canvases folder. Returns 0 if no such object.
Definition at line 1380 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetCanvas().
Referenced by TGo4EventProcessor::GetCanvas(), TYYYAnalysis::TYYYAnalysis(), and TYYYAnalysis::UserPostLoop().
Int_t TGo4Analysis::GetDynListInterval | ( | ) |
Definition at line 1350 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetDynListInterval().
TGo4EventElement * TGo4Analysis::GetEventStructure | ( | const char * | name | ) |
Search reference to event stucture in folder.
Definition at line 1355 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetEventStructure().
Referenced by CreateSingleEventTree(), TGo4ComSetPrintEvent::ExeCom(), TGo4ComGetCurrentEvent::ExeCom(), TGo4DynamicList::ProcessHEntry(), and TMeshProviderProc::SetRealInput().
TH1 * TGo4Analysis::GetHistogram | ( | const char * | name | ) |
Search histogram in histogram list (directory).
Definition at line 1360 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetHistogram().
Referenced by TGo4EventProcessor::GetHistogram(), MakeTH1(), MakeTH2(), TGo4DynamicList::ProcessHEntry(), TGo4DynamicList::ProcessTEntry(), TGo4HisConnectorRunnable::Run(), treedrawgo4(), TYYYAnalysis::UserPostLoop(), TYYYAnalysis::UserPreLoop(), and TMeshAnalysis::UserPreLoop().
TGo4EventElement * TGo4Analysis::GetInputEvent | ( | const char * | stepname | ) |
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 1544 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetInputEvent().
Referenced by CreateSingleEventTree(), TGo4ComGetCurrentEvent::ExeCom(), TGo4EventProcessor::GetInputEvent(), TYYYAnalysis::UserPreLoop(), TMeshAnalysis::UserPreLoop(), and TXXXAnalysis::UserPreLoop().
TGo4EventElement * TGo4Analysis::GetInputEvent | ( | Int_t | stepindex | ) |
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 1539 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetInputEvent().
const char* TGo4Analysis::GetInputFileName | ( | ) | const [inline] |
Returns current input file name
Definition at line 521 of file TGo4AnalysisImp.h.
References fxCurrentInputFileName.
virtual const char* TGo4Analysis::GetName | ( | ) | const [inline, virtual] |
Definition at line 119 of file TGo4AnalysisImp.h.
References fAnalysisName.
Referenced by TGo4AnalysisObjectManager::CreateNamesList(), CreateStatus(), TGo4ComPrintHistograms::ExeCom(), TGo4ComPrintDynList::ExeCom(), TGo4ComPrintConditions::ExeCom(), TGo4ComInitAnalysis::ExeCom(), TGo4ComCloseAnalysis::ExeCom(), LoadStatus(), TGo4AnalysisStepStatus::PrintStatus(), Process(), TGo4AnalysisClient::Start(), TMeshAnalysis::TMeshAnalysis(), and TYYYAnalysis::TYYYAnalysis().
TGo4AnalysisObjectNames* TGo4Analysis::GetNamesList | ( | ) | const [inline, private] |
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 830 of file TGo4AnalysisImp.h.
References fxObjectNames.
Referenced by TGo4ComSetObject::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4HistogramServer::HandleObjectRequest(), and TGo4AnalysisClient::SendNamesList().
TNamed * TGo4Analysis::GetObject | ( | const char * | name, | |
const char * | folder = 0 | |||
) |
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 1365 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetObject().
Referenced by TGo4EventProcessor::GetObject(), TGo4HistogramServer::HandleObjectRequest(), TGo4HisConnectorRunnable::Run(), TGo4AnalysisClient::SendAnalysisObject(), and TXXXCalibPar::UpdateFrom().
TFolder * TGo4Analysis::GetObjectFolder | ( | ) |
Access to top level go4 folder. For histogram server.
Definition at line 1395 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetObjectFolder().
Referenced by TGo4ComSetObject::ExeCom(), TGo4HisConnectorRunnable::Run(), and StoreFolder().
TGo4EventElement * TGo4Analysis::GetOutputEvent | ( | const char * | stepname | ) |
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 1559 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetOutputEvent().
Referenced by TGo4ComGetCurrentEvent::ExeCom(), TGo4EventProcessor::GetOutputEvent(), and TGo4AnalysisStep::Process().
TGo4EventElement * TGo4Analysis::GetOutputEvent | ( | Int_t | stepindex | ) |
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 1554 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetOutputEvent().
TGo4EventElement * TGo4Analysis::GetOutputEvent | ( | ) |
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 1549 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::GetOutputEvent().
Referenced by CreateSingleEventTree(), and TYYYAnalysis::UserPreLoop().
TGo4Parameter * TGo4Analysis::GetParameter | ( | const char * | name, | |
const char * | parameter_class = 0 | |||
) |
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 1370 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetParameter().
Referenced by TGo4EventProcessor::GetParameter(), and MakeParameter().
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 1375 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetPicture().
Referenced by TGo4EventProcessor::GetPicture().
TGo4AnalysisSniffer* TGo4Analysis::GetSniffer | ( | ) | const [inline] |
Returns pointer on current sniffer
Definition at line 774 of file TGo4AnalysisImp.h.
References fSniffer.
Referenced by TGo4AnalysisClient::SendStatusMessage(), and TGo4AnalysisClient::UpdateRate().
TTree * TGo4Analysis::GetTree | ( | const char * | name | ) |
Search tree in tree folder.
Definition at line 1385 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::GetTree().
Referenced by TGo4DynamicList::ProcessTEntry().
Bool_t TGo4Analysis::InitEventClasses | ( | ) | [virtual] |
Initialization of the event class plugins which are delivered from the user defined event factory. The virtual standard base class method may be changed by overriding; normally, this is not necessary.
Definition at line 345 of file TGo4AnalysisImp.cxx.
References TGo4Log::Debug(), fbInitIsDone, fxStepManager, TGo4EventSourceException::GetErrMess(), TGo4EventErrorException::GetPriority(), GO4TRACE, TGo4Log::Info(), TGo4AnalysisStepManager::InitEventClasses(), LoadObjects(), Message(), and UpdateNamesList().
Referenced by TGo4ComInitAnalysis::ExeCom(), go4StartServer(), TGo4AnalysisClient::Initialization(), main(), and treedrawgo4().
TGo4Analysis * TGo4Analysis::Instance | ( | ) | [static] |
Definition at line 130 of file TGo4AnalysisImp.cxx.
References fbExists, fxInstance, and GO4TRACE.
Referenced by TGo4EventProcessor::AddAnalysisCondition(), TGo4AnalysisStepManager::AddAnalysisStep(), TGo4EventProcessor::AddCanvas(), TGo4EventProcessor::AddHistogram(), TGo4EventProcessor::AddObject(), TGo4EventProcessor::AddParameter(), TGo4EventProcessor::AddPicture(), TGo4AnalysisObjectManager::AddTreeHistogram(), TGo4AnalysisStepManager::AutoSave(), TGo4AnalysisObjectManager::CloseAnalysis(), TGo4HistogramServer::ConnectObjectClient(), Constructor(), CreateDefaultAnalysis(), TGo4Dabc::CreateEngine(), TGo4AnalysisObjectManager::CreateNamesList(), TGo4AnalysisObjectManager::CreateTreeStructure(), TGo4ComSetProtections::ExeCom(), TGo4ComSetPrintEvent::ExeCom(), TGo4ComSetObject::ExeCom(), TGo4ComSetAnalysisStatus::ExeCom(), TGo4ComSaveAnalysisStatus::ExeCom(), TGo4ComPrintHistograms::ExeCom(), TGo4ComPrintDynList::ExeCom(), TGo4ComPrintConditions::ExeCom(), TGo4ComLoadAnalysisStatus::ExeCom(), TGo4ComInitAnalysis::ExeCom(), TGo4ComGetObjectStatus::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4ComGetEnvelope::ExeCom(), TGo4ComGetCurrentEvent::ExeCom(), TGo4ComGetAnalysisStatus::ExeCom(), TGo4ComDeleteObject::ExeCom(), TGo4ComCloseAnalysis::ExeCom(), TGo4ComClearObject::ExeCom(), TGo4ComAutosave::ExeCom(), TGo4ComAddTreeHistogram::ExeCom(), TGo4EventProcessor::ExecuteScript(), TGo4EventProcessor::GetAnalysisCondition(), TGo4AnalysisObjectManager::GetAsTObject(), TGo4EventProcessor::GetCanvas(), TGo4EventProcessor::GetHistogram(), TGo4EventProcessor::GetInputEvent(), TGo4EventProcessor::GetObject(), TGo4EventProcessor::GetOutputEvent(), TGo4EventProcessor::GetParameter(), TGo4EventProcessor::GetPicture(), go4RegisterAll(), go4StartServer(), TGo4AnalysisStepManager::InitEventClasses(), TGo4EventProcessor::IsObjMade(), TGo4AnalysisObjectManager::LoadFolder(), TGo4EventProcessor::MakeParameter(), TGo4EventProcessor::MakePolyCond(), TGo4EventProcessor::MakeTH1(), TGo4EventProcessor::MakeTH2(), TGo4EventProcessor::MakeWinCond(), TGo4EventProcessor::Message(), TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::NewEventSource(), TGo4AnalysisStep::NewEventStore(), TGo4MbsFile::NewFileAction(), TGo4AnalysisStep::NewInputEvent(), TGo4AnalysisStep::NewOutputEvent(), TGo4MbsFile::NextFile(), TGo4DabcPlayer::ProcessGetBinary(), TGo4DabcPlayer::ProcessHCommand(), TGo4DynamicList::ProcessHEntry(), TGo4DynamicList::ProcessTEntry(), TGo4AnalysisObjectManager::PutToFolder(), TGo4EventProcessor::RemoveAnalysisCondition(), TGo4EventProcessor::RemoveCanvas(), TGo4EventProcessor::RemoveHistogram(), TGo4AnalysisObjectManager::RemoveObjectFromFolder(), TGo4EventProcessor::RemoveParameter(), TGo4EventProcessor::RemovePicture(), TGo4AnalysisObjectManager::SaveFolder(), TGo4AnalysisObjectManager::SaveObjects(), TGo4Sniffer::ScanRoot(), TGo4EventProcessor::SendObjectToGUI(), TGo4AnalysisStepManager::SetFirstStep(), TGo4AnalysisStepManager::SetLastStep(), TGo4EventProcessor::SetMakeWithAutosave(), TMeshProviderProc::SetRealInput(), TGo4AnalysisClient::TGo4AnalysisClient(), TGo4AnalysisStep::TGo4AnalysisStep(), TGo4DabcPlayer::TGo4DabcPlayer(), TGo4HistogramServer::TGo4HistogramServer(), treedrawgo4(), TMeshParameter::UpdateFrom(), TXXXCalibPar::UpdateFrom(), and TGo4DabcPlayer::~TGo4DabcPlayer().
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 486 of file TGo4AnalysisImp.h.
References fbAutoSaveFileChange.
Referenced by TGo4MbsFile::NewFileAction().
Bool_t TGo4Analysis::IsAutoSaveFileName | ( | ) | const |
Return kTRUE, if autosave file name set.
Definition at line 978 of file TGo4AnalysisImp.cxx.
References fxAutoFileName.
Bool_t TGo4Analysis::IsAutoSaveOn | ( | ) | const [inline] |
True if autosaving is enabled
Definition at line 479 of file TGo4AnalysisImp.h.
References fbAutoSaveOn.
Referenced by TGo4ComAutosave::ExeCom(), and TGo4AnalysisClient::Initialization().
Bool_t TGo4Analysis::IsBatchMode | ( | ) | [static] |
Return kTRUE if analysis will run in batch (without connection to GUI)
Definition at line 145 of file TGo4AnalysisImp.cxx.
References fiRunningMode.
Bool_t TGo4Analysis::IsClientMode | ( | ) | [static] |
Return kTRUE if analysis will run in gui mode, connected to gui as client
Definition at line 150 of file TGo4AnalysisImp.cxx.
References fiRunningMode.
Int_t TGo4Analysis::IsErrorStopEnabled | ( | ) |
True if current analysis step allows stop on error
Definition at line 1604 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::IsErrorStopEnabled().
Referenced by Process(), and TGo4AnalysisMainRunnable::Run().
Bool_t TGo4Analysis::IsInitDone | ( | ) | const [inline] |
True if the analysis steps are initialized
Definition at line 489 of file TGo4AnalysisImp.h.
References fbInitIsDone.
Referenced by TGo4AnalysisWatchRunnable::Run(), and TGo4AnalysisClient::Start().
Bool_t TGo4Analysis::IsNewInputFile | ( | ) | const [inline] |
True if input filelist has changed to a new lmd file.
Definition at line 515 of file TGo4AnalysisImp.h.
References fbNewInputFile.
Referenced by TMeshAnalysis::UserEventFunc(), and TXXXAnalysis::UserEventFunc().
Bool_t TGo4Analysis::IsObjMade | ( | ) | [inline] |
Returns kTRUE if object in last Make... call was created, kFALSE when object was retrieved from autosavefile
Definition at line 675 of file TGo4AnalysisImp.h.
References fbObjMade.
Referenced by TGo4EventProcessor::IsObjMade().
Bool_t TGo4Analysis::IsRunning | ( | ) |
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 1152 of file TGo4AnalysisImp.cxx.
References fbExists, fxAnalysisSlave, and TGo4Slave::MainIsRunning().
Referenced by Process(), TGo4AnalysisClient::UpdateStatus(), and WaitForStart().
Bool_t TGo4Analysis::IsServerMode | ( | ) | [static] |
Return kTRUE if analysis will run in server mode and gui can connect to the analysis
Definition at line 155 of file TGo4AnalysisImp.cxx.
References fiRunningMode.
Bool_t TGo4Analysis::IsStopWorking | ( | ) | const [inline, private] |
Returns true when event loop execution was stopped, only in batch mode
Definition at line 884 of file TGo4AnalysisImp.h.
References fxDoWorkingFlag.
Bool_t TGo4Analysis::LoadObjects | ( | const char * | filename = 0 |
) |
Load analysis objects from file. File is the autosave file by default, but may be specified by name.
Definition at line 1076 of file TGo4AnalysisImp.cxx.
References CloseAutoSaveFile(), fbAutoSaveOn, fbAutoSaveOverwrite, fxAutoFile, fxAutoFileName, fxAutoSaveMutex, fxObjectManager, TGo4Log::Info(), TGo4AnalysisObjectManager::LoadObjects(), and OpenAutoSaveFile().
Referenced by InitEventClasses(), and TGo4AnalysisClient::Initialization().
Bool_t TGo4Analysis::LoadStatus | ( | const char * | filename = 0 |
) |
Load Analysis Status from file and set analysis to these settings.
Definition at line 758 of file TGo4AnalysisImp.cxx.
References fgcDEFAULTFILESUF, fgcDEFAULTSTATUSFILENAME, fxConfigFilename, GetName(), GO4TRACE, Message(), and SetStatus().
Referenced by TGo4ComLoadAnalysisStatus::ExeCom(), TGo4AnalysisClient::Initialization(), and main().
Int_t TGo4Analysis::LockAutoSave | ( | ) |
Lock the autosave mutex. For usage in analysis client
Definition at line 984 of file TGo4AnalysisImp.cxx.
References fxAutoSaveMutex, and GO4TRACE.
Referenced by TGo4AnalysisClient::~TGo4AnalysisClient().
Int_t TGo4Analysis::MainCycle | ( | ) |
The main analysis event cycle. This method is called by the main runnable, or by RunImplicitLoop(). Processes the analysis steps first, then the user event function. Finally, the dynamic list is updated.
Definition at line 370 of file TGo4AnalysisImp.cxx.
References AutoSave(), fbAutoSaveOn, fbInitIsDone, fiAutoSaveCount, fiAutoSaveInterval, fxAnalysisSlave, fxAutoSaveClock, fxObjectManager, GO4TRACE, Message(), ProcessAnalysisSteps(), TGo4AnalysisObjectManager::ProcessDynamicList(), SetNewInputFile(), TGo4AnalysisClient::TestBufferUpdateConditions(), TGo4AnalysisClient::UpdateRate(), TGo4Slave::UpdateStatusBuffer(), and UserEventFunc().
Referenced by Process(), TGo4AnalysisMainRunnable::Run(), and RunImplicitLoop().
TGo4Parameter * TGo4Analysis::MakeParameter | ( | const char * | fullname, | |
const char * | classname, | |||
const char * | cmd = 0 | |||
) |
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 1986 of file TGo4AnalysisImp.cxx.
References AddParameter(), TGo4Log::Error(), ExecuteScript(), fbObjMade, GetParameter(), TGo4Log::Info(), and RemoveParameter().
Referenced by TGo4EventProcessor::MakeParameter().
TGo4PolyCond * TGo4Analysis::MakePolyCond | ( | const char * | fullname, | |
Int_t | npoints, | |||
Double_t(*) | points[2], | |||
const char * | HistoName = 0 | |||
) |
Create polygon condition. fullname specifies name of condition (optionally with subfolder name) npoints - number of points in 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 1925 of file TGo4AnalysisImp.cxx.
References AddAnalysisCondition(), TGo4Log::Error(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), and TGo4Condition::ResetCounts().
Referenced by TGo4EventProcessor::MakePolyCond().
TH1 * TGo4Analysis::MakeTH1 | ( | char | type, | |
const char * | fullname, | |||
const char * | title, | |||
Int_t | nbinsx, | |||
Double_t | xlow, | |||
Double_t | xup, | |||
const char * | xtitle = 0 , |
|||
const char * | ytitle = 0 | |||
) |
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 1672 of file TGo4AnalysisImp.cxx.
References AddHistogram(), TGo4Log::Error(), fbMakeWithAutosave, fbObjMade, GetHistogram(), TGo4Log::Info(), and RemoveHistogram().
Referenced by TGo4EventProcessor::MakeTH1().
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 = 0 , |
|||
const char * | ytitle = 0 , |
|||
const char * | ztitle = 0 | |||
) |
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 1754 of file TGo4AnalysisImp.cxx.
References AddHistogram(), TGo4Log::Error(), fbMakeWithAutosave, fbObjMade, GetHistogram(), TGo4Log::Info(), and RemoveHistogram().
Referenced by TGo4EventProcessor::MakeTH2().
TGo4WinCond * TGo4Analysis::MakeWinCond | ( | const char * | fullname, | |
Double_t | xmin, | |||
Double_t | xmax, | |||
Double_t | ymin, | |||
Double_t | ymax, | |||
const char * | HistoName = 0 | |||
) |
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 1881 of file TGo4AnalysisImp.cxx.
References AddAnalysisCondition(), TGo4Condition::Enable(), TGo4Log::Error(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), TGo4Condition::ResetCounts(), TGo4Condition::SetHistogram(), and TGo4WinCond::SetValues().
TGo4WinCond * TGo4Analysis::MakeWinCond | ( | const char * | fullname, | |
Double_t | xmin, | |||
Double_t | xmax, | |||
const char * | HistoName = 0 | |||
) |
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 1838 of file TGo4AnalysisImp.cxx.
References AddAnalysisCondition(), TGo4Condition::Enable(), TGo4Log::Error(), fbMakeWithAutosave, fbObjMade, GetAnalysisCondition(), RemoveAnalysisCondition(), TGo4Condition::ResetCounts(), TGo4Condition::SetHistogram(), and TGo4WinCond::SetValues().
Referenced by TGo4EventProcessor::MakeWinCond().
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 1105 of file TGo4AnalysisImp.cxx.
References TGo4Log::fguMESLEN, and SendMessageToGUI().
Referenced by TGo4AnalysisStepManager::AddAnalysisStep(), TGo4AnalysisObjectManager::AddTreeHistogram(), TGo4AnalysisStepManager::AutoSave(), AutoSave(), TGo4AnalysisObjectManager::CloseAnalysis(), CloseAutoSaveFile(), TGo4HistogramServer::ConnectObjectClient(), Constructor(), TGo4AnalysisObjectManager::CreateTreeStructure(), TGo4AnalysisObjectManager::GetAsTObject(), TGo4AnalysisStepManager::InitEventClasses(), InitEventClasses(), TGo4AnalysisObjectManager::LoadFolder(), LoadStatus(), MainCycle(), TGo4EventProcessor::Message(), TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::NewEventSource(), TGo4AnalysisStep::NewEventStore(), TGo4AnalysisStep::NewInputEvent(), TGo4AnalysisStep::NewOutputEvent(), TGo4MbsFile::NextFile(), OpenAutoSaveFile(), Process(), TGo4AnalysisObjectManager::PutToFolder(), TGo4AnalysisObjectManager::RemoveObjectFromFolder(), TGo4HisConnectorRunnable::Run(), RunImplicitLoop(), TGo4AnalysisObjectManager::SaveFolder(), TGo4AnalysisObjectManager::SaveObjects(), SaveStatus(), SendMessageToGUI(), SendObjectToGUI(), TGo4AnalysisStepManager::SetFirstStep(), TGo4AnalysisStepManager::SetLastStep(), ShowEvent(), ShutdownServer(), StartObjectServer(), StopObjectServer(), TGo4HistogramServer::TGo4HistogramServer(), treedrawgo4(), UpdateNamesList(), UserPostLoop(), and UserPreLoop().
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 1564 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::NewStepProcessor().
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 1569 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::NewStepSource().
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 1574 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::NewStepStore().
TObject * TGo4Analysis::NextMatchingObject | ( | const char * | expr = 0 , |
|
const char * | folder = 0 , |
|||
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 1530 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::NextMatchingObject().
TGo4AnalysisObjectManager* TGo4Analysis::ObjectManager | ( | ) | const [inline] |
Returns pointer on analysis object manager
Definition at line 175 of file TGo4AnalysisImp.h.
References fxObjectManager.
Referenced by TGo4ComGetEnvelope::ExeCom(), TGo4Sniffer::ScanRoot(), and SendObjectToGUI().
void TGo4Analysis::OpenAutoSaveFile | ( | bool | for_writing = false |
) | [private] |
Open the autosave file with the current settings.
Definition at line 1020 of file TGo4AnalysisImp.cxx.
References fbAutoSaveOn, fiAutoSaveCompression, fxAutoFile, fxAutoFileName, fxAutoSaveMutex, and Message().
Referenced by AutoSave(), and LoadObjects().
Int_t TGo4Analysis::PostLoop | ( | ) |
Method executed once after the main analysis event loop. This method is called by the thread postrun, or at the end of RunImplicitLoop(). Calls virtual user postloop function.
Definition at line 922 of file TGo4AnalysisImp.cxx.
References fbInitIsDone, fxAutoSaveMutex, fxStepManager, TGo4AnalysisStepManager::GetAnalysisStepNum(), TGo4AnalysisStep::GetEventProcessor(), TGo4AnalysisStepManager::GetNumberOfAnalysisSteps(), GO4TRACE, UserPostLoop(), and TGo4EventProcessor::UserPostLoop().
Referenced by TGo4ComSetAnalysisStatus::ExeCom(), TGo4ComCloseAnalysis::ExeCom(), TGo4AnalysisMainRunnable::PostRun(), RunImplicitLoop(), and TGo4AnalysisClient::Stop().
Int_t TGo4Analysis::PreLoop | ( | ) |
Method executed once before the main analysis event loop. This method is called by the thread prerun, or at the beginning of RunImplicitLoop(). Calls virtual user preloop function.
Definition at line 905 of file TGo4AnalysisImp.cxx.
References fiAutoSaveCount, fxAutoSaveClock, fxAutoSaveMutex, fxStepManager, TGo4AnalysisStepManager::GetAnalysisStepNum(), TGo4AnalysisStep::GetEventProcessor(), TGo4AnalysisStepManager::GetNumberOfAnalysisSteps(), GO4TRACE, TGo4EventProcessor::UserPreLoop(), and UserPreLoop().
Referenced by TGo4ComInitAnalysis::ExeCom(), RunImplicitLoop(), and TGo4AnalysisClient::Start().
void TGo4Analysis::Print | ( | Option_t * | opt = "" |
) | const [virtual] |
Printout the analysis (step-) setup.
Definition at line 851 of file TGo4AnalysisImp.cxx.
References CreateStatus(), and TGo4AnalysisStatus::PrintStatus().
void TGo4Analysis::PrintConditions | ( | const char * | expression = 0 |
) |
Print all condition counters to the terminal.
Definition at line 1510 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::PrintConditions().
Referenced by TGo4ComPrintConditions::ExeCom().
void TGo4Analysis::PrintDynamicList | ( | ) |
Print entries of current dynamic list.
Definition at line 1525 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::PrintDynamicList().
Referenced by TGo4ComPrintDynList::ExeCom().
void TGo4Analysis::PrintHistograms | ( | const char * | expression = 0 |
) |
Printout of all histogram statistic counters on the terminal.
Definition at line 1515 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::PrintHistograms().
Referenced by TGo4ComPrintHistograms::ExeCom().
void TGo4Analysis::PrintParameters | ( | const char * | expression = 0 |
) |
Printout of all parameters on the terminal.
Definition at line 1520 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::PrintParameters().
Int_t TGo4Analysis::Process | ( | ) |
This method is meant to be called from a go4 cintserver macro in an explicit event loop. It executes any queued commands and calls MainCycle() once, protected by main go4 lockguard. Returns 0 if analysis has IsRunning() state true; returns negative value if IsRunning() is false.
Definition at line 418 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, TGo4DynamicListException::GetEntryClass(), TGo4DynamicListException::GetEntryName(), TGo4EventSourceException::GetErrMess(), TGo4Log::GetIgnoreLevel(), TGo4UserException::GetMessage(), GetName(), TGo4UserException::GetPriority(), TGo4EventErrorException::GetPriority(), TGo4EventSourceException::GetSourceClass(), TGo4EventSourceException::GetSourceName(), TGo4AnalysisStepException::GetStatusMessage(), TGo4DynamicListException::GetStatusMessage(), TGo4AnalysisStepException::GetStepName(), GO4TRACE, TGo4AnalysisStepException::Handle(), TGo4DynamicListException::Handle(), TGo4EventSourceException::Handle(), IsErrorStopEnabled(), IsRunning(), MainCycle(), Message(), and TGo4AnalysisClient::Stop().
Referenced by treedrawgo4().
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 1614 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::ProcessAnalysisSteps().
Referenced by MainCycle().
void TGo4Analysis::ProcessCrtlCSignal | ( | ) |
Method called from Ctrl-C handler
Definition at line 320 of file TGo4AnalysisImp.cxx.
References CloseAnalysis(), CloseAutoSaveFile(), TGo4Log::CloseLogfile(), fNumCtrlC, ShutdownServer(), and StopWorking().
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 1475 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::ProtectObjects().
Referenced by TGo4ComSetProtections::ExeCom().
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 1455 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveAnalysisCondition().
Referenced by MakePolyCond(), MakeWinCond(), and TGo4EventProcessor::RemoveAnalysisCondition().
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 1445 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveCanvas().
Referenced by TGo4EventProcessor::RemoveCanvas().
Bool_t TGo4Analysis::RemoveDynamicEntry | ( | const char * | entryname, | |
const char * | listname = 0 | |||
) |
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 716 of file TGo4AnalysisImp.cxx.
References fxObjectManager, GO4TRACE, TGo4AnalysisObjectManager::RemoveDynamicEntry(), and UpdateNamesList().
Bool_t TGo4Analysis::RemoveEventProcessor | ( | TGo4EventProcessor * | pro | ) | [private] |
Remove reference to event processor from go4 folder structure.
Definition at line 1460 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventProcessor().
Referenced by TGo4AnalysisStep::CloseEventProcessor().
Bool_t TGo4Analysis::RemoveEventSource | ( | TGo4EventSource * | source | ) | [private] |
Remove reference to event source from go4 folder structure.
Definition at line 1410 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventSource().
Referenced by TGo4AnalysisStep::CloseEventSource().
Bool_t TGo4Analysis::RemoveEventStore | ( | TGo4EventStore * | store | ) | [private] |
Remove reference to event store from go4 folder structure.
Definition at line 1415 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventStore().
Referenced by TGo4AnalysisStep::CloseEventStore().
Bool_t TGo4Analysis::RemoveEventStructure | ( | TGo4EventElement * | ev | ) | [private] |
Remove reference to event structure from go4 folder structure.
Definition at line 1420 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveEventStructure().
Referenced by TGo4AnalysisStep::DeleteInputEvent(), and TGo4AnalysisStep::DeleteOutputEvent().
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 1425 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveHistogram().
Referenced by MakeTH1(), MakeTH2(), and TGo4EventProcessor::RemoveHistogram().
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 1430 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveObject().
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 1435 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveParameter().
Referenced by MakeParameter(), and TGo4EventProcessor::RemoveParameter().
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 1440 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemovePicture().
Referenced by TGo4EventProcessor::RemovePicture().
Bool_t TGo4Analysis::RemoveTree | ( | TTree * | tree, | |
const char * | stepname = 0 | |||
) |
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 1450 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::RemoveTree().
Referenced by TGo4AnalysisStep::CloseEventStore(), and treedrawgo4().
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 1480 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::ResetBackStores().
Int_t TGo4Analysis::RunImplicitLoop | ( | Int_t | times, | |
Bool_t | showrate = kFALSE , |
|||
Double_t | process_event_interval = -1. | |||
) |
Processes the UserEventFunc in an implicit loop for "times" times. For non-threaded usage of the analysis class.
times | specified how many events should be processed, 0 - all | |
showrate | identifies if ratemeter should be shown | |
process_event_interval | allows regularly process ROOT system events |
Definition at line 586 of file TGo4AnalysisImp.cxx.
References fBatchLoopCount, flagRunning, flagStop, fSniffer, fxDoWorkingFlag, TGo4Ratemeter::GetCurrentCount(), TGo4EventSourceException::GetErrMess(), TGo4Log::GetPrintfArg(), TGo4EventErrorException::GetPriority(), TGo4UserException::GetPriority(), TGo4Ratemeter::GetRate(), TGo4EventSourceException::GetSourceClass(), TGo4EventSourceException::GetSourceName(), GO4TRACE, TGo4Exception::Handle(), TGo4EventSourceException::Handle(), TGo4UserException::Handle(), MainCycle(), Message(), PostLoop(), PreLoop(), TGo4AnalysisSniffer::RatemeterUpdate(), TGo4Ratemeter::Reset(), TGo4Ratemeter::SetUpdateInterval(), TGo4Ratemeter::Update(), and TGo4Exception::What().
Referenced by main().
Bool_t TGo4Analysis::SaveStatus | ( | const char * | filename = 0 |
) |
Save current analysis settings into file of given name.
Definition at line 805 of file TGo4AnalysisImp.cxx.
References CreateStatus(), fgcDEFAULTFILESUF, fgcDEFAULTSTATUSFILENAME, fxConfigFilename, GO4TRACE, and Message().
Referenced by TGo4ComSaveAnalysisStatus::ExeCom().
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 1115 of file TGo4AnalysisImp.cxx.
References fSniffer, fxAnalysisSlave, TGo4Log::IsOutputEnabled(), Message(), TGo4Log::OutputEnable(), TGo4AnalysisClient::SendStatusMessage(), and TGo4AnalysisSniffer::StatusMessage().
Referenced by Message().
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 1131 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::FindObjectPathName(), fxAnalysisSlave, Message(), ObjectManager(), and TGo4Slave::SendObject().
void TGo4Analysis::SetAdministratorPassword | ( | const char * | passwd | ) |
Specify password for administrator account. For login from remote gui into analysis server
Definition at line 1667 of file TGo4AnalysisImp.cxx.
References fServerAdminPass.
void TGo4Analysis::SetAnalysisClient | ( | TGo4AnalysisClient * | cli | ) | [inline, private] |
Register analysis client if running in gui mode.
Definition at line 866 of file TGo4AnalysisImp.h.
References fxAnalysisSlave.
Referenced by TGo4AnalysisClient::TGo4AnalysisClient().
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 1485 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::SetAnalysisCondition().
Referenced by TGo4ComSetObject::ExeSetCon().
void TGo4Analysis::SetAnalysisName | ( | const char * | name | ) | [inline] |
Definition at line 121 of file TGo4AnalysisImp.h.
References fAnalysisName.
Referenced by TGo4Analysis().
void TGo4Analysis::SetAutoSave | ( | Bool_t | on = kTRUE |
) | [inline] |
enable/disable functionality of AutoSave method
Definition at line 476 of file TGo4AnalysisImp.h.
References fbAutoSaveOn.
Referenced by TGo4ComAutosave::ExeCom(), main(), TGo4AnalysisClient::SetCintMode(), and SetStatus().
void TGo4Analysis::SetAutoSaveFile | ( | const char * | filename = 0 , |
|
Bool_t | overwrite = kFALSE , |
|||
Int_t | compression = 5 | |||
) |
Set file for autosave action.
Definition at line 963 of file TGo4AnalysisImp.cxx.
References fbAutoSaveOverwrite, fgcDEFAULTFILENAME, fgcDEFAULTFILESUF, fiAutoSaveCompression, and fxAutoFileName.
Referenced by TGo4ComAutosave::ExeCom(), main(), TGo4MbsFile::NewFileAction(), and SetStatus().
void TGo4Analysis::SetAutoSaveFileChange | ( | Bool_t | on = kTRUE |
) | [inline] |
Set analysis in mode where autosave file switches for each new input file
Definition at line 482 of file TGo4AnalysisImp.h.
References fbAutoSaveFileChange.
void TGo4Analysis::SetAutoSaveInterval | ( | Int_t | interval = 0 |
) | [inline] |
Set time interval (in s) for autosave action.
Definition at line 459 of file TGo4AnalysisImp.h.
References fiAutoSaveInterval.
Referenced by main(), and SetStatus().
void TGo4Analysis::SetBatchLoopCount | ( | Int_t | cnt = -1 |
) | [inline] |
Set number of event loop count, executed in batch mode
Definition at line 668 of file TGo4AnalysisImp.h.
References fBatchLoopCount.
void TGo4Analysis::SetControllerPassword | ( | const char * | passwd | ) |
Specify password for controller account. For login from remote gui into analysis server
Definition at line 1662 of file TGo4AnalysisImp.cxx.
References fServerCtrlPass.
void TGo4Analysis::SetDynListInterval | ( | Int_t | val | ) |
Definition at line 1505 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::SetDynListInterval().
Referenced by Constructor(), and TGo4ComSetObject::ExeSetDyn().
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 nullpointer, takes first step in steplist.
Definition at line 1589 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::SetFirstStep().
void TGo4Analysis::SetInputFileName | ( | const char * | fname | ) | [inline] |
Set current input file name
Definition at line 518 of file TGo4AnalysisImp.h.
References fxCurrentInputFileName.
Referenced by TGo4MbsFile::NewFileAction().
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 nullpointer, takes last step in steplist.
Definition at line 1594 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::SetLastStep().
void TGo4Analysis::SetMakeWithAutosave | ( | Bool_t | on = kTRUE |
) | [inline] |
Set flag to use data from autosave file in Make... methods (default true)
Definition at line 671 of file TGo4AnalysisImp.h.
References fbMakeWithAutosave.
Referenced by TGo4EventProcessor::SetMakeWithAutosave().
void TGo4Analysis::SetNewInputFile | ( | Bool_t | on = kTRUE |
) | [inline] |
Set flag that input file has changed
Definition at line 512 of file TGo4AnalysisImp.h.
References fbNewInputFile.
Referenced by MainCycle(), and TGo4MbsFile::NewFileAction().
void TGo4Analysis::SetObserverPassword | ( | const char * | passwd | ) |
Specify password for observer account. For login from remote gui into analysis server
Definition at line 1657 of file TGo4AnalysisImp.cxx.
References fServerObserverPass.
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 1619 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::SetOutputEvent().
Referenced by TGo4AnalysisStep::Process().
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 1490 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::SetParameter().
Referenced by TGo4ComSetObject::ExeSetPar().
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 1495 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::SetParameterStatus().
Referenced by TGo4ComSetObject::ExeSetParStatus().
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 1500 of file TGo4AnalysisImp.cxx.
References fxObjectManager, and TGo4AnalysisObjectManager::SetPicture().
Referenced by TGo4ComSetObject::ExeSetPic().
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 1160 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, TGo4AnalysisClient::Start(), and TGo4AnalysisClient::Stop().
void TGo4Analysis::SetRunningMode | ( | int | mode | ) | [static] |
void TGo4Analysis::SetSniffer | ( | TGo4AnalysisSniffer * | sniff | ) | [inline] |
Set pointer on sniffer object
Definition at line 771 of file TGo4AnalysisImp.h.
References fSniffer.
Referenced by TGo4DabcPlayer::TGo4DabcPlayer(), and TGo4DabcPlayer::~TGo4DabcPlayer().
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 742 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 TGo4ComSetAnalysisStatus::ExeCom(), and LoadStatus().
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 1584 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::SetStepChecking().
Referenced by TMeshAnalysis::TMeshAnalysis().
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 1599 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::SetStepStorage().
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 analyis 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 1241 of file TGo4AnalysisImp.cxx.
References CreateSingleEventTree(), and Message().
Referenced by TGo4ComGetCurrentEvent::ExeCom().
void TGo4Analysis::ShutdownServer | ( | ) | [private] |
Definition at line 1227 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, Message(), and TGo4AnalysisClient::SubmitShutdown().
Referenced by ProcessCrtlCSignal().
void TGo4Analysis::StartAnalysis | ( | ) |
(Re)Start analysis event loop, works in both batch and gui-controlled mode
Definition at line 2085 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, fxDoWorkingFlag, and TGo4AnalysisClient::Start().
Referenced by TGo4DabcPlayer::ProcessHCommand().
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 1207 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, and Message().
void TGo4Analysis::StopAnalysis | ( | ) |
Stop analysis event loop, works in both batch and gui-controlled mode
Definition at line 2075 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, fxDoWorkingFlag, and TGo4AnalysisClient::Stop().
Referenced by TGo4DabcPlayer::ProcessHCommand().
void TGo4Analysis::StopObjectServer | ( | ) |
Stop the object (histogram) server.
Definition at line 1217 of file TGo4AnalysisImp.cxx.
References fxAnalysisSlave, and Message().
void TGo4Analysis::StopWorking | ( | ) | [inline, private] |
Called by interrupt routine for normal exit from program (in batch mode)
Definition at line 881 of file TGo4AnalysisImp.h.
References fxDoWorkingFlag.
Referenced by ProcessCrtlCSignal().
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 1629 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::Store().
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 1634 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::Store().
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 1639 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::Store().
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 1644 of file TGo4AnalysisImp.cxx.
References TGo4AnalysisObjectManager::FindSubFolder(), fxObjectManager, fxStepManager, GetObjectFolder(), and TGo4AnalysisStepManager::Store().
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 1624 of file TGo4AnalysisImp.cxx.
References fxStepManager, and TGo4AnalysisStepManager::Store().
Int_t TGo4Analysis::UnLockAutoSave | ( | ) |
UnLock the autosave mutex. For usage in analysis client
Definition at line 995 of file TGo4AnalysisImp.cxx.
References fxAutoSaveMutex, and GO4TRACE.
Referenced by TGo4AnalysisClient::~TGo4AnalysisClient().
void TGo4Analysis::UpdateNamesList | ( | ) | [private] |
Update the internal list of object names. To be used internally and by analysis client.
Definition at line 1062 of file TGo4AnalysisImp.cxx.
References CreateNamesList(), fxObjectNames, GO4TRACE, and Message().
Referenced by AddTreeHistogram(), TGo4ComSetObject::ExeCom(), TGo4ComGetNamesList::ExeCom(), TGo4HistogramServer::HandleObjectRequest(), InitEventClasses(), RemoveDynamicEntry(), and TGo4AnalysisClient::SendNamesList().
void TGo4Analysis::UpdateStatus | ( | TGo4AnalysisStatus * | state | ) |
Create a copy of the analysis internal state. To be sent to the Display.
Definition at line 728 of file TGo4AnalysisImp.cxx.
References fbAutoSaveOn, fbAutoSaveOverwrite, fiAutoSaveCompression, fiAutoSaveInterval, fxAutoFileName, fxConfigFilename, fxStepManager, GO4TRACE, TGo4AnalysisStatus::SetAutoFileName(), TGo4AnalysisStatus::SetAutoSaveCompression(), TGo4AnalysisStatus::SetAutoSaveInterval(), TGo4AnalysisStatus::SetAutoSaveOn(), TGo4AnalysisStatus::SetAutoSaveOverwrite(), TGo4AnalysisStatus::SetConfigFileName(), and TGo4AnalysisStepManager::UpdateStatus().
Referenced by CreateStatus().
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, TXXXAnalysis, TMeshAnalysis, and TYYYAnalysis.
Definition at line 412 of file TGo4AnalysisImp.cxx.
References GO4TRACE.
Referenced by MainCycle().
Int_t TGo4Analysis::UserPostLoop | ( | ) | [virtual] |
User defined function called once after processing the main event loop. Optionally.
Reimplemented in TXXXAnalysis, TXXXAnalysis, TXXXAnalysis, TMeshAnalysis, and TYYYAnalysis.
Definition at line 955 of file TGo4AnalysisImp.cxx.
References GO4TRACE, and Message().
Referenced by PostLoop().
Int_t TGo4Analysis::UserPreLoop | ( | ) | [virtual] |
User defined function called once before processing the main event loop. Optionally.
Reimplemented in TXXXAnalysis, TXXXAnalysis, TXXXAnalysis, TMeshAnalysis, and TYYYAnalysis.
Definition at line 947 of file TGo4AnalysisImp.cxx.
References GO4TRACE, and Message().
Referenced by PreLoop().
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 1169 of file TGo4AnalysisImp.cxx.
References fgiMACROSTARTPOLL, flagStop, fxDoWorkingFlag, and IsRunning().
Referenced by treedrawgo4().
friend class TGo4AnalysisClient [friend] |
Definition at line 71 of file TGo4AnalysisImp.h.
friend class TGo4AnalysisStep [friend] |
Definition at line 70 of file TGo4AnalysisImp.h.
Referenced by TMeshAnalysis::TMeshAnalysis(), TXXXAnalysis::TXXXAnalysis(), and TYYYAnalysis::TYYYAnalysis().
friend class TGo4ComGetCurrentEvent [friend] |
Definition at line 72 of file TGo4AnalysisImp.h.
friend class TGo4ComGetEnvelope [friend] |
Definition at line 74 of file TGo4AnalysisImp.h.
friend class TGo4ComGetNamesList [friend] |
Definition at line 73 of file TGo4AnalysisImp.h.
friend class TGo4ComSetObject [friend] |
Definition at line 75 of file TGo4AnalysisImp.h.
friend class TGo4HisConnectorRunnable [friend] |
Definition at line 76 of file TGo4AnalysisImp.h.
friend class TGo4HistogramServer [friend] |
Definition at line 77 of file TGo4AnalysisImp.h.
TString TGo4Analysis::fAnalysisName [private] |
name of analysis object
Definition at line 970 of file TGo4AnalysisImp.h.
Referenced by Constructor(), GetName(), and SetAnalysisName().
Int_t TGo4Analysis::fBatchLoopCount [private] |
exact number of loop counts in batch mode
Definition at line 973 of file TGo4AnalysisImp.h.
Referenced by RunImplicitLoop(), and SetBatchLoopCount().
Bool_t TGo4Analysis::fbAutoSaveFileChange [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 953 of file TGo4AnalysisImp.h.
Referenced by IsAutoSaveFileChange(), and SetAutoSaveFileChange().
Bool_t TGo4Analysis::fbAutoSaveOn [protected] |
True if Autosaving is enabled (default). If false, calling AutoSave() will have no effect.
Definition at line 793 of file TGo4AnalysisImp.h.
Referenced by AutoSave(), IsAutoSaveOn(), LoadObjects(), MainCycle(), OpenAutoSaveFile(), SetAutoSave(), and UpdateStatus().
Bool_t TGo4Analysis::fbAutoSaveOverwrite [private] |
True if autosave file is in overwrite mode
Definition at line 939 of file TGo4AnalysisImp.h.
Referenced by LoadObjects(), SetAutoSaveFile(), and UpdateStatus().
Bool_t TGo4Analysis::fbExists = kFALSE [static, private] |
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 896 of file TGo4AnalysisImp.h.
Referenced by Constructor(), Exists(), Instance(), and IsRunning().
Bool_t TGo4Analysis::fbInitIsDone [protected] |
True if analysis framework has been initialized and the event classes are created.
Definition at line 789 of file TGo4AnalysisImp.h.
Referenced by CloseAnalysis(), InitEventClasses(), IsInitDone(), MainCycle(), and PostLoop().
Bool_t TGo4Analysis::fbMakeWithAutosave [private] |
If false, do not use data from autosave file in Make... methods
Definition at line 985 of file TGo4AnalysisImp.h.
Referenced by MakePolyCond(), MakeTH1(), MakeTH2(), MakeWinCond(), and SetMakeWithAutosave().
Bool_t TGo4Analysis::fbNewInputFile [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 946 of file TGo4AnalysisImp.h.
Referenced by IsNewInputFile(), and SetNewInputFile().
Bool_t TGo4Analysis::fbObjMade [private] |
indicate if object was created by last Make... operation
Definition at line 988 of file TGo4AnalysisImp.h.
Referenced by IsObjMade(), MakeParameter(), MakePolyCond(), MakeTH1(), MakeTH2(), and MakeWinCond().
const char * TGo4Analysis::fgcDEFAULTFILENAME = "Go4AutoSave.root" [static] |
standard file name
Definition at line 91 of file TGo4AnalysisImp.h.
Referenced by Constructor(), and SetAutoSaveFile().
const char * TGo4Analysis::fgcDEFAULTFILESUF = ".root" [static] |
filename suffix for object file
Definition at line 97 of file TGo4AnalysisImp.h.
Referenced by LoadStatus(), SaveStatus(), and SetAutoSaveFile().
const char * TGo4Analysis::fgcDEFAULTSTATUSFILENAME = "Go4AnalysisPrefs.root" [static] |
standard file name for analysis settings
Definition at line 94 of file TGo4AnalysisImp.h.
Referenced by Constructor(), TGo4AnalysisClient::Initialization(), LoadStatus(), SaveStatus(), TGo4ComLoadAnalysisStatus::TGo4ComLoadAnalysisStatus(), and TGo4ComSaveAnalysisStatus::TGo4ComSaveAnalysisStatus().
const char * TGo4Analysis::fgcTOPDYNAMICLIST = "Go4DynamicList" [static] |
Default name of the default (toplevel) dynamic list
Definition at line 100 of file TGo4AnalysisImp.h.
const Int_t TGo4Analysis::fgiAUTOSAVECOUNTS = 500 [static] |
Definition of default autosave interval.
Definition at line 82 of file TGo4AnalysisImp.h.
const Int_t TGo4Analysis::fgiDYNLISTINTERVAL = 1000 [static] |
This value is the number of events in between subsequent dynamic list processing
Definition at line 85 of file TGo4AnalysisImp.h.
Referenced by Constructor().
const Int_t TGo4Analysis::fgiMACROSTARTPOLL = 1000 [static] |
Time in ms to sleep in the polling loop of the WaitForStart
Definition at line 88 of file TGo4AnalysisImp.h.
Referenced by WaitForStart().
Int_t TGo4Analysis::fiAutoSaveCompression [private] |
compression level for autosave file
Definition at line 925 of file TGo4AnalysisImp.h.
Referenced by OpenAutoSaveFile(), SetAutoSaveFile(), and UpdateStatus().
Int_t TGo4Analysis::fiAutoSaveCount [private] |
Event counter for autosave mechanism.
Definition at line 914 of file TGo4AnalysisImp.h.
Referenced by MainCycle(), and PreLoop().
Int_t TGo4Analysis::fiAutoSaveInterval [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 922 of file TGo4AnalysisImp.h.
Referenced by MainCycle(), SetAutoSaveInterval(), and UpdateStatus().
Int_t TGo4Analysis::fiRunningMode = 0 [static, private] |
This is used to identify running mode of analysis: 0 - batch, 1 - client, 2 - server
Definition at line 900 of file TGo4AnalysisImp.h.
Referenced by IsBatchMode(), IsClientMode(), IsServerMode(), and SetRunningMode().
Int_t TGo4Analysis::fNumCtrlC [private] |
number Ctrl-C handler called
Definition at line 991 of file TGo4AnalysisImp.h.
Referenced by ProcessCrtlCSignal().
TString TGo4Analysis::fServerAdminPass [private] |
preconfigured password for administrator access
Definition at line 976 of file TGo4AnalysisImp.h.
Referenced by TGo4AnalysisClient::Constructor(), DefineServerPasswords(), and SetAdministratorPassword().
TString TGo4Analysis::fServerCtrlPass [private] |
preconfigured password for controller access
Definition at line 979 of file TGo4AnalysisImp.h.
Referenced by TGo4AnalysisClient::Constructor(), DefineServerPasswords(), and SetControllerPassword().
TString TGo4Analysis::fServerObserverPass [private] |
preconfigured password for observer access
Definition at line 982 of file TGo4AnalysisImp.h.
Referenced by TGo4AnalysisClient::Constructor(), DefineServerPasswords(), and SetObserverPassword().
TGo4AnalysisSniffer* TGo4Analysis::fSniffer [private] |
Sniffer object
Definition at line 994 of file TGo4AnalysisImp.h.
Referenced by GetSniffer(), RunImplicitLoop(), SendMessageToGUI(), and SetSniffer().
TGo4AnalysisClient* TGo4Analysis::fxAnalysisSlave [private] |
Optional backpointer to analysis client if running in gui mode.
Definition at line 903 of file TGo4AnalysisImp.h.
Referenced by GetAnalysisClient(), IsRunning(), MainCycle(), Process(), SendMessageToGUI(), SendObjectToGUI(), SetAnalysisClient(), SetRunning(), ShutdownServer(), StartAnalysis(), StartObjectServer(), StopAnalysis(), and StopObjectServer().
TFile* TGo4Analysis::fxAutoFile [private] |
Optional file for autosave of the important objects.
Definition at line 933 of file TGo4AnalysisImp.h.
Referenced by AutoSave(), CloseAutoSaveFile(), LoadObjects(), and OpenAutoSaveFile().
TString TGo4Analysis::fxAutoFileName [private] |
Name of the autosave file.
Definition at line 936 of file TGo4AnalysisImp.h.
Referenced by CloseAutoSaveFile(), Constructor(), IsAutoSaveFileName(), LoadObjects(), OpenAutoSaveFile(), SetAutoSaveFile(), and UpdateStatus().
TStopwatch* TGo4Analysis::fxAutoSaveClock [private] |
Clock for autosave by time mechanism.
Definition at line 917 of file TGo4AnalysisImp.h.
Referenced by Constructor(), MainCycle(), PreLoop(), and ~TGo4Analysis().
TMutex* TGo4Analysis::fxAutoSaveMutex [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 930 of file TGo4AnalysisImp.h.
Referenced by AutoSave(), CloseAutoSaveFile(), Constructor(), LoadObjects(), LockAutoSave(), OpenAutoSaveFile(), PostLoop(), PreLoop(), and UnLockAutoSave().
TString TGo4Analysis::fxConfigFilename [private] |
name of configuration file used for this setup
Definition at line 942 of file TGo4AnalysisImp.h.
Referenced by Constructor(), LoadStatus(), SaveStatus(), and UpdateStatus().
TString TGo4Analysis::fxCurrentInputFileName [private] |
Contains current input file name
Definition at line 949 of file TGo4AnalysisImp.h.
Referenced by GetInputFileName(), and SetInputFileName().
enum { ... } TGo4Analysis::fxDoWorkingFlag [private] |
Indicates analysis runstate
Referenced by IsStopWorking(), RunImplicitLoop(), StartAnalysis(), StopAnalysis(), StopWorking(), and WaitForStart().
TGo4Analysis * TGo4Analysis::fxInstance = 0 [static, private] |
Static Pointer to the analysis singleton instance.
Definition at line 891 of file TGo4AnalysisImp.h.
Referenced by Constructor(), Instance(), and ~TGo4Analysis().
use to treat Ctrl-C interrupts
Definition at line 967 of file TGo4AnalysisImp.h.
Referenced by Constructor(), and ~TGo4Analysis().
Definition at line 911 of file TGo4AnalysisImp.h.
Referenced by AddAnalysisCondition(), AddCanvas(), AddDynamicEntry(), AddDynamicHistogram(), AddEventProcessor(), AddEventSource(), AddEventStore(), AddEventStructure(), AddHistogram(), AddObject(), AddParameter(), AddPicture(), AddTree(), AddTreeHistogram(), AutoSave(), ClearObjects(), CloseAnalysis(), Constructor(), CreateNamesList(), CreateObjectStatus(), CreateTreeStructure(), DeleteObjects(), GetAnalysisCondition(), GetCanvas(), GetDynListInterval(), GetEventStructure(), GetHistogram(), GetObject(), GetObjectFolder(), GetParameter(), GetPicture(), GetTree(), LoadObjects(), MainCycle(), NextMatchingObject(), ObjectManager(), PrintConditions(), PrintDynamicList(), PrintHistograms(), PrintParameters(), ProtectObjects(), RemoveAnalysisCondition(), RemoveCanvas(), RemoveDynamicEntry(), RemoveEventProcessor(), RemoveEventSource(), RemoveEventStore(), RemoveEventStructure(), RemoveHistogram(), RemoveObject(), RemoveParameter(), RemovePicture(), RemoveTree(), ResetBackStores(), SetAnalysisCondition(), SetDynListInterval(), SetParameter(), SetParameterStatus(), SetPicture(), StoreFolder(), and ~TGo4Analysis().
Definition at line 961 of file TGo4AnalysisImp.h.
Referenced by GetNamesList(), UpdateNamesList(), and ~TGo4Analysis().
TGo4EventElement* TGo4Analysis::fxSampleEvent [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 957 of file TGo4AnalysisImp.h.
Referenced by CreateSingleEventTree(), and ~TGo4Analysis().
Definition at line 907 of file TGo4AnalysisImp.h.
Referenced by AddAnalysisStep(), AutoSave(), CloseAnalysis(), Constructor(), GetAnalysisStep(), GetAnalysisStepNum(), GetInputEvent(), GetOutputEvent(), InitEventClasses(), IsErrorStopEnabled(), NewStepProcessor(), NewStepSource(), NewStepStore(), PostLoop(), PreLoop(), ProcessAnalysisSteps(), SetFirstStep(), SetLastStep(), SetOutputEvent(), SetStatus(), SetStepChecking(), SetStepStorage(), StoreCondition(), StoreFitter(), StoreFolder(), StoreParameter(), UpdateStatus(), and ~TGo4Analysis().