CMS 3D CMS Logo

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)
std::shared_ptr< AbsHcalFunctor > other_
float x
double operator()(double x) const override
ib
Definition: cuy.py:661