StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fzd2muDst.C
1 #include <iostream.h>
2 
3 class EEmcMCData;
4 
5 // ______________________________________________
6 void fzd2muDst(const Int_t Nevents=1, const Char_t *fzfile ="aa.fzd") {
7  Int_t i=0;
8  gSystem->Load("St_base");
9  gSystem->Load("StChain");
10  gSystem->Load("StarClassLibrary");
11 
12  gROOT->LoadMacro("./bfc.C");
13  //gROOT->LoadMacro("/star/u/laue/afsWork/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
14  gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
15  loadSharedLibraries();
16  gSystem->Load("StBlankStEventMaker");
17  gSystem->Load("StEEmcUtil");
18  gSystem->Load("StEEmcSimulatorMaker");
19  bfc(0,"fzin sim_T gen_T tree",fzfile);// just setup the chain
20 
21  for (i=1; i<=Nevents; i++ ) {
22  chain->Clear();
23  if (chain->Make(i)>=kStEOF) break;
24  printf("%2d ====================================\n",i);
25  }
26 }
27 
virtual void Clear(Option_t *option="")
User defined functions.
Definition: StChain.cxx:77
Definition: Stypes.h:43
virtual Int_t Make()
Definition: StChain.cxx:110