34 void bfcread_dst_geant_Branch(
37 "/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root",
38 const char *fname=
"qa_dst_geant.out")
42 cout <<
" events to process = " << nevents << endl;
43 cout <<
" Input File Name = " << MainFile << endl;
44 cout <<
" Output file containing printouts = " << fname << endl;
48 fout <<
" Running: bfcread_dst_geant_Branch.C " << endl;
49 fout <<
" events to process = " << nevents << endl;
50 fout <<
" Input File Name = " << MainFile << endl;
51 fout <<
" Output file containing printouts = " << fname << endl;
55 gSystem->Load(
"St_base");
56 gSystem->Load(
"StChain");
58 gSystem->Load(
"libglobal_Tables");
59 gSystem->Load(
"libgen_Tables");
60 gSystem->Load(
"libsim_Tables");
62 gSystem->Load(
"StIOMaker");
71 IOMk->SetBranch(
"*",0,
"0");
72 IOMk->SetBranch(
"dstBranch",0,
"r");
73 IOMk->SetBranch(
"geantBranch",0,
"r");
82 Float_t tottabcntrdst=0;
83 Float_t tottabcntrgeant=0;
85 Float_t totobjcntrdst=0;
86 Float_t totobjcntrgeant=0;
102 EventLoop:
if (i < nevents && !istat) {
105 istat = chain->
Make(i);
118 int countTableGeant=0;
124 cout <<
" start event # " << countev << endl;
128 ds=chain->GetDataSet(
"dst");
133 while (obj = tabiter.
Next()) {
134 cout <<
" QAInfo: dst, found object: " << obj->GetName() << endl;
135 fout <<
" QAInfo: dst, found object: " << obj->GetName() << endl;
141 if (obj->InheritsFrom(
"TTable")) {
142 tabl = (
TTable *)tabiter.
Find(obj->GetName());
146 cout <<
" QAInfo: it's a table with #rows = "
148 fout <<
" QAInfo: it's a table with #rows = "
155 if (countObjDst) countevdobj++;
156 if (countTableDst) countevdtab++;
164 ds=chain->GetDataSet(
"geant");
169 while (obj = tabiter.
Next()) {
170 cout <<
" QAInfo: geant, found object: " << obj->GetName() << endl;
171 fout <<
" QAInfo: geant, found object: " << obj->GetName() << endl;
177 if (obj->InheritsFrom(
"TTable")) {
178 tabl = (
TTable *)tabiter.
Find(obj->GetName());
182 cout <<
" QAInfo: it's a table with #rows = "
184 fout <<
" QAInfo: it's a table with #rows = "
191 if (countObjGeant) countevgobj++;
192 if (countTableGeant) countevgtab++;
197 cout <<
" QAInfo: event # " << countev <<
198 ", DST Branch - # objects found = "
199 << countObjDst <<
", # tables found = "
200 << countTableDst << endl;
201 cout <<
" QAInfo: event # " << countev <<
202 ", GEANT Branch - # objects found = "
203 << countObjGeant <<
", # tables found = "
204 << countTableGeant << endl << endl;
207 fout <<
" QAInfo: event # " << countev <<
208 ", DST Branch - # objects found = "
209 << countObjDst <<
", # tables found = "
210 << countTableDst << endl;
211 fout <<
" QAInfo: event # " << countev <<
212 ", GEANT Branch - # objects found = "
213 << countObjGeant <<
", # tables found = "
214 << countTableGeant << endl << endl;
220 cout <<
"Last event processed. Status = " << istat << endl;
227 tottabcntrdst /= countev;
228 totobjcntrdst /= countev;
229 tottabcntrgeant /= countev;
230 totobjcntrgeant /= countev;
233 cout <<
"QAInfo: End of Job " << endl;
234 cout <<
"QAInfo: # times Make called = " << i << endl;
235 cout <<
"QAInfo: # events read = " << countev << endl;
236 cout <<
"QAInfo: # events with geant dataset = " << countevgds << endl;
237 cout <<
"QAInfo: # with objects = " << countevgobj << endl;
238 cout <<
"QAInfo: # with tables = " << countevgtab << endl;
239 cout <<
"QAInfo: avg # tables per event = " << tottabcntrgeant << endl;
240 cout <<
"QAInfo: avg # objects per event = " << totobjcntrgeant << endl
242 cout <<
"QAInfo: # events with dst dataset = " << countevdds << endl;
243 cout <<
"QAInfo: # with objects = " << countevdobj << endl;
244 cout <<
"QAInfo: # with tables = " << countevdtab << endl;
245 cout <<
"QAInfo: avg # tables per event = " << tottabcntrdst << endl;
246 cout <<
"QAInfo: avg # objects per event = " << totobjcntrdst << endl
250 fout <<
"QAInfo: # times Make called = " << i << endl;
251 fout <<
"QAInfo: # events read = " << countev << endl;
252 fout <<
"QAInfo: # events with geant dataset = " << countevgds << endl;
253 fout <<
"QAInfo: # with objects = " << countevgobj << endl;
254 fout <<
"QAInfo: # with tables = " << countevgtab << endl;
255 fout <<
"QAInfo: avg # tables per event = " << tottabcntrgeant << endl;
256 fout <<
"QAInfo: avg # objects per event = " << totobjcntrgeant << endl
258 fout <<
"QAInfo: # events with dst dataset = " << countevdds << endl;
259 fout <<
"QAInfo: # with objects = " << countevdobj << endl;
260 fout <<
"QAInfo: # with tables = " << countevdtab << endl;
261 fout <<
"QAInfo: avg # tables per event = " << tottabcntrdst << endl;
262 fout <<
"QAInfo: avg # objects per event = " << totobjcntrdst << 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