BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgFunction.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: EvtItgFunction.cc,v 1.1.1.2 2007/10/26 05:03:14 pingrg Exp $
4//
5// Description:
6// Class EvtItgFunction
7// Implementation for the EvtItgFunction class. Defines the bounds
8// checked value() function and the non-bounds checked operator()
9//
10// Environment:
11// Software developed for the BaBar Detector at the SLAC B-Factory.
12//
13// Author List:
14// Phil Strother Originator
15//
16// Copyright Information: See EvtGen/COPYRIGHT
17// Copyright (C) 1998 LBNL
18//
19//------------------------------------------------------------------------
21
22//-----------------------
23// This Class's Header --
24//-----------------------
25#include "EvtItgFunction.hh"
26
27//-------------
28// C Headers --
29//-------------
30extern "C" {}
31
32//----------------
33// Constructors --
34//----------------
35EvtItgFunction::EvtItgFunction( double ( *theFunction )( double ), double lowerRange,
36 double upperRange )
37 : EvtItgAbsFunction( lowerRange, upperRange ), _myFunction( theFunction ) {}
38
39//--------------
40// Destructor --
41//--------------
42
44
45double EvtItgFunction::myFunction( double x ) const { return _myFunction( x ); }
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 ~EvtItgFunction()