BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgFunction.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software was developed for the BaBar collaboration. If you
5// use all or part of it, please give an appropriate acknowledgement.
6//
7// Copyright Information: See EvtGen/COPYRIGHT
8// Copyright (C) 1998 LBNL
9//
10//------------------------------------------------------------------------
11
12#ifndef EVTITGFUNCTION_HH
13#define EVTITGFUNCTION_HH
14
15#include "EvtItgAbsFunction.hh"
16
17/**
18 * Copyright (C) 1998 LBNL
19 *
20 * Generic function where the pointer to the function is available.
21 *
22 * The function is taken as type pointer to function returning double and
23 * taking a double (the abscissa) and a const RWTValVector<double> reference
24 * (the parameter values of the function) as arguments.
25 *
26 * @see EvtItgFunctionEvtItgFunction
27 *
28 * @version $Id: EvtItgFunction.hh,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
29 *
30 * @author Phil Strother Originator
31 */
32
34
35public:
36 // Constructors
37 EvtItgFunction( double ( *theFunction )( double ), double lowerRange, double upperRange );
38
39 // Destructor
40 virtual ~EvtItgFunction();
41
42 virtual void setCoeff( int, int, double ){};
43 virtual double getCoeff( int, int ) { return 0.0; };
44
45protected:
46 // Helper functions
47
48 virtual double myFunction( double x ) const;
49
50private:
51 // Data members
52 double ( *_myFunction )( double x );
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 EvtItgFunction( const EvtItgFunction& ); // Copy Constructor
57 EvtItgFunction& operator=( const EvtItgFunction& ); // Assignment op
58};
59
60#endif // EvtITGFUNCTION_HH
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const
virtual double myFunction(double x) const
EvtItgFunction(double(*theFunction)(double), double lowerRange, double upperRange)
virtual double getCoeff(int, int)
virtual ~EvtItgFunction()
virtual void setCoeff(int, int, double)