ZEBRA to root tree conversion

Tarun Kanti Ghosh (tarun.k.ghosh@vanderbilt.edu)
Wed, 02 Jun 1999 23:26:31 -0500


Dear Rene,
According to your root page I have compiled
gh2root.f in linux machine and then I have given the following
command to convert Zebra FZ file to root class:

gh2root geantfile.geom X 900

As a result, the executable gh2root is running and at the end
it gave the follwing messege:

"
FZIN. LUN= 3 End of Run 0
i= 0 quest(1)= 2 nuhead= 0 head1=**** head2=**** head3=END2
file:XRun.h has been generated
file:XMaker.cxx has been generated
jset= 0
GEANT file: geantfile.geom converted to ROOT classes: Xxxx"

It has also created LinkDef.h and Make-macros but there are zero bytes
in those files as
-rw-r--r-- 1 tghosh rhphenix 0 Jun 1 16:23 LinkDef.h
-rw-r--r-- 1 tghosh rhphenix 6553 Jun 2 23:48 XMaker.cxx
-rw-r--r-- 1 tghosh rhphenix 2278 Jun 2 23:48 XRun.h
-rw-r--r-- 1 tghosh rhphenix 0 Jun 1 16:23 Make-macros

but I do not see that it has made any XsetdetMaker.h and cxx and
also it did not make any root macros as in the documentation
you said : "
* Some Root macros are also generated by gh2root:
* - fake.C : to generate random particles and hits.
* - run.C : to convert a Geant FZ file into Root.
* - browse.C : to browse a Root file with hits.
* - analyze.C : example of analysis code to loop on
* generated events and make histograms."

So could you please suggest me what is going wrong here or do I need
to change anywhere inside gh2root.f? although I assume that gh2root is
a general program for any FZ file to convert it into root tree!

best regards,
Tarun