BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgFourCoeffFcn.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: EvtItgFourCoeffFcn.hh
12//
13// Description:
14// Class describing a function with Four vectors of coefficients.
15//
16// Modification history:
17//
18// Jane Tinslay March 21, 2001 Module created
19//
20//------------------------------------------------------------------------
21
22#ifndef EVTITFOURCOEFFFCN_HH
23#define EVTITFOURCOEFFFCN_HH
24
25#include "EvtItgAbsFunction.hh"
26#include <vector>
27
29
30public:
31 EvtItgFourCoeffFcn( double ( *theFunction )( double, const std::vector<double>&,
32 const std::vector<double>&,
33 const std::vector<double>&,
34 const std::vector<double>& ),
35 double lowerRange, double upperRange, const std::vector<double>& coeffs1,
36 const std::vector<double>& coeffs2, const std::vector<double>& coeffs3,
37 const std::vector<double>& coeffs4 );
38
39 virtual ~EvtItgFourCoeffFcn();
40
41 virtual void setCoeff( int, int, double );
42 virtual double getCoeff( int, int );
43
44protected:
45 virtual double myFunction( double x ) const;
46
47private:
48 // Data members
49 double ( *_myFunction )( double x, const std::vector<double>& coeffs1,
50 const std::vector<double>& coeffs2,
51 const std::vector<double>& coeffs3,
52 const std::vector<double>& coeffs4 );
53
54 // Note: if your class needs a copy constructor or an assignment operator,
55 // make one of the following public and implement it.
56 EvtItgFourCoeffFcn( const EvtItgFourCoeffFcn& ); //// Copy Constructor
57 EvtItgFourCoeffFcn& operator=( const EvtItgFourCoeffFcn& ); // Assignment op
58 std::vector<double> _coeffs1;
59 std::vector<double> _coeffs2;
60 std::vector<double> _coeffs3;
61 std::vector<double> _coeffs4;
62};
63
64#endif // EvtITGPTRFUNCTION_HH
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const
virtual double myFunction(double x) const
virtual void setCoeff(int, int, double)
EvtItgFourCoeffFcn(double(*theFunction)(double, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1, const std::vector< double > &coeffs2, const std::vector< double > &coeffs3, const std::vector< double > &coeffs4)
virtual double getCoeff(int, int)