31 int runDaq2Root(
const Char_t *filenameIn =
"testfile.sfs",
32 const Char_t *filenameOut =
"testfile.root",
34 Int_t date = 20120125,
41 cerr <<
"Constructing the chain" << endl;
42 analysisChain =
new StChain(
"eemcAnalysisChain");
47 TString dir0 =
"MySQL:StarDb";
48 TString dir1 =
"$STAR/StarDb";
51 dbMkr->SetDateTime(date,time);
53 cout <<
"Loading StFgtDbMaker" << endl;
54 gSystem->Load(
"StFgtDbMaker");
56 cout <<
"Constructing StFgtDbMaker" << endl;
62 cout <<
"Constructing the daq reader" << endl;
64 daqRdr->setIsCosmic( 0 );
65 daqRdr->cutShortEvents( 1 );
67 cerr <<
"Constructing the root makers" << endl;
70 cerr <<
"Initializing" << endl;
71 ierr = analysisChain->Init();
74 cerr <<
"Error initializing" << endl;
81 for(
int i=0; i<nevents && !ierr; ++i ){
82 analysisChain->
Clear();
83 ierr = analysisChain->
Make();
89 cerr <<
"finish" << endl;
92 cerr <<
"all done" << endl;
99 gROOT->Macro(
"loadMuDst.C");
103 gSystem->Load(
"libStDb_Tables.so");
104 gSystem->Load(
"StDbLib");
105 gSystem->Load(
"StDbBroker");
106 gSystem->Load(
"St_db_Maker");
107 gSystem->Load(
"StStarLogger");
108 gSystem->Load(
"StFgtDbMaker");
110 gSystem->Load(
"RTS");
112 gSystem->Load(
"StFgtUtil");
113 gSystem->Load(
"StFgtRawDaqReader");
114 gSystem->Load(
"StFgtDaq2Root");
virtual void Clear(Option_t *option="")
User defined functions.