CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalLinearCompositionFunctor.cc
Go to the documentation of this file.
2 
4 
6  const double ia,
7  const double ib)
8  : other_(p), a_(ia), b_(ib) {
9  if (!other_.get())
10  throw cms::Exception(
11  "In HcalLinearCompositionFunctor constructor: "
12  "can not use a null pointer to another functor");
13 }
14 
15 double HcalLinearCompositionFunctor::operator()(const double x) const { return a_ * (*other_)(x) + b_; }
16 
17 BOOST_CLASS_EXPORT_IMPLEMENT(HcalLinearCompositionFunctor)
int ib
Definition: cuy.py:661
std::shared_ptr< AbsHcalFunctor > other_
float x
double operator()(double x) const override