Re: [ROOT] Dividing bin contents

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Nov 13 2001 - 11:47:36 MET


Hi Roberto,

Use TH1::Scale.
See: http://root.cern.ch/root/htmldoc/TH1.html#TH1:Scale

In your case, if you have TH1D *h, do
  h->Scale(1./3.);

Rene Brun

>Roberto Catanuto wrote:

>Hi rooters, i have a h1d histogram and i have to get another one which
>holds per bin the number of counts of the previous divided by n=3.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:08 MET