Loading [MathJax]/extensions/tex2jax.js
ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
roofit
roofitcore
inc
RooBrentRootFinder.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* File: $Id: RooBrentRootFinder.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
#ifndef ROO_BRENT_ROOT_FINDER
17
#define ROO_BRENT_ROOT_FINDER
18
19
#include "
RooAbsRootFinder.h
"
20
21
class
RooBrentRootFinder
:
public
RooAbsRootFinder
{
22
public
:
23
RooBrentRootFinder
(
const
RooAbsFunc
&
function
);
24
inline
virtual
~RooBrentRootFinder
() { }
25
26
virtual
Bool_t
findRoot
(
Double_t
&
result
,
Double_t
xlo,
Double_t
xhi,
Double_t
value
= 0)
const
;
27
void
setTol
(
Double_t
tol
) {
28
// Set convergence tolerance parameter
29
_tol
=
tol
;
30
}
31
32
protected
:
33
enum
{
MaxIterations
= 512 };
34
35
Double_t
_tol
;
36
37
ClassDef
(
RooBrentRootFinder
,0)
// Abstract interface for 1-dim real-valued function root finders
38
};
39
40
#endif
RooAbsRootFinder.h
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
RooBrentRootFinder::RooBrentRootFinder
RooBrentRootFinder(const RooAbsFunc &function)
Constructor taking function binding as input.
Definition:
RooBrentRootFinder.cxx:44
RooBrentRootFinder::~RooBrentRootFinder
virtual ~RooBrentRootFinder()
Definition:
RooBrentRootFinder.h:24
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
tol
const double tol
Definition:
testVectorIO.cxx:57
RooAbsRootFinder
Definition:
RooAbsRootFinder.h:23
RooBrentRootFinder
Definition:
RooBrentRootFinder.h:21
RooBrentRootFinder::MaxIterations
Definition:
RooBrentRootFinder.h:33
RooBrentRootFinder::setTol
void setTol(Double_t tol)
Definition:
RooBrentRootFinder.h:27
Double_t
double Double_t
Definition:
RtypesCore.h:55
RooBrentRootFinder::_tol
Double_t _tol
Definition:
RooBrentRootFinder.h:35
RooBrentRootFinder::findRoot
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.
Definition:
RooBrentRootFinder.cxx:58
result
double result[121]
Definition:
testSampleQuantiles.cxx:17
value
float value
Definition:
math.cpp:443
RooAbsFunc
Definition:
RooAbsFunc.h:23