Re: -- hbook -- querry

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 27 Nov 2006 09:04:25 +0100


You have 2 possible solutions

Solution 1 (recommended)



Use the tool h2root provided in $ROOTSYS/bin to convert a hbook file to root file

   h2root myfile.hbook
will generate myfile.root

Solution 2



Access the hbook file via the class THbookFile  Suppose a hbook file with some histograms, you can do, eg
  root > THbookFile f("myfile.hbook")
  root > f.ls(); //to see the content
  root > TH1 * h102 = (TH1*)f.Get(102); //import hbook id=102 in memory
  root > h102->Draw()

Rene Brun

Satya J wrote:
> Dear All,
>
> Can some body tell me how can I read a hbook file. I never done paw.
> Is there
> any way to read it in a root macro.
> I am using root 5:13:04
> SLC - 4.2
> Your comments and suggestions will highly be appreciated.
> Thanks,
> --
> ---------------
> Satya
> Research Student,
> High Energy Physics, India.
Received on Mon Nov 27 2006 - 09:04:37 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET