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

Status of the analysis instance. More...

#include <TGo4AnalysisStatus.h>

+ Inheritance diagram for TGo4AnalysisStatus:

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.
 
TGo4AnalysisStepStatusGetStepStatus (const char *name)
 Access to certain analysis step status by name.
 
TGo4AnalysisStepStatusGetStepStatus (Int_t indx) const
 Gives analysis step status with provided index.
 
Int_t IsAutoSaveOn () const
 
Int_t IsAutoSaveOverwrite () const
 
Int_t IsStepChecking () const
 
TGo4AnalysisStepStatusNextStepStatus ()
 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)
 
- Public Member Functions inherited from TGo4Status
 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

- Public Types inherited from TGo4Status
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 Public Member Functions inherited from TGo4Status
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.
 

Detailed Description

Status of the analysis instance.

Can be sent to the display or controlling server to check the things.

Since
1/2001

Definition at line 30 of file TGo4AnalysisStatus.h.

Constructor & Destructor Documentation

◆ TGo4AnalysisStatus() [1/2]

◆ TGo4AnalysisStatus() [2/2]

TGo4AnalysisStatus::TGo4AnalysisStatus ( const char * name)

◆ ~TGo4AnalysisStatus()

TGo4AnalysisStatus::~TGo4AnalysisStatus ( )
virtual

Definition at line 38 of file TGo4AnalysisStatus.cxx.

References fxStepArray, fxStepIterator, and fxStepMutex.

Member Function Documentation

◆ AddStepStatus()

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().

◆ ClearStepStatus()

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().

◆ GetAutoFileName()

const char * TGo4AnalysisStatus::GetAutoFileName ( ) const
inline

Definition at line 62 of file TGo4AnalysisStatus.h.

References fxAutoFileName.

Referenced by Print(), and TGo4Analysis::SetStatus().

◆ GetAutoSaveCompression()

Int_t TGo4AnalysisStatus::GetAutoSaveCompression ( ) const
inline

Definition at line 56 of file TGo4AnalysisStatus.h.

References fiAutoSaveCompression.

Referenced by Print(), and TGo4Analysis::SetStatus().

◆ GetAutoSaveInterval()

Int_t TGo4AnalysisStatus::GetAutoSaveInterval ( ) const
inline

Definition at line 53 of file TGo4AnalysisStatus.h.

References fiAutoSaveInterval.

Referenced by Print(), and TGo4Analysis::SetStatus().

◆ GetConfigFileName()

const char * TGo4AnalysisStatus::GetConfigFileName ( ) const
inline

Definition at line 65 of file TGo4AnalysisStatus.h.

References fxConfigFileName.

◆ GetFirstStepIndex()

Int_t TGo4AnalysisStatus::GetFirstStepIndex ( ) const
inline

Definition at line 47 of file TGo4AnalysisStatus.h.

References fiFirstStepIndex.

Referenced by Print(), and TGo4AnalysisStepManager::SetStatus().

◆ GetLastStepIndex()

Int_t TGo4AnalysisStatus::GetLastStepIndex ( ) const
inline

Definition at line 50 of file TGo4AnalysisStatus.h.

References fiLastStepIndex.

Referenced by Print(), and TGo4AnalysisStepManager::SetStatus().

◆ GetNumberOfSteps()

Int_t TGo4AnalysisStatus::GetNumberOfSteps ( ) const

Gives number of steps.

Definition at line 114 of file TGo4AnalysisStatus.cxx.

References fxStepArray.

Referenced by GetStepStatus(), and Print().

◆ GetStepStatus() [1/2]

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().

◆ GetStepStatus() [2/2]

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().

◆ IsAutoSaveOn()

Int_t TGo4AnalysisStatus::IsAutoSaveOn ( ) const
inline

Definition at line 68 of file TGo4AnalysisStatus.h.

References fbAutoSaveOn.

Referenced by Print(), and TGo4Analysis::SetStatus().

◆ IsAutoSaveOverwrite()

Int_t TGo4AnalysisStatus::IsAutoSaveOverwrite ( ) const
inline

Definition at line 59 of file TGo4AnalysisStatus.h.

References fbAutoSaveOverwrite.

Referenced by Print(), and TGo4Analysis::SetStatus().

◆ IsStepChecking()

Int_t TGo4AnalysisStatus::IsStepChecking ( ) const
inline

Definition at line 44 of file TGo4AnalysisStatus.h.

References fbStepCheckingMode.

