60 void bfcread_runcoBranch(
63 "/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root",
64 const char *fname=
"qa_runco.out")
68 cout <<
" there is only 1 event in this branch!! " << endl;
72 cout <<
" events to process = " << nevents << endl;
73 cout <<
" Input File Name = " << MainFile << endl;
74 cout <<
" Output file containing printouts = " << fname << endl;
78 fout <<
" Running: bfcread_runcoBranch.C " << endl;
79 fout <<
" events to process = " << nevents << endl;
80 fout <<
" Input File Name = " << MainFile << endl;
81 fout <<
" Output file containing printouts = " << fname << endl;
84 gSystem->Load(
"St_base");
85 gSystem->Load(
"StChain");
86 gSystem->Load(
"libglobal_Tables");
87 gSystem->Load(
"StIOMaker");
96 IOMk->SetBranch(
"*",0,
"0");
97 IOMk->SetBranch(
"runcoBranch",0,
"r");
113 EventLoop:
if (i < nevents && !istat) {
116 istat = chain->
Make(i);
130 cout <<
" start event # " << countev << endl;
132 ds=chain->GetDataSet(
"runco");
137 while (obj = tabiter.
Next()) {
138 cout <<
" QAInfo: found object: " << obj->GetName() << endl;
139 fout <<
" QAInfo: found object: " << obj->GetName() << endl;
147 while(objindir = objindiriter.
Next()) {
148 cout <<
" QAInfo: has sub-object = " << objindir->GetName() << endl;
149 fout <<
" QAInfo: has sub-object = " << objindir->GetName() << endl;
153 if (objindir->InheritsFrom(
"TTable")) {
154 tabl = (
TTable *)objindiriter.
Find(objindir->GetName());
157 cout <<
" QAInfo: it's a table with #rows = "
158 << objindir->GetName() <<
", " << tabl->
GetNRows() << endl;
159 fout <<
" QAInfo: it's a table with #rows = "
160 << objindir->GetName() <<
", " << tabl->
GetNRows() << endl;
168 cout <<
" QAInfo: event # " << countev
169 <<
", # directories found = " << countObj
170 <<
", # sub-objects found = " << countObjInDir
171 <<
", # tables found = " << countTable
174 fout <<
" QAInfo: event # " << countev
175 <<
", # directories found = " << countObj
176 <<
", # sub-objects found = " << countObjInDir
177 <<
", # tables found = " << countTable
184 cout <<
"Last event processed. Status = " << istat << endl;
194 cout <<
"QAInfo: End of Job " << endl;
195 cout <<
"QAInfo: # times Make called = " << i << endl;
196 cout <<
"QAInfo: # events read = " << countev << endl;
197 cout <<
"QAInfo: # events with runco dataset = " << countevrds << endl;
200 fout <<
"QAInfo: End of Job " << endl;
201 fout <<
"QAInfo: # times Make called = " << i << endl;
202 fout <<
"QAInfo: # events read = " << countev << endl;
203 fout <<
"QAInfo: # events with runco dataset = " << countevrds << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
virtual Long_t GetNRows() const
Returns the number of the used rows for the wrapped table.
virtual TDataSet * Next() const
virtual TDataSet * Find(const char *path) const