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
roofit
roofitcore
inc
RooAbsRootFinder.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* File: $Id: RooAbsRootFinder.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_ABS_ROOT_FINDER
17
#define ROO_ABS_ROOT_FINDER
18
19
#include "
Rtypes.h
"
20
21
class
RooAbsFunc
;
22
23
class
RooAbsRootFinder
{
24
public
:
25
RooAbsRootFinder
(
const
RooAbsFunc
&
function
);
26
inline
virtual
~RooAbsRootFinder
() { }
27
28
virtual
Bool_t
findRoot
(
Double_t
&
result
,
Double_t
xlo,
Double_t
xhi,
Double_t
value
= 0)
const
= 0;
29
30
protected
:
31
const
RooAbsFunc
*
_function
;
// Pointer to input function
32
Bool_t
_valid
;
// True if current state is valid
33
34
ClassDef
(
RooAbsRootFinder
,0)
// Abstract interface for 1-dim real-valued function root finders
35
};
36
37
#endif
Rtypes.h
RooAbsRootFinder::RooAbsRootFinder
RooAbsRootFinder(const RooAbsFunc &function)
Constructor take function binding as argument.
Definition:
RooAbsRootFinder.cxx:43
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
RooAbsRootFinder
Definition:
RooAbsRootFinder.h:23
RooAbsRootFinder::~RooAbsRootFinder
virtual ~RooAbsRootFinder()
Definition:
RooAbsRootFinder.h:26
RooAbsRootFinder::_function
const RooAbsFunc * _function
Definition:
RooAbsRootFinder.h:31
Double_t
double Double_t
Definition:
RtypesCore.h:55
RooAbsRootFinder::findRoot
virtual Bool_t findRoot(Double_t &result, Double_t xlo, Double_t xhi, Double_t value=0) const =0
result
double result[121]
Definition:
testSampleQuantiles.cxx:17
value
float value
Definition:
math.cpp:443
RooAbsFunc
Definition:
RooAbsFunc.h:23
RooAbsRootFinder::_valid
Bool_t _valid
Definition:
RooAbsRootFinder.h:32