CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
backgroundFunctionBase::FunctionForIntegral Class Reference

#include <Functions.h>

Public Member Functions

 FunctionForIntegral (const backgroundFunctionBase *function, const std::vector< double >::const_iterator &parBgrIt)
 
double operator() (const double *mass, const double *) const
 
 ~FunctionForIntegral ()
 

Protected Attributes

const backgroundFunctionBasefunction_
 
double * parval_
 

Detailed Description

Definition at line 5681 of file Functions.h.

Constructor & Destructor Documentation

backgroundFunctionBase::FunctionForIntegral::FunctionForIntegral ( const backgroundFunctionBase function,
const std::vector< double >::const_iterator &  parBgrIt 
)
inline

Definition at line 5684 of file Functions.h.

References function_, i, backgroundFunctionBase::parNum(), and parval_.

5685  :
5686  function_(function)
5687  {
5688  parval_ = new double[function_->parNum()];
5689  for( int i=0; i < function_->parNum(); ++i ) {
5690  parval_[i] = *(parBgrIt+i);
5691  }
5692  }
int i
Definition: DBlmapReader.cc:9
const backgroundFunctionBase * function_
Definition: Functions.h:5703
virtual int parNum() const
Definition: Functions.h:5652
backgroundFunctionBase::FunctionForIntegral::~FunctionForIntegral ( )
inline

Definition at line 5693 of file Functions.h.

References parval_.

5694  {
5695  delete parval_;
5696  }

Member Function Documentation

double backgroundFunctionBase::FunctionForIntegral::operator() ( const double *  mass,
const double *   
) const
inline

Definition at line 5697 of file Functions.h.

References function_, and parval_.

5698  {
5699  // FIXME: this is a gross approximation. The function should be integrated in eta over the sample.
5700  return( (*function_)(parval_, *mass, 0.) );
5701  }
const backgroundFunctionBase * function_
Definition: Functions.h:5703
tuple mass
Definition: scaleCards.py:27

Member Data Documentation

const backgroundFunctionBase* backgroundFunctionBase::FunctionForIntegral::function_
protected

Definition at line 5703 of file Functions.h.

Referenced by FunctionForIntegral(), and operator()().

double* backgroundFunctionBase::FunctionForIntegral::parval_
protected

Definition at line 5704 of file Functions.h.

Referenced by FunctionForIntegral(), operator()(), and ~FunctionForIntegral().