/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtItgTwoCoeffFcn.hh

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 //
00004 // Copyright Information: See EvtGen/COPYRIGHT
00005 //
00006 // Environment:
00007 //      This software is part of the EvtGen package developed jointly
00008 //      for the BaBar and CLEO collaborations.  If you use all or part
00009 //      of it, please give an appropriate acknowledgement.
00010 //
00011 // Module: EvtItgTwoCoeffFcn.hh
00012 //
00013 // Description:
00014 //      Class describing a function with two vectors of coefficients. 
00015 //
00016 // Modification history:
00017 //
00018 //    Jane Tinslay                March 21, 2001       Module created
00019 //
00020 //------------------------------------------------------------------------
00021 
00022 #ifndef EVTITTWOCOEFFFCN_HH
00023 #define EVTITTWOCOEFFFCN_HH
00024 
00025 #include <vector>
00026 
00027 //-------------
00028 // C Headers --
00029 //-------------
00030 extern "C" {
00031 }
00032 
00033 #include "EvtGenModels/EvtItgAbsFunction.hh"
00034 
00035 class EvtItgTwoCoeffFcn: public EvtItgAbsFunction {
00036 
00037 public:
00038 
00039   EvtItgTwoCoeffFcn( double (*theFunction)(double, const std::vector<double> &, const std::vector<double> &),
00040                      double lowerRange, double upperRange, const std::vector<double> &coeffs1, const std::vector<double> &coeffs2);
00041 
00042   virtual ~EvtItgTwoCoeffFcn( );
00043 
00044   virtual void setCoeff(int, int, double);
00045   virtual double getCoeff(int, int);
00046 
00047 
00048 protected:
00049   
00050   virtual double myFunction(double x) const;
00051 
00052 private:
00053  
00054   // Data members
00055   double (*_myFunction)(double x, const std::vector<double> & coeffs1, const std::vector<double> & coeffs2);
00056 
00057   // Note: if your class needs a copy constructor or an assignment operator, 
00058   // make one of the following public and implement it.
00059    EvtItgTwoCoeffFcn( const EvtItgTwoCoeffFcn& );                
00060   EvtItgTwoCoeffFcn& operator= ( const EvtItgTwoCoeffFcn& );    // Assignment op
00061  
00062   std::vector<double> _coeffs1;
00063   std::vector<double> _coeffs2;
00064 
00065 };
00066 
00067 #endif // EvtITGTWOCOEFFFUNCTION_HH

Generated on Tue Nov 29 23:12:19 2016 for BOSS_7.0.2 by  doxygen 1.4.7