Hi,
May be you can do a 2d histogram with X and Y and use Z as weight ?
Cheers, Olivier
-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Axel Naumann
Sent: Sunday, September 19, 2010 10:19 AM
To: jhkim_at_physics.utexas.edu
Cc: roottalk (Mailing list discussing all aspects of the ROOT system.)
Subject: Re: [ROOT] 2d histogram
Hi,
I probably don't understand that question. x,y and z are three variables, you thus cannot make a 2d histogram of it without some sort of projection. You could of course use a 3d histogram.
A valid answer to your question would be "you fill x for the histogram's first dimension and y+z for the second" - but I'm sure that's not what you are looking for :-) Could you clarify what you try to do?
Cheers, Axel.
On 9/19/10 12:31 AM, jhkim_at_physics.utexas.edu wrote:
> Hi,
>
> How can I make 2d histogram from x,y,z ntuples instead of using TProfile2D?
> For example, TH2F has only 2 variables such as x and y, but I have
> three x, y, and z.
>
> Best,
>
> JK
>
>
Received on Mon Sep 20 2010 - 16:57:16 CEST
This archive was generated by hypermail 2.2.0 : Tue Sep 21 2010 - 23:50:01 CEST