Last significant change: 2001/05/30
r2hbook is a very basic utility that allows the conversion of a ROOT file containing TNtuple objects into an HBOOK file. It has been written solely as a stop gap so that physicists, who have not had the time to learn to use ROOT as an analysis tool, can use to look at first Calibration Detector data. TNtuples (ROOT's equivalent of the HBOOK row-wise n-tuple) are the only type of object that the utility can convert. All other objects found in the file are ignored with a warning. Further, the utility can only convert objects in the top level directory; it does not attempt to enter TDirectory objects. It can be used to convert the TNtuples, but not the TH1F histograms found in the file useranalysis.root produced by demojob.
To run, execute the program with input and output file names e.g.:-
r2hbook useranalysis.root useranalysis.hbook
The second argument is optional, if omitted r2hbook constructs an output file by taking the input file name, removing any trailing file type and then appending .hbook, so the above command could be abbreviated to:-
Caution: r2hbook increases the HBOOK block size to 8090 to get maximum capacity. You must tell PAW the block size when opening files. For example:-
hist/fil 20 useranalysis.hbook 8090