16 #include "Riostream.h"
19 #include "TObjArray.h"
23 #include "TGo4LockGuard.h"
31 TGo4Status(
"Go4 Default Analysis Status",
"Go4 Analysis Status Object"),
35 fbStepCheckingMode(1),
38 fiAutoSaveInterval(0),
39 fiAutoSaveCompression(5),
40 fbAutoSaveOverwrite(0),
45 GO4TRACE((15,
"TGo4AnalysisStatus::TGo4AnalysisStatus()",__LINE__, __FILE__));
54 fbStepCheckingMode(1),
57 fiAutoSaveInterval(0),
58 fiAutoSaveCompression(5),
59 fbAutoSaveOverwrite(0),
64 GO4TRACE((15,
"TGo4AnalysisStatus::TGo4AnalysisStatus(const char*)",__LINE__, __FILE__));
72 GO4TRACE((15,
"TGo4AnalysisStatus::~TGo4AnalysisStatus()",__LINE__, __FILE__));
81 GO4TRACE((12,
"TGo4AnalysisStatus::PrintStatus()",__LINE__, __FILE__));
82 if(buflen<=0 && buffer!=0)
84 std::cout <<
"analysis status print has invalid buflen and nonzero buffer"<< std::endl;
88 Int_t locallen=512000;
89 Text_t localbuf[512000];
90 Text_t* current=localbuf;
91 Int_t restlen=locallen;
93 current=
PrintBuffer(current,restlen,
"---------------------------------------------- \n");
94 current=
PrintBuffer(current,restlen,
"++++++ Status of %s ++++++\n", GetName());
102 current=
PrintBuffer(current,restlen,
"---------------------------------------------- \n");
103 TROOT::IncreaseDirLevel();
112 TROOT::DecreaseDirLevel();
113 current=
PrintBuffer(current,restlen,
"---------------------------------------------- \n");
116 std::cout << localbuf << std::endl;
120 size=locallen-restlen;
123 strncpy(buffer,localbuf,size);
130 GO4TRACE((11,
"TGo4Analysis::GetAnalysisStep(const char*)",__LINE__, __FILE__));
139 GO4TRACE((11,
"TGo4AnalysisStatus::NextStepStatus()",__LINE__, __FILE__));
159 GO4TRACE((14,
"TGo4AnalysisStatus::AddAnalysisStep(TGo4AnalysisStep*)",__LINE__, __FILE__));
Int_t GetAutoSaveCompression() const
virtual ~TGo4AnalysisStatus()
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
TGo4AnalysisStepStatus * NextStepStatus()
const char * GetAutoFileName() const
Int_t IsAutoSaveOverwrite() const
Bool_t AddStepStatus(TGo4AnalysisStepStatus *next)
Int_t IsAutoSaveOn() const
Int_t GetLastStepIndex() const
TGo4AnalysisStepStatus * GetStepStatus(const char *name)
TIterator * fxStepIterator
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)
Int_t GetAutoSaveInterval() const
Int_t GetFirstStepIndex() const