6 int rdEztPanitkin(
int trigID=0,
9 char* file=
"runList/R7101015.lis",
16 file=
"st_physics_7166007_raw_1040002.MuDst.root";
18 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
19 loadSharedLibraries();
20 cout <<
" loading done " << endl;
21 assert( !gSystem->Load(
"StEEmcPoolmuEztPanitkin"));
22 assert( !gSystem->Load(
"StEEmcUtil"));
25 assert( !gSystem->Load(
"StDbBroker"));
26 assert( !gSystem->Load(
"St_db_Maker"));
27 assert( !gSystem->Load(
"StEEmcDbMaker"));
32 printf(
"adding muDst from '%s' ....\n",file);
35 muMk =
new StMuDstMaker(0,0,inDir,file,
"MuDst.root",nFiles);
36 TChain* tree=muMk->
chain(); assert(tree);
37 int nEntries=(int) tree->GetEntries();
38 printf(
"total eve in chain =%d\n",nEntries);
39 printf(
"in=%s%s=\n",inDir,file);
43 stDb->SetFlavor(
"onlPed",
"eemcPMTped");
49 myMk3->SetHList(HList);
50 myMk3->SetTrigIdFilter(trigID);
62 memset(eemcDsmSetup, 0,
sizeof(eemcDsmSetup));
74 gMessMgr->SwitchOff(
"D");
75 gMessMgr->SwitchOn(
"I");
84 printf(
"All Ezt-branches set\n");
93 if(eventCounter>=nEve)
break;
98 if(eventCounter%200!=0)
continue;
100 printf(
"\n\n ====================%d processing ==============\n", eventCounter);
103 printf(
"sorting done, nEve=%d of %d\n",nEve, nEntries);
106 float rate=1.*eventCounter/(t2-t1);
107 float nMnts=(t2-t1)/60.;
108 printf(
"sorting done %d of nEve=%d, elapsed rate=%.1f Hz, tot %.1f minutes\n",eventCounter,nEntries,rate,nMnts);
111 cout <<
"CPU time/event= " << timer.elapsedTime()/eventCounter <<
" sec "
112 <<
" rate= " << eventCounter/timer.elapsedTime() <<
" Hz" << endl;
115 myMk3->saveHisto(
"eemcQA");
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.
void SetStatus(const char *arrType, int status)