00001 #include <iostream.h>
00002
00003 class St_geant_Maker;
00004 class EEmcMCData;
00005
00006
00007 TBrowser *b = 0;
00008 St_geant_Maker *geant= 0;
00009
00010
00011
00012 void fzd2print(const Int_t Nevents=1, const Char_t *fzfile ="/star/u/spinka/EEMC_sim1/Data/singleGamma1.fzd") {
00013 Int_t i=0;
00014 gSystem->Load("St_base");
00015 gSystem->Load("StChain");
00016 gSystem->Load("StarClassLibrary");
00017
00018 gROOT->LoadMacro("$STAR/StRoot/macros/bfc.C");
00019 gSystem->Load("StEEmcUtil.so");
00020 bfc(0,"fzin sim_T gen_T nodefault ",fzfile);
00021
00022
00023
00024
00025
00026
00027
00028 EEmcMCData *evIN=new EEmcMCData;
00029
00030 for (i=1; i<=Nevents; i++ ) {
00031 chain->Clear();
00032 if (chain->Make(i)>=kStEOF) break;
00033 printf("%2d ====================================\n",i);
00034 int nh=-1;
00035 nh = evIN->readEventFromChain(chain);
00036 printf(" actual RAW geant EEMC hits =%d nh\n",nh);
00037 evIN->print();
00038
00039 }
00040 }
00041