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

◆ IntegralStruct()

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)) {}

Member Function Documentation

◆ operator()()

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.

13  {
14  X::set(min);
15  double pMin = p();
16  X::set(max);
17  double pMax = p();
18  return pMax - pMin;
19  }

References SiStripPI::max, min(), funct::IntegralStruct< F, X >::p, AlignmentTrackSelector_cfi::pMax, ALCARECOTkAlMinBias_cff::pMin, and funct::X::set().

Member Data Documentation

◆ p

template<typename F , typename X = no_var>
Primitive<F, X>::type funct::IntegralStruct< F, X >::p
private
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
min
T min(T a, T b)
Definition: MathUtil.h:58
AlignmentTrackSelector_cfi.pMax
pMax
Definition: AlignmentTrackSelector_cfi.py:14
funct::X::set
static void set(const double &x)
Definition: Variables.h:51
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
ALCARECOTkAlMinBias_cff.pMin
pMin
GeV.
Definition: ALCARECOTkAlMinBias_cff.py:35
funct::IntegralStruct::p
Primitive< F, X >::type p
Definition: Integral.h:22