CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
funct::IntegralStruct< F, X > Struct Template Reference

#include <Integral.h>

Public Member Functions

 IntegralStruct (const F &f)
 
double operator() (double min, double max) const
 

Private Attributes

Primitive< F, X >::type p
 

Detailed Description

template<typename F, typename X = no_var>
struct funct::IntegralStruct< F, X >

Definition at line 11 of file Integral.h.

Constructor & Destructor Documentation

template<typename F , typename X = no_var>
funct::IntegralStruct< F, X >::IntegralStruct ( const F f)
inline

Definition at line 12 of file Integral.h.

12 : p(primitive<X>(f)) {}
Primitive< F, X >::type p
Definition: Integral.h:22

Member Function Documentation

template<typename F , typename X = no_var>
double funct::IntegralStruct< F, X >::operator() ( double  min,
double  max 
) const
inline

Definition at line 13 of file Integral.h.

References funct::IntegralStruct< F, X >::p, HLT_FULL_cff::pMin, and funct::X::set().

13  {
14  X::set(min);
15  double pMin = p();
16  X::set(max);
17  double pMax = p();
18  return pMax - pMin;
19  }
Primitive< F, X >::type p
Definition: Integral.h:22
static void set(const double &x)
Definition: Variables.h:51
T min(T a, T b)
Definition: MathUtil.h:58

Member Data Documentation

template<typename F , typename X = no_var>
Primitive<F, X>::type funct::IntegralStruct< F, X >::p
private