Re: Some NEWS + How to convert HBOOK to ROOT

Rene Brun (Rene.Brun@cern.ch)
Fri, 23 May 1997 16:48:34 +0200


Damir Buskulic wrote:
>
> Hi,
> I think that the problem lies in the fact that, when converting names
> from HBOOK, h2root converts capital letters to small ones (except the
> first ?). In one of my ntuples, I saw rikD converted to rikd and it
> worked after I used this one.
>
> A related question. Why is the interpreter doing a seg violation when you
> misspell a variable ? When that happens, I have to quit root and relaunch
> it. Is there a more convenient way ? obviously, when it seg faults, it's
> already too late so Is it a bug ?
>>
> > Dear roots,
> > I tried the above HOWTO, (I can view the ntuple 5000 with rows:
> > RUN, EVENT,E_ECAL etc correctly with paw,
> > with root I get:
> >
> > root [0] TFile f("ntz0mu94.root")
> > root [1] f.ls()
> > TFile** ntz0mu94.root
> > TFile* ntz0mu94.root
> > KEY: TTree h5000;1 EVENT
> > KEY: TH1F h100;1 EBEAM
> > KEY: TDirectory TR;1 TR
> > root [2] h100.Draw()
> > Warning in <MakeDefCanvas>: creating a default canvas with name c1
> > root [3] h5000.Draw("EVENT");
> >
> > *ERROR 26 :
> > Unknown name : "EVENT"
> >
> > etc...
> > I was using 1.01/02 on HPUX this time, on Linux(2.0.30) with 1.00/10 I get
> >
> > root [3] h5000.Draw("EVENT");
> > mmuzip: discrepancy in source length
> > mmuzip: error in header
> >
> > *** Break *** segmentation violation
> >
> > What do I wrong?
> >
> > Cheers

Problem was case sensitivity.
The Tree variable was called "Event" and not "EVENT".

I fixed the protection problem when an invalid variable name is given
in the latest development version.
We intend to introduce this weekend a new version 1.01/03 fixing
some minor problems recently reported:
- ntuple.Draw("var[2]") is OK
- h2root conversion in case of multi-dim arrays

In addition, this new version will include:
- graphical cuts
- New member functions TH1::ProjectionX, TH1::ProjectionY,
TH1::ProfileX and TH1::ProfileY to generate respectively
projections along X,Y or profiles.

Rene Brun