Draw() for CWN arrays

Rene Brun (Rene.Brun@cern.ch)
Mon, 27 Jan 1997 17:40:44 +0100


>after converting a CWN with one-dimensional arrays with h2root, I have
>no idea how to plot the single fields of the array, e.g. my ntuple
>block

>#define NT_DETECTOR_JETS_FORMAT \
>"Jets[0, 20]:I, " \
>"JetPt(Jets):R, " \
>"JetEta(Jets):R, " \
>"JetPhi(Jets):R"

>will be converted to a set of baskets. One of those is named
>"JetPt".

>Executing <TTree-name>.Draw("JetPt") plots the Pts of all jets. How
>can I plot JetPt(1) without looping over the events and filling a
>histogram by myself?
>Tsch"uss, Thomas Kr"amerk"amper.

As explained in the last paragrah of

http://root.cern.ch/root/HowtoConvert.html
The notation Draw("JetPt[1]") is not supported in version 0.9.
This will be part of version 1.0
Currently, you have to loop yourself on your events.
Note that a skeleton function can be automatically generated.
This is explained in the URL above.
Rene Brun