CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
funct::TrapezoidIntegrator Class Reference

#include <NumericalIntegration.h>

Public Member Functions

template<typename F >
double operator() (const F &f, double min, double max) const
 
 TrapezoidIntegrator ()
 
 TrapezoidIntegrator (unsigned int samples)
 

Private Attributes

unsigned int samples_
 

Detailed Description

Definition at line 29 of file NumericalIntegration.h.

Constructor & Destructor Documentation

◆ TrapezoidIntegrator() [1/2]

funct::TrapezoidIntegrator::TrapezoidIntegrator ( )
inline

Definition at line 31 of file NumericalIntegration.h.

31 : samples_(0) {}

◆ TrapezoidIntegrator() [2/2]

funct::TrapezoidIntegrator::TrapezoidIntegrator ( unsigned int  samples)
inlineexplicit

Definition at line 32 of file NumericalIntegration.h.

32 : samples_(samples) {}

Member Function Documentation

◆ operator()()

template<typename F >
double funct::TrapezoidIntegrator::operator() ( const F f,
double  min,
double  max 
) const
inline

Definition at line 34 of file NumericalIntegration.h.

34  {
35  return trapezoid_integral(f, min, max, samples_);
36  }

References f, SiStripPI::max, min(), samples_, and funct::trapezoid_integral().

Member Data Documentation

◆ samples_

unsigned int funct::TrapezoidIntegrator::samples_
private

Definition at line 39 of file NumericalIntegration.h.

Referenced by operator()().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
min
T min(T a, T b)
Definition: MathUtil.h:58
EgammaValidation_cff.samples
samples
Definition: EgammaValidation_cff.py:19
funct::trapezoid_integral
double trapezoid_integral(const F &f, double min, double max, unsigned int samples)
Definition: NumericalIntegration.h:20
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
funct::TrapezoidIntegrator::samples_
unsigned int samples_
Definition: NumericalIntegration.h:39