69 void bfcread_hist_list_all(
70 const Char_t *MainFile=
71 "/afs/rhic.bnl.gov/star/data/samples/gstar.hist.root",
72 const Char_t *TopDirTree=
"bfcTree")
74 cout <<
"bfcread_hist_list_all.C, input hist file = "
76 cout <<
"bfcread_hist_list_all.C, top level directory in hist file = "
77 << TopDirTree << endl;
79 gSystem->Load(
"St_base");
80 gSystem->Load(
"StChain");
81 gSystem->Load(
"StUtilities");
82 gSystem->Load(
"StIOMaker");
83 gSystem->Load(
"StarClassLibrary");
84 gSystem->Load(
"libglobal_Tables");
91 IOMk->SetBranch(
"*",0,
"0");
94 IOMk->SetBranch(
"histBranch",0,
"r");
103 Event = IOMk->GetDataSet(
"hist");
105 cout <<
"Here is list of all histograms: " << endl;
112 while (histContainer = (
St_ObjectSet *)nextHistList()) {
113 dirList = (TList *) histContainer->
GetObject();
114 TIter nextHist(dirList);
116 cout <<
" --- " << histContainer->GetName() << endl;
117 while (o= nextHist()) {
118 cout <<
" Hist name: " << o->GetName() <<
" ==> Title: "
119 << o->GetTitle() << endl;
virtual void Clear(Option_t *opt)
User defined functions.
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void ls(Option_t *option="") const
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)