Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsRootFinder.cxx
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * @(#)root/roofitcore:$Id$
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
17/**
18\file RooAbsRootFinder.cxx
19\class RooAbsRootFinder
20\ingroup Roofitcore
21
22RooAbsRootFinder is the abstract interface for finding roots of real-valued
231-dimensional function that implements the RooAbsFunc interface.
24**/
25
26#include "RooAbsRootFinder.h"
27#include "RooAbsFunc.h"
28#include "RooMsgService.h"
29#include "Riostream.h"
30
31using namespace std;
32
34;
35
36
37////////////////////////////////////////////////////////////////////////////////
38/// Constructor take function binding as argument
39
41 _function(&function), _valid(function.isValid())
42{
43 if(_function->getDimension() != 1) {
44 oocoutE(nullptr,Eval) << "RooAbsRootFinder:: cannot find roots for function of dimension "
45 << _function->getDimension() << endl;
46 _valid= false;
47 }
48}
#define oocoutE(o, a)
#define ClassImp(name)
Definition Rtypes.h:377
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition RooAbsFunc.h:27
UInt_t getDimension() const
Definition RooAbsFunc.h:33
RooAbsRootFinder is the abstract interface for finding roots of real-valued 1-dimensional function th...
RooAbsRootFinder(const RooAbsFunc &function)
Constructor take function binding as argument.
bool _valid
True if current state is valid.
const RooAbsFunc * _function
Pointer to input function.