ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Types | Protected Attributes | List of all members
RooBrentRootFinder Class Reference

Definition at line 21 of file RooBrentRootFinder.h.

Public Member Functions

 RooBrentRootFinder (const RooAbsFunc &function)
 Constructor taking function binding as input. More...
 
virtual ~RooBrentRootFinder ()
 
virtual Bool_t findRoot (Double_t &result, Double_t xlo, Double_t xhi, Double_t value=0) const
 Do the root finding using the Brent-Decker method. More...
 
void setTol (Double_t tol)
 
- Public Member Functions inherited from RooAbsRootFinder
 RooAbsRootFinder (const RooAbsFunc &function)
 Constructor take function binding as argument. More...
 
virtual ~RooAbsRootFinder ()
 

Protected Types

enum  { MaxIterations = 512 }
 

Protected Attributes

Double_t _tol
 
- Protected Attributes inherited from RooAbsRootFinder
const RooAbsFunc_function
 
Bool_t _valid
 

#include <RooBrentRootFinder.h>

+ Inheritance diagram for RooBrentRootFinder:
+ Collaboration diagram for RooBrentRootFinder:

Member Enumeration Documentation

anonymous enum
protected
Enumerator
MaxIterations 

Definition at line 33 of file RooBrentRootFinder.h.

Constructor & Destructor Documentation

RooBrentRootFinder::RooBrentRootFinder ( const RooAbsFunc function)

Constructor taking function binding as input.

Definition at line 44 of file RooBrentRootFinder.cxx.

virtual RooBrentRootFinder::~RooBrentRootFinder ( )
inlinevirtual

Definition at line 24 of file RooBrentRootFinder.h.

Member Function Documentation

Bool_t RooBrentRootFinder::findRoot ( Double_t result,
Double_t  xlo,
Double_t  xhi,
Double_t  value = 0 
) const
virtual

Do the root finding using the Brent-Decker method.

Returns a boolean status and loads 'result' with our best guess at the root if true. Prints a warning if the initial interval does not bracket a single root or if the root is not found after a fixed number of iterations.

Implements RooAbsRootFinder.

Definition at line 58 of file RooBrentRootFinder.cxx.

Referenced by RooStats::BayesianCalculator::ComputeIntervalUsingRooFit(), RooAbsReal::findRoot(), and RooHistError::getInterval().

void RooBrentRootFinder::setTol ( Double_t  tol)
inline

Member Data Documentation

Double_t RooBrentRootFinder::_tol
protected

Definition at line 35 of file RooBrentRootFinder.h.

Referenced by findRoot(), and setTol().


The documentation for this class was generated from the following files: