11 void runMudst4(
char* file=
"st_fms_16088020_raw_5500016.MuDst.root",Int_t runnum=16088020,
12 char * jobid=
"single",
24 printf(
"--------------------------- error below here\n");
34 printf(
"--------------------------- error above here\n");
37 int n=muDstMaker->
tree()->GetEntries();
38 printf(
"Found %d entries in Mudst\n",n);
42 int stop=(ifile+1)*nevt-1;
43 if(n<start) {printf(
" No event left. Exiting\n");
return;}
44 if(n<stop) {printf(
" Overwriting end event# stop=%d\n",n); stop=n;}
45 }
else if(nevt>=0 && nevt<n){
50 printf(
"Doing Event=%d to %d\n",start,stop);
59 dbMk->SetAttr(
"blacklist",
"eemc");
60 dbMk->SetAttr(
"blacklist",
"ftpc");
61 dbMk->SetAttr(
"blacklist",
"ist");
62 dbMk->SetAttr(
"blacklist",
"mtd");
63 dbMk->SetAttr(
"blacklist",
"pmd");
65 dbMk->SetAttr(
"blacklist",
"pxl");
66 dbMk->SetAttr(
"blacklist",
"ssd");
67 dbMk->SetAttr(
"blacklist",
"svt");
68 dbMk->SetAttr(
"blacklist",
"tof");
69 dbMk->SetAttr(
"blacklist",
"tpc");
101 triggerMk->setDebug(1);
120 StFmsOFileMaker * ofileMk =
new StFmsOFileMaker(muDstMaker);
138 fpsMk->setReadMuDST(1);
142 fmsPointMk->setShowerShapeWithAngle(1);
146 fmsPointMk->setMergeSmallToLarge(1);
150 fmsPointMk->setVertexZ(1);
153 ofileMk->verbose =
false;
154 ofileMk->verbose_rp =
false;
155 ofileMk->dump_spinbits =
true;
158 ofileMk->check_spinbyte =
false;
161 ofileMk->build_evtr =
false;
172 TString filenameOFileMaker(file);
173 TRegexp re(
"\/.*\/");
174 filenameOFileMaker(re) =
"";
175 filenameOFileMaker.ReplaceAll(
"sched",Form(
"%d.",runnum));
176 filenameOFileMaker.ReplaceAll(
"list",
"fmsan.root");
177 filenameOFileMaker.ReplaceAll(
"MuDst",
"fmsan");
179 cout <<
"StFmsOFileMaker outfile name = " << filenameOFileMaker.Data()<<endl;
180 ofileMk->setFileName(filenameOFileMaker.Data());
181 ofileMk->setPrint(1);
187 chain->EventLoop(start,stop);
196 gROOT->Macro(
"loadMuDst.C");
197 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
198 loadSharedLibraries();
199 gROOT->Macro(
"LoadLogger.C");
201 gSystem->Load(
"StTpcDb");
202 gSystem->Load(
"StDetectorDbMaker");
203 gSystem->Load(
"StDbUtilities");
204 gSystem->Load(
"StDaqLib");
205 gSystem->Load(
"StEmcRawMaker");
206 gSystem->Load(
"StEmcADCtoEMaker");
207 gSystem->Load(
"StPreEclMaker");
208 gSystem->Load(
"StEpcMaker");
209 gSystem->Load(
"StDbLib");
210 gSystem->Load(
"StDbBroker");
211 gSystem->Load(
"St_db_Maker");
212 gSystem->Load(
"StEEmcUtil");
213 gSystem->Load(
"StEEmcDbMaker");
214 gSystem->Load(
"StSpinDbMaker");
215 gSystem->Load(
"StEmcTriggerMaker");
216 gSystem->Load(
"StTriggerUtilities");
217 gSystem->Load(
"StMCAsymMaker");
218 gSystem->Load(
"StRandomSelector");
219 gSystem->Load(
"StTriggerFilterMaker");
220 gSystem->Load(
"StEventMaker");
221 gSystem->Load(
"StTriggerDataMaker");
223 gSystem->Load(
"libMinuit.so");
224 gSystem->Load(
"StFmsUtil");
225 gSystem->Load(
"StFmsDbMaker");
226 gSystem->Load(
"StFmsHitMaker");
227 gSystem->Load(
"StFmsPointMaker");
228 gSystem->Load(
"StFmsTriggerMaker");
229 gSystem->Load(
"StFmsFpsMaker");
230 gSystem->Load(
"StMuRpsUtil.so");
232 gSystem->Load(
"StFmsOFileMaker");
TTree * tree()
Returns pointer to the current TTree, the top level io structure that holds the event, track, v0, etc. information in branches of that tree.
void setDebug(Int_t debug)
debug mode, 0 for minimal message, >0 for more debug messages
void SetReadMuDst(int v=1)
void SetReadMuDst(int v=1)