33 GO4TRACE((15,
"TGo4AnalysisObjectnames::TGo4AnalysisObjectnames(const char*)",__LINE__, __FILE__));
38 GO4TRACE((15,
"TGo4AnalysisObjectnames::~TGo4AnalysisObjectnames()",__LINE__, __FILE__));
48 return dynamic_cast<TList*
> (
fxTopFolder->GetListOfFolders());
63 GO4TRACE((12,
"TGo4AnalysisObjectNames::PrintStatus()",__LINE__, __FILE__));
65 if(buflen<=0 && buffer!=0)
67 gROOT->SetDirLevel(0);
69 Text_t localbuf[64000];
71 Text_t* current=localbuf;
72 Int_t restlen=locallen;
73 current=
PrintBuffer(localbuf,restlen,
"G-OOOO-> Analysis Object Names Printout <-OOOO-G\n");
74 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
79 std::cout << localbuf << std::endl;
81 size = locallen - restlen;
82 if (size > buflen - 1)
84 strncpy(buffer, localbuf, size);
91 GO4TRACE((12,
"TGo4AnalysisObjectNames::PrintFolder()",__LINE__, __FILE__));
93 if(buf!=0 && buflen<=0)
95 std::cout <<
"PrintFolder returns nop" << std::endl;
98 gROOT->IncreaseDirLevel();
100 Text_t localbuf[64000];
102 Text_t* current=localbuf;
103 Int_t restlen=locallen;
106 current=
PrintBuffer(current,restlen,
"G-OOOO-> Status Folder %s Printout <-OOOO-G\n", fold->GetName());
108 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
112 TIter iter(fold->GetListOfFolders());
115 while((entry=iter()) !=0) {
116 if(entry->InheritsFrom(TFolder::Class()))
119 TFolder* subobj=
dynamic_cast<TFolder*
> (entry);
124 else if (entry->InheritsFrom(TGo4Status::Class()))
138 current=
PrintBuffer(current,restlen,
"G-OOOO-> ---------------------------------------------- <-OOOO-G\n");
143 std::cout << localbuf << std::endl;
147 size=locallen-restlen;
150 strncpy(buf,localbuf,size);
153 gROOT->DecreaseDirLevel();
TGo4AnalysisObjectNames()
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
static Text_t * PrintIndent(Text_t *buffer, Int_t &buflen)
Int_t PrintFolder(TFolder *fold, Text_t *buf, Int_t buflen=0)
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
TFolder * GetNamesFolder(Bool_t chown=kFALSE)
virtual ~TGo4AnalysisObjectNames()
static Text_t * PrintBuffer(char *buffer, Int_t &buflen, const char *text,...)