Referenced by TGo4AnalysisStepManager::SetStatus().

◆ NextStepStatus()

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().

◆ Print()

void TGo4AnalysisStatus::Print ( Option_t * opt = "") const
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().

◆ ResetStepIterator()

void TGo4AnalysisStatus::ResetStepIterator ( )

◆ SetAutoFileName()

void TGo4AnalysisStatus::SetAutoFileName ( const char * name)
inline

◆ SetAutoSaveCompression()

void TGo4AnalysisStatus::SetAutoSaveCompression ( Int_t i = 5)
inline

◆ SetAutoSaveInterval()

void TGo4AnalysisStatus::SetAutoSaveInterval ( Int_t i)
inline

◆ SetAutoSaveOn()

void TGo4AnalysisStatus::SetAutoSaveOn ( Bool_t on = kTRUE)
inline

◆ SetAutoSaveOverwrite()

void TGo4AnalysisStatus::SetAutoSaveOverwrite ( Bool_t over = kTRUE)
inline

◆ SetConfigFileName()

void TGo4AnalysisStatus::SetConfigFileName ( const char * name)
inline

◆ SetFirstStepIndex()

void TGo4AnalysisStatus::SetFirstStepIndex ( Int_t i)
inline

Definition at line 46 of file TGo4AnalysisStatus.h.

References fiFirstStepIndex.

Referenced by TGo4AnalysisStepManager::UpdateStatus().

◆ SetLastStepIndex()

void TGo4AnalysisStatus::SetLastStepIndex ( Int_t i)
inline

Definition at line 49 of file TGo4AnalysisStatus.h.

References fiLastStepIndex.

Referenced by TGo4AnalysisStepManager::UpdateStatus().

◆ SetStepChecking()

void TGo4AnalysisStatus::SetStepChecking ( Int_t on)
inline

Definition at line 43 of file TGo4AnalysisStatus.h.

References fbStepCheckingMode.

Referenced by TGo4AnalysisStepManager::UpdateStatus().

Friends And Related Symbol Documentation

◆ TGo4Analysis

friend class TGo4Analysis
friend

Definition at line 32 of file TGo4AnalysisStatus.h.

References TGo4Analysis.

Referenced by TGo4Analysis.

Field Documentation

◆ fbAutoSaveOn

Int_t TGo4AnalysisStatus::fbAutoSaveOn {1}
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().

◆ fbAutoSaveOverwrite

Int_t TGo4AnalysisStatus::fbAutoSaveOverwrite {0}
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().

◆ fbStepCheckingMode

Int_t TGo4AnalysisStatus::fbStepCheckingMode {1}
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().

◆ fiAutoSaveCompression

Int_t TGo4AnalysisStatus::fiAutoSaveCompression {5}
protected

compression level for autosave file

Definition at line 129 of file TGo4AnalysisStatus.h.

Referenced by GetAutoSaveCompression(), SetAutoSaveCompression(), and TGo4AnalysisWebStatus::UpdateFromUrl().

◆ fiAutoSaveInterval

Int_t TGo4AnalysisStatus::fiAutoSaveInterval {0}
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().

◆ fiFirstStepIndex

Int_t TGo4AnalysisStatus::fiFirstStepIndex {0}
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().

◆ fiLastStepIndex

Int_t TGo4AnalysisStatus::fiLastStepIndex {0}
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().

◆ fxAutoFileName

TString TGo4AnalysisStatus::fxAutoFileName
protected

Name of the autosave file.

Definition at line 140 of file TGo4AnalysisStatus.h.

Referenced by GetAutoFileName(), and SetAutoFileName().

◆ fxConfigFileName

TString TGo4AnalysisStatus::fxConfigFileName
protected

Name of the last configuration file.

Definition at line 143 of file TGo4AnalysisStatus.h.

Referenced by GetConfigFileName(), and SetConfigFileName().

◆ fxStepArray

TObjArray* TGo4AnalysisStatus::fxStepArray {nullptr}
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().

◆ fxStepIterator

TIterator* TGo4AnalysisStatus::fxStepIterator {nullptr}
protected

Iterator used for analysis step list.

Definition at line 104 of file TGo4AnalysisStatus.h.

Referenced by TGo4AnalysisStatus(), ~TGo4AnalysisStatus(), NextStepStatus(), and ResetStepIterator().

◆ fxStepMutex

TMutex* TGo4AnalysisStatus::fxStepMutex {nullptr}
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().


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