BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgPtrFunction.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3//
4// Copyright Information: See EvtGen/COPYRIGHT
5//
6// Environment:
7// This software is part of the EvtGen package developed jointly
8// for the BaBar and CLEO collaborations. If you use all or part
9// of it, please give an appropriate acknowledgement.
10//
11// Module: EvtItgPtrFunction.hh
12//
13// Description:
14// Class describing a function with one vector of coefficients. (Stolen and
15// modified from the BaBar IntegrationUtils package - author: Phil Strother).
16//
17// Modification history:
18//
19// Jane Tinslay March 21, 2001 Module adapted for use in
20// EvtGen
21//
22//------------------------------------------------------------------------
23
24#ifndef EVTITGPTRFUNCTION_HH
25#define EVTITGPTRFUNCTION_HH
26
27#include "EvtItgAbsFunction.hh"
28#include <vector>
29
31
32public:
33 EvtItgPtrFunction( double ( *theFunction )( double, const std::vector<double>& ),
34 double lowerRange, double upperRange,
35 const std::vector<double>& coeffs1 );
36
37 virtual ~EvtItgPtrFunction();
38
39 virtual void setCoeff( int, int, double );
40 virtual double getCoeff( int, int );
41
42protected:
43 virtual double myFunction( double x ) const;
44
45private:
46 // Data members
47 double ( *_myFunction )( double x, const std::vector<double>& coeffs1 );
48
49 // Note: if your class needs a copy constructor or an assignment operator,
50 // make one of the following public and implement it.
51 EvtItgPtrFunction( const EvtItgPtrFunction& ); //// Copy Constructor
52 EvtItgPtrFunction& operator=( const EvtItgPtrFunction& ); // Assignment op
53 std::vector<double> _coeffs1;
54};
55
56#endif // EVTITGPTRFUNCTION_HH
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const
virtual void setCoeff(int, int, double)
virtual double getCoeff(int, int)
virtual double myFunction(double x) const
EvtItgPtrFunction(double(*theFunction)(double, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1)