46 "/afs/rhic.bnl.gov/star/data/samples/june_2000_st_physics_1164058_raw_0001.daq",
50 cout <<
" OnlineQaTpcRaw.C: #events to process = " << nevents << endl;
51 cout <<
" OnlineQaTpcRaw.C: input file name = " << MainFile << endl;
52 cout <<
" OnlineQaTpcRaw.C: #events to write to hist file (0=all) = " <<
57 fInFile =
new TString(MainFile);
58 fFileOut =
new TString(gSystem->BaseName(fInFile->Data()));
59 fFileOut->ReplaceAll(
".daq",
"");
60 const char *histoDir =
"./";
61 fFileOut->Prepend(histoDir);
62 const Char_t *outHistFile= fFileOut->Data();
66 const Char_t *topTree=
"OnlQaTpcTree";
67 const Char_t *makerName=
"RawTpcQa";
70 cout <<
" OnlineQaTpcRaw.C: output hist file name set to " <<
71 outHistFile <<
".hist.root" << endl;
72 cout <<
" OnlineQaTpcRaw.C: top level Tree directory set to " <<
74 cout <<
" OnlineQaTpcRaw.C: maker name set to " <<
78 gSystem->Load(
"St_base");
79 gSystem->Load(
"StChain");
80 gSystem->Load(
"StIOMaker");
81 gSystem->Load(
"StTreeMaker");
84 gSystem->Load(
"StUtilities");
85 gSystem->Load(
"StAnalysisUtilities");
88 gSystem->Load(
"StRawTpcQaMaker");
92 chain =
new StChain(
"OnlineQaTpcRawChain");
105 HU->SetPntrToMaker((
StMaker *)IOMk);
108 StRawTpcQaMaker *RTQa =
new StRawTpcQaMaker(makerName);
113 treeMk->SetBranch(
"histBranch");
123 NoHist = HU->ListHists(makerName);
124 cout <<
" !!! OnlineQaTpcRaw.C, No. of Hist Booked = " << NoHist << endl;
131 EventLoop:
if (iev < nevents && !istat) {
134 istat = chain->
Make(iev);
139 cout <<
" Called Make # " << iev << endl;
140 cout <<
" istat value returned from chain Make = " << istat <<
148 cout <<
" processed event # " << countev << endl;
154 cout <<
"Last event processed. Status = " << istat << endl;
162 cout <<
"QAInfo: End of Job " << endl;
163 cout <<
"QAInfo: # times Make called = " << iev << endl;
164 cout <<
"QAInfo: # events read = " << countev << endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.