GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4AnalysisStatus.h>
Public Member Functions | |
TGo4AnalysisStatus () | |
TGo4AnalysisStatus (const char *name) | |
virtual | ~TGo4AnalysisStatus () |
void | SetStepChecking (Int_t on) |
Int_t | IsStepChecking () const |
void | SetFirstStepIndex (Int_t i) |
Int_t | GetFirstStepIndex () const |
void | SetLastStepIndex (Int_t i) |
Int_t | GetLastStepIndex () const |
void | SetAutoSaveInterval (Int_t i) |
Int_t | GetAutoSaveInterval () const |
void | SetAutoSaveCompression (Int_t i=5) |
Int_t | GetAutoSaveCompression () const |
void | SetAutoSaveOverwrite (Bool_t over=kTRUE) |
Int_t | IsAutoSaveOverwrite () const |
void | SetAutoFileName (const char *name) |
const char * | GetAutoFileName () const |
void | SetConfigFileName (const char *name) |
const char * | GetConfigFileName () const |
void | SetAutoSaveOn (Bool_t on=kTRUE) |
Int_t | IsAutoSaveOn () const |
TGo4AnalysisStepStatus * | GetStepStatus (const char *name) |
Bool_t | AddStepStatus (TGo4AnalysisStepStatus *next) |
void | ClearStepStatus () |
void | ResetStepIterator () |
TGo4AnalysisStepStatus * | NextStepStatus () |
Int_t | GetNumberOfSteps () |
TGo4AnalysisStepStatus * | GetStepStatus (Int_t indx) |
virtual Int_t | PrintStatus (Text_t *buffer=0, Int_t buflen=0) |
Public Member Functions inherited from TGo4Status | |
TGo4Status () | |
TGo4Status (const char *name) | |
TGo4Status (const char *name, const char *title) | |
virtual | ~TGo4Status () |
virtual void | Print (Option_t *dummy="") const |
Protected Attributes | |
TObjArray * | fxStepArray |
TMutex * | fxStepMutex |
TIterator * | fxStepIterator |
Int_t | fbStepCheckingMode |
Int_t | fiFirstStepIndex |
Int_t | fiLastStepIndex |
Int_t | fiAutoSaveInterval |
Int_t | fiAutoSaveCompression |
Int_t | fbAutoSaveOverwrite |
Int_t | fbAutoSaveOn |
TString | fxAutoFileName |
TString | fxConfigFileName |
Friends | |
class | TGo4Analysis |
Additional Inherited Members | |
Public Types inherited from TGo4Status | |
enum | { kGo4NoReset = BIT(20), kGo4CanDelete = BIT(21), kGo4BackStoreReset = BIT(22) } |
Static Public Member Functions inherited from TGo4Status | |
static Text_t * | PrintIndent (Text_t *buffer, Int_t &buflen) |
static Text_t * | PrintBuffer (char *buffer, Int_t &buflen, const char *text,...) |
Status of the analysis instance. Can be sent to the display or controlling server to check the things.
Definition at line 30 of file TGo4AnalysisStatus.h.
TGo4AnalysisStatus::TGo4AnalysisStatus | ( | ) |
default ctor for streamer.
Definition at line 30 of file TGo4AnalysisStatus.cxx.
References GO4TRACE.
TGo4AnalysisStatus::TGo4AnalysisStatus | ( | const char * | name | ) |
Definition at line 49 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepIterator, fxStepMutex, and GO4TRACE.
|
virtual |
Definition at line 70 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepIterator, fxStepMutex, and GO4TRACE.
Bool_t TGo4AnalysisStatus::AddStepStatus | ( | TGo4AnalysisStepStatus * | next | ) |
Add new step status object to analysis status.
Definition at line 157 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepMutex, and GO4TRACE.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
void TGo4AnalysisStatus::ClearStepStatus | ( | ) |
Clear all existing step status objects. For remote http control
Definition at line 177 of file TGo4AnalysisStatus.cxx.
References fxStepArray, and fxStepMutex.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
|
inline |
Definition at line 62 of file TGo4AnalysisStatus.h.
References fxAutoFileName.
Referenced by PrintStatus(), TGo4AnalysisConfiguration::RefreshWidget(), TGo4Analysis::SetStatus(), and TGo4AnalysisConfiguration::WriteAutoSave().
|
inline |
Definition at line 56 of file TGo4AnalysisStatus.h.
References fiAutoSaveCompression.
Referenced by PrintStatus(), TGo4AnalysisConfiguration::RefreshWidget(), TGo4Analysis::SetStatus(), and TGo4AnalysisConfiguration::WriteAutoSave().
|
inline |
Definition at line 53 of file TGo4AnalysisStatus.h.
References fiAutoSaveInterval.
Referenced by PrintStatus(), TGo4AnalysisConfiguration::RefreshWidget(), and TGo4Analysis::SetStatus().
|
inline |
Definition at line 65 of file TGo4AnalysisStatus.h.
References fxConfigFileName.
Referenced by TGo4AnalysisConfiguration::RefreshWidget().
|
inline |
Definition at line 47 of file TGo4AnalysisStatus.h.
References fiFirstStepIndex.
Referenced by PrintStatus(), and TGo4AnalysisStepManager::SetStatus().
|
inline |
Definition at line 50 of file TGo4AnalysisStatus.h.
References fiLastStepIndex.
Referenced by PrintStatus(), and TGo4AnalysisStepManager::SetStatus().
Int_t TGo4AnalysisStatus::GetNumberOfSteps | ( | ) |
Gives number of steps.
Definition at line 184 of file TGo4AnalysisStatus.cxx.
References fxStepArray.
Referenced by GetStepStatus(), and TGo4AnalysisConfiguration::RefreshWidget().
TGo4AnalysisStepStatus * TGo4AnalysisStatus::GetStepStatus | ( | const char * | name | ) |
Access to certain analysis step status by name.
Definition at line 128 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepMutex, and GO4TRACE.
Referenced by TGo4Interface::GetStepStatus(), TGo4AnalysisConfiguration::RefreshWidget(), and TGo4AnalysisStepManager::SetStatus().
TGo4AnalysisStepStatus * TGo4AnalysisStatus::GetStepStatus | ( | Int_t | indx | ) |
Gives analysis step status with provided index.
Definition at line 190 of file TGo4AnalysisStatus.cxx.
References fxStepArray, and GetNumberOfSteps().
|
inline |
Definition at line 68 of file TGo4AnalysisStatus.h.
References fbAutoSaveOn.
Referenced by PrintStatus(), TGo4AnalysisConfiguration::RefreshWidget(), and TGo4Analysis::SetStatus().
|
inline |
Definition at line 59 of file TGo4AnalysisStatus.h.
References fbAutoSaveOverwrite.
Referenced by PrintStatus(), TGo4AnalysisConfiguration::RefreshWidget(), TGo4Analysis::SetStatus(), and TGo4AnalysisConfiguration::WriteAutoSave().
|
inline |
Definition at line 44 of file TGo4AnalysisStatus.h.
References fbStepCheckingMode.
Referenced by TGo4AnalysisStepManager::SetStatus().
TGo4AnalysisStepStatus * TGo4AnalysisStatus::NextStepStatus | ( | ) |
Gives next analysis step status.
Definition at line 137 of file TGo4AnalysisStatus.cxx.
References fxStepIterator, fxStepMutex, and GO4TRACE.
Referenced by PrintStatus(), and TGo4AnalysisWebStatus::UpdateFromUrl().
|
virtual |
basic method to printout status information on stdout; to be overridden by specific subclass
Reimplemented from TGo4Status.
Definition at line 79 of file TGo4AnalysisStatus.cxx.
References GetAutoFileName(), GetAutoSaveCompression(), GetAutoSaveInterval(), GetFirstStepIndex(), GetLastStepIndex(), GO4TRACE, IsAutoSaveOn(), IsAutoSaveOverwrite(), NextStepStatus(), TGo4Status::PrintBuffer(), TGo4AnalysisStepStatus::PrintStatus(), and ResetStepIterator().
Referenced by TGo4Analysis::Print().
void TGo4AnalysisStatus::ResetStepIterator | ( | ) |
Definition at line 145 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepIterator, and fxStepMutex.
Referenced by PrintStatus(), and TGo4AnalysisWebStatus::UpdateFromUrl().
|
inline |
Definition at line 61 of file TGo4AnalysisStatus.h.
References fxAutoFileName.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisConfiguration::LineEdit_AutoSaveFile(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 55 of file TGo4AnalysisStatus.h.
References fiAutoSaveCompression.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisConfiguration::SetCompressionLevel(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 52 of file TGo4AnalysisStatus.h.
References fiAutoSaveInterval.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisConfiguration::SetAutoSaveInterval(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 67 of file TGo4AnalysisStatus.h.
References fbAutoSaveOn.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisConfiguration::EnableAutoSaveSlot(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 58 of file TGo4AnalysisStatus.h.
References fbAutoSaveOverwrite.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisConfiguration::SetAutoSaveOverwrite(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 64 of file TGo4AnalysisStatus.h.
References fxConfigFileName.
Referenced by TGo4Interface::AnalysisConfigName(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 46 of file TGo4AnalysisStatus.h.
References fiFirstStepIndex.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
|
inline |
Definition at line 49 of file TGo4AnalysisStatus.h.
References fiLastStepIndex.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
|
inline |
Definition at line 43 of file TGo4AnalysisStatus.h.
References fbStepCheckingMode.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
|
friend |
Definition at line 32 of file TGo4AnalysisStatus.h.
|
protected |
True if Autosaving is enabled (default). If false, calling AutoSave() will have no effect.
Definition at line 138 of file TGo4AnalysisStatus.h.
Referenced by IsAutoSaveOn(), and SetAutoSaveOn().
|
protected |
overwrite mode for autosave yes or no. Internally, we use Int_t for correct streamer!
Definition at line 134 of file TGo4AnalysisStatus.h.
Referenced by IsAutoSaveOverwrite(), SetAutoSaveOverwrite(), and TGo4AnalysisWebStatus::UpdateFromUrl().
|
protected |
True if chain of steps is checked for consistency of input and output events. Default is true. Can be disabled for steps working in non-subsequent manner. i.e. intermediate steps may be disabled, event structures of subsequent steps need not match.
Definition at line 111 of file TGo4AnalysisStatus.h.
Referenced by IsStepChecking(), and SetStepChecking().
|
protected |
compression level for autosave file
Definition at line 130 of file TGo4AnalysisStatus.h.
Referenced by GetAutoSaveCompression(), SetAutoSaveCompression(), and TGo4AnalysisWebStatus::UpdateFromUrl().
|
protected |
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 127 of file TGo4AnalysisStatus.h.
Referenced by GetAutoSaveInterval(), and SetAutoSaveInterval().
|
protected |
Index describing the first analysis step from the steplist to be processed. The first analysis step will use its own event source to get input events.
Definition at line 116 of file TGo4AnalysisStatus.h.
Referenced by GetFirstStepIndex(), and SetFirstStepIndex().
|
protected |
Index describing the last analysis step from the steplist to be processed. Output event of the last analysis step is accessible by GetEvent method and is used for user event function and dynamic list.
Definition at line 122 of file TGo4AnalysisStatus.h.
Referenced by GetLastStepIndex(), and SetLastStepIndex().
|
protected |
Name of the autosave file.
Definition at line 141 of file TGo4AnalysisStatus.h.
Referenced by GetAutoFileName(), and SetAutoFileName().
|
protected |
Name of the last configuration file.
Definition at line 144 of file TGo4AnalysisStatus.h.
Referenced by GetConfigFileName(), and SetConfigFileName().
|
protected |
Array containing all analysis steps. The steplist is iterated by the maincycle from start to end index to process the active steps.
Definition at line 99 of file TGo4AnalysisStatus.h.
Referenced by AddStepStatus(), ClearStepStatus(), GetNumberOfSteps(), GetStepStatus(), ResetStepIterator(), TGo4AnalysisStatus(), and ~TGo4AnalysisStatus().
|
protected |
Iterator used for analysis step list.
Definition at line 105 of file TGo4AnalysisStatus.h.
Referenced by NextStepStatus(), ResetStepIterator(), TGo4AnalysisStatus(), and ~TGo4AnalysisStatus().
|
protected |
Mutex protecting the analysis step list.
Definition at line 102 of file TGo4AnalysisStatus.h.
Referenced by AddStepStatus(), ClearStepStatus(), GetStepStatus(), NextStepStatus(), ResetStepIterator(), TGo4AnalysisStatus(), and ~TGo4AnalysisStatus().