Re: Problem with projecting ntuple data into 1D histos with variable

Rene Brun (Rene.Brun@cern.ch)
Sun, 13 Jun 1999 10:27:09 +0200 (METDST)


Hi John,
This should work.
Can you tell me what is the version of root ?
Could you send me a small file with a 5 lines long macro showing the
problem?

Rene Brun

On Sun, 13 Jun 1999, John Richardson wrote:

>
> Has anyone attempted to project ntuple data into a histogram
> with non-equal bin widths?
>
> I find that using
>
> ntuple->Draw("a>>histid","","");
> or
> ntuple->Project("histid","a","","");
>
> work just fine so long as the TH1F called histid has equal bins.
> If histid has been set up with variable binning however, the
> bin assignment of the data seems to be corrupt.
> Perhaps there is something special I need to do for this
> case. Can anyone comment?
>
> John Richardson.
>