9 inDir=
"/star/data08/reco/ppProductionMinBias/FullField/dev/2005/174/";
10 file=
"st_physics_6174067_raw_2040010.MuDst.root";
12 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
13 loadSharedLibraries();
14 cout <<
" loading done " << endl;
15 assert( !gSystem->Load(
"StEEmcUtil"));
16 assert( !gSystem->Load(
"StEEmcPoolmuDst"));
19 assert( !gSystem->Load(
"StDbBroker"));
20 assert( !gSystem->Load(
"St_db_Maker"));
21 assert( !gSystem->Load(
"StEEmcDbMaker"));
26 printf(
"adding muDst from '%s' ....\n",file);
29 muMk =
new StMuDstMaker(0,0,inDir,file,
"MuDst.root",nFiles);
30 TChain* tree=muMk->
chain(); assert(tree);
31 int nEntries=(int) tree->GetEntries();
32 printf(
"total eve in chain =%d\n",nEntries);
33 printf(
"in=%s%s=\n",inDir,file);
37 stDb->SetFlavor(
"onlPed",
"eemcPMTped");
38 stDb->SetFlavor(
"sim",
"eemcPMTstat");
44 myMk3->SetHList(HList);
45 myMk3->SetTrigId(96011);
49 gMessMgr->SwitchOff(
"D");
50 gMessMgr->SwitchOn(
"I");
63 if(eventCounter>=nEve)
break;
68 if(eventCounter%200!=0)
continue;
70 printf(
"\n\n ====================%d processing ==============\n", eventCounter);
74 printf(
"sorting done, nEve=%d of %d\n",nEve, nEntries);
77 float rate=1.*eventCounter/(t2-t1);
78 float nMnts=(t2-t1)/60.;
79 printf(
"sorting done %d of nEve=%d, elapsed rate=%.1f Hz, tot %.1f minutes\n",eventCounter,nEntries,rate,nMnts);
82 cout <<
"CPU time/event= " << timer.elapsedTime()/eventCounter <<
" sec "
83 <<
" rate= " << eventCounter/timer.elapsedTime() <<
" Hz" << endl;
86 TString out=
"outPed/";
89 TFile f( out,
"recreate");
91 printf(
"%d histos are written to '%s' ...\n",HList->GetEntries(),out.Data());
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.