]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenModels/EvtItgTwoCoeffFcn.hh
If default parameters are allowed and runNumber is provided, search first for the...
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / EvtItgTwoCoeffFcn.hh
CommitLineData
da0e9ce3 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: EvtItgTwoCoeffFcn.hh
12//
13// Description:
14// Class describing a function with two vectors of coefficients.
15//
16// Modification history:
17//
18// Jane Tinslay March 21, 2001 Module created
19//
20//------------------------------------------------------------------------
21
22#ifndef EVTITTWOCOEFFFCN_HH
23#define EVTITTWOCOEFFFCN_HH
24
25#include <vector>
26
27//-------------
28// C Headers --
29//-------------
30extern "C" {
31}
32
33#include "EvtGenModels/EvtItgAbsFunction.hh"
34
35class EvtItgTwoCoeffFcn: public EvtItgAbsFunction {
36
37public:
38
39 EvtItgTwoCoeffFcn( double (*theFunction)(double, const std::vector<double> &, const std::vector<double> &),
40 double lowerRange, double upperRange, const std::vector<double> &coeffs1, const std::vector<double> &coeffs2);
41
42 virtual ~EvtItgTwoCoeffFcn( );
43
44 virtual void setCoeff(int, int, double);
45 virtual double getCoeff(int, int);
46
47
48protected:
49
50 virtual double myFunction(double x) const;
51
52private:
53
54 // Data members
55 double (*_myFunction)(double x, const std::vector<double> & coeffs1, const std::vector<double> & coeffs2);
56
57 // Note: if your class needs a copy constructor or an assignment operator,
58 // make one of the following public and implement it.
59 EvtItgTwoCoeffFcn( const EvtItgTwoCoeffFcn& ); //// Copy Constructor
60 EvtItgTwoCoeffFcn& operator= ( const EvtItgTwoCoeffFcn& ); // Assignment op
61
62 std::vector<double> _coeffs1;
63 std::vector<double> _coeffs2;
64
65};
66
67#endif // EvtITGTWOCOEFFFUNCTION_HH