00001 // @(#)root/minuit2:$Id: FitterUtil.h 20880 2007-11-19 11:23:41Z rdm $ 00002 // Author: L. Moneta 10/2005 00003 00004 /********************************************************************** 00005 * * 00006 * Copyright (c) 2005 ROOT Foundation, CERN/PH-SFT * 00007 * * 00008 **********************************************************************/ 00009 00010 #ifndef ROOT_FitterUtil_H_ 00011 #define ROOT_FitterUtil_H_ 00012 00013 00014 /// utility functions to be used in the fitter classes 00015 00016 namespace FitterUtil { 00017 00018 /** 00019 Evaluate integral of model function around the bin 00020 To use when fitting with integral option 00021 */ 00022 double EvalIntegral(TF1 * func, const std::vector<double> & x1, const std::vector<double> & x2, const std::vector<double> & par); 00023 00024 00025 } 00026 00027 00028 #endif