CMS 3D CMS Logo

Public Member Functions | Private Attributes

funct::IntegralStruct< F, X > Struct Template Reference

#include <Integral.h>

List of all members.

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.

: p(primitive<X>(f)) { }

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, and jptDQMConfig_cff::pMax.

                                                    { 
      X::set(min); double pMin = p();
      X::set(max); double pMax = p();
      return pMax - pMin; 
    }

Member Data Documentation

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