GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Status of the analysis instance. More...
#include <TGo4AnalysisStatus.h>
Public Member Functions | |
TGo4AnalysisStatus () | |
default ctor for streamer. | |
TGo4AnalysisStatus (const char *name) | |
virtual | ~TGo4AnalysisStatus () |
Bool_t | AddStepStatus (TGo4AnalysisStepStatus *next) |
Add new step status object to analysis status. | |
void | ClearStepStatus () |
Clear all existing step status objects. | |
const char * | GetAutoFileName () const |
Int_t | GetAutoSaveCompression () const |
Int_t | GetAutoSaveInterval () const |
const char * | GetConfigFileName () const |
Int_t | GetFirstStepIndex () const |
Int_t | GetLastStepIndex () const |
Int_t | GetNumberOfSteps () const |
Gives number of steps. | |
TGo4AnalysisStepStatus * | GetStepStatus (const char *name) |
Access to certain analysis step status by name. | |
TGo4AnalysisStepStatus * | GetStepStatus (Int_t indx) const |
Gives analysis step status with provided index. | |
Int_t | IsAutoSaveOn () const |
Int_t | IsAutoSaveOverwrite () const |
Int_t | IsStepChecking () const |
TGo4AnalysisStepStatus * | NextStepStatus () |
Gives next analysis step status. | |
void | Print (Option_t *opt="") const override |
basic method to printout status information on stdout; to be overridden by specific subclass | |
void | ResetStepIterator () |
void | SetAutoFileName (const char *name) |
void | SetAutoSaveCompression (Int_t i=5) |
void | SetAutoSaveInterval (Int_t i) |
void | SetAutoSaveOn (Bool_t on=kTRUE) |
void | SetAutoSaveOverwrite (Bool_t over=kTRUE) |
void | SetConfigFileName (const char *name) |
void | SetFirstStepIndex (Int_t i) |
void | SetLastStepIndex (Int_t i) |
void | SetStepChecking (Int_t on) |
![]() | |
TGo4Status () | |
TGo4Status (const char *name) | |
TGo4Status (const char *name, const char *title) | |
virtual | ~TGo4Status () |
void | Print (Option_t *opt="") const override |
virtual Int_t | PrintStatus (Text_t *buffer=nullptr, Int_t buflen=0) |
DEPRECATED - please use Print(Option_t *) signature basic method to printout status information on stdout; to be overridden by specific subclass. | |
Protected Attributes | |
Int_t | fbAutoSaveOn {1} |
True if Autosaving is enabled (default). | |
Int_t | fbAutoSaveOverwrite {0} |
overwrite mode for autosave yes or no. | |
Int_t | fbStepCheckingMode {1} |
True if chain of steps is checked for consistency of input and output events. | |
Int_t | fiAutoSaveCompression {5} |
compression level for autosave file | |
Int_t | fiAutoSaveInterval {0} |
Implicit Loop cycles in between two autosave actions. | |
Int_t | fiFirstStepIndex {0} |
Index describing the first analysis step from the steplist to be processed. | |
Int_t | fiLastStepIndex {0} |
Index describing the last analysis step from the steplist to be processed. | |
TString | fxAutoFileName |
Name of the autosave file. | |
TString | fxConfigFileName |
Name of the last configuration file. | |
TObjArray * | fxStepArray {nullptr} |
Array containing all analysis steps. | |
TIterator * | fxStepIterator {nullptr} |
Iterator used for analysis step list. | |
TMutex * | fxStepMutex {nullptr} |
Mutex protecting the analysis step list. | |
Friends | |
class | TGo4Analysis |
Additional Inherited Members | |
![]() | |
enum | { kGo4NoReset = BIT(20) , kGo4CanDelete = BIT(21) , kGo4BackStoreReset = BIT(22) } |
Go4 status bits to be used in object manager to suppress resetting or deleting histograms, etc. More... | |
![]() | |
static Text_t * | PrintBuffer (char *buffer, Int_t &buflen, const char *text,...) |
Print text with variable expression into buffer. | |
static Text_t * | PrintIndent (Text_t *buffer, Int_t &buflen) |
Insert indentation blanks into text buffer. | |
static void | PrintLine (const char *text,...) |
Print single line of debug output with appropriate indent. | |
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 24 of file TGo4AnalysisStatus.cxx.
References TGo4Status::TGo4Status().
Referenced by TGo4AnalysisWebStatus::TGo4AnalysisWebStatus(), TGo4AnalysisWebStatus::TGo4AnalysisWebStatus(), TGo4AnalysisWebStatus::ApplyStatus(), and TGo4AnalysisWebStatus::CreateStatus().
TGo4AnalysisStatus::TGo4AnalysisStatus | ( | const char * | name | ) |
Definition at line 30 of file TGo4AnalysisStatus.cxx.
References TGo4Status::TGo4Status(), fxStepArray, fxStepIterator, and fxStepMutex.
|
virtual |
Definition at line 38 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepIterator, and fxStepMutex.
Bool_t TGo4AnalysisStatus::AddStepStatus | ( | TGo4AnalysisStepStatus * | next | ) |
Add new step status object to analysis status.
Definition at line 96 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepMutex, and TGo4LockGuard.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
void TGo4AnalysisStatus::ClearStepStatus | ( | ) |
Clear all existing step status objects.
For remote http control
Definition at line 107 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepMutex, and TGo4LockGuard.
Referenced by TGo4AnalysisStepManager::UpdateStatus().
|
inline |
Definition at line 62 of file TGo4AnalysisStatus.h.
References fxAutoFileName.
Referenced by Print(), and TGo4Analysis::SetStatus().
|
inline |
Definition at line 56 of file TGo4AnalysisStatus.h.
References fiAutoSaveCompression.
Referenced by Print(), and TGo4Analysis::SetStatus().
|
inline |
Definition at line 53 of file TGo4AnalysisStatus.h.
References fiAutoSaveInterval.
Referenced by Print(), and TGo4Analysis::SetStatus().
|
inline |
Definition at line 65 of file TGo4AnalysisStatus.h.
References fxConfigFileName.
|
inline |
Definition at line 47 of file TGo4AnalysisStatus.h.
References fiFirstStepIndex.
Referenced by Print(), and TGo4AnalysisStepManager::SetStatus().
|
inline |
Definition at line 50 of file TGo4AnalysisStatus.h.
References fiLastStepIndex.
Referenced by Print(), and TGo4AnalysisStepManager::SetStatus().
Int_t TGo4AnalysisStatus::GetNumberOfSteps | ( | ) | const |
Gives number of steps.
Definition at line 114 of file TGo4AnalysisStatus.cxx.
References fxStepArray.
Referenced by GetStepStatus(), and Print().
TGo4AnalysisStepStatus * TGo4AnalysisStatus::GetStepStatus | ( | const char * | name | ) |
Access to certain analysis step status by name.
Definition at line 70 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepMutex, and TGo4LockGuard.
Referenced by TGo4Interface::GetStepStatus(), Print(), and TGo4AnalysisStepManager::SetStatus().
TGo4AnalysisStepStatus * TGo4AnalysisStatus::GetStepStatus | ( | Int_t | indx | ) | const |
Gives analysis step status with provided index.
Definition at line 120 of file TGo4AnalysisStatus.cxx.
References fxStepArray, and GetNumberOfSteps().
|
inline |
Definition at line 68 of file TGo4AnalysisStatus.h.
References fbAutoSaveOn.
Referenced by Print(), and TGo4Analysis::SetStatus().
|
inline |
Definition at line 59 of file TGo4AnalysisStatus.h.
References fbAutoSaveOverwrite.
Referenced by Print(), and TGo4Analysis::SetStatus().
|
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 78 of file TGo4AnalysisStatus.cxx.
References fxStepIterator, fxStepMutex, and TGo4LockGuard.
Referenced by TGo4AnalysisWebStatus::UpdateFromUrl().
|
override |
basic method to printout status information on stdout; to be overridden by specific subclass
Definition at line 46 of file TGo4AnalysisStatus.cxx.
References GetAutoFileName(), GetAutoSaveCompression(), GetAutoSaveInterval(), GetFirstStepIndex(), GetLastStepIndex(), GetNumberOfSteps(), GetStepStatus(), IsAutoSaveOn(), IsAutoSaveOverwrite(), and TGo4Status::PrintLine().
Referenced by TGo4Analysis::Print().
void TGo4AnalysisStatus::ResetStepIterator | ( | ) |
Definition at line 85 of file TGo4AnalysisStatus.cxx.
References fxStepArray, fxStepIterator, fxStepMutex, and TGo4LockGuard.
Referenced by TGo4AnalysisWebStatus::UpdateFromUrl().
|
inline |
Definition at line 61 of file TGo4AnalysisStatus.h.
References fxAutoFileName.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 55 of file TGo4AnalysisStatus.h.
References fiAutoSaveCompression.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 52 of file TGo4AnalysisStatus.h.
References fiAutoSaveInterval.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 67 of file TGo4AnalysisStatus.h.
References fbAutoSaveOn.
Referenced by TGo4Interface::AnalysisAutoSave(), TGo4AnalysisWebStatus::UpdateFromUrl(), and TGo4Analysis::UpdateStatus().
|
inline |
Definition at line 58 of file TGo4AnalysisStatus.h.
References fbAutoSaveOverwrite.
Referenced by TGo4Interface::AnalysisAutoSave(), 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.
References TGo4Analysis.
Referenced by TGo4Analysis.
|
protected |
True if Autosaving is enabled (default).
If false, calling AutoSave() will have no effect.
Definition at line 137 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 133 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 110 of file TGo4AnalysisStatus.h.
Referenced by IsStepChecking(), and SetStepChecking().
|
protected |
compression level for autosave file
Definition at line 129 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 126 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 115 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 121 of file TGo4AnalysisStatus.h.
Referenced by GetLastStepIndex(), and SetLastStepIndex().
|
protected |
Name of the autosave file.
Definition at line 140 of file TGo4AnalysisStatus.h.
Referenced by GetAutoFileName(), and SetAutoFileName().
|
protected |
Name of the last configuration file.
Definition at line 143 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 98 of file TGo4AnalysisStatus.h.
Referenced by TGo4AnalysisStatus(), ~TGo4AnalysisStatus(), AddStepStatus(), ClearStepStatus(), GetNumberOfSteps(), GetStepStatus(), GetStepStatus(), and ResetStepIterator().
|
protected |
Iterator used for analysis step list.
Definition at line 104 of file TGo4AnalysisStatus.h.
Referenced by TGo4AnalysisStatus(), ~TGo4AnalysisStatus(), NextStepStatus(), and ResetStepIterator().
|
protected |
Mutex protecting the analysis step list.
Definition at line 101 of file TGo4AnalysisStatus.h.
Referenced by TGo4AnalysisStatus(), ~TGo4AnalysisStatus(), AddStepStatus(), ClearStepStatus(), GetStepStatus(), NextStepStatus(), and ResetStepIterator().