13 char* file=
"R7114062.lis",
16 char* outDir =
"out2/"
18 char* inDir =
"./runList/";
20 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
21 loadSharedLibraries();
22 cout <<
" loading done " << endl;
23 gSystem->Load(
"StDbLib");
24 gSystem->Load(
"StDbBroker");
25 gSystem->Load(
"St_db_Maker");
26 gSystem->Load(
"StEEmcUtil");
27 gSystem->Load(
"StEEmcDbMaker");
28 gSystem->Load(
"StEEsoloPi0");
30 gROOT->Macro(
"LoadLogger.C");
35 printf(
"adding muDst from '%s' ....\n",file);
37 muMk =
new StMuDstMaker(0,0,inDir,file,
"MuDst.root",nFiles);
38 TChain* tree=muMk->
chain(); assert(tree);
39 int nEntries=tree->GetEntries();
40 printf(
"total eve in chain =%d\n",nEntries);
49 myMk3->SetHList(&HList);
51 #if 0 // flags for M-C events
52 stDb->SetDateTime(20031120,0);
53 stDb->SetFlavor(
"sim",
"eemcPMTcal");
54 stDb->SetFlavor(
"sim",
"eemcPIXcal");
55 stDb->SetFlavor(
"sim",
"eemcPMTped");
56 stDb->SetFlavor(
"sim",
"eemcPMTstat");
57 stDb->SetFlavor(
"sim",
"eemcPMTname");
58 stDb->SetFlavor(
"sim",
"eemcADCconf");
71 if(eventCounter>=nEve)
break;
76 if(eventCounter%300!=0)
continue;
78 printf(
"\n====================%d processing ==============\n", eventCounter);
81 printf(
"sorting done, nEve=%d of %d\n",nEve, nEntries);
83 float rate=1.*eventCounter/(t2-t1);
84 float nMnts=(t2-t1)/60.;
85 printf(
"sorting done %d of nEve=%d, CPU rate=%.1f Hz, tot %.1f minutes\n",eventCounter,nEntries,rate,nMnts);
89 TString fullName=file; fullName.ReplaceAll(
".lis",
".hist.root");
90 fullName=outDir+fullName;
91 TFile f( fullName,
"recreate");
93 printf(
"%d histos are written to '%s' ...\n",HList.GetEntries(),fullName.Data());
Axample to access muDst and pass it to ezTree analyzis class.
virtual void Clear(Option_t *option="")
User defined functions.
virtual void ls(Option_t *option="") const
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.