CMS 3D CMS Logo

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:19
double f[11][100]

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, AlignmentTrackSelector_cfi::pMax, ALCARECOTkAlMinBias_cff::pMin, and funct::X::set().

13  {
14  X::set(min); double pMin = p();
15  X::set(max); double pMax = p();
16  return pMax - pMin;
17  }
Primitive< F, X >::type p
Definition: Integral.h:19
static void set(const double &x)
Definition: Variables.h:50
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