1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 2001 Brunel University
11 // Module: EvtGen/EvtBtoXsgammaRootFinder.hh
14 // Root finding algorithms using the bilear method. Basic structure
15 // lifted from the BaBar IntegrationUtils root finding algorithm
16 // (author John Back).
18 // Modification history:
20 // Jane Tinslay March 21, 2001 Module created
22 //------------------------------------------------------------------------
24 #ifndef EVTBTOXSGAMMAROOTFINDER_HH
25 #define EVTBTOXSGAMMAROOTFINDER_HH
33 //#include "EvtGenBase/EvtItgAbsFunction.hh"
34 class EvtItgAbsFunction;
36 class EvtBtoXsgammaRootFinder{
42 EvtBtoXsgammaRootFinder();
45 virtual ~EvtBtoXsgammaRootFinder( );
47 double GetRootSingleFunc(const EvtItgAbsFunction* theFunc, double functionValue,
48 double lowerValue, double upperValue, double precision);
50 double GetGaussIntegFcnRoot(EvtItgAbsFunction *theFunc1, EvtItgAbsFunction *theFunc2,
51 double integ1Precision, double integ2Precision,
52 int maxLoop1, int maxLoop2, double integLower,
53 double integUpper, double lowerValue, double upperValue,
58 EvtBtoXsgammaRootFinder( const EvtBtoXsgammaRootFinder& ); // Copy Constructor
59 EvtBtoXsgammaRootFinder& operator= ( const EvtBtoXsgammaRootFinder& ); // Assignment op