61 void bfcread_hist_anal(
62 const Char_t *MainFile=
63 "/afs/rhic.bnl.gov/star/data/samples/gstar.hist.root",
64 const Char_t *MakerHistDir=
"EventQA",
65 const Char_t *TopDirTree=
"bfcTree",
66 const Char_t *psFile=
"QA_hist.ps",
67 const Char_t *PageTitle=
"",
68 const Char_t *PrintList=
"",
71 const Char_t *refOutFile=
"resultHists.root",
72 const Char_t *refResultsFile=
"results.txt",
73 const Char_t *refCutsFile=0,
74 const Char_t *refInFile=0,
75 const Char_t *DetList=0
80 if (strlen(MainFile)<1) {
81 cout <<
"bfcread_hist_anal.C, no input...trying reference as main input..." << endl;
82 const Char_t* temp = refInFile;
85 strcpy(TopDirTree,
"");
88 cout <<
"bfcread_hist_anal.C, input hist file = "
90 cout <<
"bfcread_hist_anal.C, directory name for hist = "
91 << MakerHistDir << endl;
92 cout <<
"bfcread_hist_anal.C, top level directory in hist file = "
93 << TopDirTree << endl;
94 cout <<
"bfcread_hist_anal.C, output ps file = "
96 cout <<
"bfcread_hist_anal.C, page title for histograms = "
98 cout <<
"bfcread_hist_anal.C, subset list name of which histograms to draw,print = "
100 cout <<
"bfcread_hist_anal.C, # histograms on page horizontally = "
102 cout <<
"bfcread_hist_anal.C, # histograms on page vertically = "
105 gSystem->Load(
"St_base");
106 gSystem->Load(
"StChain");
107 gSystem->Load(
"StIOMaker");
108 gSystem->Load(
"StarClassLibrary");
109 gSystem->Load(
"libglobal_Tables");
110 gSystem->Load(
"StUtilities");
111 gSystem->Load(
"StAnalysisUtilities");
116 if (strlen(TopDirTree)) {
118 IOMk =
new StIOMaker(
"IO",
"r",MainFile,TopDirTree);
121 IOMk->SetBranch(
"*",0,
"0");
122 IOMk->SetBranch(
"histBranch",0,
"r");
132 HU->SetPntrToMaker((
StMaker *)IOMk);
136 HU->SetPntrToPlainFile(TFile::Open(MainFile));
140 gROOT->SetStyle(
"Plain");
142 HU->SetDetectors(DetList);
143 HU->SetHistsNamesDraw(
"*",
"*");
144 HU->GetRunYear(MainFile);
145 HU->SetOutFile(psFile);
146 HU->SetZones(ZoneH,ZoneV);
148 HU->SetDefaultLogXList(MakerHistDir);
149 HU->SetDefaultLogYList(MakerHistDir);
150 if (PageTitle==
"") PageTitle=MainFile;
151 HU->SetGlobalTitle(PageTitle);
153 HU->SetDefaultPrintList(MakerHistDir,PrintList);
156 numLog = HU->ExamineLogYList();
157 cout <<
" bfcread_hist_anal.C, Number hist to plot with log scale = " << numLog << endl;
160 numPrint = HU->ExaminePrintList();
161 cout <<
" bfcread_hist_anal.C, Number hist to print = " << numPrint << endl;
163 HU->SetRefAnalysis(refOutFile,refResultsFile,refCutsFile,refInFile);
166 HU->DrawHists(MakerHistDir);
168 cout <<
" bfcread_hist_anal.C, end of macro" << endl;
virtual void Clear(Option_t *opt)
User defined functions.
virtual void SetIOMode(Option_t *iomode="w")
number of transactions