Re: [ROOT] Multiply histogram

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 05 2001 - 10:17:53 MET


Hi jan,

Use TH1::Scale

Rene Brun

Jan Malinowski wrote:
> 
> Hello Rooters,
> 
> I want to multiply my histogram by const. value.
> I would like to use the method TH1::Multiply( Double_t c1 ).
> In the library I have found this header:
>           Multiply( TF1* h1,   Double_t c1 = 1 )
> In description:
>           Multiply( TF1* f1,   Double_t c1 )
>                    Performs the operation: this = this*c1*f1;
> 
> How can I use this method (I mean parameter "TF1* h1"), when I have no
> function
> and is this parameter function or histogram?
> 
> Cheers,
>       Janek.



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