RooBrentRootFinder.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooBrentRootFinder.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_BRENT_ROOT_FINDER
00017 #define ROO_BRENT_ROOT_FINDER
00018 
00019 #include "RooAbsRootFinder.h"
00020 
00021 class RooBrentRootFinder : public RooAbsRootFinder {
00022 public:
00023   RooBrentRootFinder(const RooAbsFunc& function);
00024   inline virtual ~RooBrentRootFinder() { }
00025 
00026   virtual Bool_t findRoot(Double_t &result, Double_t xlo, Double_t xhi, Double_t value= 0) const;
00027   void setTol(Double_t tol) { 
00028     // Set convergence tolerance parameter 
00029     _tol = tol ; 
00030   }
00031 
00032 protected:
00033   enum { MaxIterations = 512 };
00034 
00035   Double_t _tol ;
00036 
00037   ClassDef(RooBrentRootFinder,0) // Abstract interface for 1-dim real-valued function root finders
00038 };
00039 
00040 #endif

Generated on Tue Jul 5 14:26:05 2011 for ROOT_528-00b_version by  doxygen 1.5.1