77 const char *dstFile = 0;
78 const char *xdfFile = 0;
79 const char *mdcFile = 0;
80 const char *fileList[] = {dstFile,xdfFile,mdcFile,0};
89 void runPeCMaker(Int_t,
const Char_t **,
const char *qaflag =
"");
91 void runPeCMaker(Int_t nevents=2,
92 const Char_t *path=
"-",
93 const Char_t *file=
"/afs/rhic.bnl.gov/star/data/samples/gstar.dst.root",
94 const char *qaflag =
"off");
97 void runPeCMaker(Int_t nevents,
const Char_t **fileList,
const char *qaflag)
100 gSystem->Load(
"St_base");
101 gSystem->Load(
"StChain");
103 gSystem->Load(
"libgen_Tables");
104 gSystem->Load(
"libsim_Tables");
105 gSystem->Load(
"libglobal_Tables");
108 gSystem->Load(
"StUtilities");
109 gSystem->Load(
"StIOMaker");
110 gSystem->Load(
"StarClassLibrary");
111 gSystem->Load(
"StEvent");
112 gSystem->Load(
"StarMagField");
113 gSystem->Load(
"StMagF");
114 gSystem->Load(
"StDetectorDbMaker");
115 gSystem->Load(
"StTpcDb");
116 gSystem->Load(
"StEventMaker");
117 gSystem->Load(
"StPeCMaker");
118 cout<<
"Shared Libraries Loaded!"<<endl;
120 chain =
new StChain(
"StChain");
124 for (
int ifil=0; fileList[ifil]; ifil++){
125 setFiles->AddFile(fileList[ifil]);
129 IOMk->SetBranch(
"*",0,
"0");
130 IOMk->SetBranch(
"dstBranch",0,
"r");
131 IOMk->SetBranch(
"runcoBranch",0,
"r");
141 Int_t iInit = chain->Init();
142 if (iInit) chain->Fatal(iInit,
"on init");
147 EventLoop:
if (i <= nevents && istat!=2) {
148 cout <<
"============================ Event " << i
149 <<
" start ============================" << endl;
151 istat = chain->
Make(i);
152 if (istat==2) {cout <<
"Last event processed. Status = " << istat << endl;}
153 if (istat==3) {cout <<
"Error event processed. Status = " << istat << endl;}
159 cout <<
"============================ Event " << i
160 <<
" finish ============================" << endl;
166 void runPeCMaker(
const Int_t nevents,
const Char_t *path,
const Char_t *file,
const char *qaflag)
168 const char *fileListQQ[]={0,0};
172 fileListQQ[0] = gSystem->ConcatFileName(path,file);
174 runPeCMaker(nevents,fileListQQ,qaflag);
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.