Re: TTree Project and weight

From: John Idarraga <idarraga_at_cern.ch>
Date: Wed, 17 Feb 2010 09:46:48 -0500


Hello Marc,

Yes, when you Draw(...) from a Tree you can get a TH1x object. The answer to your question is in great detail in the documentation for TTree::Draw(....) (the method Draw(...) is overloaded, look at the second entry), here

http://root.cern.ch/root/html/TTree.html#TTree:Draw

cheers,

John

On Wed, 2010-02-17 at 12:53 +0100, Marc Escalier wrote:
> Hello,
>
> with a TH1, one can use a weight with Fill()
>
> Is that possible to do that with
> a TTree and Project() ?
>
> thank you
>
Received on Wed Feb 17 2010 - 15:42:48 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 17 2010 - 23:50:02 CET