3 void runMudst(
char* file=
"/star/u/akio/pwg/fms2015/mudst/st_fms_16077027_raw_4000001.MuDst.root",
4 int ifile=0, Int_t nevt=1000,
char* outdir=
"hist",
int merge=1,
int readMuDst=0,
int print=0){
5 gROOT->Macro(
"load.C");
6 gSystem->Load(
"StEventMaker");
10 int n=muDstMaker->
tree()->GetEntries();
11 printf(
"Found %d entries in Mudst\n",n);
13 int stop=(ifile+1)*nevt-1;
14 if(n<start) {printf(
" No event left. Exiting\n");
return;}
15 if(n<stop) {printf(
" Overwring end event# stop=%d\n",n); stop=n;}
16 printf(
"Doing Event=%d to %d\n",start,stop);
19 filterMaker->printTriggerId();
20 const int TIDBASE=480800;
21 const int MAXVERSION=3;
23 for(
int i=1; i<=NTRG; i++){
24 for(
int j=0; j<MAXVERSION; j++){
25 int id=TIDBASE + 20*j + i;
26 printf(
"Adding TriggerId=%d to the filter %d %d\n",
id,i,j);
27 filterMaker->addTrigger(
id);
30 filterMaker->addVetoTrigger(480813);
31 filterMaker->addVetoTrigger(480833);
39 fmsdb->readRecParamFromFile();
44 fmsptMk->setMergeSmallToLarge(merge);
50 fmsfps->setReadMuDST();
51 fmsfps->setPrint(print);
52 TString filename(file);
53 filename.ReplaceAll(
"mudst",outdir);
54 filename.ReplaceAll(
".MuDst.root",Form(
".%d.fmsfps.root",ifile));
55 fmsfps->setQA(filename.Data());
58 chain->EventLoop(start,stop);
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)