CMS 3D CMS Logo

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 1174 of file Functions.h.

Constructor & Destructor Documentation

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

Definition at line 1177 of file Functions.h.

References mps_fire::i.

1178  :
1179  function_(function)
1180  {
1181  parval_ = new double[function_->parNum()];
1182  for( int i=0; i < function_->parNum(); ++i ) {
1183  parval_[i] = *(parBgrIt+i);
1184  }
1185  }
const backgroundFunctionBase * function_
Definition: Functions.h:1196
virtual int parNum() const
Definition: Functions.h:1145
backgroundFunctionBase::FunctionForIntegral::~FunctionForIntegral ( )
inline

Definition at line 1186 of file Functions.h.

1187  {
1188  delete parval_;
1189  }

Member Function Documentation

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

Definition at line 1190 of file Functions.h.

1191  {
1192  // FIXME: this is a gross approximation. The function should be integrated in eta over the sample.
1193  return( (*function_)(parval_, *mass, 0.) );
1194  }
const backgroundFunctionBase * function_
Definition: Functions.h:1196

Member Data Documentation

const backgroundFunctionBase* backgroundFunctionBase::FunctionForIntegral::function_
protected

Definition at line 1196 of file Functions.h.

double* backgroundFunctionBase::FunctionForIntegral::parval_
protected

Definition at line 1197 of file Functions.h.