12 void fzd2EEevent(
const Int_t Nevents=10000, TString fzFile =
"../sim2003/mc_eve2.fzd") {
18 gSystem->Load(
"St_base");
19 gSystem->Load(
"StChain");
20 gSystem->Load(
"StarClassLibrary");
22 gROOT->LoadMacro(
"$STAR/StRoot/macros/bfc.C");
23 gSystem->Load(
"StEEmcUtil.so");
24 bfc(0,
"fzin sim_T gen_T",fzFile);
26 TString outFile=fzFile.ReplaceAll(
".fzd",
".root");
27 TFile f(outFile,
"RECREATE");
28 TTree t4(
"EEtree",
"A Tree with Events");
32 t4.Branch(
"EEdst",
"EEeventDst", &eve,16000,99);
35 for (i=1; i<=Nevents; i++ ) {
38 printf(
"%2d ====================================\n",i);
40 nh = evIN->readEventFromChain(chain);
43 printf(
"EEMC/CTF hits not found");
48 printf(
" actual RAW geant EEMC hits =%d nh\n",nh);
62 Int_t nevent = (Int_t)t4->GetEntries();
63 printf(
"Total events in TTree=%d file=%s\n",nevent,outFile.Data());
virtual void Clear(Option_t *option="")
User defined functions.