gh2root

Nikolai Yu. Zaitsev (Nikolai.Zaitsev@cern.ch)
Mon, 10 Aug 1998 13:56:26 +0200 (METDST)


Hello rooters,

The problem I try to solve is the conversion of GEANT hits into root
file. I followed all instructions in gh2root home page:
http://root.cern.ch/root/gh2root.html.

However, I suspect that I could do something wrong with GEANT (sorry, for=
=20
FORTRAN code):

1.

open(UNIT=3D67,FILE=3D'g2out.dat',FORM=3D'unformatted',
$ STATUS=3D'UNKNOWN',err=3D999)
call gopen(67,'O',1024,ier)
call gfout(67,'SETS',1,0,' ',ier)
call gfout(67,'HITS',1,0,' ',ier)
call gfout(67,'VERT',1,0,' ',ier)
call gfout(67,'KINE',1,0,' ',ier)
call gclose(67,ier)

it works fine: no complains from the GEANT. I have FZ-formatted g2out.dat
filled (readable back by GEANT).=20

2.=20
then I try:
gh2root g3out.dat MC 1024=20
and get this:
Opening FZ file:g3out.dat with LRECL=3D 1024
reading fz file, lun=3D 3
=20
FZIDIA. LUN=3D 3 BAD CONSTRUCTION
IQUEST(1/2/3)=3D -4 0 1
IQUEST(11-) =3D -4 201 0
i=3D 1 quest(1)=3D-4 nuhead=3D100 head1=3D 0 head2=3D**** head3=3D{=B1
i=3D 1 quest(1)=3D 5 nuhead=3D100 head1=3D 0 head2=3D**** head3=3D{=B1
file:MCRun.h has been generated
file:MCMaker.cxx has been generated
jset=3D 0
GEANT file: g3out.dat converted to ROOT classes: MCxxx

MCMaker.h is not produced!

How I can solve the problem?

For a moment I will try to convert hits in the ntuple into root file.=20

Any help is appreciated,

Nikolai.