Re: [ROOT] Statistics Box

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Mar 24 2001 - 19:33:25 MET


Hi Lars,
I forgot to mention this option in my previous mail.
You can also do directly:
tree.Draw("y:x>>h2","","scat")

This is a shortcut for the 2 lines in my previous example.
Note that when using the TreeViewer, you can easily set the "scat"
option as the default if you like.

Rene Brun

On Sat, 24 Mar 2001, Lars Ewell wrote:

> Rene,
> 
> 	Thanks for your usual promptness in responding.
> 	
> |> You can force tree.Draw to fill a 2-d histogram, eg
> |>   TH2F h2("h2","my hist",40,-4,4,40,0,100);
> |>   tree.Draw("y:x>>h2");
> 
> 	That definitely worked.  However, when doing many cuts
> on a 2D histogram, this process can get time intensive.
> 
> 	I wonder how feasible it would to set the default
> of tree.Draw to be a 2-D histogram as opposed to a scatter
> plot?
> 
> 	Thanks.
> 
> 	regards,
> 
> 	Lars
> 
> -- 
> ______________________________________
>  Lars Ewell 
>  Brookhaven National Laboratory
>  PHENIX Group
>  Physics Dept. 510C
>  Upton, NY 11973  
>  
>  ewell@bnl.gov
>  Phone (631)344-7070
>  FAX   (631)344-3253
>  www   http://ewell.rhic.bnl.gov/~ewell
> _____________________________________
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET