00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooAbsRootFinder.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $ 00005 * Authors: * 00006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 00007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 00008 * * 00009 * Copyright (c) 2000-2005, Regents of the University of California * 00010 * and Stanford University. All rights reserved. * 00011 * * 00012 * Redistribution and use in source and binary forms, * 00013 * with or without modification, are permitted according to the terms * 00014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00015 *****************************************************************************/ 00016 #ifndef ROO_ABS_ROOT_FINDER 00017 #define ROO_ABS_ROOT_FINDER 00018 00019 #include "Rtypes.h" 00020 00021 class RooAbsFunc; 00022 00023 class RooAbsRootFinder { 00024 public: 00025 RooAbsRootFinder(const RooAbsFunc& function); 00026 inline virtual ~RooAbsRootFinder() { } 00027 00028 virtual Bool_t findRoot(Double_t &result, Double_t xlo, Double_t xhi, Double_t value= 0) const = 0; 00029 00030 protected: 00031 const RooAbsFunc *_function; // Pointer to input function 00032 Bool_t _valid; // True if current state is valid 00033 00034 ClassDef(RooAbsRootFinder,0) // Abstract interface for 1-dim real-valued function root finders 00035 }; 00036 00037 #endif