82 class StEventDisplayMaker;
83 StEventDisplayMaker *disp=0;
86 const char *dstFile =
"/disk00001/star/auau200/two_photon/starlight/twogam/year_1b/hadronic_on/tfs/ric0022_01_14552evts.dst.root";
87 const char *xdfFile =
"/afs/rhic.bnl.gov/star/data/samples/gstar.dst.xdf";
88 const char *mdcFile =
"/disk00001/star/auau200/venus412/default/b0_3/year_1b/hadronic_on/tss/psc0081_07_40evts.root";
89 const char *fileList[] = {dstFile,xdfFile,mdcFile,0};
116 void doEventsQQ(
const Int_t nevents=999,
117 const Char_t **fileList)
121 gSystem->Load(
"St_base");
122 gSystem->Load(
"StChain");
124 gSystem->Load(
"libgen_Tables");
125 gSystem->Load(
"libsim_Tables");
126 gSystem->Load(
"libglobal_Tables");
128 gSystem->Load(
"StUtilities");
129 gSystem->Load(
"StIOMaker");
130 gSystem->Load(
"StarClassLibrary");
131 gSystem->Load(
"StarMagField");
132 gSystem->Load(
"StMagF");
133 gSystem->Load(
"StEvent");
134 gSystem->Load(
"StDetectorDbMaker");
135 gSystem->Load(
"StTpcDb");
136 gSystem->Load(
"StEventMaker");
137 gSystem->Load(
"St_geom_Maker");
138 gSystem->Load(
"StEventDisplayMaker");
143 chain =
new StChain(
"StChain");
147 for (
int ifil=0; fileList[ifil]; ifil++)
148 { setFiles->AddFile(fileList[ifil]);}
150 St_geom_Maker *geom =
new St_geom_Maker;
158 disp =
new StEventDisplayMaker;
161 St_TLA_EventFilter *trackFilter =
new St_TLA_EventFilter();
162 disp->SetFilter(trackFilter,StEventDisplayMaker::kTrack);
166 Int_t iInit = chain->Init();
167 if (iInit) chain->Fatal(iInit,
"on init");
173 for (Int_t i=1; i<=nevents; i++) {
174 cout <<
"============================ Event " << i <<
" start" << endl;
176 istat = chain->
Make(i);
178 cout <<
"Last event processed. Status = " << istat << endl;
187 cout <<
"============================ Event " << i <<
" finish" << endl;
190 gROOT->LoadMacro(
"PadControlPanel.C");
192 void drawEvent(
const Int_t nevents=2,
193 const Char_t *path=
"-/disk00001/star/auau200/hijing135/jetq_on/b0_3/year_1b/hadronic_on/tfs/",
194 const Char_t *file=
"/afs/rhic.bnl.gov/star/data/samples/gstar.dst.xdf")
196 const char *fileListQQ[]={0,0};
200 fileListQQ[0] = gSystem->ConcatFileName(path,file);
202 doEventsQQ(nevents,fileListQQ);
virtual void Clear(Option_t *option="")
User defined functions.