9 char *file=
"R9060016f.lis",
15 TString outDir=
"out1d/",
20 char *dirIn =
"runList/";
31 if (flagMC) file=
"mit0029.lis";
35 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
36 loadSharedLibraries();
37 assert( !gSystem->Load(
"StDetectorDbMaker"));
38 assert( !gSystem->Load(
"StDbUtilities"));
39 assert( !gSystem->Load(
"StDbBroker"));
40 assert( !gSystem->Load(
"St_db_Maker"));
41 assert( !gSystem->Load(
"StDaqLib"));
42 assert( !gSystem->Load(
"StEmcRawMaker"));
43 assert( !gSystem->Load(
"StEmcADCtoEMaker"));
45 assert( !gSystem->Load(
"StMcEvent"));
46 assert( !gSystem->Load(
"StMcEventMaker"));
47 assert( !gSystem->Load(
"StEmcSimulatorMaker"));
48 assert( !gSystem->Load(
"StEpcMaker"));
50 assert( !gSystem->Load(
"StBarrelCalib"));
52 gROOT->Macro(
"LoadLogger.C");
53 cout <<
" loading done " << endl;
58 printf(
" dirIn=%s= file=%s=\n",dirIn,file);
61 TChain* tree=muDstMaker->
chain(); assert(tree);
62 int nEntries=(int) tree->GetEntries();
63 cout <<
"Avaliable number of events " << nEntries << endl;
67 cout<<
" WARN: # of requested events reduced to "<< nEvents<<endl;
76 dbMk->SetDateTime(20080307, 83000);
87 TObjArray* HList=
new TObjArray;
91 jdbMk->setHList(HList);
94 bmMk->setHList(HList);
95 bmMk->setCalibPass(calibPass);
96 bmMk->setBprsHisto(bprsHist);
103 for (Int_t iev=0;iev<nEvents; iev++) {
104 cout <<
"\n****************************************** " << endl;
105 cout <<
"Working on eventNumber:\t" << iev <<
"\tof:\t"<<nEvents<<endl;
106 cout <<
"****************************************** " << endl;
108 int iret = chain->
Make(iev);
111 cout <<
" my.C macro: Bad return code!" << endl;
117 float tMnt=(t2-t1)/60.;
118 float rate=1.*total/(t2-t1);
121 cout <<
"****************************************** " << endl;
122 cout <<
"total number of events " << total << endl;
123 cout <<
"****************************************** " << endl;
129 if(fileHi.Contains(
".lis")) fileHi.ReplaceAll(
".lis",
".barCal");
130 if(fileHi.Contains(
".MuDst.root")) fileHi.ReplaceAll(
".MuDst.root",
".barCal");
132 TString outF=outDir+fileHi;
135 cout<<
"Output histo file "<<outF<<endl;
136 hf=
new TFile(outF,
"recreate");
140 printf(
"\n Histo saved -->%s<\n",outF.Data());
142 printf(
"\n Failed to open Histo-file -->%s<, continue\n",outF.Data());
145 cout <<Form(
"sorting done %d of nEve=%d, CPU rate=%.1f Hz, total time %.1f minute(s) \n\n",total,nEntries,rate,tMnt)<<endl;
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.
void saveAllStEvent(Bool_t a)
Set to kTRUE if all hits are to be saved on StEvent.
void setCheckStatus(StDetectorId det, int flag, const char *option="")