Re: Q: zones

Rene Brun (Rene.Brun@cern.ch)
Tue, 25 Mar 1997 08:05:50 +0100


Pasha Murat wrote:
>
> Hi,
>
> I have a couple of questions:
>
> - it is extremely useful to have an option to subdivide an output
> page into several zones ("zone" command in PAW) to have several histograms
> printed on the same page. Does ROOT have an option like this? - I coudn't
> figure it out from the manual
>

Yes, use TCanvas::Divide.
example c1->Divide(2,3)
divides canvas c1 into 2 divisions along X and 3 along Y.

> - the first thing I did with ROOT was pretty trivial - I tried to convert a
> PAW ntuple I'm currently working with into ROOT file - and I immediately
> learned that (as written in manual!) - I can't do this conversion for ntuples
> containing 2-dim arrays. Will such a possibility be available in future?
>

h2root in version 1.00 supports multi-dimensional arrays.
The query processor supports 1-d arrays. For all other dimensions,
we recommend to loop yourself on the ntuple. The new member function
TTree::MakeCode generates automatically the skeleton for an analysis
function including all the variable declarations.

Rene Brun