StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mudst.C
1 void mudst(char * file="/star/data13/reco/production_dAu2008/ReversedFullField/P08ie/2008/021/9021048/st_fast_9021048_raw_1110017.MuDst.root",
2  int nEvents=2){
3 
4  gROOT->Macro("loadMuDst.C");
5  gSystem->Load("StDbBroker.so");
6  gSystem->Load("St_db_Maker.so");
7  gSystem->Load("StFmsDbMaker.so");
8 
9  cout << "Setting up chain" << endl;
10  StChain* chain = new StChain;
11 
12  cout << "Setting up MuDstMaker with file=" << file << endl;
13  StMuDstMaker* mudstmaker = new StMuDstMaker(0,0,"",file,"MuDst",1);
14 
15  cout << "Setting up St_db_Maker" << endl;
16  St_db_Maker* dbMaker = new St_db_Maker("db", "MySQL:StarDb", "$STAR/StarDb");
17  dbMaker->SetDEBUG();
18  dbMaker->SetDateTime(20090601, 0); //set time stamp for the data base
19 
20  cout << "Setting up StFmsDbMaker" << endl;
21  StFmsDbMaker* fmsdb = new StFmsDbMaker("fmsdbmaker");
22  fmsdb->setDebug(1); //debug>0 to dump tables to text files
23 
24  cout << "Init Chain" << endl;
25  chain->Init();
26  cout << "Event Loop nEvents=" << nEvents << endl;
27  chain->EventLoop(0,nEvents);
28 
29  cout << "Finish Chain" << endl;
30  chain->Finish();
31  delete chain;
32 }
33 
void setDebug(Int_t debug)
debug mode, 0 for minimal message, &gt;0 for more debug messages
virtual Int_t Finish()
Definition: StChain.cxx:85