ROOT  6.06/09
Reference Guide
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 //
19 // BEGIN_HTML
20 // RooAbsRootFinder is the abstract interface for finding roots of real-valued
21 // 1-dimensional function that implements the RooAbsFunc interface.
22 // END_HTML
23 //
24 //
25 
26 #include "RooFit.h"
27 
28 #include "RooAbsRootFinder.h"
29 #include "RooAbsRootFinder.h"
30 #include "RooAbsFunc.h"
31 #include "RooMsgService.h"
32 #include "Riostream.h"
33 
34 using namespace std;
35 
37 ;
38 
39 
40 ////////////////////////////////////////////////////////////////////////////////
41 /// Constructor take function binding as argument
42 
44  _function(&function), _valid(function.isValid())
45 {
46  if(_function->getDimension() != 1) {
47  oocoutE((TObject*)0,Eval) << "RooAbsRootFinder:: cannot find roots for function of dimension "
48  << _function->getDimension() << endl;
49  _valid= kFALSE;
50  }
51 }
RooAbsRootFinder(const RooAbsFunc &function)
Constructor take function binding as argument.
const Bool_t kFALSE
Definition: Rtypes.h:92
STL namespace.
UInt_t getDimension() const
Definition: RooAbsFunc.h:29
#define oocoutE(o, a)
Definition: RooMsgService.h:48
void function(const char *name_, T fun, const char *docstring=0)
Definition: RExports.h:159
const RooAbsFunc * _function
ClassImp(RooAbsRootFinder)
Mother of all ROOT objects.
Definition: TObject.h:58