Re: Histo Division

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 21 Jul 2008 07:56:19 +0200


TH1::Divide works for 2-d and 3-d histograms too. So, if you have TH2* ha and TH2* hb, simply do

   ha->Divide(hb)
to divide ha by hb

Rene Brun

Supriya Sharma wrote:
> Hi All,
>
>
> I am very new to ROOT software and is wondering about a question.
> Is it possible to divide a 2D histogram with the another 2D histogram?
> All I have is understood is that a 2D histogram stores a global bin
> coresponding to each combination of bins between x-axis and y-axis. So
> I am thinking is to grab that global bin for both 2-D histos and
> divide bin contents and store in the form of a 1D histo. Am I right or
> I am misinterpreting the things. Kindly suggest.
> Any help will be highly appreciated.
>
> Thanks!
> Supriya Sharma
>
>
Received on Mon Jul 21 2008 - 07:56:41 CEST

This archive was generated by hypermail 2.2.0 : Wed Jul 30 2008 - 17:50:02 CEST