144 void bfcread_hist_to_ps(
145 const Char_t *MainFile=
146 "/afs/rhic.bnl.gov/star/data/samples/gstar.hist.root",
147 const Char_t *MakerHistDir=
"EventQA",
148 const Char_t *TopDirTree=
"bfcTree",
149 const Char_t *psFile=
"QA_hist.ps",
150 const Char_t *PageTitle=
"",
151 const Char_t *PrintList=
"",
154 const Char_t *DetList=0
158 cout <<
"bfcread_hist_to_ps.C, input hist file = "
160 cout <<
"bfcread_hist_to_ps.C, directory name for hist = "
161 << MakerHistDir << endl;
162 cout <<
"bfcread_hist_to_ps.C, top level directory in hist file = "
163 << TopDirTree << endl;
164 cout <<
"bfcread_hist_to_ps.C, output ps file = "
166 cout <<
"bfcread_hist_to_ps.C, page title for histograms = "
167 << PageTitle << endl;
168 cout <<
"bfcread_hist_to_ps.C, subset list name of which histograms to draw,print = "
169 << PrintList << endl;
170 cout <<
"bfcread_hist_to_ps.C, # histograms on page horizontally = "
172 cout <<
"bfcread_hist_to_ps.C, # histograms on page vertically = "
176 gSystem->Load(
"St_base");
177 gSystem->Load(
"StChain");
178 gSystem->Load(
"StIOMaker");
179 gSystem->Load(
"StarClassLibrary");
180 gSystem->Load(
"libglobal_Tables");
181 gSystem->Load(
"StUtilities");
182 gSystem->Load(
"StAnalysisUtilities");
189 IOMk->SetBranch(
"*",0,
"0");
190 IOMk->SetBranch(
"histBranch",0,
"r");
199 HU->SetPntrToMaker((
StMaker *)IOMk);
211 NoHist = HU->ListHists(MakerHistDir);
212 cout <<
" in bfcread_hist_list: Num of Hist = " << NoHist << endl;
215 gROOT->SetStyle(
"Plain");
218 HU->SetDetectors(DetList);
219 HU->SetHistsNamesDraw(
"*",
"*");
220 HU->GetRunYear(MainFile);
221 HU->SetOutFile(psFile);
222 HU->SetZones(ZoneH,ZoneV);
224 HU->SetDefaultLogXList(MakerHistDir);
225 HU->SetDefaultLogYList(MakerHistDir);
226 if (PageTitle==
"") PageTitle=MainFile;
227 HU->SetGlobalTitle(PageTitle);
229 HU->SetDefaultPrintList(MakerHistDir,PrintList);
232 numLog = HU->ExamineLogYList();
233 cout <<
" bfcread_hist_to_ps.C, Number hist to plot with log scale = " << numLog << endl;
236 numPrint = HU->ExaminePrintList();
237 cout <<
" bfcread_hist_to_ps.C, Number hist to print = " << numPrint << endl;
240 HU->DrawHists(MakerHistDir);
242 cout <<
" bfcread_hist_to_ps.C, end of macro" << endl;
virtual void Clear(Option_t *opt)
User defined functions.
virtual void SetIOMode(Option_t *iomode="w")
number of transactions