/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtItgFourCoeffFcn.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: EvtItgFourCoeffFcn.hh
00012 //
00013 // Description:
00014 //      Class describing a function with Four vectors of coefficients. 
00015 //
00016 // Modification history:
00017 //
00018 //    Jane Tinslay                March 21, 2001       Module created
00019 //
00020 //------------------------------------------------------------------------
00021 
00022 #ifndef EVTITFOURCOEFFFCN_HH
00023 #define EVTITFOURCOEFFFCN_HH
00024 
00025 #include <vector>
00026 #include "EvtGenModels/EvtItgAbsFunction.hh"
00027 
00028 class EvtItgFourCoeffFcn: public EvtItgAbsFunction {
00029 
00030 public:
00031 
00032   EvtItgFourCoeffFcn( double (*theFunction)(double, const std::vector<double> &, const std::vector<double> &, const std::vector<double> &, const std::vector<double> &),
00033                      double lowerRange, double upperRange, const std::vector<double> &coeffs1, const std::vector<double> &coeffs2, const std::vector<double> &coeffs3, const std::vector<double> &coeffs4);
00034 
00035   virtual ~EvtItgFourCoeffFcn( );
00036 
00037   virtual void setCoeff(int, int, double);
00038   virtual double getCoeff(int, int);
00039 
00040 protected:
00041 
00042   virtual double myFunction(double x) const;
00043 
00044 private:
00045  
00046   // Data members
00047   double (*_myFunction)(double x, const std::vector<double> & coeffs1, const std::vector<double> & coeffs2, const std::vector<double> & coeffs3, const std::vector<double> & coeffs4);
00048   
00049   // Note: if your class needs a copy constructor or an assignment operator, 
00050   //  make one of the following public and implement it.
00051   EvtItgFourCoeffFcn( const EvtItgFourCoeffFcn& );                
00052   EvtItgFourCoeffFcn& operator= ( const EvtItgFourCoeffFcn& );    // Assignment op
00053   std::vector<double> _coeffs1;
00054   std::vector<double> _coeffs2;
00055   std::vector<double> _coeffs3;
00056   std::vector<double> _coeffs4;
00057 
00058 };
00059 
00060 #endif // EvtITGPTRFUNCTION_HH

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