Re: Copy subrange of an Histogam

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jul 27 1999 - 10:06:06 MEST


Norbert Danneberg wrote:
> 
> Hi,
> 
> is there a clever way to copy a subrange, from bin  min to bin max,  of
> one histogram into another ?

Hi Norbert,
Simply do:
for (Int_t bin=binmin;bin<binmax;bin++) h2->SetBinContent(bin,
h1->GetBinContent(bin));

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET