Need some advice

From: Nick van Eijndhoven (Nick@fys.ruu.nl)
Date: Tue Jun 03 1997 - 13:20:42 MEST


Dear friends,
In ROOT I have 3 histos (1 dimensional), h1, h2 and h3.
h1 I fit with some function f and now I would like to subtract 
h3 from h2 in which I weight each bin of h3 with the function value of
f in that bin. I.e. result= h3 - f(x)*h2.
Could anyone of you tell me the most effective (c.q. elegant) way to 
do this, such that I don't have to change all the code when changing the 
function f ?
                                              Thanks in advance,
                                                    Nick.

*----------------------------------------------------------------------*
 Dr. Nick van Eijndhoven                Department of Subatomic Physics
 email : nick@fys.ruu.nl                Utrecht University / NIKHEF
 tel. +31-30-2532331 (direct)           P.O. Box 80.000
 tel. +31-30-2531492 (secr.)            NL-3508 TA Utrecht
 fax. +31-30-2518689                    The Netherlands
 WWW : http://www.fys.ruu.nl/~nick      Office : Ornstein lab. 172
 ----------------------------------------------------------------------
 tel. +41-22-7679751 (direct)           CERN PPE Division / ALICE exp.
 tel. +41-22-7675857 (secr.)            CH-1211 Geneva 23
 fax. +41-22-7679480                    Switzerland
 CERN beep : 13+7294                    Office : B 160 1-012
*----------------------------------------------------------------------*



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