35 void bfcread_geantBranch(
38 "/afs/rhic.bnl.gov/star/data/samples/gstar.geant.root",
39 const char *fname=
"qa_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_geantBranch.C " << endl;
49 fout <<
" events to process = " << nevents << endl;
50 fout <<
" Input File Name = " << MainFile << endl;
51 fout <<
" Output file containing printouts = " << fname << endl;
54 gSystem->Load(
"St_base");
55 gSystem->Load(
"StChain");
56 gSystem->Load(
"libsim_Tables");
57 gSystem->Load(
"libgen_Tables");
58 gSystem->Load(
"libglobal_Tables");
59 gSystem->Load(
"StIOMaker");
69 IOMk->SetBranch(
"*",0,
"0");
70 IOMk->SetBranch(
"geantBranch",0,
"r");
74 cout <<
" Finished Init()..." << endl;
85 Float_t countevgB=0.0;
87 Float_t countevobjg=0.0;
88 Float_t countevtabg=0.0;
89 Float_t countevobjb=0.0;
90 Float_t countevtabb=0.0;
94 EventLoop:
if (iev < nevents && !istat) {
103 cout <<
" Calling Make()..." << endl;
104 istat = chain->
Make(iev);
105 cout <<
" Make() finished..." << endl;
110 cout <<
" Call Make # " << iev << endl;
111 cout <<
" istat value returned from chain Make = " << istat << endl;
120 cout <<
" start event # " << countev << endl;
121 fout <<
" start event # " << countev << endl;
123 dgeantBranch=chain->GetDataSet(
"geantBranch");
129 cout << endl <<
" QAInfo: in geantBranch " << endl;
130 fout << endl <<
" QAInfo: in geantBranch " << endl;
132 while (ddb=geantBIter.
Next()) {
134 cout <<
" QAInfo: found object: " << ddb->GetName() << endl;
135 fout <<
" QAInfo: found object: " << ddb->GetName() << endl;
137 TString dsName = ddb->GetName();
139 if (dsName ==
"BfcStatus") {
148 if (ddb->InheritsFrom(
"TTable")) {
150 if (dsName ==
"BfcStatus") {
160 cout <<
" QAInfo: it's a table with #rows = "
162 fout <<
" QAInfo: it's a table with #rows = "
169 cout << endl <<
" QAInfo: ev# " << countev <<
170 ", #geant obj/tab, #Bfc obj/tab found = " <<
171 Countevobjg <<
" " <<
172 Countevtabg <<
" " <<
173 Countevobjb <<
" " <<
174 Countevtabb << endl << endl;
176 fout << endl <<
" QAInfo: ev# " << countev <<
177 ", #geant obj/tab, #Bfc obj/tab found = " <<
178 Countevobjg <<
" " <<
179 Countevtabg <<
" " <<
180 Countevobjb <<
" " <<
181 Countevtabb << endl << endl;
190 cout <<
"Last event processed. Status = " << istat << endl;
197 countevobjg /= countev;
198 countevtabg /= countev;
199 countevobjb /= countev;
200 countevtabb /= countev;
203 cout <<
"QAInfo: End of Job " << endl;
204 cout <<
"QAInfo: # times Make called = " << iev << endl;
205 cout <<
"QAInfo: # events read = " << countev << endl;
206 cout <<
"QAInfo: # events with geantBranch dataset = " <<
210 cout <<
"QAInfo: avg # geant tables per event = " << countevtabg << endl;
211 cout <<
"QAInfo: avg # geant objects per event = " << countevobjg << endl;
212 cout <<
"QAInfo: avg # Bfc tables per event = " << countevtabb << endl;
213 cout <<
"QAInfo: avg # Bfc objects per event = " << countevobjb << endl << endl;
217 fout <<
"QAInfo: End of Job " << endl;
218 fout <<
"QAInfo: # times Make called = " << iev << endl;
219 fout <<
"QAInfo: # events read = " << countev << endl;
220 fout <<
"QAInfo: # events with geantBranch dataset = " <<
224 fout <<
"QAInfo: avg # geant tables per event = " << countevtabg << endl;
225 fout <<
"QAInfo: avg # geant objects per event = " << countevobjg << endl;
226 fout <<
"QAInfo: avg # Bfc tables per event = " << countevtabb << endl;
227 fout <<
"QAInfo: avg # Bfc objects per event = " << countevobjb << endl << 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