Re: convert ntuple to histogram

From: suvayu ali <fatkasuvayu_at_gmail.com>
Date: Mon, 13 Sep 2010 13:13:50 -0700


On 13 September 2010 11:15, <jhkim_at_physics.utexas.edu> wrote:
> Hi,
>
> Is there any way to directly convert ntuple into histogram?
>

Can't you just use,

myTNtuple->Draw("var1>>htemp");
TH1F* histo = (TH1F*)gPad->GetPrimitive("htemp");

You can see http://root.cern.ch/root/html/TTree.html#TTree:Draw for more details.

> Best,
>
> Jeehoon
>

-- 
Suvayu

Open source is the future. It sets us free.
Received on Mon Sep 13 2010 - 22:14:19 CEST

This archive was generated by hypermail 2.2.0 : Mon Sep 13 2010 - 23:50:02 CEST