97 void bfcread_event_QA_outhistfile(
99 const Char_t *MainFile=
101 "/star/rcf/test/dev/trs_redhat61/Tue/year_2001/hc_standard/hc_standard.40_evts.event.root",
102 const Char_t *outHistFile=
"StEQAMaker",
103 const Char_t *TopDirTree=
"StEQAtree",
104 const Char_t *MakerHistDir=
"StEQA")
107 cout <<
"bfcread_event_QA_outhistfile.C, num events to process "
109 cout <<
"bfcread_event_QA_outhistfile.C, input file name "
111 cout <<
"bfcread_event_QA_outhistfile.C, Maker directory name "
112 << MakerHistDir<< endl;
113 cout <<
"bfcread_event_QA_outhistfile.C, output hist name "
114 << outHistFile<< endl;
115 cout <<
"bfcread_event_QA_outhistfile.C, output top level directory name "
116 << TopDirTree<< endl;
118 gSystem->Load(
"St_base");
119 gSystem->Load(
"StChain");
120 gSystem->Load(
"St_Tables");
121 gSystem->Load(
"libglobal_Tables");
122 gSystem->Load(
"libsim_Tables");
123 gSystem->Load(
"libgen_Tables");
124 gSystem->Load(
"libgeometry_Tables");
126 gSystem->Load(
"StUtilities");
127 gSystem->Load(
"StAnalysisUtilities");
128 gSystem->Load(
"StIOMaker");
129 gSystem->Load(
"StarClassLibrary");
130 gSystem->Load(
"StBichsel");
131 gSystem->Load(
"StDetectorDbMaker");
132 gSystem->Load(
"StEvent");
133 gSystem->Load(
"StTpcDb");
134 gSystem->Load(
"StDbUtilities");
135 gSystem->Load(
"StDbLib");
136 gSystem->Load(
"StDbBroker");
137 gSystem->Load(
"St_db_Maker");
138 gSystem->Load(
"StEmcUtil");
139 gSystem->Load(
"StEEmcUtil");
140 gSystem->Load(
"StMcEvent");
141 gSystem->Load(
"StMcEventMaker");
142 gSystem->Load(
"StarMagField");
143 gSystem->Load(
"StMagF");
144 gSystem->Load(
"StPmdUtil");
145 gSystem->Load(
"St_QA_Maker");
146 gSystem->Load(
"StTreeMaker");
149 chain =
new StChain(
"MyChain");
155 IOMk->SetBranch(
"event",0,
"r");
156 IOMk->SetBranch(
"geantBranch",0,
"r");
157 IOMk->SetBranch(
"runcoBranch",0,
"r");
160 const char* calibDB =
"MySQL:StarDb";
161 const char* calibDB2 =
"$STAR/StarDb";
174 HU->SetPntrToMaker((
StMaker *)IOMk);
183 treeMk->SetBranch(
"histBranch");
186 Int_t iInit = chain->Init();
187 if (iInit) chain->Fatal(iInit,
"on init");
193 NoHist = HU->ListHists(MakerHistDir);
194 cout <<
" !!! bfcread_dst_QAhist.C, No. of Hist we have == " << NoHist << endl;
197 int iev=0,iret=0, evnum=0;
198 EventLoop:
if (iev<nevents && iret!=2) {
200 cout <<
" !!! bfcread_event_QA_outhistfile.C, processing event !!! " << evnum << endl ;
202 switch (iret = chain->
Make()) {
204 case 2: { gMessMgr->Info(
"Last event from input.");
break; }
205 case 3: { gMessMgr->Error() <<
"Event " << evnum <<
" had error " <<
206 iret <<
". Now skipping event."; gMessMgr->Print();
break; }
207 default: { gMessMgr->Warning() <<
"Event " << evnum <<
" returned status "
208 << iret <<
". Continuing."; gMessMgr->Print(); }
214 cout <<
" !!! bfcread_event_QA_outhistfile.C, passed chain->Make !!!" << endl ;
217 cout <<
"bfcread_event_QA_outhistfile.C, passed chain->Finish" << endl ;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...