26 void bfcread_histBranch(
29 "/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root",
30 const char *fname=
"qa_hist.out")
33 cout <<
" events to process = " << nevents << endl;
34 cout <<
" Input File Name = " << MainFile << endl;
35 cout <<
" Output file containing printouts = " << fname << endl;
39 fout <<
" Running: bfcread_histBranch.C " << endl;
40 fout <<
" events to process = " << nevents << endl;
41 fout <<
" Input File Name = " << MainFile << endl;
42 fout <<
" Output file containing printouts = " << fname << endl;
45 gSystem->Load(
"St_base");
46 gSystem->Load(
"StChain");
47 gSystem->Load(
"StIOMaker");
48 gSystem->Load(
"libglobal_Tables");
57 IOMk->SetBranch(
"*",0,
"0");
58 IOMk->SetBranch(
"histBranch",0,
"r");
72 EventLoop:
if (i < nevents && !istat) {
75 istat = chain->
Make(i);
88 cout <<
" start event # " << countev << endl;
90 ds=chain->GetDataSet(
"hist");
101 while (histContainer = (
St_ObjectSet *)nextHistList()) {
102 dirList = (TList *) histContainer->
GetObject();
104 cout <<
" QAInfo: found directory: " <<
105 histContainer->GetName() << endl;
106 fout <<
" QAInfo: found directory: " <<
107 histContainer->GetName() << endl;
115 TIter nextHist(dirList);
119 while (o= nextHist()) {
121 cout <<
" QAInfo: Hist name: " << o->GetName() <<
122 " ==> Title: " << o->GetTitle() << endl;
123 fout <<
" QAInfo: Hist name: " << o->GetName() <<
124 " ==> Title: " << o->GetTitle() << endl;
130 cout <<
" QAInfo: event # " << countev
131 <<
", # directories found = " << countObj
132 <<
", # hist found = " << countHist
136 fout <<
" QAInfo: event # " << countev
137 <<
", # directories found = " << countObj
138 <<
", # hist found = " << countHist
146 cout <<
"Last event processed. Status = " << istat << endl;
154 cout <<
"QAInfo: End of Job " << endl;
155 cout <<
"QAInfo: # times Make called = " << i << endl;
156 cout <<
"QAInfo: # events read = " << countev << endl;
157 cout <<
"QAInfo: # events with hist dataset = " << countevhds << endl;
160 fout <<
"QAInfo: End of Job " << endl;
161 fout <<
"QAInfo: # times Make called = " << i << endl;
162 fout <<
"QAInfo: # events read = " << countev << endl;
163 fout <<
"QAInfo: # events with hist dataset = " << countevhds << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
virtual TObject * GetObject() const
The depricated method (left here for the sake of the backward compatibility)