1 int rdTrg2Panitkin(
int nEve=1000000,
3 char *pathIn=
"//star/data05/scratch/balewski/2006-L2algo-events/2006-data/072/",
4 char *pathOut=
"./wrk/hist/"
7 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
9 cout <<
" loading done " << endl;
11 assert( !gSystem->Load(
".sl305_gcc323/obj/StRoot/StEEmcPool/muEztPanitkin/StEEmcPoolmuEztPanitkin.so"));
12 assert( !gSystem->Load(
"StEEmcUtil"));
13 assert( !gSystem->Load(
"StEEmcPoolHanksTriggerDataReader"));
18 TString iFile=file; iFile+=
".dat";
22 if (trgRd->OpenFile(iFile.Data())==
kStErr){
23 printf(
"Error opening data file %s\n",file);
26 printf(
"Opening data file %s\n",iFile.Data());
31 myMk3->SetHList(HList);
43 if(eventCounter>=nEve)
break;
48 if(eventCounter%2000!=0)
continue;
50 printf(
"\n\n ====================%d processing ==============\n", eventCounter);
54 printf(
"sorting done, nEve=%d \n",nEve);
57 float rate=1.*eventCounter/(t2-t1);
58 float nMnts=(t2-t1)/60.;
59 printf(
"sorting done nEve=%d , elapsed rate=%.1f Hz, tot %.1f minutes\n",eventCounter,rate,nMnts);
62 cout <<
"CPU time/event= " << timer.elapsedTime()/eventCounter <<
" sec "
63 <<
" rate= " << eventCounter/timer.elapsedTime() <<
" Hz" << endl;
68 myMk3->saveHisto(hFile);