Re: [ROOT] TTree question.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jun 11 2002 - 23:38:12 MEST


Hi Nick,

You can try:

 tree.Query("BRHIST.Draw()"," EVT==101");

or tree.Scan instead of Query

Rene Brun

On Tue, 11 Jun 2002, Nick van Eijndhoven wrote:

> Dear friends,
> In performing some data analysis I want to create an output tree
> of which a certain branch BRHIST contains a histogram.
> The tree contains of course several entries of which each entry has
> a certain event number stored as EVT.
> In my analysis I would like to display for a certain event (let's say
> EVT==101) the corresponding histogram from the branch BRHIST.
> How should I achieve this ?
> Obviously I would like to use the TTreeViewer facility of the tree
> for it, since on basis of how the histo looks like I would also like
> to investigate several other variables of that event.
> 
>                                                   Cheers,
>                                                    Nick.
> -- 
> Dr. Nick van Eijndhoven mailto:nick@phys.uu.nl http://www.phys.uu.nl/~nick
> --------------------------------------------------------------------------
> Org.:    Utrecht University/Nikhef, Department of Subatomic Physics
> Address: Princetonplein 5, NL-3584 CC Utrecht, The Netherlands
> Phone:   +31-30-2532331(direct) +31-30-2531492(secr.)  Fax: +31-30-2518689
> NIKHEF:  +31-20-5922178(direct) +31-20-5922000(secr.)  Fax: +31-20-5925155
> CERN:    +41-22-7679751(direct) +41-22-7675857(secr.)  Fax: +41-22-7679480
> Offices: Buys Ballot lab. 710 (Utrecht)   N241 (Nikhef)   B23 1-020 (CERN)
> --------------------------------------------------------------------------
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:56 MET