Draw() for CWN arrays

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 27 1997 - 17:40:44 MET


>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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:17 MET