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)
HcalLinearCompositionFunctor::b_
double b_
Definition: HcalLinearCompositionFunctor.h:44
HcalLinearCompositionFunctor
Definition: HcalLinearCompositionFunctor.h:17
HcalLinearCompositionFunctor::a_
double a_
Definition: HcalLinearCompositionFunctor.h:43
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalLinearCompositionFunctor::HcalLinearCompositionFunctor
HcalLinearCompositionFunctor()
Definition: HcalLinearCompositionFunctor.h:20
DDAxes::x
HcalLinearCompositionFunctor::operator()
double operator()(double x) const override
Definition: HcalLinearCompositionFunctor.cc:15
HcalLinearCompositionFunctor.h
cuy.ib
ib
Definition: cuy.py:662
genVertex_cff.x
x
Definition: genVertex_cff.py:12
Exception.h
HcalLinearCompositionFunctor::other_
std::shared_ptr< AbsHcalFunctor > other_
Definition: HcalLinearCompositionFunctor.h:42
cms::Exception
Definition: Exception.h:70