Logo ROOT  
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 \file RooAbsRootFinder.cxx
19 \class RooAbsRootFinder
20 \ingroup Roofitcore
21 
22 RooAbsRootFinder is the abstract interface for finding roots of real-valued
23 1-dimensional function that implements the RooAbsFunc interface.
24 **/
25 
26 #include "RooFit.h"
27 
28 #include "RooAbsRootFinder.h"
29 #include "RooAbsFunc.h"
30 #include "RooMsgService.h"
31 #include "Riostream.h"
32 
33 using namespace std;
34 
36 ;
37 
38 
39 ////////////////////////////////////////////////////////////////////////////////
40 /// Constructor take function binding as argument
41 
43  _function(&function), _valid(function.isValid())
44 {
45  if(_function->getDimension() != 1) {
46  oocoutE((TObject*)0,Eval) << "RooAbsRootFinder:: cannot find roots for function of dimension "
47  << _function->getDimension() << endl;
48  _valid= kFALSE;
49  }
50 }
RooMsgService.h
RooAbsFunc::getDimension
UInt_t getDimension() const
Definition: RooAbsFunc.h:29
RooFit.h
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
RooAbsRootFinder::RooAbsRootFinder
RooAbsRootFinder(const RooAbsFunc &function)
Constructor take function binding as argument.
Definition: RooAbsRootFinder.cxx:42
RooAbsFunc.h
oocoutE
#define oocoutE(o, a)
Definition: RooMsgService.h:48
RooAbsFunc
Definition: RooAbsFunc.h:23
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
ROOT::R::function
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
Definition: RExports.h:151
RooAbsRootFinder.h
TObject
Definition: TObject.h:37
RooAbsRootFinder::_valid
Bool_t _valid
Definition: RooAbsRootFinder.h:32
RooFit::Eval
@ Eval
Definition: RooGlobalFunc.h:68
RooAbsRootFinder
Definition: RooAbsRootFinder.h:23
Riostream.h
RooAbsRootFinder::_function
const RooAbsFunc * _function
Definition: RooAbsRootFinder.h:31